/ohos5.0/foundation/bundlemanager/bundle_framework/test/benchmarktest/json_serializer_test/ |
H A D | json_serializer_test.cpp | 35 nlohmann::json jsonObject; in BenchmarkTestForCustomizeDataToJson() local 54 nlohmann::json jsonObject; in BenchmarkTestForCustomizeDataFromJson() local 73 nlohmann::json jsonObject; in BenchmarkTestForMetadataToJson() local 92 nlohmann::json jsonObject; in BenchmarkTestForMetadataFromJson() local 111 nlohmann::json jsonObject; in BenchmarkTestForAbilityInfoToJson() local 130 nlohmann::json jsonObject; in BenchmarkTestForAbilityInfoFromJson() local 149 nlohmann::json jsonObject; in BenchmarkTestForExtensionAbilityInfoToJson() local 168 nlohmann::json jsonObject; in BenchmarkTestForExtensionAbilityInfoFromJson() local 187 nlohmann::json jsonObject; in BenchmarkTestForApplicationInfoToJson() local 206 nlohmann::json jsonObject; in BenchmarkTestForApplicationInfoFromJson() local [all …]
|
/ohos5.0/base/update/updateservice/foundations/ability/utils/include/ |
H A D | dupdate_json_utils.h | 83 static void SetJsonToVector(nlohmann::json &jsonObject, std::vector<std::string> &vector) in SetJsonToVector() 95 static void SetJsonToVector(const nlohmann::json &jsonObject, const std::string &key, in SetJsonToVector() 105 static bool IsArray(const nlohmann::json &jsonObject, const std::string &key) in IsArray() 133 static bool CheckType(const nlohmann::json &jsonObject, std::string &value) in CheckType() 138 static bool CheckType(const nlohmann::json &jsonObject, int32_t &value) in CheckType() 143 static bool CheckType(const nlohmann::json &jsonObject, uint32_t &value) in CheckType() 148 static bool CheckType(const nlohmann::json &jsonObject, uint64_t &value) in CheckType() 153 static bool CheckType(const nlohmann::json &jsonObject, int64_t &value) in CheckType() 158 static bool CheckType(const nlohmann::json &jsonObject, double &value) in CheckType() 163 static bool CheckType(const nlohmann::json &jsonObject, bool &value) in CheckType() [all …]
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/utils/test/unittest/common/histreamer_ability_parser/ |
H A D | histreamer_ability_parser_test.cpp | 125 cJSON *jsonObject = cJSON_CreateObject(); variable 157 cJSON *jsonObject = cJSON_CreateObject(); variable 181 cJSON *jsonObject = cJSON_CreateObject(); variable 205 cJSON *jsonObject = cJSON_CreateObject(); variable 241 cJSON *jsonObject = cJSON_CreateObject(); variable 265 cJSON *jsonObject = cJSON_CreateObject(); variable 284 cJSON *jsonObject = cJSON_CreateObject(); variable 320 cJSON *jsonObject = cJSON_CreateObject(); variable 344 cJSON *jsonObject = cJSON_CreateObject(); variable 368 cJSON *jsonObject = cJSON_CreateObject(); variable [all …]
|
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/src/ |
H A D | bundle_pack_info.cpp | 88 void to_json(nlohmann::json &jsonObject, const Version &version) in to_json() 97 void from_json(const nlohmann::json &jsonObject, Version &version) in from_json() 130 void to_json(nlohmann::json &jsonObject, const PackageApp &app) in to_json() 138 void from_json(const nlohmann::json &jsonObject, PackageApp &app) in from_json() 283 void to_json(nlohmann::json &jsonObject, const ModuleDistro &distro) in to_json() 293 void from_json(const nlohmann::json &jsonObject, ModuleDistro &distro) in from_json() 445 void to_json(nlohmann::json &jsonObject, const Summary &summary) in to_json() 453 void from_json(const nlohmann::json &jsonObject, Summary &summary) in from_json() 478 void to_json(nlohmann::json &jsonObject, const Packages &packages) in to_json() 488 void from_json(const nlohmann::json &jsonObject, Packages &packages) in from_json() [all …]
|
H A D | disposed_rule.cpp | 87 void to_json(nlohmann::json &jsonObject, const ElementName &elementName) in to_json() 98 void from_json(const nlohmann::json &jsonObject, ElementName &elementName) in from_json() 147 void to_json(nlohmann::json &jsonObject, const DisposedRule &disposedRule) in to_json() 161 void from_json(const nlohmann::json &jsonObject, DisposedRule &disposedRule) in from_json() 230 nlohmann::json jsonObject; in ToString() local 238 nlohmann::json jsonObject = nlohmann::json::parse(ruleString, nullptr, false); in FromString() local
|
H A D | shortcut_info.cpp | 137 void to_json(nlohmann::json &jsonObject, const ShortcutIntent &shortcutIntent) in to_json() 147 void to_json(nlohmann::json &jsonObject, const ShortcutInfo &shortcutInfo) in to_json() 168 void from_json(const nlohmann::json &jsonObject, ShortcutIntent &shortcutIntent) in from_json() 209 void from_json(const nlohmann::json &jsonObject, ShortcutInfo &shortcutInfo) in from_json() 338 void from_json(const nlohmann::json &jsonObject, ShortcutWant &shortcutWant) in from_json() 379 void from_json(const nlohmann::json &jsonObject, Shortcut &shortcut) in from_json() 436 void from_json(const nlohmann::json &jsonObject, ShortcutJson &shortcutJson) in from_json()
|
/ohos5.0/base/notification/distributed_notification_service/interfaces/inner_api/ |
H A D | notification_json_convert.h | 45 …ool ConvertToJson(const NotificationJsonConvertionBase *convertionBase, nlohmann::json &jsonObject) in ConvertToJson() 69 nlohmann::json jsonObject; in ConvertToJsonString() local 86 static T *ConvertFromJson(const nlohmann::json &jsonObject) in ConvertFromJson() 110 auto jsonObject = nlohmann::json::parse(jsonString); in ConvertFromJsonString() local
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_handler/histreamer_ability_querier/test/unittest/common/src/ |
H A D | histreamer_ability_querier_test.cpp | 212 cJSON *jsonObject = cJSON_CreateObject(); variable 237 cJSON *jsonObject = cJSON_CreateObject(); variable 259 cJSON *jsonObject = cJSON_CreateObject(); variable 281 cJSON *jsonObject = cJSON_CreateObject(); variable 335 cJSON *jsonObject = nullptr; variable 375 cJSON *jsonObject = nullptr; variable 407 cJSON *jsonObject = nullptr; variable 439 cJSON *jsonObject = nullptr; variable 483 cJSON *jsonObject = nullptr; variable 516 cJSON *jsonObject = nullptr; variable [all …]
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/utils/src/ |
H A D | histreamer_ability_parser.cpp | 38 void FromJson(const cJSON *jsonObject, AudioEncoderIn &audioEncoderIn) in FromJson() 66 void FromJson(const cJSON *jsonObject, AudioEncoderOut &audioEncoderOut) in FromJson() 98 void FromJson(const cJSON *jsonObject, AudioEncoder &audioEncoder) in FromJson() 135 void FromJson(const cJSON *jsonObject, AudioDecoderIn &audioDecoderIn) in FromJson() 160 void FromJson(const cJSON *jsonObject, AudioDecoderOut &audioDecoderOut) in FromJson() 184 void FromJson(const cJSON *jsonObject, AudioDecoder &audioDecoder) in FromJson() 220 void FromJson(const cJSON *jsonObject, VideoEncoderIn &videoEncoderIn) in FromJson() 245 void FromJson(const cJSON *jsonObject, VideoEncoderOut &videoEncoderOut) in FromJson() 258 void FromJson(const cJSON *jsonObject, VideoEncoder &videoEncoder) in FromJson() 295 void FromJson(const cJSON *jsonObject, VideoDecoderIn &videoDecoderIn) in FromJson() [all …]
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/uninstall_data_mgr/ |
H A D | uninstall_bundle_info.cpp | 32 void to_json(nlohmann::json& jsonObject, const UninstallDataUserInfo& uninstallDataUserInfo) in to_json() 42 void to_json(nlohmann::json& jsonObject, const UninstallBundleInfo& uninstallBundleInfo) in to_json() 54 void from_json(const nlohmann::json& jsonObject, UninstallDataUserInfo& uninstallDataUserInfo) in from_json() 71 void from_json(const nlohmann::json& jsonObject, UninstallBundleInfo& uninstallBundleInfo) in from_json() 94 nlohmann::json jsonObject; in ToString() local
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_handler/histreamer_ability_querier/src/ |
H A D | histreamer_ability_querier.cpp | 156 void ToJson(cJSON *jsonObject, const AudioEncoderIn &audioEncoderIn) in ToJson() 252 void ToJson(cJSON *jsonObject, const AudioEncoder &audioEncoder) in ToJson() 289 void FromJson(const cJSON *jsonObject, AudioEncoder &audioEncoder) in FromJson() 461 void ToJson(cJSON *jsonObject, const AudioDecoder &audioDecoder) in ToJson() 499 void FromJson(const cJSON *jsonObject, AudioDecoder &audioDecoder) in FromJson() 654 void ToJson(cJSON *jsonObject, const VideoEncoder &videoEncoder) in ToJson() 872 void ToJson(cJSON *jsonObject, const VideoDecoder &videoDecoder) in ToJson() 988 cJSON *jsonObject = cJSON_CreateObject(); in QueryAudioEncoderAbilityStr() local 1015 cJSON *jsonObject = cJSON_CreateObject(); in QueryAudioDecoderAbilityStr() local 1042 cJSON *jsonObject = cJSON_CreateObject(); in QueryVideoEncoderAbilityStr() local [all …]
|
/ohos5.0/foundation/multimedia/image_framework/plugins/manager/src/framework/ |
H A D | json_helper.cpp | 32 uint32_t JsonHelper::CheckElementExistence(const json &jsonObject, const string &key) in CheckElementExistence() 50 uint32_t JsonHelper::GetStringValue(const json &jsonObject, const string &key, string &value) in GetStringValue() 85 uint32_t JsonHelper::GetUint32Value(const json &jsonObject, const string &key, uint32_t &value) in GetUint32Value() 97 uint32_t JsonHelper::GetUint16Value(const json &jsonObject, const string &key, uint16_t &value) in GetUint16Value() 127 uint32_t JsonHelper::GetArraySize(const json &jsonObject, const string &key, size_t &size) in GetArraySize() 146 const json &JsonHelper::GetJsonElement(const json &jsonObject, const string &key, uint32_t &errorCo… in GetJsonElement()
|
/ohos5.0/foundation/distributedhardware/device_manager/services/implementation/src/credential/ |
H A D | dm_credential_manager.cpp | 64 void from_json(const nlohmann::json &jsonObject, CredentialData &credentialData) in from_json() 99 nlohmann::json jsonObject = nlohmann::json::parse(reqJsonStr, nullptr, false); in RequestCredential() local 127 nlohmann::json jsonObject = nlohmann::json::parse(credentialInfo, nullptr, false); in ImportCredential() local 169 nlohmann::json jsonObject = nlohmann::json::parse(credentialInfo, nullptr, false); in ImportLocalCredential() local 217 nlohmann::json jsonObject = nlohmann::json::parse(deleteInfo, nullptr, false); in DeleteCredential() local 334 void from_json(const nlohmann::json &jsonObject, CredentialDataInfo &credentialDataInfo) in from_json() 368 void to_json(nlohmann::json &jsonObject, const CredentialDataInfo &credentialDataInfo) in to_json() 414 nlohmann::json jsonObject = nlohmann::json::parse(credentialInfo, nullptr, false); in ImportRemoteCredential() local 455 void from_json(const nlohmann::json &jsonObject, PeerCredentialInfo &peerCredentialInfo) in from_json() 462 void to_json(nlohmann::json &jsonObject, const PeerCredentialInfo &peerCredentialInfo) in to_json() [all …]
|
/ohos5.0/foundation/ability/ability_base/interfaces/kits/native/view_data/src/ |
H A D | page_node_info.cpp | 36 nlohmann::json jsonObject = nlohmann::json::parse(jsonStr, nullptr, false); in FromJsonString() local 72 void PageNodeInfo::ParseJsonToPageNodeInfo(const nlohmann::json& jsonObject) in ParseJsonToPageNodeInfo() 88 nlohmann::json jsonObject { in ToJsonString() local
|
H A D | rect.cpp | 30 nlohmann::json jsonObject = nlohmann::json::parse(jsonStr, nullptr, false); in FromJsonString() local 51 nlohmann::json jsonObject { in ToJsonString() local
|
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/src/free_install/ |
H A D | install_result.cpp | 38 void to_json(nlohmann::json &jsonObject, const Result &result) in to_json() 47 void from_json(const nlohmann::json &jsonObject, Result &result) in from_json() 80 void to_json(nlohmann::json &jsonObject, const Progress &progress) in to_json() 88 void from_json(const nlohmann::json &jsonObject, Progress &progress) in from_json() 113 void to_json(nlohmann::json &jsonObject, const InstallResult &installResult) in to_json() 122 void from_json(const nlohmann::json &jsonObject, InstallResult &installResult) in from_json()
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/transport/ |
H A D | dh_transport_obj.cpp | 24 void ToJson(cJSON *jsonObject, const FullCapsRsp &capsRsp) in ToJson() 48 void FromJson(const cJSON *jsonObject, FullCapsRsp &capsRsp) in FromJson() 71 void ToJson(cJSON *jsonObject, const CommMsg &commMsg) in ToJson() 82 void FromJson(const cJSON *jsonObject, CommMsg &commMsg) in FromJson()
|
/ohos5.0/foundation/deviceprofile/device_info_manager/old/services/core/test/unittest/ |
H A D | profile_authority_test.cpp | 298 nlohmann::json jsonObject = nlohmann::json::parse(INVALID_INTERFACE_SERVICE, nullptr, false); variable 314 nlohmann::json jsonObject = nlohmann::json::parse(INVALID_INTERFACE_VALUE, nullptr, false); variable 337 nlohmann::json jsonObject = nlohmann::json::parse(TEST_TRUST_GROUP_EMPTY, nullptr, false); variable 405 nlohmann::json jsonObject = nlohmann::json::parse(TEST_TRUST_GROUP, nullptr, false); variable 422 nlohmann::json jsonObject = nlohmann::json::parse(TEST_TRUST_GROUP_EMPTY, nullptr, false); variable
|
/ohos5.0/foundation/ability/dmsfwk/services/dtbschedmgr/src/mission/ |
H A D | distributed_bundle_info.cpp | 73 nlohmann::json jsonObject; in ToString() local 78 void to_json(nlohmann::json &jsonObject, const PublicRecordsInfo &publicRecordsInfo) in to_json() 87 void from_json(const nlohmann::json &jsonObject, PublicRecordsInfo &publicRecordsInfo) in from_json() 108 nlohmann::json jsonObject = nlohmann::json::parse(jsonString, nullptr, false); in FromJsonString() local 164 void to_json(nlohmann::json &jsonObject, const DmsAbilityInfo &dmsAbilityInfo) in to_json() 174 void from_json(const nlohmann::json &jsonObject, DmsAbilityInfo &dmsAbilityInfo) in from_json() 284 nlohmann::json jsonObject; in ToString() local 304 nlohmann::json jsonObject = nlohmann::json::parse(jsonString, nullptr, false); in FromJsonString() local
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/default_app/ |
H A D | default_app_data.cpp | 49 int32_t DefaultAppData::FromJson(const nlohmann::json& jsonObject) in FromJson() 71 void DefaultAppData::ParseDefaultApplicationConfig(const nlohmann::json& jsonObject) in ParseDefaultApplicationConfig() 104 void to_json(nlohmann::json& jsonObject, const Element& element) in to_json() 116 void from_json(const nlohmann::json& jsonObject, Element& element) in from_json()
|
/ohos5.0/base/print/print_fwk/services/print_service/src/ |
H A D | print_service_converter.cpp | 43 bool ConvertColorModeToJson(const ColorModeCode &code, nlohmann::json &jsonObject) in ConvertColorModeToJson() 49 bool ConvertDuplexModeToJson(const DuplexModeCode &code, nlohmann::json &jsonObject) in ConvertDuplexModeToJson() 74 bool ConvertPageSizeToJson(const PrintPageSize &pageSize, nlohmann::json &jsonObject) in ConvertPageSizeToJson()
|
/ohos5.0/foundation/distributedhardware/device_manager/test/commonunittest/ |
H A D | UTTest_discovery_filter.cpp | 47 nlohmann::json jsonObject; variable 56 nlohmann::json jsonObject; variable 66 nlohmann::json jsonObject; variable 77 nlohmann::json jsonObject; variable 88 nlohmann::json jsonObject; variable 100 nlohmann::json jsonObject; variable 112 nlohmann::json jsonObject; variable 127 nlohmann::json jsonObject; variable 143 nlohmann::json jsonObject; variable 167 nlohmann::json jsonObject; variable [all …]
|
H A D | UTTest_dm_discovery_filter.cpp | 60 nlohmann::json jsonObject; variable 75 nlohmann::json jsonObject; variable 91 nlohmann::json jsonObject; variable 108 nlohmann::json jsonObject; variable 125 nlohmann::json jsonObject; variable 143 nlohmann::json jsonObject; variable 161 nlohmann::json jsonObject; variable 182 nlohmann::json jsonObject; variable 204 nlohmann::json jsonObject; variable 240 nlohmann::json jsonObject; variable [all …]
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/resourcemanager/ |
H A D | version_info.cpp | 67 void ToJson(cJSON *jsonObject, const VersionInfo &versionInfo) in ToJson() 98 void FromJson(const cJSON *jsonObject, CompVersion &compVer) in FromJson() 122 void FromJson(const cJSON *jsonObject, VersionInfo &versionInfo) in FromJson()
|
/ohos5.0/foundation/ability/ability_runtime/frameworks/simulator/ability_simulator/src/bundle_parser/ |
H A D | module_info.cpp | 29 void to_json(nlohmann::json &jsonObject, const ModuleInfo &moduleInfo) in to_json() 38 void from_json(const nlohmann::json &jsonObject, ModuleInfo &moduleInfo) in from_json()
|