Description:add startScreen Feature

Match-id-ac751a4511a3e385320912de43c9860f0c22a529
This commit is contained in:
xxxx
2022-08-10 15:42:46 +08:00
parent 7674d23089
commit 32d8d95355
48 changed files with 1110 additions and 172 deletions
+7
View File
@@ -20,6 +20,7 @@
#include <string>
#include "distributed_hardware_log.h"
#include "nlohmann/json.hpp"
namespace OHOS {
namespace DistributedHardware {
@@ -31,8 +32,14 @@ struct DevInfo {
};
DevInfo GetLocalDeviceInfo();
std::string GetLocalNetworkId();
uint64_t GetCurrentTime();
std::string SetAnonyId(const std::string &message);
/* IsString, IsUint32 and IsUint64 are used to valid json key */
bool IsString(const nlohmann::json& jsonObj, const std::string& key);
bool IsInt32(const nlohmann::json& jsonObj, const std::string& key);
bool IsUint32(const nlohmann::json& jsonObj, const std::string& key);
bool IsUint64(const nlohmann::json& jsonObj, const std::string& key);
} // namespace DistributedInput
} // namespace DistributedHardware
} // namespace OHOS