/foundation/ability/dmsfwk/services/dtbschedmgr/include/continue/ |
H A D | dsched_continue_event.h | 55 virtual int32_t Marshal(std::string &jsonStr); 56 virtual int32_t Unmarshal(const std::string &jsonStr); 76 int32_t Marshal(std::string &jsonStr); 77 int32_t Unmarshal(const std::string &jsonStr); 87 int32_t Marshal(std::string &jsonStr); 88 int32_t Unmarshal(const std::string &jsonStr); 91 int32_t MarshalCallerInfo(std::string &jsonStr); 92 int32_t MarshalAccountInfo(std::string &jsonStr); 93 int32_t UnmarshalParcel(const std::string &jsonStr); 94 int32_t UnmarshalCallerInfo(std::string &jsonStr); [all...] |
/foundation/distributedhardware/distributed_input/services/source/transport/src/ |
H A D | distributed_input_source_transport.cpp | 150 nlohmann::json jsonStr; in PrepareRemoteInput() local 151 jsonStr[DINPUT_SOFTBUS_KEY_CMD_TYPE] = TRANS_SOURCE_MSG_PREPARE; in PrepareRemoteInput() 152 jsonStr[DINPUT_SOFTBUS_KEY_DEVICE_ID] = deviceId; in PrepareRemoteInput() 153 jsonStr[DINPUT_SOFTBUS_KEY_SESSION_ID] = sessionId; in PrepareRemoteInput() 154 std::string smsg = jsonStr.dump(); in PrepareRemoteInput() 175 nlohmann::json jsonStr; in UnprepareRemoteInput() local 176 jsonStr[DINPUT_SOFTBUS_KEY_CMD_TYPE] = TRANS_SOURCE_MSG_UNPREPARE; in UnprepareRemoteInput() 177 jsonStr[DINPUT_SOFTBUS_KEY_DEVICE_ID] = deviceId; in UnprepareRemoteInput() 178 jsonStr[DINPUT_SOFTBUS_KEY_SESSION_ID] = sessionId; in UnprepareRemoteInput() 179 std::string smsg = jsonStr in UnprepareRemoteInput() 201 nlohmann::json jsonStr; PrepareRemoteInput() local 225 nlohmann::json jsonStr; UnprepareRemoteInput() local 251 nlohmann::json jsonStr; StartRemoteInputDhids() local 280 nlohmann::json jsonStr; StopRemoteInputDhids() local 307 nlohmann::json jsonStr; StartRemoteInputType() local 334 nlohmann::json jsonStr; StopRemoteInputType() local 360 nlohmann::json jsonStr; SendRelayPrepareRequest() local 384 nlohmann::json jsonStr; SendRelayUnprepareRequest() local 403 nlohmann::json jsonStr; NotifyOriginPrepareResult() local 424 nlohmann::json jsonStr; NotifyOriginUnprepareResult() local 446 nlohmann::json jsonStr; NotifyOriginStartDhidResult() local 469 nlohmann::json jsonStr; NotifyOriginStopDhidResult() local 492 nlohmann::json jsonStr; NotifyOriginStartTypeResult() local 515 nlohmann::json jsonStr; NotifyOriginStopTypeResult() local 543 nlohmann::json jsonStr; StartRemoteInput() local 570 nlohmann::json jsonStr; StopRemoteInput() local 595 nlohmann::json jsonStr; LatencyCount() local 690 nlohmann::json jsonStr; StartRemoteInput() local 728 nlohmann::json jsonStr; StopRemoteInput() local 756 nlohmann::json jsonStr; SendRelayStartDhidRequest() local 782 nlohmann::json jsonStr; SendRelayStopDhidRequest() local 808 nlohmann::json jsonStr; SendRelayStartTypeRequest() local 834 nlohmann::json jsonStr; SendRelayStopTypeRequest() local [all...] |
/foundation/multimedia/av_session/services/session/server/test/ |
H A D | json_utils_test.cpp | 143 std::string jsonStr = R"( in HWTEST() local 147 int32_t ret = JsonUtils::SetSessionBasicInfo(jsonStr, basicInfo); in HWTEST() 161 std::string jsonStr = ""; in HWTEST() local 163 int32_t ret = JsonUtils::SetSessionDescriptors(jsonStr, descriptors); in HWTEST() 177 std::string jsonStr = R"( in HWTEST() local 181 int32_t ret = JsonUtils::SetSessionDescriptors(jsonStr, descriptors); in HWTEST() 195 std::string jsonStr = R"( in HWTEST() local 199 int32_t ret = JsonUtils::SetSessionDescriptors(jsonStr, descriptors); in HWTEST() 213 std::string jsonStr = ""; in HWTEST() local 215 int32_t ret = JsonUtils::SetSessionDescriptor(jsonStr, descripto in HWTEST() 229 std::string jsonStr = R"( HWTEST() local [all...] |
/foundation/ability/ability_runtime/test/fuzztest/abilityappmgrapprunningmanager_fuzzer/ |
H A D | abilityappmgrapprunningmanager_fuzzer.cpp | 72 std::string jsonStr(data, size); in DoSomethingInterestingWithMyAPIadda() 87 manager->ProcessExitByBundleNameAndUid(jsonStr, uid, pids, clearPageStack); in DoSomethingInterestingWithMyAPIadda() 98 manager->ClipStringContent(re, jsonStr, jsonStr); in DoSomethingInterestingWithMyAPIadda() 102 manager->GetAppRunningStateByBundleName(jsonStr); in DoSomethingInterestingWithMyAPIadda() 104 manager->NotifyLoadRepairPatch(jsonStr, callback); in DoSomethingInterestingWithMyAPIadda() 105 manager->NotifyHotReloadPage(jsonStr, callback); in DoSomethingInterestingWithMyAPIadda() 106 manager->NotifyUnLoadRepairPatch(jsonStr, callback); in DoSomethingInterestingWithMyAPIadda() 109 OHOS::AppExecFwk::AppRunningRecord foregroundingRecord(infoAPP, recordId, jsonStr); in DoSomethingInterestingWithMyAPIadda() 115 std::string jsonStr(dat in DoSomethingInterestingWithMyAPIaddb() [all...] |
/foundation/distributeddatamgr/pasteboard/framework/test/src/ |
H A D | serializable_test.cpp | 114 * @tc.desc: test serializable with invalid jsonStr . 123 std::string jsonStr = ""; in HWTEST_F() local 124 auto ret = config.Unmarshall(jsonStr); in HWTEST_F() 129 jsonStr = "{ a }"; in HWTEST_F() 130 ret = config.Unmarshall(jsonStr); in HWTEST_F() 137 * @tc.desc: test serializable with valid jsonStr . 147 std::string jsonStr = "{\n" in HWTEST_F() local 161 auto node = ToJson(jsonStr); in HWTEST_F() 195 std::string jsonStr = R"({"key":null})"; in HWTEST_F() local 196 auto json = ToJson(jsonStr); in HWTEST_F() 220 std::string jsonStr = R"({"key":null})"; HWTEST_F() local 245 std::string jsonStr = R"({"key":null})"; HWTEST_F() local 270 std::string jsonStr = R"({"key":null})"; HWTEST_F() local 295 std::string jsonStr = R"({"key":null})"; HWTEST_F() local 320 std::string jsonStr = R"({"key":null})"; HWTEST_F() local 430 std::string jsonStr = "{\\n" HWTEST_F() local [all...] |
/foundation/distributedhardware/distributed_camera/services/cameraservice/base/test/unittest/common/base/ |
H A D | dcamera_protocol_test.cpp | 125 std::string jsonStr; in HWTEST_F() local 126 ret = cmd.Marshal(jsonStr); in HWTEST_F() 142 std::string jsonStr; in HWTEST_F() local 143 ret = cmd.Marshal(jsonStr); in HWTEST_F() 159 std::string jsonStr; in HWTEST_F() local 160 ret = cmd.Marshal(jsonStr); in HWTEST_F() 176 std::string jsonStr; in HWTEST_F() local 177 ret = cmd.Marshal(jsonStr); in HWTEST_F() 193 std::string jsonStr; in HWTEST_F() local 194 ret = cmd.Marshal(jsonStr); in HWTEST_F() [all...] |
/foundation/ability/ability_runtime/test/fuzztest/abilitymgrinsightintentutils_fuzzer/ |
H A D | abilitymgrinsightintentutils_fuzzer.cpp | 69 std::string jsonStr(data, size); in DoSomethingInterestingWithMyAPI() 70 ElementName element("", jsonStr, jsonStr, jsonStr); in DoSomethingInterestingWithMyAPI() 72 infos->GetSrcEntry(element, jsonStr, AppExecFwk::ExecuteMode::UI_ABILITY_FOREGROUND, srcEntry); in DoSomethingInterestingWithMyAPI() 73 infos->GetSrcEntry(element, jsonStr, AppExecFwk::ExecuteMode::UI_ABILITY_BACKGROUND, srcEntry); in DoSomethingInterestingWithMyAPI() 74 infos->GetSrcEntry(element, jsonStr, AppExecFwk::ExecuteMode::UI_EXTENSION_ABILITY, srcEntry); in DoSomethingInterestingWithMyAPI() 75 infos->GetSrcEntry(element, jsonStr, AppExecFwk::ExecuteMode::SERVICE_EXTENSION_ABILITY, srcEntry); in DoSomethingInterestingWithMyAPI()
|
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/test/unittest/common/versioninfomanager/versioninfo/src/ |
H A D | version_info_test.cpp | 79 std::string jsonStr = verInfo1.ToJsonString(); in HWTEST_F() local 80 EXPECT_NE(jsonStr.empty(), true); in HWTEST_F() 83 verInfo2.FromJsonString(jsonStr); in HWTEST_F() 85 EXPECT_EQ(verInfo2.ToJsonString(), jsonStr); in HWTEST_F() 119 std::string jsonStr(cjson); in HWTEST_F() 122 EXPECT_EQ(DH_FWK_SUCCESS, verInfo.FromJsonString(jsonStr)); in HWTEST_F() 155 std::string jsonStr(cjson); in HWTEST_F() 158 EXPECT_EQ(DH_FWK_SUCCESS, verInfo.FromJsonString(jsonStr)); in HWTEST_F()
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/serializable/ |
H A D | serializable.cpp | 26 bool Serializable::Unmarshall(const std::string &jsonStr) in Unmarshall() argument 28 json jsonObj = json::parse(jsonStr, nullptr, false); in Unmarshall() 31 if (jsonStr.empty()) { in Unmarshall() 34 jsonObj = json::parse(jsonStr.substr(1), nullptr, false); // drop first char to adapt A's value; in Unmarshall() 42 Serializable::json Serializable::ToJson(const std::string &jsonStr) in ToJson() argument 44 json jsonObj = json::parse(jsonStr, nullptr, false); in ToJson() 47 if (jsonStr.empty()) { in ToJson() 50 jsonObj = json::parse(jsonStr.substr(1), nullptr, false); // drop first char to adapt A's value; in ToJson() 58 bool Serializable::IsJson(const std::string &jsonStr) in IsJson() argument 60 if (!json::accept(jsonStr)) { in IsJson() [all...] |
/foundation/distributeddatamgr/relational_store/frameworks/native/appdatafwk/src/ |
H A D | serializable.cpp | 25 bool Serializable::Unmarshall(const std::string &jsonStr) in Unmarshall() argument 27 json jsonObj = json::parse(jsonStr, nullptr, false); in Unmarshall() 30 if (jsonStr.empty()) { in Unmarshall() 33 jsonObj = json::parse(jsonStr.substr(1), nullptr, false); // drop first char to adapt A's value; in Unmarshall() 41 Serializable::json Serializable::ToJson(const std::string &jsonStr) in ToJson() argument 43 json jsonObj = json::parse(jsonStr, nullptr, false); in ToJson() 46 if (jsonStr.empty()) { in ToJson() 49 jsonObj = json::parse(jsonStr.substr(1), nullptr, false); // drop first char to adapt A's value; in ToJson() 57 bool Serializable::IsJson(const std::string &jsonStr) in IsJson() argument 59 if (!json::accept(jsonStr)) { in IsJson() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_v2/inspector/ |
H A D | grid_container_composed_element.cpp | 54 auto jsonStr = JsonUtil::Create(true); in GetConstructor() local 55 jsonStr->Put("columns", GetColumns().c_str()); in GetConstructor() 56 jsonStr->Put("sizeType", GetSizeType().c_str()); in GetConstructor() 57 jsonStr->Put("gutter", GetGutter().c_str()); in GetConstructor() 58 jsonStr->Put("margin", GetMarginLeft().c_str()); in GetConstructor() 59 return jsonStr; in GetConstructor()
|
/foundation/ability/ability_runtime/test/fuzztest/abilityframeworksnativejsworker_fuzzer/ |
H A D | abilityframeworksnativejsworker_fuzzer.cpp | 74 std::string jsonStr(data, size); in DoSomethingInterestingWithMyAPI() 77 helper.GetSafeData(jsonStr, &buff, &buffSize); in DoSomethingInterestingWithMyAPI() 78 helper.NormalizedFileName(jsonStr); in DoSomethingInterestingWithMyAPI() 82 helper.ReadAmiData(jsonStr, &buff, &buffSize, content, useSecureMem, isRestricted); in DoSomethingInterestingWithMyAPI() 83 helper.ReadFilePathData(jsonStr, &buff, &buffSize, content, useSecureMem, isRestricted); in DoSomethingInterestingWithMyAPI() 84 helper.GetAmi(jsonStr, jsonStr); in DoSomethingInterestingWithMyAPI()
|
/foundation/ability/dmsfwk/services/dtbschedmgr/src/continue/ |
H A D | dsched_continue_event.cpp | 33 int32_t DSchedContinueCmdBase::Marshal(std::string &jsonStr) in Marshal() argument 61 jsonStr = std::string(data); in Marshal() 67 int32_t DSchedContinueCmdBase::Unmarshal(const std::string &jsonStr) in Unmarshal() argument 69 cJSON *rootValue = cJSON_Parse(jsonStr.c_str()); in Unmarshal() 118 int32_t DSchedContinueStartCmd::Marshal(std::string &jsonStr) in Marshal() argument 148 jsonStr = std::string(data); in Marshal() 154 int32_t DSchedContinueStartCmd::Unmarshal(const std::string &jsonStr) in Unmarshal() argument 156 cJSON *rootValue = cJSON_Parse(jsonStr.c_str()); in Unmarshal() 208 int32_t DSchedContinueDataCmd::Marshal(std::string &jsonStr) in Marshal() argument 260 jsonStr in Marshal() 266 MarshalCallerInfo(std::string &jsonStr) MarshalCallerInfo() argument 310 MarshalAccountInfo(std::string &jsonStr) MarshalAccountInfo() argument 351 Unmarshal(const std::string &jsonStr) Unmarshal() argument 407 UnmarshalParcel(const std::string &jsonStr) UnmarshalParcel() argument 461 UnmarshalCallerInfo(std::string &jsonStr) UnmarshalCallerInfo() argument 513 UnmarshalCallerInfoExtra(std::string &jsonStr) UnmarshalCallerInfoExtra() argument 561 UnmarshalAccountInfo(std::string &jsonStr) UnmarshalAccountInfo() argument 607 Marshal(std::string &jsonStr) Marshal() argument 637 Unmarshal(const std::string &jsonStr) Unmarshal() argument 682 Marshal(std::string &jsonStr) Marshal() argument 709 Unmarshal(const std::string &jsonStr) Unmarshal() argument [all...] |
/foundation/distributeddatamgr/relational_store/test/native/appdatafwk/unittest/ |
H A D | serializable_test.cpp | 173 std::string jsonStr = "\"test\""; in HWTEST_F() local 175 ASSERT_TRUE(Serializable::IsJson(jsonStr)); in HWTEST_F() 185 std::string jsonStr = "{\"key\":\"value\"}"; in HWTEST_F() local 186 Serializable::json result = Serializable::ToJson(jsonStr); in HWTEST_F() 197 std::string jsonStr = "invalid_json"; in HWTEST_F() local 198 Serializable::json result = Serializable::ToJson(jsonStr); in HWTEST_F() 209 std::string jsonStr = ""; in HWTEST_F() local 210 Serializable::json result = Serializable::ToJson(jsonStr); in HWTEST_F() 221 std::string jsonStr = "{invalid_json}"; in HWTEST_F() local 222 Serializable::json result = Serializable::ToJson(jsonStr); in HWTEST_F() [all...] |
/foundation/distributedhardware/distributed_input/services/sink/sinkmanager/src/ |
H A D | distributed_input_sink_manager.cpp | 102 void DistributedInputSinkManager::QueryLocalWhiteList(nlohmann::json &jsonStr) in QueryLocalWhiteList() argument 110 jsonStr[DINPUT_SOFTBUS_KEY_WHITE_LIST] = ""; in QueryLocalWhiteList() 116 jsonStr[DINPUT_SOFTBUS_KEY_WHITE_LIST] = ""; in QueryLocalWhiteList() 121 jsonStr[DINPUT_SOFTBUS_KEY_WHITE_LIST] = object; in QueryLocalWhiteList() 140 nlohmann::json jsonStr; in OnPrepareRemoteInput() local 141 jsonStr[DINPUT_SOFTBUS_KEY_CMD_TYPE] = TRANS_SINK_MSG_ONPREPARE; in OnPrepareRemoteInput() 145 sinkManagerObj_->QueryLocalWhiteList(jsonStr); in OnPrepareRemoteInput() 146 jsonStr[DINPUT_SOFTBUS_KEY_RESP_VALUE] = true; in OnPrepareRemoteInput() 147 smsg = jsonStr.dump(); in OnPrepareRemoteInput() 160 nlohmann::json jsonStr; in OnUnprepareRemoteInput() local 176 nlohmann::json jsonStr; OnRelayPrepareRemoteInput() local 199 nlohmann::json jsonStr; OnRelayUnprepareRemoteInput() local 270 nlohmann::json jsonStr; OnStopRemoteInput() local 343 nlohmann::json jsonStr; OnStopRemoteInputDhid() local 417 nlohmann::json jsonStr; OnRelayStopDhidRemoteInput() local 512 nlohmann::json jsonStr; OnRelayStopTypeRemoteInput() local [all...] |
/foundation/communication/netstack/frameworks/js/napi/http/cache/lru_cache/src/ |
H A D | lru_cache_disk_handler.cpp | 43 std::string jsonStr = diskHandler_.Read(); in ReadJsonValueFromFile() local 44 cJSON *root = cJSON_Parse(jsonStr.c_str()); in ReadJsonValueFromFile() 54 char *jsonStr = cJSON_Print(root); in WriteJsonValueToFile() local 55 if (jsonStr == nullptr) { in WriteJsonValueToFile() 59 std::string s = jsonStr; in WriteJsonValueToFile() 61 free(jsonStr); in WriteJsonValueToFile()
|
/foundation/filemanagement/app_file_service/tests/mock/utils_mock/src/ |
H A D | b_jsonutil_mock.cpp | 46 bool BJsonUtil::BuildExtensionErrInfo(std::string &jsonStr, int errCode, std::string errMsg) in BuildExtensionErrInfo() argument 48 return BBJsonUtil::jsonUtil->BuildExtensionErrInfo(jsonStr, errCode, errMsg); in BuildExtensionErrInfo() 56 bool BJsonUtil::BuildExtensionErrInfo(std::string &jsonStr, std::map<std::string, std::vector<int>> errFileInfo) in BuildExtensionErrInfo() argument 58 return BBJsonUtil::jsonUtil->BuildExtensionErrInfo(jsonStr, errFileInfo); in BuildExtensionErrInfo() 61 bool BJsonUtil::BuildOnProcessRetInfo(std::string &jsonStr, std::string onProcessRet) in BuildOnProcessRetInfo() argument 63 return BBJsonUtil::jsonUtil->BuildOnProcessRetInfo(jsonStr, onProcessRet); in BuildOnProcessRetInfo()
|
/foundation/distributedhardware/distributed_camera/services/cameraservice/sourceservice/src/distributedcameramgr/dcameracontrol/ |
H A D | dcamera_source_controller.cpp | 82 std::string jsonStr; in StartCapture() local 83 int32_t ret = cmd.Marshal(jsonStr); in StartCapture() 91 std::shared_ptr<DataBuffer> buffer = std::make_shared<DataBuffer>(jsonStr.length() + 1); in StartCapture() 92 ret = memcpy_s(buffer->Data(), buffer->Capacity(), reinterpret_cast<uint8_t *>(const_cast<char *>(jsonStr.c_str())), in StartCapture() 93 jsonStr.length()); in StartCapture() 142 std::string jsonStr = std::string(data); in StopCapture() local 145 std::shared_ptr<DataBuffer> buffer = std::make_shared<DataBuffer>(jsonStr.length() + 1); in StopCapture() 147 reinterpret_cast<uint8_t *>(const_cast<char *>(jsonStr.c_str())), jsonStr.length()); in StopCapture() 184 std::string jsonStr; in ChannelNeg() local 253 std::string jsonStr; UpdateSettings() local 331 std::string jsonStr; OpenChannel() local 523 HandleMetaDataResult(std::string& jsonStr) HandleMetaDataResult() argument [all...] |
/foundation/distributedhardware/distributed_input/services/sink/transport/src/ |
H A D | distributed_input_sink_transport.cpp | 86 nlohmann::json jsonStr; in ProcessEvent() local 87 jsonStr[DINPUT_SOFTBUS_KEY_CMD_TYPE] = TRANS_SINK_MSG_BODY_DATA; in ProcessEvent() 88 jsonStr[DINPUT_SOFTBUS_KEY_INPUT_DATA] = innerMsg->dump(); in ProcessEvent() 89 std::string smsg = jsonStr.dump(); in ProcessEvent() 221 nlohmann::json jsonStr; in SendKeyStateNodeMsg() local 222 jsonStr[DINPUT_SOFTBUS_KEY_CMD_TYPE] = TRANS_SINK_MSG_KEY_STATE; in SendKeyStateNodeMsg() 223 jsonStr[DINPUT_SOFTBUS_KEY_KEYSTATE_DHID] = dhId; in SendKeyStateNodeMsg() 224 jsonStr[DINPUT_SOFTBUS_KEY_KEYSTATE_TYPE] = type; in SendKeyStateNodeMsg() 225 jsonStr[DINPUT_SOFTBUS_KEY_KEYSTATE_CODE] = btnCode; in SendKeyStateNodeMsg() 226 jsonStr[DINPUT_SOFTBUS_KEY_KEYSTATE_VALU in SendKeyStateNodeMsg() 276 nlohmann::json jsonStr; DoSendMsgBatch() local 410 nlohmann::json jsonStr; NotifyLatency() local [all...] |
/foundation/ability/ability_runtime/test/fuzztest/abilitymgrappexitreasonhelper_fuzzer/ |
H A D | abilitymgrappexitreasonhelper_fuzzer.cpp | 70 std::string jsonStr(data, size); in DoSomethingInterestingWithMyAPI() 75 ExitReason exitReason(reason, jsonStr); in DoSomethingInterestingWithMyAPI() 79 infos->RecordAppExitReason(jsonStr, uid, appIndex, exitReason); in DoSomethingInterestingWithMyAPI() 81 infos->RecordProcessExtensionExitReason(pid, jsonStr, exitReason); in DoSomethingInterestingWithMyAPI() 84 infos->RecordProcessExitReason(pid, jsonStr, uid, accessTokenId, exitReason); in DoSomethingInterestingWithMyAPI()
|
/foundation/deviceprofile/device_info_manager/services/core/src/contentsensormanager/ |
H A D | syscap_info_collector.cpp | 79 std::string jsonStr; in ConvertToProfile() local 80 if (!GenJsonStr(jsonData, jsonStr)) { in ConvertToProfile() 85 profile.SetOsSysCap(jsonStr); in ConvertToProfile() 132 bool SyscapInfoCollector::GenJsonStr(const cJSON* const jsonData, std::string& jsonStr) in GenJsonStr() argument 139 jsonStr = jsonChars; in GenJsonStr()
|
/foundation/filemanagement/app_file_service/tests/unittests/backup_utils/b_jsonutil/ |
H A D | b_jsonutil_other_test.cpp | 76 std::string jsonStr; in HWTEST_F() local 82 bool result = BJsonUtil::BuildExtensionErrInfo(jsonStr, errCode, errMsg); in HWTEST_F() 89 result = BJsonUtil::BuildExtensionErrInfo(jsonStr, errCode, errMsg); in HWTEST_F() 111 std::string jsonStr; in HWTEST_F() local 116 bool result = BJsonUtil::BuildExtensionErrInfo(jsonStr, errFileInfo); in HWTEST_F() 122 result = BJsonUtil::BuildExtensionErrInfo(jsonStr, errFileInfo); in HWTEST_F() 144 std::string jsonStr; in HWTEST_F() local 149 bool result = BJsonUtil::BuildOnProcessRetInfo(jsonStr, onProcessRet); in HWTEST_F() 156 result = BJsonUtil::BuildOnProcessRetInfo(jsonStr, onProcessRet); in HWTEST_F() 168 result = BJsonUtil::BuildOnProcessRetInfo(jsonStr, onProcessRe in HWTEST_F() [all...] |
/foundation/filemanagement/app_file_service/utils/src/b_jsonutil/ |
H A D | b_jsonutil.cpp | 139 char *jsonStr = cJSON_Print(root); in AddUnicastInfo() local 140 if (jsonStr == nullptr) { in AddUnicastInfo() 144 bundleInfo = string(jsonStr); in AddUnicastInfo() 146 free(jsonStr); in AddUnicastInfo() 276 bool BJsonUtil::BuildExtensionErrInfo(std::string &jsonStr, int errCode, std::string errMsg) in BuildExtensionErrInfo() argument 299 jsonStr = std::string(data); in BuildExtensionErrInfo() 305 bool BJsonUtil::BuildExtensionErrInfo(std::string &jsonStr, std::map<std::string, std::vector<int>> errFileInfo) in BuildExtensionErrInfo() argument 336 jsonStr = std::string(data); in BuildExtensionErrInfo() 342 bool BJsonUtil::BuildOnProcessRetInfo(std::string &jsonStr, std::string onProcessRet) in BuildOnProcessRetInfo() argument 362 jsonStr in BuildOnProcessRetInfo() 430 char *jsonStr = cJSON_Print(infos); BuildBundleInfoJson() local [all...] |
/foundation/arkui/ace_engine/adapter/preview/inspector/ |
H A D | inspector_client.h | 29 using FastPreviewErrorCallback = std::function<void(const std::string &jsonStr)>; 45 void CallFastPreviewErrorCallback(const std::string& jsonStr) in CallFastPreviewErrorCallback() argument 48 onError_(jsonStr); in CallFastPreviewErrorCallback()
|
/foundation/arkui/ace_engine/adapter/ohos/osal/ |
H A D | thp_extra_manager_impl.cpp | 53 std::string jsonStr = std::string(ThpExtraGetConfigStr()); in Init() local 54 if (jsonStr.empty()) { in Init() 57 auto rootJson = JsonUtil::ParseJsonString(jsonStr); in Init()
|