/foundation/distributedhardware/devicemanager/ext/mini/services/devicemanagerservice/src/message/ |
D | msg_response_auth.cpp | 55 void MsgResponseAuth::Encode(nlohmann::json &jsonObj) in Encode() argument 58 mHead_->Encode(jsonObj); in Encode() 59 jsonObj[TAG_REPLY] = mReply_; in Encode() 60 jsonObj[TAG_DEVICE_ID] = mDeviceId_; in Encode() 61 jsonObj[TAG_GROUPIDS] = mSyncGroupList_; in Encode() 63 jsonObj[TAG_NET_ID] = mNetId_; in Encode() 64 jsonObj[TAG_REQUEST_ID] = mRequestId_; in Encode() 65 jsonObj[TAG_GROUP_ID] = mGroupId_; in Encode() 66 jsonObj[TAG_GROUP_NAME] = mGroupName_; in Encode() 77 int32_t MsgResponseAuth::Decode(nlohmann::json &jsonObj) in Decode() argument [all …]
|
D | msg_request_auth.cpp | 134 nlohmann::json jsonObj; in EncodeDevInfo() local 135 mHead_->Encode(jsonObj); in EncodeDevInfo() 136 jsonObj[TAG_SLICE_NUM] = mMsgSlice_; in EncodeDevInfo() 137 jsonObj[TAG_INDEX] = 0; in EncodeDevInfo() 138 jsonObj[TAG_REQUESTER] = mDeviceName_; in EncodeDevInfo() 139 jsonObj[TAG_DEVICE_ID] = mDeviceId_; in EncodeDevInfo() 140 jsonObj[TAG_DEVICE_TYPE] = mDeviceType_; in EncodeDevInfo() 141 jsonObj[TAG_TOKEN] = mToken_; in EncodeDevInfo() 142 jsonObj[TAG_VISIBILITY] = mGroupVisibility_; in EncodeDevInfo() 144 jsonObj[TAG_TARGET] = mTargetPkg_; in EncodeDevInfo() [all …]
|
/foundation/aafwk/standard/test/systemtest/common/fms/fms_stress_test/ |
D | stress_test_config_parser.h | 45 nlohmann::json jsonObj; in ParseForStressTest() local 46 jf >> jsonObj; in ParseForStressTest() 47 const auto &jsonObjEnd = jsonObj.end(); in ParseForStressTest() 48 if (jsonObj.find(STRESS_TEST_EXECUTION_TIMES_KEY) != jsonObjEnd) { in ParseForStressTest() 49 jsonObj.at(STRESS_TEST_EXECUTION_TIMES_KEY).get_to(stlevel.executionTimesLevel); in ParseForStressTest() 55 if (jsonObj.find(STRESS_TEST_SLEEP_TIME_KEY) != jsonObjEnd) { in ParseForStressTest() 56 jsonObj.at(STRESS_TEST_SLEEP_TIME_KEY).get_to(stlevel.sleepTime); in ParseForStressTest()
|
/foundation/distributedhardware/devicemanager/services/devicemanagerservice/src/authentication/ |
D | auth_message_processor.cpp | 40 nlohmann::json jsonObj; in CreateAuthRequestMessage() local 41 jsonObj[TAG_VER] = DM_ITF_VER; in CreateAuthRequestMessage() 42 jsonObj[TAG_TYPE] = MSG_TYPE_REQ_AUTH; in CreateAuthRequestMessage() 43 jsonObj[TAG_SLICE_NUM] = thumbnailSlice + 1; in CreateAuthRequestMessage() 44 jsonObj[TAG_INDEX] = 0; in CreateAuthRequestMessage() 45 jsonObj[TAG_REQUESTER] = authRequestContext_->deviceName; in CreateAuthRequestMessage() 46 jsonObj[TAG_DEVICE_ID] = authRequestContext_->deviceId; in CreateAuthRequestMessage() 47 jsonObj[TAG_DEVICE_TYPE] = authRequestContext_->deviceTypeId; in CreateAuthRequestMessage() 48 jsonObj[TAG_AUTH_TYPE] = authRequestContext_->authType; in CreateAuthRequestMessage() 49 jsonObj[TAG_TOKEN] = authRequestContext_->token; in CreateAuthRequestMessage() [all …]
|
D | dm_auth_manager.cpp | 345 nlohmann::json jsonObj; in OnGroupCreated() local 346 jsonObj[PIN_TOKEN] = authResponseContext_->token; in OnGroupCreated() 347 jsonObj[QR_CODE_KEY] = GenerateGroupName(); in OnGroupCreated() 348 jsonObj[NFC_CODE_KEY] = GenerateGroupName(); in OnGroupCreated() 349 authResponseContext_->authToken = jsonObj.dump(); in OnGroupCreated() 670 nlohmann::json jsonObj; in CancelDisplay() local 671 jsonObj[CANCEL_DISPLAY_KEY] = CANCEL_PIN_CODE_DISPLAY; in CancelDisplay() 672 std::string paramJson = jsonObj.dump(); in CancelDisplay() 680 nlohmann::json jsonObj; in UpdateInputDialogDisplay() local 681 jsonObj[VERIFY_FAILED] = isShow; in UpdateInputDialogDisplay() [all …]
|
/foundation/distributedhardware/devicemanager/test/unittest/ |
D | UTTest_auth_message_processor.cpp | 59 nlohmann::json jsonObj; variable 60 jsonObj[TAG_VER] = DM_ITF_VER; 61 jsonObj[TAG_TYPE] = msgType; 62 jsonObj[TAG_AUTH_TYPE] = authMessageProcessor->authResponseContext_->authType; 65 authMessageProcessor->CreateNegotiateMessage(jsonObj); 66 std::string str1 = jsonObj.dump(); 93 nlohmann::json jsonObj; variable 100 authMessageProcessor->CreateSyncGroupMessage(jsonObj); 102 std::string str2 = jsonObj.dump(); 120 nlohmann::json jsonObj; variable [all …]
|
D | UTTest_softbus_session.cpp | 96 nlohmann::json jsonObj; variable 97 jsonObj[TAG_VER] = DM_ITF_VER; 98 jsonObj[TAG_TYPE] = msgType; 99 std::string message = jsonObj.dump();
|
/foundation/distributedhardware/devicemanager/services/devicemanagerservice/src/dependency/hichain/ |
D | hichain_connector.cpp | 108 nlohmann::json jsonObj; in CreateGroup() local 109 jsonObj[FIELD_GROUP_TYPE] = GROUP_TYPE_PEER_TO_PEER_GROUP; in CreateGroup() 110 jsonObj[FIELD_DEVICE_ID] = sLocalDeviceID; in CreateGroup() 111 jsonObj[FIELD_GROUP_NAME] = groupName; in CreateGroup() 112 jsonObj[FIELD_USER_TYPE] = 0; in CreateGroup() 113 jsonObj[FIELD_GROUP_VISIBILITY] = GROUP_VISIBILITY_PUBLIC; in CreateGroup() 114 jsonObj[FIELD_EXPIRE_TIME] = FIELD_EXPIRE_TIME_VALUE; in CreateGroup() 121 …int32_t ret = deviceGroupManager_->createGroup(userId, requestId, DM_PKG_NAME.c_str(), jsonObj.dum… in CreateGroup() 131 nlohmann::json jsonObj; in IsGroupCreated() local 132 jsonObj[FIELD_GROUP_NAME] = groupName.c_str(); in IsGroupCreated() [all …]
|
/foundation/distributedhardware/devicemanager/ext/mini/services/devicemanagerservice/src/auth/ |
D | hichain_connector.cpp | 129 nlohmann::json jsonObj; in CreateGroup() local 130 jsonObj[FIELD_GROUP_TYPE] = GROUP_TYPE_PEER_TO_PEER_GROUP; in CreateGroup() 131 jsonObj[FIELD_DEVICE_ID] = sLocalDeviceID; in CreateGroup() 132 jsonObj[FIELD_GROUP_NAME] = groupName; in CreateGroup() 133 jsonObj[FIELD_USER_TYPE] = 0; in CreateGroup() 134 jsonObj[FIELD_GROUP_VISIBILITY] = GROUP_VISIBILITY_PUBLIC; in CreateGroup() 135 jsonObj[FIELD_EXPIRE_TIME] = FIELD_EXPIRE_TIME_VALUE; in CreateGroup() 142 …ret = deviceGroupManager_->createGroup(userId, requestId, DEVICE_MANAGER_APP.c_str(), jsonObj.dump… in CreateGroup() 153 nlohmann::json jsonObj; in IsGroupCreated() local 154 jsonObj[FIELD_GROUP_NAME] = groupName.c_str(); in IsGroupCreated() [all …]
|
/foundation/aafwk/standard/test/systemtest/common/fms/fms_performance_test/ |
D | performance_config_parser.h | 43 nlohmann::json jsonObj; in ParseForPerformance() local 44 jf >> jsonObj; in ParseForPerformance() 45 const auto &jsonObjEnd = jsonObj.end(); in ParseForPerformance() 46 if (jsonObj.find(PERFORMANCE_EXECUTION_TIMES_KEY) != jsonObjEnd) { in ParseForPerformance() 47 jsonObj.at(PERFORMANCE_EXECUTION_TIMES_KEY).get_to(stlevel.executionTimesLevel); in ParseForPerformance()
|
/foundation/distributeddatamgr/distributeddatamgr/services/distributeddataservice/framework/serializable/ |
D | serializable.cpp | 28 json jsonObj = json::parse(jsonStr, nullptr, false); in Unmarshall() local 29 if (jsonObj.is_discarded()) { in Unmarshall() 34 … jsonObj = json::parse(jsonStr.substr(1), nullptr, false); // drop first char to adapt A's value; in Unmarshall() 35 if (jsonObj.is_discarded()) { in Unmarshall() 39 return Unmarshal(jsonObj); in Unmarshall() 44 json jsonObj = json::parse(jsonStr, nullptr, false); in ToJson() local 45 if (jsonObj.is_discarded()) { in ToJson() 50 … jsonObj = json::parse(jsonStr.substr(1), nullptr, false); // drop first char to adapt A's value; in ToJson() 51 if (jsonObj.is_discarded()) { in ToJson() 55 return jsonObj; in ToJson()
|
/foundation/aafwk/standard/test/systemtest/common/fms/fms_self_starting_test/ |
D | self_starting_test_config_parser.h | 46 nlohmann::json jsonObj; in ParseForSelfStartingTest() local 47 jf >> jsonObj; in ParseForSelfStartingTest() 48 const auto &jsonObjEnd = jsonObj.end(); in ParseForSelfStartingTest() 49 if (jsonObj.find(STRESS_TEST_EXECUTION_TIMES_KEY) != jsonObjEnd) { in ParseForSelfStartingTest() 50 jsonObj.at(STRESS_TEST_EXECUTION_TIMES_KEY).get_to(selfStarting.addFormStatus); in ParseForSelfStartingTest() 53 if (jsonObj.find(STRESS_TEST_SLEEP_TIME_KEY) != jsonObjEnd) { in ParseForSelfStartingTest() 54 jsonObj.at(STRESS_TEST_SLEEP_TIME_KEY).get_to(selfStarting.deleteFormStatus); in ParseForSelfStartingTest() 57 if (jsonObj.find(STRESS_TEST_COMPARE_TIME_KEY) != jsonObjEnd) { in ParseForSelfStartingTest() 58 jsonObj.at(STRESS_TEST_COMPARE_TIME_KEY).get_to(selfStarting.compareStatus); in ParseForSelfStartingTest()
|
/foundation/aafwk/standard/test/systemtest/common/fms/fms_fuzz_test/include/ |
D | fuzz_test_config_parser.h | 44 nlohmann::json jsonObj; in ParseForFuzzTest() local 45 std::ifstream(path) >> jsonObj; in ParseForFuzzTest() 47 for (auto it = jsonObj.begin(); it != jsonObj.end(); ++it) { in ParseForFuzzTest()
|
/foundation/resourceschedule/resource_schedule_service/cgroup_sched/framework/process_group/src/ |
D | cgroup_map.cpp | 56 bool CgroupMap::loadConfigFromJsonObj(const Json::Value& jsonObj) in loadConfigFromJsonObj() argument 58 const Json::Value& jsonArrObj = jsonObj[JSON_KEY_CGROUPS]; in loadConfigFromJsonObj() 109 const Json::Value& jsonObj = cgroupObj[JSON_KEY_SCHED_POLICY][string]; in CheckCgroupJsonConfig() local 110 if (jsonObj.isNull() || !jsonObj.isString()) { in CheckCgroupJsonConfig()
|
/foundation/distributedhardware/distributedhardwarefwk/services/distributedhardwarefwkservice/src/ |
D | distributed_hardware_stub.cpp | 60 nlohmann::json jsonObj; in ToJson() local 65 jsonObj[DH_COMPONENT_VERSIONS].emplace_back(json); in ToJson() 67 return jsonObj.dump(); in ToJson()
|
/foundation/distributedhardware/distributedhardwarefwk/services/distributedhardwarefwkserviceimpl/src/resourcemanager/ |
D | capability_info.cpp | 111 nlohmann::json jsonObj = nlohmann::json::parse(jsonStr); in FromJsonString() local 112 FromJson(jsonObj, *this); in FromJsonString() 118 nlohmann::json jsonObj; in ToJsonString() local 119 ToJson(jsonObj, *this); in ToJsonString() 120 return jsonObj.dump(); in ToJsonString()
|
/foundation/communication/netstack/frameworks/js/builtin/http_request/ |
D | http_async_callback.cpp | 77 …std::unique_ptr<JSIVal, decltype(&JSI::ReleaseValue)> jsonObj(JSI::JsonParse(responseData.GetData(… in ResponseDataToJsValue() local 79 …if (jsonObj != nullptr && !JSI::ValueIsUndefined(jsonObj.get()) && JSI::ValueIsObject(jsonObj.get(… in ResponseDataToJsValue() 80 JSI::SetNamedProperty(object, HttpConstant::KEY_HTTP_RESPONSE_DATA, jsonObj.get()); in ResponseDataToJsValue()
|
/foundation/distributedhardware/devicemanager/ext/mini/services/devicemanagerservice/include/message/ |
D | msg_response_auth.h | 36 void Encode(nlohmann::json &jsonObj); 37 int32_t Decode(nlohmann::json &jsonObj);
|
/foundation/distributedhardware/distributedhardwarefwk/services/distributedhardwarefwkserviceimpl/src/ |
D | distributed_hardware_proxy.cpp | 61 void from_json(const nlohmann::json &jsonObj, std::unordered_map<DHType, std::string> &versionMap) in from_json() argument 63 for (const auto &item : jsonObj.value(DH_COMPONENT_VERSIONS, nlohmann::json {})) { in from_json()
|
/foundation/distributeddatamgr/distributeddatamgr/services/distributeddataservice/app/src/ |
D | kvstore_meta_manager.cpp | 600 json jsonObj = json::parse(jsonStr, nullptr, false); in GetSecretKeyFromMeta() local 601 if (jsonObj.is_discarded()) { in GetSecretKeyFromMeta() 605 SecretKeyMetaData sKeyValue(jsonObj); in GetSecretKeyFromMeta() 726 auto jsonObj = json::parse(jsonStr, nullptr, false); in SaveStrategyMetaEnable() local 727 if (jsonObj.is_discarded()) { in SaveStrategyMetaEnable() 731 jsonObj[CAPABILITY_ENABLED] = enable; in SaveStrategyMetaEnable() 732 std::string json = jsonObj.dump(); in SaveStrategyMetaEnable() 932 auto jsonObj = json::parse(jsonStr, nullptr, false); in GetStategyMeta() local 933 if (jsonObj.is_discarded()) { in GetStategyMeta() 934 jsonObj = json::parse(jsonStr.substr(1), nullptr, false); // 1 drop for a in GetStategyMeta() [all …]
|
/foundation/ace/ace_engine/frameworks/bridge/declarative_frontend/engine/quickjs/ |
D | qjs_types.cpp | 184 JSValue jsonObj = JS_ParseJSON(ctx, value, strlen(value), ""); in ToJsonObject() local 185 return QJSRef<QJSValue>::Make(jsonObj); in ToJsonObject() 191 JSValue jsonObj = JS_ParseJSON(ctx, value, strlen(value), ""); in SetPropertyJsonObject() local 192 JS_SetPropertyStr(ctx, GetHandle(), prop, jsonObj); in SetPropertyJsonObject()
|
/foundation/resourceschedule/resource_schedule_service/cgroup_sched/framework/process_group/include/ |
D | cgroup_map.h | 37 bool loadConfigFromJsonObj(const Json::Value& jsonObj);
|
/foundation/distributedhardware/devicemanager/ext/mini/interfaces_mini/kits/js/src/ |
D | native_devicemanager_js.cpp | 519 nlohmann::json jsonObj; in JsToDmAppImageInfoAndDmExtra() local 520 jsonObj[AUTH_TYPE] = authType; in JsToDmAppImageInfoAndDmExtra() 523 JsToJsonObject(object, "extraInfo", jsonObj); in JsToDmAppImageInfoAndDmExtra() 524 extra = jsonObj.dump(); in JsToDmAppImageInfoAndDmExtra() 565 const std::string &fieldStr, nlohmann::json &jsonObj) in JsToJsonObject() argument 591 jsonObj[strProName] = natValue; in JsToJsonObject() 597 jsonObj[strProName] = elementValue; in JsToJsonObject() 603 jsonObj[strProName] = elementValue; in JsToJsonObject() 618 nlohmann::json jsonObj; in JsToDmAuthInfo() local 619 jsonObj[AUTH_TYPE] = authType; in JsToDmAuthInfo() [all …]
|
/foundation/distributedhardware/devicemanager/interfaces/kits/js_mini/src/ |
D | native_devicemanager_js.cpp | 547 nlohmann::json jsonObj; in JsToDmAppImageInfoAndDmExtra() local 548 jsonObj[AUTH_TYPE] = authType; in JsToDmAppImageInfoAndDmExtra() 551 JsToJsonObject(object, "extraInfo", jsonObj); in JsToDmAppImageInfoAndDmExtra() 552 extra = jsonObj.dump(); in JsToDmAppImageInfoAndDmExtra() 590 const std::string &fieldStr, nlohmann::json &jsonObj) in JsToJsonObject() argument 614 jsonObj[strProName] = natValue; in JsToJsonObject() 619 jsonObj[strProName] = elementValue; in JsToJsonObject() 624 jsonObj[strProName] = elementValue; in JsToJsonObject() 639 nlohmann::json jsonObj; in JsToDmAuthInfo() local 640 jsonObj[AUTH_TYPE] = authType; in JsToDmAuthInfo() [all …]
|
/foundation/distributedhardware/devicemanager/ext/mini/services/devicemanagerservice/src/requestauth/ |
D | response_session.cpp | 327 nlohmann::json jsonObj; in CancelDisplay() local 328 jsonObj[CANCEL_DISPLAY_KEY] = CANCEL_PICODE_DISPLAY; in CancelDisplay() 329 std::string paramJson = jsonObj.dump(); in CancelDisplay()
|