Home
last modified time | relevance | path

Searched refs:jsonData (Results 1 - 14 of 14) sorted by relevance

/base/account/os_account/services/accountmgr/src/
H A Daccount_helper_data.cpp36 static bool ParseJsonData(nlohmann::json &jsonData) in ParseJsonData() argument
49 jsonData = json::parse(fin, nullptr, false); in ParseJsonData()
50 if (jsonData.is_discarded() || !jsonData.is_structured()) { in ParseJsonData()
63 nlohmann::json jsonData; in GetAccountEventMap() local
64 if (!ParseJsonData(jsonData)) { in GetAccountEventMap()
68 if ((jsonData.find(KEY_ACCOUNT_EVENT_MAP) != jsonData.end()) && (jsonData.at(KEY_ACCOUNT_EVENT_MAP).is_array())) { in GetAccountEventMap()
69 result = jsonData in GetAccountEventMap()
[all...]
H A Dohos_account_data_deal.cpp151 nlohmann::json jsonData = json::parse(fin, nullptr, false); in Init() local
153 if (jsonData.is_discarded() || !jsonData.is_structured()) { in Init()
194 nlohmann::json jsonData = json { in SaveAccountInfo() local
213 std::string accountInfoValue = jsonData.dump(-1, ' ', false, json::error_handler_t::ignore); in SaveAccountInfo()
227 ErrCode OhosAccountDataDeal::ParseJsonFromFile(const std::string &filePath, nlohmann::json &jsonData, int32_t userId) in ParseJsonFromFile() argument
236 jsonData = json::parse(fin, nullptr, false); in ParseJsonFromFile()
238 if (jsonData.is_discarded() || !jsonData.is_structured()) { in ParseJsonFromFile()
243 auto it = jsonData in ParseJsonFromFile()
258 GetAccountInfoFromJson( const nlohmann::json &jsonData, AccountInfo &accountInfo, const int32_t userId) GetAccountInfoFromJson() argument
336 nlohmann::json jsonData; GetAccountInfo() local
[all...]
/base/telephony/call_manager/services/distributed_call/src/distributed_communication/
H A Ddistributed_data_controller.cpp148 char *jsonData = cJSON_PrintUnformatted(muteMsg); in CreateMuteMsg() local
149 if (jsonData != nullptr) { in CreateMuteMsg()
150 data = jsonData; in CreateMuteMsg()
151 free(jsonData); in CreateMuteMsg()
152 jsonData = nullptr; in CreateMuteMsg()
172 char *jsonData = cJSON_PrintUnformatted(muteRingerMsg); in CreateMuteRingerMsg() local
173 if (jsonData != nullptr) { in CreateMuteRingerMsg()
174 data = jsonData; in CreateMuteRingerMsg()
175 free(jsonData); in CreateMuteRingerMsg()
176 jsonData in CreateMuteRingerMsg()
[all...]
H A Ddistributed_device_switch_controller.cpp125 char *jsonData = cJSON_PrintUnformatted(root); in GetDevAddress() local
126 if (jsonData != nullptr) { in GetDevAddress()
127 address = jsonData; in GetDevAddress()
128 free(jsonData); in GetDevAddress()
129 jsonData = nullptr; in GetDevAddress()
H A Ddistributed_data_sink_controller.cpp144 char *jsonData = cJSON_PrintUnformatted(reqMsg); in CreateDataReqMsg() local
145 if (jsonData != nullptr) { in CreateDataReqMsg()
146 data = jsonData; in CreateDataReqMsg()
147 free(jsonData); in CreateDataReqMsg()
148 jsonData = nullptr; in CreateDataReqMsg()
257 char *jsonData = cJSON_PrintUnformatted(currentReqMsg); in CreateCurrentDataReqMsg() local
258 if (jsonData != nullptr) { in CreateCurrentDataReqMsg()
259 data = jsonData; in CreateCurrentDataReqMsg()
260 free(jsonData); in CreateCurrentDataReqMsg()
261 jsonData in CreateCurrentDataReqMsg()
[all...]
H A Ddistributed_data_source_controller.cpp177 char *jsonData = cJSON_PrintUnformatted(rspMsg); in CreateDataRspMsg() local
178 if (jsonData != nullptr) { in CreateDataRspMsg()
179 data = jsonData; in CreateDataRspMsg()
180 free(jsonData); in CreateDataRspMsg()
181 jsonData = nullptr; in CreateDataRspMsg()
255 char *jsonData = cJSON_PrintUnformatted(currentRspMsg); in CreateCurrentDataRspMsg() local
256 if (jsonData != nullptr) { in CreateCurrentDataRspMsg()
257 data = jsonData; in CreateCurrentDataRspMsg()
258 free(jsonData); in CreateCurrentDataRspMsg()
259 jsonData in CreateCurrentDataRspMsg()
[all...]
/base/account/os_account/services/accountmgr/include/
H A Dohos_account_data_deal.h49 ErrCode ParseJsonFromFile(const std::string &filePath, nlohmann::json &jsonData, int32_t userId);
50 ErrCode GetAccountInfoFromJson(const nlohmann::json &jsonData, AccountInfo &accountInfo, const int32_t userId);
/base/security/device_auth/services/legacy/group_manager/src/group_operation/group_operation_common/
H A Dgroup_operation_common.c938 CJson *jsonData = CreateJson(); in GenerateBindSuccessData() local
939 if (jsonData == NULL) { in GenerateBindSuccessData()
940 LOGE("Failed to allocate jsonData memory!"); in GenerateBindSuccessData()
943 if (AddStringToJson(jsonData, FIELD_GROUP_ID, groupId) != HC_SUCCESS) { in GenerateBindSuccessData()
944 LOGE("Failed to add groupId to jsonData!"); in GenerateBindSuccessData()
945 FreeJson(jsonData); in GenerateBindSuccessData()
948 if (AddStringToJson(jsonData, FIELD_ADD_ID, peerAuthId) != HC_SUCCESS) { in GenerateBindSuccessData()
949 LOGE("Failed to add addId to jsonData!"); in GenerateBindSuccessData()
950 FreeJson(jsonData); in GenerateBindSuccessData()
953 char *jsonDataStr = PackJsonToString(jsonData); in GenerateBindSuccessData()
971 CJson *jsonData = CreateJson(); GenerateUnbindSuccessData() local
[all...]
/base/telephony/call_manager/services/spam_call/src/
H A Dspam_call_adapter.cpp143 void SpamCallAdapter::ParseDetectResult(const std::string &jsonData, bool &isBlock, in ParseDetectResult() argument
146 if (jsonData.empty()) { in ParseDetectResult()
149 const char *data = jsonData.c_str(); in ParseDetectResult()
/base/global/resource_management/frameworks/resmgr/src/
H A Dtheme_pack_resource.cpp154 char *jsonData = (char *)malloc(len + 1); in ParseJson() local
155 if (jsonData == nullptr) { in ParseJson()
163 std::fread(jsonData, len, 1, pf); in ParseJson()
164 jsonData[len] = '\0'; in ParseJson()
166 cJSON *jsonValue = cJSON_Parse(jsonData); in ParseJson()
173 free(jsonData); in ParseJson()
174 jsonData = nullptr; in ParseJson()
/base/account/os_account/frameworks/common/file_operator/src/
H A Daccount_file_operator.cpp339 nlohmann::json jsonData = nlohmann::json::parse(content, nullptr, false); in IsJsonFormat() local
340 if (jsonData.is_discarded() || !jsonData.is_structured()) { in IsJsonFormat()
/base/telephony/call_manager/services/spam_call/include/
H A Dspam_call_adapter.h43 void ParseDetectResult(const std::string &jsonData, bool &isBlock, NumberMarkInfo &info, int32_t &blockReason);
/base/telephony/call_manager/test/unittest/call_manager_zero_gtest/src/
H A Dzero_branch2_test.cpp85 std::string jsonData = "{\"detectResult\":1,\"decisionReason\":1}"; in HWTEST_F() local
89 spamCallAdapter_->ParseDetectResult(jsonData, isBlock, info, blockReason); in HWTEST_F()
/base/msdp/device_status/rust/subsystem/device_profile/binding/src/
H A Dfusion_device_profile_adapter.cpp178 std::string jsonData = profile.GetCharacteristicProfileJson(); in GetCrossSwitchState() local
180 parser.json = cJSON_Parse(jsonData.c_str()); in GetCrossSwitchState()

Completed in 9 milliseconds