/foundation/multimodalinput/input/frameworks/napi/input_device/src/ |
D | js_event_target.cpp | 426 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/ |
D | napi_accessibility_config_observer.cpp | 86 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/ |
D | napi_bluetooth_gatt_server_callback.cpp | 59 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 …]
|
D | napi_bluetooth_gatt_client_callback.cpp | 137 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/ |
D | napi_bluetooth_opp_observer.cpp | 52 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()
|
D | napi_bluetooth_pbap_pse_observer.cpp | 49 napi_value callResult = nullptr; in OnServiceConnectionStateChanged() local 52 … napi_call_function(callbackInfo->env_, undefined, callback, ARGS_SIZE_ONE, &result, &callResult); in OnServiceConnectionStateChanged()
|
D | napi_bluetooth_pbap_pce_observer.cpp | 51 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/ |
D | napi_bluetooth_hid_host_observer.cpp | 57 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/ |
D | napi_bluetooth_pan_observer.cpp | 54 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/ |
D | napi_bluetooth_connection_observer.cpp | 72 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()
|
D | napi_bluetooth_remote_device_observer.cpp | 46 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/ |
D | dm_native_event.cpp | 106 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/ |
D | dm_native_event.cpp | 106 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/ |
D | napi_bluetooth_access_observer.cpp | 45 napi_value callResult = 0; in UvQueueWorkOnStateChanged() local 51 napi_call_function(callbackData->env, undefined, callback, ARGS_SIZE_ONE, &result, &callResult); in UvQueueWorkOnStateChanged()
|
D | napi_bluetooth_access.cpp | 236 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/ |
D | router_module_tdd_test.cpp | 413 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/ |
D | napi_bluetooth_spp_server.cpp | 148 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()
|
D | napi_bluetooth_spp_client.cpp | 137 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/ |
D | js_short_key_manager.cpp | 134 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/ |
D | distributed_mission_manager.cpp | 301 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/ |
D | napi_bluetooth_event.cpp | 48 napi_value callResult = nullptr; in EventNotify() local 54 &result, &callResult); in EventNotify()
|
/foundation/ability/ability_runtime/frameworks/native/ability/native/ |
D | js_service_extension.cpp | 310 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/ |
D | js_form_state_observer.cpp | 67 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/ |
D | napi_data_ability_helper.cpp | 401 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/ |
D | napi_form_provider.cpp | 58 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()
|