Home
last modified time | relevance | path

Searched refs:jsData (Results 1 – 10 of 10) sorted by relevance

/foundation/communication/netstack/frameworks/js/napi/socket/async_context/src/
Dtcp_send_context.cpp81 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()
Dtcp_server_send_context.cpp93 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()
Dudp_send_context.cpp102 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/
Djs_plugin_callback.cpp107 … 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()
Djs_plugin_component.cpp395 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/
Dtest_napi_threadsafe.cpp164 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/
Dtest_napi.cpp68 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/
Dnapi_remote_object.cpp562 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/
Djsi_offscreen_canvas_bridge.cpp1535 auto jsData = argv[0]->GetProperty(runtime, "data"); in ParseImageData() local
1536 auto jsDataStr = jsData->ToString(runtime); in ParseImageData()
Djsi_canvas_bridge.cpp1702 auto jsData = argv[0]->GetProperty(runtime, "data"); in ParseImageData() local
1703 auto jsDataStr = jsData->ToString(runtime); in ParseImageData()