Home
last modified time | relevance | path

Searched refs:jsonObject (Results 1 - 25 of 233) sorted by relevance

12345678910

/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/include/
H A Djson_serializer.h45 void to_json(nlohmann::json &jsonObject, const CustomizeData &customizeData);
46 void from_json(const nlohmann::json &jsonObject, CustomizeData &customizeData);
47 void to_json(nlohmann::json &jsonObject, const MetaData &metaData);
48 void from_json(const nlohmann::json &jsonObject, MetaData &metaData);
49 void to_json(nlohmann::json &jsonObject, const HnpPackage &hnpPackage);
50 void from_json(const nlohmann::json &jsonObject, HnpPackage &hnpPackage);
51 void to_json(nlohmann::json &jsonObject, const Metadata &metadata);
52 void from_json(const nlohmann::json &jsonObject, Metadata &metadata);
53 void to_json(nlohmann::json &jsonObject, const AbilityInfo &abilityInfo);
54 void from_json(const nlohmann::json &jsonObject, AbilityInf
[all...]
/foundation/ability/ability_base/interfaces/kits/native/view_data/src/
H A Dpage_node_info.cpp36 nlohmann::json jsonObject = nlohmann::json::parse(jsonStr, nullptr, false); in FromJsonString() local
37 if (jsonObject.is_discarded()) { in FromJsonString()
41 if (jsonObject.contains(PAGE_NODE_INFO_ID) && jsonObject[PAGE_NODE_INFO_ID].is_number()) { in FromJsonString()
42 id = jsonObject.at(PAGE_NODE_INFO_ID).get<int32_t>(); in FromJsonString()
44 if (jsonObject.contains(PAGE_NODE_INFO_DEPTH) && jsonObject[PAGE_NODE_INFO_DEPTH].is_number()) { in FromJsonString()
45 depth = jsonObject.at(PAGE_NODE_INFO_DEPTH).get<int32_t>(); in FromJsonString()
47 if (jsonObject.contains(PAGE_NODE_INFO_AUTO_FILL_TYPE) && jsonObject[PAGE_NODE_INFO_AUTO_FILL_TYP in FromJsonString()
72 ParseJsonToPageNodeInfo(const nlohmann::json& jsonObject) ParseJsonToPageNodeInfo() argument
[all...]
H A Dview_data.cpp35 nlohmann::json jsonObject = nlohmann::json::parse(jsonStr, nullptr, false); in FromJsonString() local
36 if (jsonObject.is_discarded()) { in FromJsonString()
40 if (jsonObject.contains(VIEW_DATA_BUNDLE_NAME) && jsonObject[VIEW_DATA_BUNDLE_NAME].is_string()) { in FromJsonString()
41 bundleName = jsonObject.at(VIEW_DATA_BUNDLE_NAME).get<std::string>(); in FromJsonString()
43 if (jsonObject.contains(VIEW_DATA_MODULE_NAME) && jsonObject[VIEW_DATA_MODULE_NAME].is_string()) { in FromJsonString()
44 moduleName = jsonObject.at(VIEW_DATA_MODULE_NAME).get<std::string>(); in FromJsonString()
46 if (jsonObject.contains(VIEW_DATA_ABILITY_NAME) && jsonObject[VIEW_DATA_ABILITY_NAM in FromJsonString()
[all...]
H A Drect.cpp30 nlohmann::json jsonObject = nlohmann::json::parse(jsonStr, nullptr, false); in FromJsonString() local
31 if (jsonObject.is_discarded()) { in FromJsonString()
35 if (jsonObject.contains(VIEW_DATA_RECT_LEFT) && jsonObject[VIEW_DATA_RECT_LEFT].is_number_float()) { in FromJsonString()
36 left = jsonObject.at(VIEW_DATA_RECT_LEFT).get<float>(); in FromJsonString()
38 if (jsonObject.contains(VIEW_DATA_RECT_TOP) && jsonObject[VIEW_DATA_RECT_TOP].is_number_float()) { in FromJsonString()
39 top = jsonObject.at(VIEW_DATA_RECT_TOP).get<float>(); in FromJsonString()
41 if (jsonObject.contains(VIEW_DATA_RECT_WIDTH) && jsonObject[VIEW_DATA_RECT_WIDT in FromJsonString()
[all...]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/
H A Dpre_install_bundle_info.cpp36 void PreInstallBundleInfo::ToJson(nlohmann::json &jsonObject) const in ToJson()
38 jsonObject[BUNDLE_NAME] = bundleName_; in ToJson()
39 jsonObject[VERSION_CODE] = versionCode_; in ToJson()
40 jsonObject[BUNDLE_PATHS] = bundlePaths_; in ToJson()
41 jsonObject[APP_TYPE] = appType_; in ToJson()
42 jsonObject[REMOVABLE] = removable_; in ToJson()
43 jsonObject[IS_UNINSTALLED] = isUninstalled_; in ToJson()
44 jsonObject[MODULE_NAME] = moduleName_; in ToJson()
45 jsonObject[LABEL_ID] = labelId_; in ToJson()
46 jsonObject[ICON_I in ToJson()
51 FromJson(const nlohmann::json &jsonObject) FromJson() argument
82 nlohmann::json jsonObject; ToString() local
[all...]
/foundation/bundlemanager/bundle_framework/test/benchmarktest/json_serializer_test/
H A Djson_serializer_test.cpp35 nlohmann::json jsonObject; in BenchmarkTestForCustomizeDataToJson() local
42 to_json(jsonObject, customizeData); in BenchmarkTestForCustomizeDataToJson()
54 nlohmann::json jsonObject; in BenchmarkTestForCustomizeDataFromJson() local
55 jsonObject["name"] = "ohos.global.systemres"; in BenchmarkTestForCustomizeDataFromJson()
56 jsonObject["value"] = "1"; in BenchmarkTestForCustomizeDataFromJson()
57 jsonObject["extra"] = "/data/accounts/account_0/applications/ohos.global.systemres"; in BenchmarkTestForCustomizeDataFromJson()
61 from_json(jsonObject, customizeData); in BenchmarkTestForCustomizeDataFromJson()
73 nlohmann::json jsonObject; in BenchmarkTestForMetadataToJson() local
80 to_json(jsonObject, metadata); in BenchmarkTestForMetadataToJson()
92 nlohmann::json jsonObject; in BenchmarkTestForMetadataFromJson() local
111 nlohmann::json jsonObject; BenchmarkTestForAbilityInfoToJson() local
130 nlohmann::json jsonObject; BenchmarkTestForAbilityInfoFromJson() local
149 nlohmann::json jsonObject; BenchmarkTestForExtensionAbilityInfoToJson() local
168 nlohmann::json jsonObject; BenchmarkTestForExtensionAbilityInfoFromJson() local
187 nlohmann::json jsonObject; BenchmarkTestForApplicationInfoToJson() local
206 nlohmann::json jsonObject; BenchmarkTestForApplicationInfoFromJson() local
225 nlohmann::json jsonObject; BenchmarkTestForBundleInfoToJson() local
244 nlohmann::json jsonObject; BenchmarkTestForBundleInfoFromJson() local
263 nlohmann::json jsonObject; BenchmarkTestForModuleInfoToJson() local
281 nlohmann::json jsonObject; BenchmarkTestForModuleInfoFromJson() local
299 nlohmann::json jsonObject; BenchmarkTestForFormInfoToJson() local
318 nlohmann::json jsonObject; BenchmarkTestForFormInfoFromJson() local
340 nlohmann::json jsonObject; BenchmarkTestForShortcutInfoToJson() local
359 nlohmann::json jsonObject; BenchmarkTestForShortcutInfoFromJson() local
378 nlohmann::json jsonObject; BenchmarkTestForCommonEventInfoToJson() local
397 nlohmann::json jsonObject; BenchmarkTestForCommonEventInfoFromJson() local
423 nlohmann::json jsonObject; BenchmarkTestForHapModuleInfoToJson() local
442 nlohmann::json jsonObject; BenchmarkTestForHapModuleInfoFromJson() local
461 nlohmann::json jsonObject; BenchmarkTestForBundleUserInfoToJson() local
478 nlohmann::json jsonObject; BenchmarkTestForBundleUserInfoFromJson() local
496 nlohmann::json jsonObject; BenchmarkTestForShortcutWantFromJson() local
514 nlohmann::json jsonObject; BenchmarkTestForShortcutFromJson() local
533 nlohmann::json jsonObject; BenchmarkTestForShortcutJsonFromJson() local
550 nlohmann::json jsonObject; BenchmarkTestForReqPermissionUsedSceToJson() local
568 nlohmann::json jsonObject; BenchmarkTestForReqPermissionUsedSceFromJson() local
586 nlohmann::json jsonObject; BenchmarkTestForRequestPermissionToJson() local
604 nlohmann::json jsonObject; BenchmarkTestForRequestPermissionFromJson() local
[all...]
/foundation/distributedhardware/distributed_hardware_fwk/utils/test/unittest/common/histreamer_ability_parser/
H A Dhistreamer_ability_parser_test.cpp125 cJSON *jsonObject = cJSON_CreateObject(); in HWTEST_F() local
126 if (jsonObject == nullptr) { in HWTEST_F()
129 cJSON_AddNumberToObject(jsonObject, NAME.c_str(), (double)(UINT16_ONE)); in HWTEST_F()
131 FromJson(jsonObject, audioEncoder); in HWTEST_F()
134 cJSON_ReplaceItemInObject(jsonObject, NAME.c_str(), cJSON_CreateString(AUDIO_ENCODER_NAME.c_str())); in HWTEST_F()
135 FromJson(jsonObject, audioEncoder); in HWTEST_F()
143 FromJson(jsonObject, audioEncoder); in HWTEST_F()
144 cJSON_Delete(jsonObject); in HWTEST_F()
157 cJSON *jsonObject = cJSON_CreateObject(); in HWTEST_F() local
158 if (jsonObject in HWTEST_F()
181 cJSON *jsonObject = cJSON_CreateObject(); HWTEST_F() local
205 cJSON *jsonObject = cJSON_CreateObject(); HWTEST_F() local
241 cJSON *jsonObject = cJSON_CreateObject(); HWTEST_F() local
265 cJSON *jsonObject = cJSON_CreateObject(); HWTEST_F() local
284 cJSON *jsonObject = cJSON_CreateObject(); HWTEST_F() local
320 cJSON *jsonObject = cJSON_CreateObject(); HWTEST_F() local
344 cJSON *jsonObject = cJSON_CreateObject(); HWTEST_F() local
368 cJSON *jsonObject = cJSON_CreateObject(); HWTEST_F() local
403 cJSON *jsonObject = cJSON_CreateObject(); HWTEST_F() local
428 cJSON *jsonObject = cJSON_CreateObject(); HWTEST_F() local
453 cJSON *jsonObject = cJSON_CreateObject(); HWTEST_F() local
478 cJSON *jsonObject = cJSON_CreateObject(); HWTEST_F() local
[all...]
/foundation/ability/ability_runtime/frameworks/simulator/ability_simulator/include/bundle_parser/
H A Djson_serializer.h32 void to_json(nlohmann::json &jsonObject, const CustomizeData &customizeData);
33 void to_json(nlohmann::json &jsonObject, const MetaData &metaData);
34 void to_json(nlohmann::json &jsonObject, const Metadata &metadata);
35 void to_json(nlohmann::json &jsonObject, const AbilityInfo &abilityInfo);
36 void from_json(const nlohmann::json &jsonObject, CustomizeData &customizeData);
37 void from_json(const nlohmann::json &jsonObject, MetaData &metaData);
38 void from_json(const nlohmann::json &jsonObject, Metadata &metadata);
39 void from_json(const nlohmann::json &jsonObject, AbilityInfo &abilityInfo);
40 void from_json(const nlohmann::json &jsonObject, ApplicationInfo &applicationInfo);
41 void to_json(nlohmann::json &jsonObject, cons
[all...]
/foundation/distributedhardware/device_manager/services/implementation/src/credential/
H A Ddm_credential_manager.cpp64 void from_json(const nlohmann::json &jsonObject, CredentialData &credentialData) in from_json() argument
66 if (!IsInt32(jsonObject, FIELD_CREDENTIAL_TYPE) || !IsString(jsonObject, FIELD_CREDENTIAL_ID) || in from_json()
67 !IsString(jsonObject, FIELD_SERVER_PK) || !IsString(jsonObject, FIELD_PKINFO_SIGNATURE) || in from_json()
68 !IsString(jsonObject, FIELD_PKINFO) || !IsString(jsonObject, FIELD_AUTH_CODE) || in from_json()
69 !IsString(jsonObject, FIELD_PEER_DEVICE_ID)) { in from_json()
73 credentialData.credentialType = jsonObject[FIELD_CREDENTIAL_TYPE].get<int32_t>(); in from_json()
74 credentialData.credentialId = jsonObject[FIELD_CREDENTIAL_I in from_json()
99 nlohmann::json jsonObject = nlohmann::json::parse(reqJsonStr, nullptr, false); RequestCredential() local
127 nlohmann::json jsonObject = nlohmann::json::parse(credentialInfo, nullptr, false); ImportCredential() local
169 nlohmann::json jsonObject = nlohmann::json::parse(credentialInfo, nullptr, false); ImportLocalCredential() local
217 nlohmann::json jsonObject = nlohmann::json::parse(deleteInfo, nullptr, false); DeleteCredential() local
302 nlohmann::json jsonObject = nlohmann::json::parse(credentialInfo, nullptr, false); GetCredentialData() local
334 from_json(const nlohmann::json &jsonObject, CredentialDataInfo &credentialDataInfo) from_json() argument
368 to_json(nlohmann::json &jsonObject, const CredentialDataInfo &credentialDataInfo) to_json() argument
384 GetAddDeviceList(const nlohmann::json &jsonObject, nlohmann::json &jsonDeviceList) GetAddDeviceList() argument
414 nlohmann::json jsonObject = nlohmann::json::parse(credentialInfo, nullptr, false); ImportRemoteCredential() local
455 from_json(const nlohmann::json &jsonObject, PeerCredentialInfo &peerCredentialInfo) from_json() argument
462 to_json(nlohmann::json &jsonObject, const PeerCredentialInfo &peerCredentialInfo) to_json() argument
467 GetDeleteDeviceList(const nlohmann::json &jsonObject, nlohmann::json &deviceList) GetDeleteDeviceList() argument
482 nlohmann::json jsonObject = nlohmann::json::parse(deleteInfo, nullptr, false); DeleteRemoteCredential() local
[all...]
/foundation/distributedhardware/distributed_hardware_fwk/utils/src/
H A Dhistreamer_ability_parser.cpp38 void FromJson(const cJSON *jsonObject, AudioEncoderIn &audioEncoderIn) in FromJson() argument
40 if (jsonObject == nullptr) { in FromJson()
44 if (!IsString(jsonObject, MIME)) { in FromJson()
48 audioEncoderIn.mime = cJSON_GetObjectItem(jsonObject, MIME.c_str())->valuestring; in FromJson()
49 if (!IsArray(jsonObject, SAMPLE_RATE)) { in FromJson()
53 cJSON *sampleRate = cJSON_GetObjectItem(jsonObject, SAMPLE_RATE.c_str()); in FromJson()
66 void FromJson(const cJSON *jsonObject, AudioEncoderOut &audioEncoderOut) in FromJson() argument
68 if (jsonObject == nullptr) { in FromJson()
72 if (!IsString(jsonObject, MIME)) { in FromJson()
76 audioEncoderOut.mime = cJSON_GetObjectItem(jsonObject, MIM in FromJson()
98 FromJson(const cJSON *jsonObject, AudioEncoder &audioEncoder) FromJson() argument
135 FromJson(const cJSON *jsonObject, AudioDecoderIn &audioDecoderIn) FromJson() argument
160 FromJson(const cJSON *jsonObject, AudioDecoderOut &audioDecoderOut) FromJson() argument
184 FromJson(const cJSON *jsonObject, AudioDecoder &audioDecoder) FromJson() argument
220 FromJson(const cJSON *jsonObject, VideoEncoderIn &videoEncoderIn) FromJson() argument
245 FromJson(const cJSON *jsonObject, VideoEncoderOut &videoEncoderOut) FromJson() argument
258 FromJson(const cJSON *jsonObject, VideoEncoder &videoEncoder) FromJson() argument
295 FromJson(const cJSON *jsonObject, VideoDecoderIn &videoDecoderIn) FromJson() argument
320 FromJson(const cJSON *jsonObject, VideoDecoderOut &videoDecoderOut) FromJson() argument
345 FromJson(const cJSON *jsonObject, VideoDecoder &videoDecoder) FromJson() argument
383 FromJson(const std::string &key, const cJSON *jsonObject, std::vector<T> &objs) FromJson() argument
[all...]
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/src/
H A Dbundle_pack_info.cpp88 void to_json(nlohmann::json &jsonObject, const Version &version) in to_json() argument
90 jsonObject = nlohmann::json { in to_json()
97 void from_json(const nlohmann::json &jsonObject, Version &version) in from_json() argument
99 const auto &jsonObjectEnd = jsonObject.end(); in from_json()
101 GetValueIfFindKey<uint32_t>(jsonObject, in from_json()
109 BMSJsonUtil::GetStrValueIfFindKey(jsonObject, in from_json()
115 GetValueIfFindKey<uint32_t>(jsonObject, in from_json()
128 void to_json(nlohmann::json &jsonObject, const PackageApp &app) in to_json() argument
130 jsonObject = nlohmann::json { in to_json()
136 void from_json(const nlohmann::json &jsonObject, PackageAp argument
159 to_json(nlohmann::json &jsonObject, const ExtensionAbilities &extensionAbilities) to_json() argument
167 from_json(const nlohmann::json &jsonObject, ExtensionAbilities &extensionAbilities) from_json() argument
190 to_json(nlohmann::json &jsonObject, const ModuleAbilityInfo &abilityinfo) to_json() argument
200 from_json(const nlohmann::json &jsonObject, ModuleAbilityInfo &abilityinfo) from_json() argument
235 to_json(nlohmann::json &jsonObject, const AbilityFormInfo &abilityFormInfo) to_json() argument
247 from_json(const nlohmann::json &jsonObject, AbilityFormInfo &abilityFormInfo) from_json() argument
271 to_json(nlohmann::json &jsonObject, const ModuleDistro &distro) to_json() argument
281 from_json(const nlohmann::json &jsonObject, ModuleDistro &distro) from_json() argument
314 to_json(nlohmann::json &jsonObject, const ApiVersion &apiVersion) to_json() argument
323 from_json(const nlohmann::json &jsonObject, ApiVersion &apiVersion) from_json() argument
354 to_json(nlohmann::json &jsonObject, const PackageModule &packageModule) to_json() argument
366 from_json(const nlohmann::json &jsonObject, PackageModule &packageModule) from_json() argument
421 to_json(nlohmann::json &jsonObject, const Summary &summary) to_json() argument
429 from_json(const nlohmann::json &jsonObject, Summary &summary) from_json() argument
454 to_json(nlohmann::json &jsonObject, const Packages &packages) to_json() argument
464 from_json(const nlohmann::json &jsonObject, Packages &packages) from_json() argument
499 to_json(nlohmann::json &jsonObject, const BundlePackInfo &bundlePackInfo) to_json() argument
507 from_json(const nlohmann::json &jsonObject, BundlePackInfo &bundlePackInfo) from_json() argument
549 nlohmann::json jsonObject = nlohmann::json::parse(data, nullptr, false); ReadFromParcel() local
565 nlohmann::json jsonObject = *this; Marshalling() local
[all...]
H A Ddistributed_bundle_info.cpp103 nlohmann::json jsonObject; in ToString() local
104 jsonObject[JSON_KEY_VERSION] = version; in ToString()
105 jsonObject[Constants::BUNDLE_NAME] = bundleName; in ToString()
106 jsonObject[JSON_KEY_VERSION_CODE] = versionCode; in ToString()
107 jsonObject[JSON_KEY_VERSION_NAME] = versionName; in ToString()
108 jsonObject[JSON_KEY_COMPATIBLE_VERSION_CODE] = compatibleVersionCode; in ToString()
109 jsonObject[JSON_KEY_MIN_COMPATIBLE_VERSION] = minCompatibleVersion; in ToString()
110 jsonObject[JSON_KEY_TARGET_VERSION_CODE] = targetVersionCode; in ToString()
111 jsonObject[JSON_KEY_APP_ID] = appId; in ToString()
112 jsonObject[JSON_KEY_MODULE_INFO in ToString()
121 nlohmann::json jsonObject = nlohmann::json::parse(jsonString, nullptr, false); FromJsonString() local
[all...]
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_handler/histreamer_ability_querier/test/unittest/common/src/
H A Dhistreamer_ability_querier_test.cpp212 cJSON *jsonObject = cJSON_CreateObject(); in HWTEST_F() local
213 ASSERT_TRUE(jsonObject != nullptr); in HWTEST_F()
214 cJSON_AddStringToObject(jsonObject, KEY.c_str(), TEST_STR.c_str()); in HWTEST_F()
215 EXPECT_TRUE(IsString(jsonObject, KEY)); in HWTEST_F()
216 cJSON_Delete(jsonObject); in HWTEST_F()
233 cJSON *jsonObject = cJSON_CreateObject(); in HWTEST_F() local
234 ASSERT_TRUE(jsonObject != nullptr); in HWTEST_F()
236 cJSON_AddNumberToObject(jsonObject, KEY.c_str(), num_s); in HWTEST_F()
237 EXPECT_TRUE(IsUInt8(jsonObject, KEY)); in HWTEST_F()
240 cJSON_AddNumberToObject(jsonObject, KE in HWTEST_F()
253 cJSON *jsonObject = cJSON_CreateObject(); HWTEST_F() local
273 cJSON *jsonObject = cJSON_CreateObject(); HWTEST_F() local
290 cJSON *jsonObject = cJSON_CreateObject(); HWTEST_F() local
323 cJSON *jsonObject = nullptr; HWTEST_F() local
358 cJSON *jsonObject = nullptr; HWTEST_F() local
385 cJSON *jsonObject = nullptr; HWTEST_F() local
412 cJSON *jsonObject = nullptr; HWTEST_F() local
451 cJSON *jsonObject = nullptr; HWTEST_F() local
479 cJSON *jsonObject = nullptr; HWTEST_F() local
499 cJSON *jsonObject = nullptr; HWTEST_F() local
538 cJSON *jsonObject = cJSON_CreateObject(); HWTEST_F() local
563 cJSON *jsonObject = cJSON_CreateObject(); HWTEST_F() local
588 cJSON *jsonObject = cJSON_CreateObject(); HWTEST_F() local
624 cJSON *jsonObject = nullptr; HWTEST_F() local
671 cJSON *jsonObject = nullptr; HWTEST_F() local
[all...]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/default_app/
H A Ddefault_app_data.cpp38 nlohmann::json jsonObject; in ToString() local
39 jsonObject[INFOS] = infos; in ToString()
40 return jsonObject.dump(); in ToString()
43 void DefaultAppData::ToJson(nlohmann::json& jsonObject) const in ToJson()
46 jsonObject[INFOS] = infos; in ToJson()
49 int32_t DefaultAppData::FromJson(const nlohmann::json& jsonObject) in FromJson() argument
52 const auto& jsonObjectEnd = jsonObject.end(); in FromJson()
55 GetValueIfFindKey<std::map<std::string, Element>>(jsonObject, in FromJson()
71 void DefaultAppData::ParseDefaultApplicationConfig(const nlohmann::json& jsonObject) in ParseDefaultApplicationConfig() argument
74 if (jsonObject in ParseDefaultApplicationConfig()
104 to_json(nlohmann::json& jsonObject, const Element& element) to_json() argument
116 from_json(const nlohmann::json& jsonObject, Element& element) from_json() argument
[all...]
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_handler/histreamer_ability_querier/include/
H A Dhistreamer_ability_querier.h57 void ToJson(cJSON *jsonObject, const AudioEncoderIn &audioEncoderIn);
58 void FromJson(const cJSON *jsonObject, AudioEncoderIn &audioEncoderIn);
60 void ToJson(cJSON *jsonObject, const AudioEncoderOut &audioEncoderOut);
61 void FromJson(const cJSON *jsonObject, AudioEncoderOut &audioEncoderOut);
63 void ToJson(cJSON *jsonObject, const AudioEncoder &audioEncoder);
64 void FromJson(const cJSON *jsonObject, AudioEncoder &audioEncoder);
84 void ToJson(cJSON *jsonObject, const AudioDecoderIn &audioDecoderIn);
85 void FromJson(const cJSON *jsonObject, AudioDecoderIn &audioDecoderIn);
87 void ToJson(cJSON *jsonObject, const AudioDecoderOut &audioDecoderOut);
88 void FromJson(const cJSON *jsonObject, AudioDecoderOu
[all...]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/uninstall_data_mgr/
H A Duninstall_bundle_info.cpp32 void to_json(nlohmann::json& jsonObject, const UninstallDataUserInfo& uninstallDataUserInfo) in to_json() argument
34 jsonObject = nlohmann::json { in to_json()
42 void to_json(nlohmann::json& jsonObject, const UninstallBundleInfo& uninstallBundleInfo) in to_json() argument
44 jsonObject = nlohmann::json { in to_json()
54 void from_json(const nlohmann::json& jsonObject, UninstallDataUserInfo& uninstallDataUserInfo) in from_json() argument
56 const auto &jsonObjectEnd = jsonObject.end(); in from_json()
58 GetValueIfFindKey<int32_t>(jsonObject, jsonObjectEnd, KEY_UID, in from_json()
60 GetValueIfFindKey<std::vector<int32_t>>(jsonObject, jsonObjectEnd, KEY_GIDS, in from_json()
62 GetValueIfFindKey<uint32_t>(jsonObject, jsonObjectEnd, KEY_ACCESS_TOKENID, in from_json()
64 GetValueIfFindKey<uint64_t>(jsonObject, jsonObjectEn in from_json()
71 from_json(const nlohmann::json& jsonObject, UninstallBundleInfo& uninstallBundleInfo) from_json() argument
94 nlohmann::json jsonObject; ToString() local
[all...]
/foundation/deviceprofile/device_info_manager/old/services/core/src/authority/
H A Dtrust_group_manager.cpp36 void from_json(const nlohmann::json& jsonObject, GroupInfo& groupInfo) in from_json() argument
38 if (jsonObject.find(FIELD_GROUP_NAME) != jsonObject.end() && jsonObject[FIELD_GROUP_NAME].is_string()) { in from_json()
39 jsonObject.at(FIELD_GROUP_NAME).get_to(groupInfo.groupName); in from_json()
41 if (jsonObject.find(FIELD_GROUP_ID) != jsonObject.end() && jsonObject[FIELD_GROUP_ID].is_string()) { in from_json()
42 jsonObject.at(FIELD_GROUP_ID).get_to(groupInfo.groupId); in from_json()
44 if (jsonObject in from_json()
115 nlohmann::json jsonObject = nlohmann::json::parse(returnGroups, nullptr, false); CheckGroupsInfo() local
[all...]
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/resourcemanager/
H A Dversion_info.cpp67 void ToJson(cJSON *jsonObject, const VersionInfo &versionInfo) in ToJson() argument
69 if (jsonObject == nullptr) { in ToJson()
73 cJSON_AddStringToObject(jsonObject, DEV_ID.c_str(), versionInfo.deviceId.c_str()); in ToJson()
74 cJSON_AddStringToObject(jsonObject, DH_VER.c_str(), versionInfo.dhVersion.c_str()); in ToJson()
95 cJSON_AddItemToObject(jsonObject, COMP_VER.c_str(), compVers); in ToJson()
98 void FromJson(const cJSON *jsonObject, CompVersion &compVer) in FromJson() argument
100 if (jsonObject == nullptr) { in FromJson()
104 if (IsString(jsonObject, NAME)) { in FromJson()
105 compVer.name = cJSON_GetObjectItem(jsonObject, NAME.c_str())->valuestring; in FromJson()
107 if (IsUInt32(jsonObject, TYP in FromJson()
122 FromJson(const cJSON *jsonObject, VersionInfo &versionInfo) FromJson() argument
[all...]
H A Dmeta_capability_info.cpp147 void ToJson(cJSON *jsonObject, const MetaCapabilityInfo &metaCapInfo) in ToJson() argument
149 if (jsonObject == nullptr) { in ToJson()
153 cJSON_AddStringToObject(jsonObject, DH_ID.c_str(), metaCapInfo.GetDHId().c_str()); in ToJson()
154 cJSON_AddStringToObject(jsonObject, DEV_ID.c_str(), metaCapInfo.GetDeviceId().c_str()); in ToJson()
155 cJSON_AddStringToObject(jsonObject, DEV_NAME.c_str(), metaCapInfo.GetDeviceName().c_str()); in ToJson()
156 cJSON_AddNumberToObject(jsonObject, DEV_TYPE.c_str(), (double)metaCapInfo.GetDeviceType()); in ToJson()
157 cJSON_AddNumberToObject(jsonObject, DH_TYPE.c_str(), (double)metaCapInfo.GetDHType()); in ToJson()
158 cJSON_AddStringToObject(jsonObject, DH_ATTRS.c_str(), metaCapInfo.GetDHAttrs().c_str()); in ToJson()
159 cJSON_AddStringToObject(jsonObject, DH_SUBTYPE.c_str(), metaCapInfo.GetDHSubtype().c_str()); in ToJson()
160 cJSON_AddStringToObject(jsonObject, DEV_UDID_HAS in ToJson()
164 FromJson(const cJSON *jsonObject, MetaCapabilityInfo &metaCapInfo) FromJson() argument
[all...]
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_handler/histreamer_ability_querier/src/
H A Dhistreamer_ability_querier.cpp156 void ToJson(cJSON *jsonObject, const AudioEncoderIn &audioEncoderIn) in ToJson() argument
158 if (jsonObject == nullptr) { in ToJson()
161 cJSON_AddStringToObject(jsonObject, MIME.c_str(), audioEncoderIn.mime.c_str()); in ToJson()
169 cJSON_AddItemToObject(jsonObject, SAMPLE_RATE.c_str(), sampleRateJson); in ToJson()
172 void FromJson(const cJSON *jsonObject, AudioEncoderIn &audioEncoderIn) in FromJson() argument
174 if (!IsString(jsonObject, MIME)) { in FromJson()
178 cJSON *mimeObj = cJSON_GetObjectItemCaseSensitive(jsonObject, MIME.c_str()); in FromJson()
183 cJSON *rateJson = cJSON_GetObjectItemCaseSensitive(jsonObject, SAMPLE_RATE.c_str()); in FromJson()
196 void ToJson(cJSON *jsonObject, const AudioEncoderOut &audioEncoderOut) in ToJson() argument
198 if (jsonObject in ToJson()
208 FromJson(const cJSON *jsonObject, AudioEncoderOut &audioEncoderOut) FromJson() argument
252 ToJson(cJSON *jsonObject, const AudioEncoder &audioEncoder) ToJson() argument
289 FromJson(const cJSON *jsonObject, AudioEncoder &audioEncoder) FromJson() argument
378 ToJson(cJSON *jsonObject, const AudioDecoderIn &audioDecoderIn) ToJson() argument
394 FromJson(const cJSON *jsonObject, AudioDecoderIn &audioDecoderIn) FromJson() argument
419 ToJson(cJSON *jsonObject, const AudioDecoderOut &audioDecoderOut) ToJson() argument
435 FromJson(const cJSON *jsonObject, AudioDecoderOut &audioDecoderOut) FromJson() argument
461 ToJson(cJSON *jsonObject, const AudioDecoder &audioDecoder) ToJson() argument
499 FromJson(const cJSON *jsonObject, AudioDecoder &audioDecoder) FromJson() argument
586 ToJson(cJSON *jsonObject, const VideoEncoderIn &videoEncoderIn) ToJson() argument
602 FromJson(const cJSON *jsonObject, VideoEncoderIn &videoEncoderIn) FromJson() argument
630 ToJson(cJSON *jsonObject, const VideoEncoderOut &videoEncoderOut) ToJson() argument
638 FromJson(const cJSON *jsonObject, VideoEncoderOut &videoEncoderOut) FromJson() argument
654 ToJson(cJSON *jsonObject, const VideoEncoder &videoEncoder) ToJson() argument
691 FromJson(const cJSON *jsonObject, VideoEncoder &videoEncoder) FromJson() argument
784 ToJson(cJSON *jsonObject, const VideoDecoderIn &videoDecoderIn) ToJson() argument
800 FromJson(const cJSON *jsonObject, VideoDecoderIn &videoDecoderIn) FromJson() argument
828 ToJson(cJSON *jsonObject, const VideoDecoderOut &videoDecoderOut) ToJson() argument
844 FromJson(const cJSON *jsonObject, VideoDecoderOut &videoDecoderOut) FromJson() argument
872 ToJson(cJSON *jsonObject, const VideoDecoder &videoDecoder) ToJson() argument
909 FromJson(const cJSON *jsonObject, VideoDecoder &videoDecoder) FromJson() argument
951 ToJson(const std::string &key, cJSON *jsonObject, std::vector<T> &objs) ToJson() argument
970 FromJson(const std::string &key, const cJSON *jsonObject, std::vector<T> &objs) FromJson() argument
988 cJSON *jsonObject = cJSON_CreateObject(); QueryAudioEncoderAbilityStr() local
1015 cJSON *jsonObject = cJSON_CreateObject(); QueryAudioDecoderAbilityStr() local
1042 cJSON *jsonObject = cJSON_CreateObject(); QueryVideoEncoderAbilityStr() local
1069 cJSON *jsonObject = cJSON_CreateObject(); QueryVideoDecoderAbilityStr() local
[all...]
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/transport/
H A Ddh_transport_obj.cpp24 void ToJson(cJSON *jsonObject, const FullCapsRsp &capsRsp) in ToJson() argument
26 if (jsonObject == nullptr) { in ToJson()
31 cJSON_AddStringToObject(jsonObject, CAPS_RSP_NETWORKID_KEY, networkId); in ToJson()
45 cJSON_AddItemToObject(jsonObject, CAPS_RSP_CAPS_KEY, capArr); in ToJson()
48 void FromJson(const cJSON *jsonObject, FullCapsRsp &capsRsp) in FromJson() argument
50 if (jsonObject == nullptr) { in FromJson()
55 if (IsString(jsonObject, keyNetworkId)) { in FromJson()
56 capsRsp.networkId = cJSON_GetObjectItem(jsonObject, CAPS_RSP_NETWORKID_KEY)->valuestring; in FromJson()
59 if (IsArray(jsonObject, keyCaps)) { in FromJson()
60 cJSON *capsArr = cJSON_GetObjectItem(jsonObject, CAPS_RSP_CAPS_KE in FromJson()
71 ToJson(cJSON *jsonObject, const CommMsg &commMsg) ToJson() argument
82 FromJson(const cJSON *jsonObject, CommMsg &commMsg) FromJson() argument
[all...]
/foundation/ability/ability_runtime/frameworks/simulator/ability_simulator/src/bundle_parser/
H A Dability_info.cpp106 void to_json(nlohmann::json &jsonObject, const CustomizeData &customizeData) in to_json() argument
108 jsonObject = nlohmann::json { in to_json()
115 void to_json(nlohmann::json &jsonObject, const MetaData &metaData) in to_json() argument
117 jsonObject = nlohmann::json { in to_json()
122 void to_json(nlohmann::json &jsonObject, const Metadata &metadata) in to_json() argument
124 jsonObject = nlohmann::json { in to_json()
131 void to_json(nlohmann::json &jsonObject, const AbilityInfo &abilityInfo) in to_json() argument
134 jsonObject = nlohmann::json { in to_json()
205 jsonObject[JOSN_KEY_MAX_WINDOW_RATIO] = 0; in to_json()
207 jsonObject[JOSN_KEY_MAX_WINDOW_RATI in to_json()
217 from_json(const nlohmann::json &jsonObject, CustomizeData &customizeData) from_json() argument
247 from_json(const nlohmann::json &jsonObject, MetaData &metaData) from_json() argument
261 from_json(const nlohmann::json &jsonObject, Metadata &metadata) from_json() argument
295 from_json(const nlohmann::json &jsonObject, AbilityInfo &abilityInfo) from_json() argument
[all...]
H A Dapplication_info.cpp113 void to_json(nlohmann::json &jsonObject, const Resource &resource) in to_json() argument
115 jsonObject = nlohmann::json { in to_json()
122 void from_json(const nlohmann::json &jsonObject, Resource &resource) in from_json() argument
124 const auto &jsonObjectEnd = jsonObject.end(); in from_json()
126 GetValueIfFindKey<std::string>(jsonObject, in from_json()
134 GetValueIfFindKey<std::string>(jsonObject, in from_json()
142 GetValueIfFindKey<int32_t>(jsonObject, in from_json()
155 void to_json(nlohmann::json &jsonObject, const ApplicationInfo &applicationInfo) in to_json() argument
157 jsonObject = nlohmann::json { in to_json()
239 void from_json(const nlohmann::json &jsonObject, ApplicationInf argument
[all...]
/foundation/ability/form_fwk/services/src/
H A Dform_db_info.cpp37 * @param jsonObject Indicates the obtained json object.
39 void InnerFormInfo::ToJson(nlohmann::json &jsonObject) const in ToJson()
41 jsonObject[INNER_FORM_INFO_FORM_ID] = formDBInfo_.formId; in ToJson()
42 jsonObject[INNER_FORM_INFO_USER_ID] = formDBInfo_.userId; in ToJson()
43 jsonObject[INNER_FORM_INFO_PROVIDER_USER_ID] = formDBInfo_.providerUserId; in ToJson()
44 jsonObject[INNER_FORM_INFO_FORM_NAME] = formDBInfo_.formName; in ToJson()
45 jsonObject[INNER_FORM_INFO_BUNDLE_NAME] = formDBInfo_.bundleName; in ToJson()
46 jsonObject[INNER_FORM_INFO_MODULE_NAME] = formDBInfo_.moduleName; in ToJson()
47 jsonObject[INNER_FORM_INFO_ABILITY_NAME] = formDBInfo_.abilityName; in ToJson()
48 jsonObject[INNER_FORM_INFO_FORM_USER_UID in ToJson()
58 FromJson(const nlohmann::json &jsonObject) FromJson() argument
[all...]
/foundation/ability/dmsfwk/services/dtbschedmgr/src/mission/
H A Ddistributed_bundle_info.cpp73 nlohmann::json jsonObject; in ToString() local
74 jsonObject[JSON_KEY_DMS_MAX_BUNDLENAME_ID] = maxBundleNameId; in ToString()
75 return jsonObject.dump(); in ToString()
78 void to_json(nlohmann::json &jsonObject, const PublicRecordsInfo &publicRecordsInfo) in to_json() argument
81 jsonObject = nlohmann::json { in to_json()
87 void from_json(const nlohmann::json &jsonObject, PublicRecordsInfo &publicRecordsInfo) in from_json() argument
90 const auto &jsonObjectEnd = jsonObject.end(); in from_json()
92 GetValueIfFindKey<uint16_t>(jsonObject, in from_json()
101 APP_LOGE("read PublicRecordsInfo from jsonObject error, error code : %{public}d", parseResult); in from_json()
108 nlohmann::json jsonObject in FromJsonString() local
164 to_json(nlohmann::json &jsonObject, const DmsAbilityInfo &dmsAbilityInfo) to_json() argument
174 from_json(const nlohmann::json &jsonObject, DmsAbilityInfo &dmsAbilityInfo) from_json() argument
284 nlohmann::json jsonObject; ToString() local
304 nlohmann::json jsonObject = nlohmann::json::parse(jsonString, nullptr, false); FromJsonString() local
[all...]

Completed in 19 milliseconds

12345678910