Home
last modified time | relevance | path

Searched refs:callResult (Results 1 – 25 of 47) sorted by relevance

12

/foundation/multimodalinput/input/frameworks/napi/input_device/src/
Djs_event_target.cpp426 napi_value callResult = nullptr; in CallKeystrokeAbilityPromise() local
439 callResult = GreateBusinessError(cb->env, cb->errCode, codeMsg.msg); in CallKeystrokeAbilityPromise()
440 if (callResult == nullptr) { in CallKeystrokeAbilityPromise()
445 …CHKRV_SCOPE(cb->env, napi_reject_deferred(cb->env, cb->deferred, callResult), REJECT_DEFERRED, sco… in CallKeystrokeAbilityPromise()
447 CHKRV_SCOPE(cb->env, napi_create_array(cb->env, &callResult), CREATE_ARRAY, scope); in CallKeystrokeAbilityPromise()
454 … CHKRV_SCOPE(cb->env, napi_set_element(cb->env, callResult, static_cast<uint32_t>(i), isSupport), in CallKeystrokeAbilityPromise()
457 …CHKRV_SCOPE(cb->env, napi_resolve_deferred(cb->env, cb->deferred, callResult), RESOLVE_DEFERRED, s… in CallKeystrokeAbilityPromise()
478 napi_value callResult[2] = { 0 }; in CallKeystrokeAbilityAsync() local
491 callResult[0] = GreateBusinessError(cb->env, cb->errCode, codeMsg.msg); in CallKeystrokeAbilityAsync()
492 if (callResult[0] == nullptr) { in CallKeystrokeAbilityAsync()
[all …]
/foundation/barrierfree/accessibility/interfaces/kits/napi/src/
Dnapi_accessibility_config_observer.cpp86 napi_value callResult = nullptr; in NotifyStateChanged() local
90 napi_call_function(callbackInfo->env_, undefined, handler, 1, &jsEvent, &callResult); in NotifyStateChanged()
92 napi_get_value_int32(callbackInfo->env_, callResult, &result); in NotifyStateChanged()
121 napi_value callResult = nullptr; in NotifyPropertyChanged() local
125 napi_call_function(callbackInfo->env_, undefined, handler, 1, &jsEvent, &callResult); in NotifyPropertyChanged()
127 napi_get_value_int32(callbackInfo->env_, callResult, &result); in NotifyPropertyChanged()
156 napi_value callResult = nullptr; in NotifyStringChanged() local
160 napi_call_function(callbackInfo->env_, undefined, handler, 1, &jsEvent, &callResult); in NotifyStringChanged()
164 napi_get_value_string_utf8(callbackInfo->env_, callResult, buf, BUF_SIZE, &result); in NotifyStringChanged()
196 napi_value callResult = nullptr; in NotifyIntChanged() local
[all …]
/foundation/communication/bluetooth/frameworks/js/napi/src/ble/
Dnapi_bluetooth_gatt_server_callback.cpp59 napi_value callResult = nullptr; in OnCharacteristicReadRequest() local
62 … napi_call_function(callbackInfo->env_, undefined, callback, ARGS_SIZE_ONE, &result, &callResult); in OnCharacteristicReadRequest()
103 napi_value callResult = nullptr; in OnCharacteristicWriteRequest() local
106 … napi_call_function(callbackInfo->env_, undefined, callback, ARGS_SIZE_ONE, &result, &callResult); in OnCharacteristicWriteRequest()
165 napi_value callResult = nullptr; in OnConnectionStateUpdate() local
168 … napi_call_function(callbackInfo->env_, undefined, callback, ARGS_SIZE_ONE, &result, &callResult); in OnConnectionStateUpdate()
209 napi_value callResult = nullptr; in OnDescriptorWriteRequest() local
212 … napi_call_function(callbackInfo->env_, undefined, callback, ARGS_SIZE_ONE, &result, &callResult); in OnDescriptorWriteRequest()
253 napi_value callResult = nullptr; in OnDescriptorReadRequest() local
256 … napi_call_function(callbackInfo->env_, undefined, callback, ARGS_SIZE_ONE, &result, &callResult); in OnDescriptorReadRequest()
[all …]
Dnapi_bluetooth_gatt_client_callback.cpp137 napi_value callResult = nullptr; in OnMtuUpdate() local
140 … napi_call_function(callbackInfo->env_, undefined, callback, ARGS_SIZE_ONE, &result, &callResult); in OnMtuUpdate()
/foundation/communication/bluetooth/frameworks/js/napi/src/
Dnapi_bluetooth_opp_observer.cpp52 napi_value callResult = nullptr; in OnReceiveIncomingFileChanged() local
55 … napi_call_function(callbackInfo->env_, undefined, callback, ARGS_SIZE_ONE, &result, &callResult); in OnReceiveIncomingFileChanged()
93 napi_value callResult = nullptr; in OnTransferStateChanged() local
96 … napi_call_function(callbackInfo->env_, undefined, callback, ARGS_SIZE_ONE, &result, &callResult); in OnTransferStateChanged()
Dnapi_bluetooth_pbap_pse_observer.cpp49 napi_value callResult = nullptr; in OnServiceConnectionStateChanged() local
52 … napi_call_function(callbackInfo->env_, undefined, callback, ARGS_SIZE_ONE, &result, &callResult); in OnServiceConnectionStateChanged()
Dnapi_bluetooth_pbap_pce_observer.cpp51 napi_value callResult = nullptr; in OnServiceConnectionStateChanged() local
54 … napi_call_function(callbackInfo->env_, undefined, callback, ARGS_SIZE_ONE, &result, &callResult); in OnServiceConnectionStateChanged()
/foundation/communication/bluetooth/frameworks/js/napi/src/hid/
Dnapi_bluetooth_hid_host_observer.cpp57 napi_value callResult = nullptr; in OnConnectionStateChanged() local
60 … napi_call_function(callbackInfo->env_, undefined, callback, ARGS_SIZE_ONE, &result, &callResult); in OnConnectionStateChanged()
/foundation/communication/bluetooth/frameworks/js/napi/src/pan/
Dnapi_bluetooth_pan_observer.cpp54 napi_value callResult = nullptr; in OnConnectionStateChanged() local
57 … napi_call_function(callbackInfo->env_, undefined, callback, ARGS_SIZE_ONE, &result, &callResult); in OnConnectionStateChanged()
/foundation/communication/bluetooth/frameworks/js/napi/src/connection/
Dnapi_bluetooth_connection_observer.cpp72 napi_value callResult = 0; in UvQueueWorkOnDiscoveryResult() local
80 napi_call_function(callbackData->env, undefined, callback, ARGS_SIZE_ONE, &result, &callResult); in UvQueueWorkOnDiscoveryResult()
222 napi_value callResult = 0; in UvQueueWorkOnPairConfirmedCallBack() local
239 napi_call_function(callbackData->env, undefined, callback, ARGS_SIZE_ONE, &result, &callResult); in UvQueueWorkOnPairConfirmedCallBack()
Dnapi_bluetooth_remote_device_observer.cpp46 napi_value callResult = 0; in UvQueueWorkOnPairStatusChanged() local
59 napi_call_function(callbackData->env, undefined, callback, ARGS_SIZE_ONE, &result, &callResult); in UvQueueWorkOnPairStatusChanged()
/foundation/distributedhardware/device_manager/interfaces/kits/js4.0/src/
Ddm_native_event.cpp106 napi_value callResult = nullptr; in OnEvent() local
107 status = napi_call_function(env_, thisVar, handler, argc, argv, &callResult); in OnEvent()
/foundation/distributedhardware/device_manager/interfaces/kits/js/src/
Ddm_native_event.cpp106 napi_value callResult = nullptr; in OnEvent() local
107 status = napi_call_function(env_, thisVar, handler, argc, argv, &callResult); in OnEvent()
/foundation/communication/bluetooth/frameworks/js/napi/src/access/
Dnapi_bluetooth_access_observer.cpp45 napi_value callResult = 0; in UvQueueWorkOnStateChanged() local
51 napi_call_function(callbackData->env, undefined, callback, ARGS_SIZE_ONE, &result, &callResult); in UvQueueWorkOnStateChanged()
Dnapi_bluetooth_access.cpp236 napi_value callResult = 0; in CheckAccessDeregisterObserver() local
241 … napi_call_function(pCallbackInfo->env_, undefined, callback, ARGS_SIZE_ONE, &result, &callResult); in CheckAccessDeregisterObserver()
/foundation/arkui/ace_engine_lite/frameworks/src/core/router/test/unittest/common/
Drouter_module_tdd_test.cpp413 JSIValue callResult = RouterModule::Replace(thisVal, args, argsNum); variable
417 EXPECT_TRUE(JSI::ValueIsError(callResult));
418 JSI::ReleaseValue(callResult);
/foundation/communication/bluetooth/frameworks/js/napi/src/socket/
Dnapi_bluetooth_spp_server.cpp148 napi_value callResult = 0; in SppListen() local
167 napi_call_function(env, undefined, callback, ARGS_SIZE_TWO, result, &callResult); in SppListen()
261 napi_value callResult = 0; in SppAccept() local
277 napi_call_function(env, undefined, callback, ARGS_SIZE_TWO, result, &callResult); in SppAccept()
Dnapi_bluetooth_spp_client.cpp137 napi_value callResult = 0; in SppConnect() local
159 napi_call_function(env, undefined, callback, ARGS_SIZE_TWO, result, &callResult); in SppConnect()
278 napi_value callResult = nullptr; in NapiThreadSafeFuncCallJs() local
280 …napi_call_function(callbackInfo->env_, undefined, jsCallback, ARGS_SIZE_ONE, &result, &callResult); in NapiThreadSafeFuncCallJs()
/foundation/multimodalinput/input/frameworks/napi/short_key/src/
Djs_short_key_manager.cpp134 napi_value callResult = nullptr; in AsyncCallbackWork() local
135 … CHKRV(napi_call_function(env, nullptr, callback, size, results, &callResult), CALL_FUNCTION); in AsyncCallbackWork()
/foundation/ability/ability_runtime/frameworks/js/napi/mission_manager/
Ddistributed_mission_manager.cpp301 napi_value callResult; in StartSyncRemoteMissionsAsyncWork() local
302 napi_call_function(env, nullptr, callback, ARGS_TWO, &result[0], &callResult); in StartSyncRemoteMissionsAsyncWork()
373 napi_value callResult; in StopSyncRemoteMissionsAsyncWork() local
374 napi_call_function(env, nullptr, callback, ARGS_TWO, &result[0], &callResult); in StopSyncRemoteMissionsAsyncWork()
519 napi_value callResult; in ReturnValueToApplication() local
520 napi_call_function(env, nullptr, callback, ARGS_TWO, &result[0], &callResult); in ReturnValueToApplication()
1060 napi_value callResult = nullptr; in UvWorkNotifyMissionChanged() local
1064 …_call_function(registerMissionCB->cbBase.cbInfo.env, undefined, callback, 1, &result, &callResult); in UvWorkNotifyMissionChanged()
1109 napi_value callResult = nullptr; in UvWorkOnCallback() local
1112 …l_function(onCB->cbBase.cbInfo.env, undefined, callback, ARGS_ONE, &result[ARGS_TWO], &callResult); in UvWorkOnCallback()
[all …]
/foundation/communication/bluetooth/frameworks/js/napi/src/common/
Dnapi_bluetooth_event.cpp48 napi_value callResult = nullptr; in EventNotify() local
54 &result, &callResult); in EventNotify()
/foundation/ability/ability_runtime/frameworks/native/ability/native/
Djs_service_extension.cpp310 bool callResult = false; in OnConnect() local
330 callResult = true; in OnConnect()
333 if (!callResult) { in OnConnect()
363 bool callResult = CallPromise(result, callbackInfo); in OnDisconnect() local
364 if (!callResult) { in OnDisconnect()
/foundation/ability/form_fwk/frameworks/js/napi/form_host/
Djs_form_state_observer.cpp67 napi_value callResult; in ProcessFormAdd() local
71 … napi_call_function(sharedThis->env_, nullptr, myCallback, ARGS_ONE, &callbackValues, &callResult); in ProcessFormAdd()
114 napi_value callResult; in ProcessFormRemove() local
118 … napi_call_function(sharedThis->env_, nullptr, myCallback, ARGS_ONE, &callbackValues, &callResult); in ProcessFormRemove()
/foundation/ability/ability_runtime/frameworks/js/napi/featureAbility/
Dnapi_data_ability_helper.cpp401 napi_value callResult = nullptr; in InsertAsyncCompleteCB() local
407 …RN_VOID(env, napi_call_function(env, undefined, callback, ARGS_TWO, &result[PARAM0], &callResult)); in InsertAsyncCompleteCB()
614 napi_value callResult = nullptr; in NotifyChangeAsyncCompleteCB() local
627 …RN_VOID(env, napi_call_function(env, undefined, callback, ARGS_TWO, &result[PARAM0], &callResult)); in NotifyChangeAsyncCompleteCB()
1128 napi_value callResult = nullptr; in CallJsMethod() local
1130 napi_call_function(env_, undefined, callback, ARGS_TWO, &result[PARAM0], &callResult); in CallJsMethod()
1323 napi_value callResult = nullptr; in GetTypeAsyncCompleteCB() local
1330 …RN_VOID(env, napi_call_function(env, undefined, callback, ARGS_TWO, &result[PARAM0], &callResult)); in GetTypeAsyncCompleteCB()
1504 napi_value callResult = nullptr; in GetFileTypesAsyncCompleteCB() local
1512 …RN_VOID(env, napi_call_function(env, undefined, callback, ARGS_TWO, &result[PARAM0], &callResult)); in GetFileTypesAsyncCompleteCB()
[all …]
/foundation/ability/form_fwk/frameworks/js/napi/formProvider/
Dnapi_form_provider.cpp58 napi_value callResult; in ExecuteAsyncCallbackWork() local
60 napi_call_function(env, nullptr, callback, ARGS_SIZE_TWO, callbackValues, &callResult); in ExecuteAsyncCallbackWork()
220 napi_value callResult; in RequestPublishFormCallback() local
221 … napi_call_function(env, nullptr, callback, ARGS_SIZE_TWO, callbackValues, &callResult); in RequestPublishFormCallback()

12