/foundation/communication/netstack/frameworks/js/napi/socket/async_context/src/ |
D | tcp_send_context.cpp | 81 napi_value jsData = NapiUtils::GetNamedProperty(GetEnv(), udpSendOptions, KEY_DATA); in GetData() local 82 if (NapiUtils::GetValueType(GetEnv(), jsData) == napi_string) { in GetData() 83 std::string data = NapiUtils::GetStringFromValueUtf8(GetEnv(), jsData); in GetData() 92 if (NapiUtils::ValueIsArrayBuffer(GetEnv(), jsData)) { in GetData() 94 void *data = NapiUtils::GetInfoFromArrayBufferValue(GetEnv(), jsData, &length); in GetData()
|
D | tcp_server_send_context.cpp | 93 napi_value jsData = NapiUtils::GetNamedProperty(GetEnv(), udpSendOptions, KEY_DATA); in GetData() local 94 if (NapiUtils::GetValueType(GetEnv(), jsData) == napi_string) { in GetData() 95 std::string data = NapiUtils::GetStringFromValueUtf8(GetEnv(), jsData); in GetData() 104 if (NapiUtils::ValueIsArrayBuffer(GetEnv(), jsData)) { in GetData() 106 void *data = NapiUtils::GetInfoFromArrayBufferValue(GetEnv(), jsData, &length); in GetData()
|
D | udp_send_context.cpp | 102 napi_value jsData = NapiUtils::GetNamedProperty(GetEnv(), udpSendOptions, KEY_DATA); in GetData() local 103 if (NapiUtils::GetValueType(GetEnv(), jsData) == napi_string) { in GetData() 104 std::string data = NapiUtils::GetStringFromValueUtf8(GetEnv(), jsData); in GetData() 113 if (NapiUtils::ValueIsArrayBuffer(GetEnv(), jsData)) { in GetData() 115 void *data = NapiUtils::GetInfoFromArrayBufferValue(GetEnv(), jsData, &length); in GetData()
|
/foundation/arkui/ace_engine/interfaces/napi/kits/plugincomponent/ |
D | js_plugin_callback.cpp | 107 … napi_value jsData = AceGetPropertyValueByPropertyName(cbInfo_.env, jsObject, "data", napi_object); in SendRequestEventResult() local 124 if (jsData != nullptr) { in SendRequestEventResult() 125 AceKVObjectToString(cbInfo_.env, jsData, data->strDate); in SendRequestEventResult() 169 napi_value jsData = AceStringToKVObject(cbInfo_.env, dataTmp); in MakeCallbackParamForRequest() local 172 if (jsData != nullptr) { in MakeCallbackParamForRequest() 175 if (jsData != nullptr) { in MakeCallbackParamForRequest() 176 AceSetPropertyValueByPropertyName(cbInfo_.env, jsObject, "data", jsData); in MakeCallbackParamForRequest()
|
D | js_plugin_component.cpp | 395 napi_value jsData = AceStringToKVObject(env, dataTmp); in MakeCallbackParamForRequest() local 398 if (jsData != nullptr) { in MakeCallbackParamForRequest() 402 if (jsData != nullptr) { in MakeCallbackParamForRequest() 404 AceSetPropertyValueByPropertyName(env, jsObject, "data", jsData); in MakeCallbackParamForRequest()
|
/foundation/arkui/napi/test/unittest/ |
D | test_napi_threadsafe.cpp | 164 CallJsCbData_t *jsData = reinterpret_cast<CallJsCbData_t*>(hint); in TsFuncFinalJoinThread() local 168 if (jsData->secondaryThread) { in TsFuncFinalJoinThread() 286 CallJsCbData_t* jsData = nullptr; in TsFuncDataSourceThreadMulti() local 287 jsData = (CallJsCbData_t*)context; in TsFuncDataSourceThreadMulti() 289 if (jsData->secondaryThread) { in TsFuncDataSourceThreadMulti() 303 status = napi_call_threadsafe_function(func, &g_sendDatas[index], jsData->blockOnFull); in TsFuncDataSourceThreadMulti()
|
/foundation/arkui/napi/sample/native_module_systemtest/ |
D | test_napi.cpp | 68 static CallJsCbData jsData; variable 388 CallJsCbData* jsData = nullptr; in ThreadSafeCallJs() local 389 jsData = (CallJsCbData*)context; in ThreadSafeCallJs() 390 GTEST_LOG_(INFO) << "jsData->id is" << jsData->id; in ThreadSafeCallJs() 391 EXPECT_EQ(jsData->id, CALL_JSCB_DATA); in ThreadSafeCallJs() 405 CallJsCbData* jsData = nullptr; in Threadfinalcb() local 406 jsData = (CallJsCbData*)context; in Threadfinalcb() 407 GTEST_LOG_(INFO) << "jsData->id" << jsData->id; in Threadfinalcb() 408 EXPECT_EQ(jsData->id, CALL_JSCB_DATA); in Threadfinalcb() 6833 jsData.id = CALL_JSCB_DATA; [all …]
|
/foundation/communication/ipc/ipc/native/src/napi_common/source/ |
D | napi_remote_object.cpp | 562 napi_value jsData; in OnJsRemoteRequest() local 578 napi_new_instance(param->env, jsParcelConstructor, argc3, argv3, &jsData); in OnJsRemoteRequest() 579 if (jsData == nullptr) { in OnJsRemoteRequest() 619 napi_value argv2[] = { jsCode, jsData, jsReply, jsOption }; in OnJsRemoteRequest()
|
/foundation/arkui/ace_engine/frameworks/bridge/js_frontend/engine/jsi/ |
D | jsi_offscreen_canvas_bridge.cpp | 1535 auto jsData = argv[0]->GetProperty(runtime, "data"); in ParseImageData() local 1536 auto jsDataStr = jsData->ToString(runtime); in ParseImageData()
|
D | jsi_canvas_bridge.cpp | 1702 auto jsData = argv[0]->GetProperty(runtime, "data"); in ParseImageData() local 1703 auto jsDataStr = jsData->ToString(runtime); in ParseImageData()
|