/foundation/communication/wifi/wifi/utils/src/ |
H A D | wifi_hisysevent.cpp | 49 Json::Value root; in WriteWifiStateHiSysEvent() local 51 root["WIFI_STATE"] = static_cast<int>(operType); in WriteWifiStateHiSysEvent() 52 root["TYPE"] = serviceType; in WriteWifiStateHiSysEvent() 53 WriteEvent("WIFI_CHR_EVENT", "EVENT_NAME", "EVENT_WIFI_STATE", "EVENT_VALUE", writer.write(root)); in WriteWifiStateHiSysEvent() 93 Json::Value root; in WriteWifiOperateStateHiSysEvent() local 95 root["OPERATE_TYPE"] = operateType; in WriteWifiOperateStateHiSysEvent() 96 root["OPERATE_STATE"] = operateState; in WriteWifiOperateStateHiSysEvent() 97 WriteEvent("WIFI_CHR_EVENT", "EVENT_NAME", "WIFI_OPERATE_STATE", "EVENT_VALUE", writer.write(root)); in WriteWifiOperateStateHiSysEvent() 102 Json::Value root; in WriteWifiAbnormalDisconnectHiSysEvent() local 104 root["ERROR_COD in WriteWifiAbnormalDisconnectHiSysEvent() 110 Json::Value root; WriteWifiConnectionInfoHiSysEvent() local 118 Json::Value root; WriteWifiOpenAndCloseFailedHiSysEvent() local 129 Json::Value root; WriteSoftApOpenAndCloseFailedEvent() local 138 Json::Value root; WriteWifiAccessIntFailedHiSysEvent() local 147 Json::Value root; WriteWifiPnoScanHiSysEvent() local 156 Json::Value root; WriteBrowserFailedForPortalHiSysEvent() local 165 Json::Value root; WriteWifiConnectFailedEventHiSysEvent() local 173 Json::Value root; WriteP2pKpiCountHiSysEvent() local 181 Json::Value root; WriteP2pConnectFailedHiSysEvent() local 190 Json::Value root; WriteP2pAbDisConnectHiSysEvent() local 199 Json::Value root; WriteSoftApAbDisconnectHiSysEvent() local 207 Json::Value root; WriteIsInternetHiSysEvent() local 216 Json::Value root; WriteSoftApConnectFailHiSysEvent() local 224 Json::Value root; WriteWifiScanApiFailHiSysEvent() local 233 Json::Value root; WriteWifiEncryptionFailHiSysEvent() local 244 Json::Value root; WritePortalStateHiSysEvent() local 252 Json::Value root; WriteArpInfoHiSysEvent() local 261 Json::Value root; WriteLinkInfoHiSysEvent() local 272 Json::Value root; WirteConnectTypeHiSysEvent() local 280 Json::Value root; WriteWifiWpaStateHiSysEvent() local 289 Json::Value root; WritePortalAuthExpiredHisysevent() local 310 Json::Value root; WriteWifiSelfcureHisysevent() local [all...] |
/foundation/resourceschedule/resource_schedule_service/ressched/sched_controller/observer/src/ |
H A D | hisysevent_observer.cpp | 46 {"RUNNINGLOCK", [this](const nlohmann::json& root, const std::string& eventName) { in HiSysEventObserver() 47 this->ProcessRunningLockEvent(root, eventName); in HiSysEventObserver() 49 {"STREAM_CHANGE", [this](const nlohmann::json& root, const std::string& eventName) { in HiSysEventObserver() 50 this->ProcessAudioEvent(root, eventName); in HiSysEventObserver() 52 {"CAMERA_CONNECT", [this](const nlohmann::json& root, const std::string& eventName) { in HiSysEventObserver() 53 this->ProcessCameraEvent(root, eventName); in HiSysEventObserver() 55 {"CAMERA_DISCONNECT", [this](const nlohmann::json& root, const std::string& eventName) { in HiSysEventObserver() 56 this->ProcessCameraEvent(root, eventName); in HiSysEventObserver() 58 {"BR_SWITCH_STATE", [this](const nlohmann::json& root, const std::string& eventName) { in HiSysEventObserver() 59 this->ProcessBluetoothEvent(root, eventNam in HiSysEventObserver() 100 nlohmann::json root = nlohmann::json::parse(eventDetail, nullptr, false); OnEvent() local 116 ProcessHiSysEvent(const std::string& eventName, const nlohmann::json& root) ProcessHiSysEvent() argument 132 ProcessAvCodecEvent(const nlohmann::json& root, const std::string& eventName) ProcessAvCodecEvent() argument 165 ProcessRunningLockEvent(const nlohmann::json& root, const std::string& eventName) ProcessRunningLockEvent() argument 218 ProcessAudioEvent(const nlohmann::json& root, const std::string& eventName) ProcessAudioEvent() argument 265 ProcessCameraEvent(const nlohmann::json& root, const std::string& eventName) ProcessCameraEvent() argument 290 ProcessBluetoothEvent(const nlohmann::json& root, const std::string& eventName) ProcessBluetoothEvent() argument 325 ProcessWifiEvent(const nlohmann::json& root, const std::string& eventName) ProcessWifiEvent() argument [all...] |
/foundation/arkui/ace_engine/adapter/preview/external/ability/stage/ |
H A D | stage_app_info.cpp | 19 void StageAppInfo::Parse(const std::unique_ptr<JsonValue>& root) in Parse() argument 21 if (!root) { in Parse() 25 apiReleaseType_ = root->GetString("apiReleaseType"); in Parse() 26 bundleName_ = root->GetString("bundleName"); in Parse() 27 bundleType_ = root->GetString("bundleType"); in Parse() 28 icon_ = root->GetString("icon"); in Parse() 29 label_ = root->GetString("label"); in Parse() 30 vendor_ = root->GetString("vendor"); in Parse() 31 versionName_ = root->GetString("versionName"); in Parse() 32 debug_ = root in Parse() [all...] |
H A D | stage_hap_module_info.cpp | 19 void StageHapModuleInfo::Parse(const std::unique_ptr<JsonValue>& root) in Parse() argument 21 if (!root) { in Parse() 25 compileMode_ = root->GetString("compileMode"); in Parse() 26 moduleName_ = root->GetString("name"); in Parse() 27 pageProfile_ = root->GetString("pages"); in Parse() 28 auto metaData = root->GetValue("metadata"); in Parse() 37 auto abilities = root->GetValue("abilities"); in Parse()
|
/foundation/communication/netmanager_base/test/netconnmanager/unittest/net_conn_add_test/ |
H A D | netfirewall_default_rule_parser_test.cpp | 57 cJSON *root = cJSON_CreateObject(); in HWTEST_F() local 65 cJSON_AddItemToObject(root, NET_FIREWALL_LOCAL_IP.c_str(), localIps); in HWTEST_F() 66 std::cout << "ParseIpList001 root=" << cJSON_Print(root) << std::endl; in HWTEST_F() 68 NetFirewallDefaultRuleParser::ParseIpList(list, root, NET_FIREWALL_LOCAL_IP); in HWTEST_F() 74 cJSON *root = cJSON_CreateObject(); in HWTEST_F() local 80 cJSON_AddItemToObject(root, NET_FIREWALL_RULE_DOMAIN.c_str(), array); in HWTEST_F() 82 NetFirewallDefaultRuleParser::ParseDomainList(list, root, NET_FIREWALL_RULE_DOMAIN); in HWTEST_F() 88 cJSON *root = cJSON_CreateObject(); in HWTEST_F() local 92 cJSON_AddItemToObject(root, NET_FIREWALL_DN in HWTEST_F() 100 cJSON *root = cJSON_CreateObject(); HWTEST_F() local 112 cJSON *root = cJSON_CreateObject(); HWTEST_F() local 124 cJSON *root = cJSON_CreateObject(); HWTEST_F() local 137 cJSON *root = cJSON_CreateObject(); HWTEST_F() local [all...] |
/foundation/communication/netmanager_ext/test/netfirewallmanager/unittest/netfirewallmanager_test/ |
H A D | netfirewall_default_rule_parser_test.cpp | 57 cJSON *root = cJSON_CreateObject();
in HWTEST_F() local 65 cJSON_AddItemToObject(root, NET_FIREWALL_LOCAL_IP.c_str(), localIps);
in HWTEST_F() 66 std::cout << "ParseIpList001 root=" << cJSON_Print(root) << std::endl;
in HWTEST_F() 68 NetFirewallDefaultRuleParser::ParseIpList(list, root, NET_FIREWALL_LOCAL_IP);
in HWTEST_F() 74 cJSON *root = cJSON_CreateObject();
in HWTEST_F() local 80 cJSON_AddItemToObject(root, NET_FIREWALL_RULE_DOMAIN.c_str(), array);
in HWTEST_F() 82 NetFirewallDefaultRuleParser::ParseDomainList(list, root, NET_FIREWALL_RULE_DOMAIN);
in HWTEST_F() 88 cJSON *root = cJSON_CreateObject();
in HWTEST_F() local 92 cJSON_AddItemToObject(root, NET_FIREWALL_DN in HWTEST_F() 100 cJSON *root = cJSON_CreateObject(); HWTEST_F() local 112 cJSON *root = cJSON_CreateObject(); HWTEST_F() local 124 cJSON *root = cJSON_CreateObject(); HWTEST_F() local 137 cJSON *root = cJSON_CreateObject(); HWTEST_F() local [all...] |
/foundation/communication/dsoftbus/core/transmission/trans_channel/proxy/src/ |
H A D | softbus_proxychannel_message.c | 367 static int32_t PackHandshakeMsgForFastData(AppInfo *appInfo, cJSON *root) in PackHandshakeMsgForFastData() argument 371 if (!AddNumberToJsonObject(root, JSON_KEY_ROUTE_TYPE, appInfo->routeType)) { in PackHandshakeMsgForFastData() 396 if (!AddStringToJsonObject(root, JSON_KEY_FIRST_DATA, (const char *)encodeFastData)) { in PackHandshakeMsgForFastData() 405 if (!AddNumber16ToJsonObject(root, JSON_KEY_FIRST_DATA_SIZE, appInfo->fastTransDataSize)) { in PackHandshakeMsgForFastData() 412 static int32_t PackHandshakeMsgForNormal(SessionKeyBase64 *sessionBase64, AppInfo *appInfo, cJSON *root) in PackHandshakeMsgForNormal() argument 422 if (!AddNumberToJsonObject(root, JSON_KEY_UID, appInfo->myData.uid) || in PackHandshakeMsgForNormal() 423 !AddNumberToJsonObject(root, JSON_KEY_PID, appInfo->myData.pid) || in PackHandshakeMsgForNormal() 424 !AddStringToJsonObject(root, JSON_KEY_GROUP_ID, appInfo->groupId) || in PackHandshakeMsgForNormal() 425 !AddStringToJsonObject(root, JSON_KEY_PKG_NAME, appInfo->myData.pkgName) || in PackHandshakeMsgForNormal() 426 !AddStringToJsonObject(root, JSON_KEY_SESSION_KE in PackHandshakeMsgForNormal() 448 cJSON *root = NULL; TransProxyPackHandshakeErrMsg() local 467 TransProxyAddJsonObject(cJSON *root, ProxyChannelInfo *info) TransProxyAddJsonObject() argument 483 cJSON *root = cJSON_CreateObject(); TransProxyPackHandshakeMsg() local 530 cJSON *root = NULL; TransProxyPackHandshakeAckMsg() local 589 cJSON *root = cJSON_ParseWithLength(msg, len); TransProxyUnPackHandshakeErrMsg() local 612 cJSON *root = cJSON_ParseWithLength(msg, len); TransProxyUnPackRestErrMsg() local 636 cJSON *root = cJSON_ParseWithLength(msg, len); TransProxyUnpackHandshakeAckMsg() local 685 UnpackPackHandshakeMsgForFastData(AppInfo *appInfo, cJSON *root) UnpackPackHandshakeMsgForFastData() argument 728 TransProxyUnpackNormalHandshakeMsg(cJSON *root, AppInfo *appInfo, char *sessionKey, int32_t keyLen) TransProxyUnpackNormalHandshakeMsg() argument 773 TransProxyUnpackAuthHandshakeMsg(cJSON *root, AppInfo *appInfo) TransProxyUnpackAuthHandshakeMsg() argument 787 TransProxyUnpackInnerHandshakeMsg(cJSON *root, AppInfo *appInfo, char *sessionKey, int32_t keyLen) TransProxyUnpackInnerHandshakeMsg() argument 803 TransProxyGetJsonObject(cJSON *root, const char *msg, int32_t len, ProxyChannelInfo *chan) TransProxyGetJsonObject() argument 828 cJSON *root = cJSON_ParseWithLength(msg, len); TransProxyUnpackHandshakeMsg() local 867 cJSON *root = NULL; TransProxyPackIdentity() local 894 cJSON *root = NULL; TransProxyUnpackIdentity() local [all...] |
/foundation/bundlemanager/bundle_framework_lite/frameworks/bundle_lite/src/ |
H A D | convert_utils.cpp | 75 cJSON *root = GetJsonAbilityInfo(abilityInfo); in ConvertAbilityInfoToString() local 76 if (root == nullptr) { in ConvertAbilityInfoToString() 79 char *str = cJSON_PrintUnformatted(root); in ConvertAbilityInfoToString() 80 cJSON_Delete(root); in ConvertAbilityInfoToString() 89 cJSON *root = GetJsonBundleInfo(bundleInfo); in ConvertBundleInfoToString() local 90 if (root == nullptr) { in ConvertBundleInfoToString() 93 char *str = cJSON_PrintUnformatted(root); in ConvertBundleInfoToString() 94 cJSON_Delete(root); in ConvertBundleInfoToString() 125 cJSON *root = cJSON_ParseWithLength(str, buffSize); in ConvertStringToAbilityInfo() local 126 if (root in ConvertStringToAbilityInfo() 153 cJSON *root = cJSON_ParseWithLength(str, buffSize); ConvertStringToBundleInfo() local 216 cJSON *root = cJSON_CreateObject(); GetJsonBundleInfo() local 237 ConvertBundleInfoPartToJson(const BundleInfo *bundleInfo, cJSON *root) ConvertBundleInfoPartToJson() argument 272 ConvertModuleInfosToJson(const BundleInfo *bundleInfo, cJSON *root) ConvertModuleInfosToJson() argument 298 ConvertAbilityInfosToJson(const BundleInfo *bundleInfo, cJSON *root) ConvertAbilityInfosToJson() argument 540 cJSON *root = cJSON_CreateObject(); GetJsonAbilityInfo() local 571 ConvertJsonToBundleInfo(const cJSON *root, BundleInfo *bundleInfo) ConvertJsonToBundleInfo() argument 771 ConvertJsonToAbilityInfo(const cJSON *root, AbilityInfo *abilityInfo) ConvertJsonToAbilityInfo() argument [all...] |
/foundation/communication/dsoftbus/components/nstackx/fillp/src/public/src/ |
H A D | rb_tree.c | 22 static void FillpRbRotateLeft(struct RbNode *x, struct RbRoot *root) in FillpRbRotateLeft() argument 44 root->rbNode = y; in FillpRbRotateLeft() 53 static void FillpRbRotateRight(struct RbNode *x, struct RbRoot *root) in FillpRbRotateRight() argument 75 root->rbNode = y; in FillpRbRotateRight() 83 static struct RbNode *EqualRight(struct RbNode *x, struct RbRoot *root) in EqualRight() argument 88 FillpRbRotateLeft(x, root); in EqualRight() 93 static struct RbNode *EqualLeft(struct RbNode *x, struct RbRoot *root) in EqualLeft() argument 97 FillpRbRotateRight(x, root); in EqualLeft() 103 void FillpRbInsertColor(struct RbNode *x, struct RbRoot *root) in FillpRbInsertColor() argument 108 while (x != root in FillpRbInsertColor() 149 FillpRbEraseColorAtLeft(struct RbNode **x, struct RbNode **parent, struct RbRoot *root) FillpRbEraseColorAtLeft() argument 184 FillpRbEraseColorAtRight(struct RbNode **x, struct RbNode **parent, struct RbRoot *root) FillpRbEraseColorAtRight() argument 219 FillpRbEraseColor(struct RbNode *x, struct RbNode *parent, struct RbRoot *root) FillpRbEraseColor() argument 249 FillpRbEraseLowlvlNode(struct RbNode *node, struct RbRoot *root) FillpRbEraseLowlvlNode() argument 301 FillpRbErase(struct RbNode *node, struct RbRoot *root) FillpRbErase() argument [all...] |
/foundation/multimedia/image_framework/frameworks/kits/js/common/include/ |
H A D | image_napi_utils.h | 102 #define GET_BUFFER_BY_NAME(root, name, res, len) ImageNapiUtils::GetBufferByName(env, (root), (name), &(res), &(len)) 103 #define GET_UINT32_BY_NAME(root, name, res) ImageNapiUtils::GetUint32ByName(env, (root), (name), &(res)) 104 #define GET_INT32_BY_NAME(root, name, res) ImageNapiUtils::GetInt32ByName(env, (root), (name), &(res)) 105 #define GET_BOOL_BY_NAME(root, name, res) ImageNapiUtils::GetBoolByName(env, (root), (name), &(res)) 106 #define GET_NODE_BY_NAME(root, name, res) ImageNapiUtils::GetNodeByName(env, (root), (nam [all...] |
/foundation/resourceschedule/work_scheduler/frameworks/test/unittest/src/ |
H A D | workinfo_test.cpp | 348 Json::Value root; in HWTEST_F() local 349 bool res = workInfo.ParseFromJson(root); in HWTEST_F() 352 root["workId"] = 1; in HWTEST_F() 353 res = workInfo.ParseFromJson(root); in HWTEST_F() 356 root.clear(); in HWTEST_F() 357 root["bundleName"] = "bundleName"; in HWTEST_F() 358 res = workInfo.ParseFromJson(root); in HWTEST_F() 361 root.clear(); in HWTEST_F() 362 root["abilityName"] = "abilityName"; in HWTEST_F() 363 res = workInfo.ParseFromJson(root); in HWTEST_F() 404 Json::Value root; HWTEST_F() local 461 Json::Value root; HWTEST_F() local 488 Json::Value root; HWTEST_F() local [all...] |
/foundation/filemanagement/app_file_service/tests/unittests/backup_utils/b_tarball/ |
H A D | b_tarball_cmdline_test.cpp | 57 string root = tm.GetRootDirCurTest(); in HWTEST_F() local 58 string_view tarballDir = root; in HWTEST_F() 83 string root = tm.GetRootDirCurTest(); in HWTEST_F() local 84 string_view tarballDir = root; in HWTEST_F() 110 string root = tm.GetRootDirCurTest(); in HWTEST_F() local 111 string_view tarballDir = root; in HWTEST_F() 113 string testDir = root + "/testdir"; in HWTEST_F() 118 string strFile = root + tarballName.data(); in HWTEST_F() 134 tarballCmdline.Tar(root, includes, excludes); in HWTEST_F() 157 string root in HWTEST_F() local 204 string root = tm.GetRootDirCurTest(); HWTEST_F() local 251 string root = tm.GetRootDirCurTest(); HWTEST_F() local 285 string root = tm.GetRootDirCurTest(); HWTEST_F() local [all...] |
/foundation/multimedia/av_codec/test/unittest/dash_test/ |
H A D | dash_xml_unit_test.cpp | 84 std::string xml = "<root id=\"1\"><test1>123</test1><test2></test2></root>"; in HWTEST_F() 87 std::shared_ptr<XmlElement> root = xmlParser_->GetRootElement(); in HWTEST_F() local 88 root->GetXmlNode(); in HWTEST_F() 89 std::string attr = root->GetAttribute("test"); in HWTEST_F() 91 std::string id = root->GetAttribute("id"); in HWTEST_F() 93 std::shared_ptr<XmlElement> child = root->GetChild(); in HWTEST_F() 95 std::shared_ptr<XmlElement> last = root->GetLast(); in HWTEST_F() 102 std::shared_ptr<XmlElement> root = std::make_shared<XmlElement>(nullptr); in HWTEST_F() local 103 std::string name = root in HWTEST_F() 124 std::shared_ptr<XmlElement> root = std::make_shared<XmlElement>(node); HWTEST_F() local [all...] |
/foundation/graphic/graphic_2d/rosen/modules/texgine/src/ |
H A D | font_config.cpp | 105 int FontConfig::ParseFont(const cJSON* root) in ParseFont() argument 108 cJSON* filters = cJSON_GetObjectItem(root, tag); in ParseFont() 137 cJSON* root = CheckConfigFile(fname); in ParseConfig() local 138 if (root == nullptr) { in ParseConfig() 142 return ParseFont(root); in ParseConfig() 190 void FontConfigJson::AnalyseFontDir(const cJSON* root) in AnalyseFontDir() argument 192 if (root == nullptr) { in AnalyseFontDir() 195 int size = cJSON_GetArraySize(root); in AnalyseFontDir() 197 cJSON* item = cJSON_GetArrayItem(root, i); in AnalyseFontDir() 205 int FontConfigJson::ParseDir(const cJSON* root) in ParseDir() argument 225 cJSON* root = CheckConfigFile(fname); ParseConfigList() local 256 cJSON* root = CheckConfigFile(fname); ParseConfigListPath() local 300 ParseGeneric(const cJSON* root, const char* key) ParseGeneric() argument 339 ParseAlias(const cJSON* root, FontGenericInfo &genericInfo) ParseAlias() argument 364 ParseAdjust(const cJSON* root, FontGenericInfo &genericInfo) ParseAdjust() argument 389 ParseFallback(const cJSON* root, const char* key) ParseFallback() argument 429 ParseFontMap(const cJSON* root, const char* key) ParseFontMap() argument 455 ParseInstallFont(const cJSON* root, std::vector<std::string>& fontPathList) ParseInstallFont() argument 492 cJSON* root = CheckConfigFile(fontPath); ParseInstallConfig() local [all...] |
/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/src/ |
H A D | hierarchy_controller.cpp | 77 if (const auto root = target_.lock()) { in AttachAll() 85 if (auto root = target_.lock()) { in DetachAll() 115 void IterateHierarchy(const IObject::Ptr& root, bool reverse, Callback&& callback) in IterateHierarchy() argument 117 if (const auto container = interface_cast<IContainer>(root)) { in IterateHierarchy() 120 if (const auto content = interface_cast<IContent>(root)) { in IterateHierarchy() 131 if (const auto root = target_.lock()) { in GetAllNodes() 133 root, [&add](const IObject::Ptr& object) { return true; }, TraversalType::DEPTH_FIRST_POST_ORDER); in GetAllNodes() 138 void NodeHierarchyController::AttachHierarchy(const IObject::Ptr& root) in AttachHierarchy() argument 140 if (!root) { in AttachHierarchy() 144 AttachNode(interface_cast<INode>(root)); in AttachHierarchy() 158 DetachHierarchy(const IObject::Ptr& root) DetachHierarchy() argument [all...] |
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_toolkit/unittest/ |
H A D | network_parser_test.cpp | 219 xmlNodePtr root = nullptr;
in HWTEST_F() local 221 m_networkXmlParser->ParseSsid(root, config);
in HWTEST_F() 223 root = xmlNewNode(nullptr, BAD_CAST "root");
in HWTEST_F() 224 xmlNodePtr target = xmlNewChild(root, nullptr, BAD_CAST "target", nullptr);
in HWTEST_F() 231 xmlFreeNode(root);
in HWTEST_F() 237 xmlNodePtr root = nullptr;
in HWTEST_F() local 239 m_networkXmlParser->ParsePreSharedKey(root, config);
in HWTEST_F() 241 root = xmlNewNode(nullptr, BAD_CAST "root");
in HWTEST_F() 255 xmlNodePtr root = nullptr; HWTEST_F() local 274 xmlNodePtr root = nullptr; HWTEST_F() local 292 xmlNodePtr root = nullptr; HWTEST_F() local 313 xmlNodePtr root = nullptr; HWTEST_F() local [all...] |
/foundation/multimedia/image_effect/test/unittest/ |
H A D | TestJsonHelper.cpp | 73 EffectJsonPtr root = EFFECTJsonHelper::ParseJsonData(info); in HWTEST_F() local 74 ASSERT_NE(root, nullptr); in HWTEST_F() 75 ASSERT_TRUE(root->HasElement(IMAGE_EFFECT)); in HWTEST_F() 77 EffectJsonPtr imageEffect = root->GetElement(IMAGE_EFFECT); in HWTEST_F() 115 EffectJsonPtr root = EFFECTJsonHelper::ParseJsonData(info); in HWTEST_F() local 116 ASSERT_NE(root, nullptr); in HWTEST_F() 117 EffectJsonPtr imageEffect = root->GetElement(IMAGE_EFFECT); in HWTEST_F() 175 EffectJsonPtr root = EFFECTJsonHelper::CreateObject(); in HWTEST_F() local 176 ASSERT_NE(root, nullptr); in HWTEST_F() 177 ASSERT_TRUE(root in HWTEST_F() 186 EffectJsonPtr root = EFFECTJsonHelper::CreateObject(); HWTEST_F() local 281 EffectJsonPtr root = EFFECTJsonHelper::ParseJsonData(info); HWTEST_F() local 318 EffectJsonPtr root = EFFECTJsonHelper::CreateObject(false); HWTEST_F() local [all...] |
/foundation/ability/ability_lite/services/abilitymgr_lite/src/client/ |
H A D | app_spawn_client.cpp | 99 cJSON *root = cJSON_CreateObject();
in SpawnProcess() local 100 if (root == nullptr) {
in SpawnProcess() 103 cJSON_AddStringToObject(root, "bundleName", innerBundleName);
in SpawnProcess() 105 cJSON_AddStringToObject(root, "identityID", identityId.c_str());
in SpawnProcess() 106 cJSON_AddNumberToObject(root, "uID", appRecord.GetBundleInfo().uid);
in SpawnProcess() 107 cJSON_AddNumberToObject(root, "gID", appRecord.GetBundleInfo().gid);
in SpawnProcess() 109 cJSON *caps = cJSON_AddArrayToObject(root, "capability");
in SpawnProcess() 111 cJSON_Delete(root);
in SpawnProcess() 119 cJSON_Delete(root);
in SpawnProcess() 129 cJSON_Delete(root);
in SpawnProcess() [all...] |
/foundation/multimedia/image_framework/frameworks/kits/js/common/ |
H A D | image_napi_utils.cpp | 34 bool ImageNapiUtils::GetBufferByName(napi_env env, napi_value root, const char* name, void **res, size_t* len) in GetBufferByName() argument 38 IMG_NAPI_CHECK_RET(IMG_IS_OK(napi_get_named_property(env, root, name, &tempValue)), false); in GetBufferByName() 45 bool ImageNapiUtils::GetUint32ByName(napi_env env, napi_value root, const char* name, uint32_t *res) in GetUint32ByName() argument 49 IMG_NAPI_CHECK_RET(IMG_IS_OK(napi_get_named_property(env, root, name, &tempValue)), false); in GetUint32ByName() 56 bool ImageNapiUtils::GetInt32ByName(napi_env env, napi_value root, const char* name, int32_t *res) in GetInt32ByName() argument 60 IMG_NAPI_CHECK_RET(IMG_IS_OK(napi_get_named_property(env, root, name, &tempValue)), false); in GetInt32ByName() 67 bool ImageNapiUtils::GetDoubleByName(napi_env env, napi_value root, const char* name, double *res) in GetDoubleByName() argument 71 IMG_NAPI_CHECK_RET(IMG_IS_OK(napi_get_named_property(env, root, name, &tempValue)), false); in GetDoubleByName() 78 bool ImageNapiUtils::GetBoolByName(napi_env env, napi_value root, const char* name, bool *res) in GetBoolByName() argument 82 IMG_NAPI_CHECK_RET(IMG_IS_OK(napi_get_named_property(env, root, nam in GetBoolByName() 89 GetNodeByName(napi_env env, napi_value root, const char* name, napi_value *res) GetNodeByName() argument 96 GetUtf8String(napi_env env, napi_value root, std::string &res, bool eof) GetUtf8String() argument 130 CreateNapiInt32(napi_env env, int32_t value, napi_value &root) CreateNapiInt32() argument 138 CreateNapiDouble(napi_env env, double value, napi_value &root) CreateNapiDouble() argument 146 getType(napi_env env, napi_value root) getType() argument 153 ParseSize(napi_env env, napi_value root, int32_t& width, int32_t& height) ParseSize() argument [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/common/manifest/ |
H A D | manifest_appinfo.cpp | 87 void ManifestAppInfo::AppInfoParse(const std::unique_ptr<JsonValue>& root) in AppInfoParse() argument 89 if (!root) { in AppInfoParse() 93 appName_ = root->GetString("appName"); in AppInfoParse() 94 versionName_ = root->GetString("versionName"); in AppInfoParse() 95 versionCode_ = root->GetUInt("versionCode"); in AppInfoParse() 96 logLevel_ = root->GetString("logLevel"); in AppInfoParse() 97 icon_ = root->GetString("icon"); in AppInfoParse() 98 appID_ = root->GetString("appID"); in AppInfoParse() 99 minPlatformVersion_ = root->GetInt("minPlatformVersion", 0); in AppInfoParse()
|
/foundation/filemanagement/app_file_service/tests/unittests/backup_ext/ |
H A D | untar_file_test.cpp | 136 string root = tm.GetRootDirCurTest(); in HWTEST_F() local 137 string testDir = root + "/testdir"; in HWTEST_F() 147 string tarFile = root + "test.tar"; in HWTEST_F() 149 string rootPath(root); in HWTEST_F() 179 string root = tm.GetRootDirCurTest(); in HWTEST_F() local 180 string testDir = root + "/testdir"; in HWTEST_F() 188 string rootPath(root); in HWTEST_F() 214 string root = tm.GetRootDirCurTest(); in HWTEST_F() local 215 string testDir = root + "/testdir"; in HWTEST_F() 220 string tarFile = root in HWTEST_F() 253 string root = tm.GetRootDirCurTest(); HWTEST_F() local 307 string root = tm.GetRootDirCurTest(); HWTEST_F() local 363 string root = tm.GetRootDirCurTest(); HWTEST_F() local 394 string root = tm.GetRootDirCurTest(); HWTEST_F() local 444 string root = tm.GetRootDirCurTest(); HWTEST_F() local [all...] |
/foundation/resourceschedule/background_task_mgr/services/common/src/ |
H A D | data_storage_helper.cpp | 48 nlohmann::json root; in RefreshTaskRecord() local 54 root[iter.first] = recordJson; in RefreshTaskRecord() 57 return SaveJsonValueToFile(root.dump(CommonUtils::jsonFormat_), TASK_RECORD_FILE_PATH); in RefreshTaskRecord() 63 nlohmann::json root; in RestoreTaskRecord() local 64 if (ParseJsonValueFromFile(root, TASK_RECORD_FILE_PATH) != ERR_OK) { in RestoreTaskRecord() 67 for (auto iter = root.begin(); iter != root.end(); iter++) { in RestoreTaskRecord() 88 nlohmann::json root; in RestoreResourceRecord() local 89 if (ParseJsonValueFromFile(root, RESOURCE_RECORD_FILE_PATH) != ERR_OK) { in RestoreResourceRecord() 93 DivideJsonToMap(root, appRecor in RestoreResourceRecord() 227 nlohmann::json root; ConvertMapToString() local 237 ConvertMapToJson(const ResourceRecordMap &appRecord, nlohmann::json &root) ConvertMapToJson() argument 246 DivideJsonToMap(nlohmann::json &root, ResourceRecordMap &appRecord, ResourceRecordMap &processRecord) DivideJsonToMap() argument [all...] |
/foundation/communication/netstack/frameworks/js/napi/http/cache/lru_cache/src/ |
H A D | lru_cache_disk_handler.cpp | 44 cJSON *root = cJSON_Parse(jsonStr.c_str()); in ReadJsonValueFromFile() local 45 if (root == nullptr) { in ReadJsonValueFromFile() 49 return root; in ReadJsonValueFromFile() 52 void LRUCacheDiskHandler::WriteJsonValueToFile(const cJSON *root) in WriteJsonValueToFile() argument 54 char *jsonStr = cJSON_Print(root); in WriteJsonValueToFile() 79 cJSON *root = ReadJsonValueFromFile(); in ReadCacheFromJsonFile() local 80 cache_.ReadCacheFromJsonValue(root); in ReadCacheFromJsonFile() 81 cJSON_Delete(root); in ReadCacheFromJsonFile() 92 cJSON *root = ReadJsonValueFromFile(); in Get() local 93 diskCache.ReadCacheFromJsonValue(root); in Get() [all...] |
/foundation/arkui/ace_engine/adapter/preview/external/ability/fa/ |
H A D | fa_hap_module_info.cpp | 19 void FaHapModuleInfo::Parse(const std::unique_ptr<JsonValue>& root) in Parse() argument 21 if (!root) { in Parse() 25 mainAbility_ = root->GetString("mainAbility"); in Parse() 26 moduleName_ = root->GetString("name"); in Parse() 27 package_ = root->GetString("package"); in Parse()
|
/foundation/filemanagement/app_file_service/utils/src/b_tarball/ |
H A D | b_tarball_factory.cpp | 43 * @param root Root directory for storing unpacked files 46 static void UntarFort(string_view root) in UntarFort() argument 48 auto resolvedPath = BExcepUltils::Canonicalize(root); in UntarFort() 49 if (string_view(UNTAT_ROOT) != root) { in UntarFort() 52 if (string_view(resolvedPath) != root) { in UntarFort() 53 throw BError(BError::Codes::UTILS_INVAL_TARBALL_ARG, "The root must be an existing canonicalized path"); in UntarFort() 61 * @param root Root directory of the file to be packed 63 * @param includes Path to be packed in the root directory. 70 string_view root, in TarFilter() 75 if (!realpath(root in TarFilter() 69 TarFilter(string_view tarballDir, string_view root, const vector<string_view> &includes, const vector<string_view> &excludes) TarFilter() argument [all...] |