Home
last modified time | relevance | path

Searched refs:tmpJson (Results 1 – 13 of 13) sorted by relevance

/ohos5.0/foundation/distributedhardware/distributed_input/services/source/sourcemanager/src/
H A Ddinput_source_listener.cpp68 nlohmann::json tmpJson; in OnResponseRegisterDistributedHardware() local
95 nlohmann::json tmpJson; in OnResponsePrepareRemoteInput() local
122 nlohmann::json tmpJson; in OnResponseUnprepareRemoteInput() local
146 nlohmann::json tmpJson; in OnResponseRelayPrepareRemoteInput() local
172 nlohmann::json tmpJson; in OnResponseRelayUnprepareRemoteInput() local
203 nlohmann::json tmpJson; in OnResponseStartRemoteInput() local
230 nlohmann::json tmpJson; in OnResponseStopRemoteInput() local
264 nlohmann::json tmpJson; in OnResponseStartRemoteInputDhid() local
292 nlohmann::json tmpJson; in OnResponseStopRemoteInputDhid() local
318 nlohmann::json tmpJson; in OnResponseKeyState() local
[all …]
H A Ddistributed_input_source_manager.cpp193 nlohmann::json tmpJson; in Release() local
194tmpJson[INPUT_SOURCEMANAGER_KEY_RESULT] = static_cast<int32_t>(DInputServerType::NULL_SERVER_TYPE); in Release()
195 jsonArrayMsg->push_back(tmpJson); in Release()
340 nlohmann::json tmpJson; in handleStartServerCallback() local
341tmpJson[INPUT_SOURCEMANAGER_KEY_RESULT] = static_cast<int32_t>(DInputServerType::NULL_SERVER_TYPE); in handleStartServerCallback()
342 jsonArrayMsg->push_back(tmpJson); in handleStartServerCallback()
418 nlohmann::json tmpJson; in DeleteInputDeviceNodeInfo() local
419 tmpJson[INPUT_SOURCEMANAGER_KEY_DEVID] = devId; in DeleteInputDeviceNodeInfo()
420 tmpJson[INPUT_SOURCEMANAGER_KEY_HWID] = dhId; in DeleteInputDeviceNodeInfo()
421 tmpJson[INPUT_SOURCEMANAGER_KEY_RESULT] = true; in DeleteInputDeviceNodeInfo()
[all …]
/ohos5.0/foundation/distributedhardware/distributed_input/inputdevicehandler/src/
H A Ddistributed_input_handler.cpp60 nlohmann::json tmpJson; in StructTransJson() local
61 tmpJson[DEVICE_NAME] = pBuf.name; in StructTransJson()
64 tmpJson[BUS] = pBuf.bus; in StructTransJson()
65 tmpJson[VENDOR] = pBuf.vendor; in StructTransJson()
66 tmpJson[PRODUCT] = pBuf.product; in StructTransJson()
67 tmpJson[VERSION] = pBuf.version; in StructTransJson()
69 tmpJson[CLASSES] = pBuf.classes; in StructTransJson()
78 tmpJson[LEDS] = pBuf.leds; in StructTransJson()
79 tmpJson[REPEATS] = pBuf.repeats; in StructTransJson()
80 tmpJson[SWITCHS] = pBuf.switchs; in StructTransJson()
[all …]
/ohos5.0/foundation/distributedhardware/distributed_input/services/source/inputinject/src/
H A Ddistributed_input_inject.cpp90 nlohmann::json tmpJson; in StructTransJson() local
91 tmpJson[DEVICE_NAME] = pBuf.name; in StructTransJson()
93 tmpJson[UNIQUE_ID] = pBuf.uniqueId; in StructTransJson()
94 tmpJson[BUS] = pBuf.bus; in StructTransJson()
95 tmpJson[VENDOR] = pBuf.vendor; in StructTransJson()
96 tmpJson[PRODUCT] = pBuf.product; in StructTransJson()
97 tmpJson[VERSION] = pBuf.version; in StructTransJson()
99 tmpJson[CLASSES] = pBuf.classes; in StructTransJson()
102 tmpJson[ABS_TYPES] = pBuf.absTypes; in StructTransJson()
103 tmpJson[ABS_INFOS] = pBuf.absInfos; in StructTransJson()
[all …]
H A Ddistributed_input_node_manager.cpp225 nlohmann::json tmpJson; in NotifyNodeMgrScanVirNode() local
226 tmpJson[INPUT_NODE_DEVID] = devId; in NotifyNodeMgrScanVirNode()
227 tmpJson[INPUT_NODE_DHID] = dhId; in NotifyNodeMgrScanVirNode()
228 jsonArrayMsg->push_back(tmpJson); in NotifyNodeMgrScanVirNode()
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/componentmanager/
H A Dcomponent_privacy.cpp73 cJSON *tmpJson = cJSON_CreateObject(); in HandlePullUpPage() local
74 if (tmpJson == NULL) { in HandlePullUpPage()
81 cJSON_AddStringToObject(tmpJson, PRIVACY_SUBTYPE.c_str(), subtype.c_str()); in HandlePullUpPage()
82 cJSON_AddStringToObject(tmpJson, PRIVACY_NETWORKID.c_str(), networkId.c_str()); in HandlePullUpPage()
83 cJSON_AddItemToArray(jsonArrayMsg, tmpJson); in HandlePullUpPage()
90 cJSON_Delete(tmpJson); in HandlePullUpPage()
102 cJSON *tmpJson = cJSON_CreateObject(); in HandleClosePage() local
103 if (tmpJson == NULL) { in HandleClosePage()
110 cJSON_AddStringToObject(tmpJson, PRIVACY_SUBTYPE.c_str(), subtype.c_str()); in HandleClosePage()
111 cJSON_AddItemToArray(jsonArrayMsg, tmpJson); in HandleClosePage()
[all …]
/ohos5.0/foundation/distributedhardware/distributed_input/services/sink/inputcollector/src/
H A Ddistributed_input_collector.cpp135 nlohmann::json tmpJson; in StartCollectEventsThread() local
136 tmpJson[INPUT_KEY_WHEN] = mEventBuffer[ind].when; in StartCollectEventsThread()
137 tmpJson[INPUT_KEY_TYPE] = mEventBuffer[ind].type; in StartCollectEventsThread()
138 tmpJson[INPUT_KEY_CODE] = mEventBuffer[ind].code; in StartCollectEventsThread()
139 tmpJson[INPUT_KEY_VALUE] = mEventBuffer[ind].value; in StartCollectEventsThread()
140 tmpJson[INPUT_KEY_PATH] = mEventBuffer[ind].path; in StartCollectEventsThread()
141 tmpJson[INPUT_KEY_DESCRIPTOR] = mEventBuffer[ind].descriptor; in StartCollectEventsThread()
142 jsonArrayMsg->push_back(tmpJson); in StartCollectEventsThread()
/ohos5.0/foundation/distributedhardware/distributed_input/interfaces/ipc/test/clientunittest/
H A Ddistributed_input_client_test.cpp49 nlohmann::json tmpJson; in StructTransJson() local
50 tmpJson["name"] = pBuf.name; in StructTransJson()
51 tmpJson["physicalPath"] = pBuf.physicalPath; in StructTransJson()
52 tmpJson["uniqueId"] = pBuf.uniqueId; in StructTransJson()
53 tmpJson["bus"] = pBuf.bus; in StructTransJson()
54 tmpJson["vendor"] = pBuf.vendor; in StructTransJson()
55 tmpJson["product"] = pBuf.product; in StructTransJson()
56 tmpJson["version"] = pBuf.version; in StructTransJson()
57 tmpJson["descriptor"] = pBuf.descriptor; in StructTransJson()
58 tmpJson["classes"] = pBuf.classes; in StructTransJson()
[all …]
/ohos5.0/foundation/ability/form_fwk/test/unittest/fms_form_provider_data_test/
H A Dfms_form_provider_data_test.cpp68 nlohmann::json tmpJson; in InitJsonData() local
69 tmpJson["name"] = "li"; in InitJsonData()
70 tmpJson["age"] = TEN; in InitJsonData()
71 jsonData_["0"] = tmpJson; in InitJsonData()
77 nlohmann::json tmpJson; in InitJsonData2() local
78 tmpJson["name"] = "wang"; in InitJsonData2()
79 tmpJson["age"] = ELEVEN; in InitJsonData2()
80 jsonData_["1"] = tmpJson; in InitJsonData2()
/ohos5.0/foundation/distributedhardware/distributed_input/services/sink/transport/src/
H A Ddistributed_input_sink_transport.cpp266 nlohmann::json tmpJson; in DoSendMsgBatch() local
267 tmpJson[INPUT_KEY_WHEN] = currentTimeNs; in DoSendMsgBatch()
268 tmpJson[INPUT_KEY_TYPE] = ev.type; in DoSendMsgBatch()
269 tmpJson[INPUT_KEY_CODE] = ev.code; in DoSendMsgBatch()
270 tmpJson[INPUT_KEY_VALUE] = ev.value; in DoSendMsgBatch()
271 tmpJson[INPUT_KEY_DESCRIPTOR] = ev.descriptor; in DoSendMsgBatch()
272 tmpJson[INPUT_KEY_PATH] = ev.path; in DoSendMsgBatch()
273 eventsJsonArr->push_back(tmpJson); in DoSendMsgBatch()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/base/
H A Dinspector.cpp645 auto tmpJson = JsonUtil::Create(true); in FillSimplifiedInspectorAttrs() local
648 parent->ToJsonValue(tmpJson, filter); in FillSimplifiedInspectorAttrs()
649 jsonNode->Put(INSPECTOR_ATTR_ID, tmpJson->GetString(INSPECTOR_ATTR_ID).c_str()); in FillSimplifiedInspectorAttrs()
652 if (tmpJson->Contains(INSPECTOR_LABEL)) { in FillSimplifiedInspectorAttrs()
653 jsonObject->Put(INSPECTOR_LABEL, tmpJson->GetString(INSPECTOR_LABEL).c_str()); in FillSimplifiedInspectorAttrs()
655 if (tmpJson->Contains(INSPECTOR_CONTENT)) { in FillSimplifiedInspectorAttrs()
656 jsonObject->Put(INSPECTOR_CONTENT, tmpJson->GetString(INSPECTOR_CONTENT).c_str()); in FillSimplifiedInspectorAttrs()
658 jsonObject->Put(INSPECTOR_ENABLED, tmpJson->GetBool(INSPECTOR_ENABLED)); in FillSimplifiedInspectorAttrs()
659 jsonObject->Put(INSPECTOR_OPACITY, tmpJson->GetDouble(INSPECTOR_OPACITY)); in FillSimplifiedInspectorAttrs()
660 jsonObject->Put(INSPECTOR_ZINDEX, tmpJson->GetInt(INSPECTOR_ZINDEX)); in FillSimplifiedInspectorAttrs()
[all …]
/ohos5.0/foundation/ability/form_fwk/test/unittest/fms_form_provider_data_new_leg_test/
H A Dfms_form_provider_data_new_leg_test.cpp59 nlohmann::json tmpJson; in InitJsonData() local
60 tmpJson["name"] = "li"; in InitJsonData()
61 tmpJson["age"] = AGE; in InitJsonData()
62 jsonData_["0"] = tmpJson; in InitJsonData()
/ohos5.0/foundation/distributedhardware/distributed_input/services/source/sourcemanager/test/sourcemanagerunittest/
H A Ddistributed_input_sourcemanager_test.cpp205 nlohmann::json tmpJson; in StructTransJson() local
206 tmpJson["name"] = pBuf.name; in StructTransJson()
207 tmpJson["physicalPath"] = pBuf.physicalPath; in StructTransJson()
208 tmpJson["uniqueId"] = pBuf.uniqueId; in StructTransJson()
209 tmpJson["bus"] = pBuf.bus; in StructTransJson()
210 tmpJson["vendor"] = pBuf.vendor; in StructTransJson()
211 tmpJson["product"] = pBuf.product; in StructTransJson()
212 tmpJson["version"] = pBuf.version; in StructTransJson()
213 tmpJson["descriptor"] = pBuf.descriptor; in StructTransJson()
214 tmpJson["classes"] = pBuf.classes; in StructTransJson()
[all …]