Home
last modified time | relevance | path

Searched refs:PARAM0 (Results 1 – 25 of 92) sorted by relevance

1234

/foundation/barrierfree/accessibility/interfaces/kits/napi/accessibility_extension_module_loader/src/
Dnapi_accessibility_extension_context.cpp83 if (info.argv[PARAM0] != nullptr && info.argv[PARAM1] != nullptr && in GetLastParamForTwo()
84 … info.argv[PARAM0]->TypeOf() == NATIVE_BOOLEAN && info.argv[PARAM1]->TypeOf() == NATIVE_FUNCTION) { in GetLastParamForTwo()
85 lastParam = ConvertFromJsValue(engine, info.argv[PARAM0], isAccessibilityFocus) ? in GetLastParamForTwo()
90 } else if (info.argv[PARAM0] != nullptr && info.argv[PARAM0]->TypeOf() == NATIVE_FUNCTION) { in GetLastParamForTwo()
92 lastParam = info.argv[PARAM0]; in GetLastParamForTwo()
93 } else if (info.argv[PARAM0] != nullptr && info.argv[PARAM0]->TypeOf() == NATIVE_BOOLEAN) { in GetLastParamForTwo()
96 ConvertFromJsValue(engine, info.argv[PARAM0], isAccessibilityFocus); in GetLastParamForTwo()
166 reinterpret_cast<napi_value>(info.argv[PARAM0]), targetBundleNames)) { in OnSetTargetBundleName()
227 if (info.argv[PARAM0] != nullptr && info.argv[PARAM0]->TypeOf() == NATIVE_FUNCTION) { in OnGetFocusElement()
228 lastParam = info.argv[PARAM0]; in OnGetFocusElement()
[all …]
/foundation/multimedia/player_framework/frameworks/js/ringtone_manager/src/
Dsystem_sound_manager_napi.cpp32 const int32_t PARAM0 = 0; variable
268 napi_get_undefined(env, &result[PARAM0]); in SetSysRngUriAsyncCallbackComp()
272 napi_create_error(env, nullptr, message, &result[PARAM0]); in SetSysRngUriAsyncCallbackComp()
279 napi_reject_deferred(env, context->deferred, result[PARAM0]); in SetSysRngUriAsyncCallbackComp()
319 for (size_t i = PARAM0; i < argc; i++) { in SetSystemRingtoneUri()
322 if (i == PARAM0) { in SetSystemRingtoneUri()
377 napi_get_undefined(env, &result[PARAM0]); in GetSysRngUriAsyncCallbackComp()
382 napi_create_error(env, nullptr, message, &result[PARAM0]); in GetSysRngUriAsyncCallbackComp()
390 napi_reject_deferred(env, context->deferred, result[PARAM0]); in GetSysRngUriAsyncCallbackComp()
425 for (size_t i = PARAM0; i < argc; i++) { in GetSystemRingtoneUri()
[all …]
Dringtone_player_napi.cpp27 const int32_t PARAM0 = 0; variable
177 napi_get_undefined(env, &result[PARAM0]); in CommonAsyncCallbackComp()
181 napi_create_error(env, nullptr, message, &result[PARAM0]); in CommonAsyncCallbackComp()
188 napi_reject_deferred(env, context->deferred, result[PARAM0]); in CommonAsyncCallbackComp()
209 napi_get_undefined(env, &result[PARAM0]); in GetTitleAsyncCallbackComplete()
214 napi_create_error(env, nullptr, message, &result[PARAM0]); in GetTitleAsyncCallbackComplete()
222 napi_reject_deferred(env, context->deferred, result[PARAM0]); in GetTitleAsyncCallbackComplete()
258 napi_typeof(env, argv[PARAM0], &valueType); in GetTitle()
260 napi_create_reference(env, argv[PARAM0], refCount, &asyncContext->callbackRef); in GetTitle()
302 napi_get_undefined(env, &result[PARAM0]); in AudioRendererInfoAsyncCallbackComplete()
[all …]
/foundation/multimedia/audio_framework/frameworks/js/napi/toneplayer/src/
Dtoneplayer_napi.cpp45 const int PARAM0 = 0; variable
169 napi_get_undefined(env, &result[PARAM0]); in CommonCallbackRoutine()
179 napi_create_error(env, code, message, &result[PARAM0]); in CommonCallbackRoutine()
187 napi_reject_deferred(env, asyncContext->deferred, result[PARAM0]); in CommonCallbackRoutine()
238 for (size_t i = PARAM0; i < argc; i++) { in CreateTonePlayer()
241 if (i == PARAM0 && valueType == napi_object) { in CreateTonePlayer()
312 napi_typeof(env, argv[PARAM0], &valueType); in CreateTonePlayerSync()
319 if (!ParseRendererInfo(env, argv[PARAM0], &rendererInfo)) { in CreateTonePlayerSync()
421 for (size_t i = PARAM0; i < argc; i++) { in Load()
425 if (i == PARAM0 && valueType == napi_number) { in Load()
[all …]
/foundation/multimedia/audio_framework/frameworks/js/napi/audio_renderer/src/
Daudio_renderer_napi.cpp60 const int PARAM0 = 0; variable
504 sizeof(audio_renderer_properties) / sizeof(audio_renderer_properties[PARAM0]), in Init()
515 … sizeof(static_prop) / sizeof(static_prop[PARAM0]), static_prop); in Init()
624 for (size_t i = PARAM0; i < argc; i++) { in CreateAudioRenderer()
627 if (i == PARAM0 && valueType == napi_object) { in CreateAudioRenderer()
684 napi_typeof(env, argv[PARAM0], &valueType); in CreateAudioRendererSync()
691 if (!ParseRendererOptions(env, argv[PARAM0], &rendererOptions)) { in CreateAudioRendererSync()
716 napi_get_undefined(env, &result[PARAM0]); in CommonCallbackRoutine()
726 napi_create_error(env, code, message, &result[PARAM0]); in CommonCallbackRoutine()
734 napi_reject_deferred(env, asyncContext->deferred, result[PARAM0]); in CommonCallbackRoutine()
[all …]
/foundation/multimedia/audio_framework/frameworks/js/napi/audio_manager/src/
Daudio_volume_manager_napi.cpp37 const int PARAM0 = 0; variable
144 sizeof(audio_volume_manager_properties) / sizeof(audio_volume_manager_properties[PARAM0]), in Init()
183 napi_get_undefined(env, &result[PARAM0]); in CommonCallbackRoutine()
193 napi_create_error(env, code, message, &result[PARAM0]); in CommonCallbackRoutine()
201 napi_reject_deferred(env, asyncContext->deferred, result[PARAM0]); in CommonCallbackRoutine()
267 for (size_t i = PARAM0; i < argc; i++) { in GetVolumeGroupInfos()
270 if (i == PARAM0 && valueType == napi_string) { in GetVolumeGroupInfos()
340 napi_typeof(env, argv[PARAM0], &valueType); in GetVolumeGroupInfosSync()
346 std::string networkId = AudioCommonNapi::GetStringArgument(env, argv[PARAM0]); in GetVolumeGroupInfosSync()
407 for (size_t i = PARAM0; i < argc; i++) { in GetVolumeGroupManager()
[all …]
Daudio_volume_group_manager_napi.cpp70 const int PARAM0 = 0; variable
167 napi_get_undefined(env, &result[PARAM0]); in CommonCallbackRoutine()
177 napi_create_error(env, code, message, &result[PARAM0]); in CommonCallbackRoutine()
185 napi_reject_deferred(env, asyncContext->deferred, result[PARAM0]); in CommonCallbackRoutine()
363 for (size_t i = PARAM0; i < argc; i++) { in GetVolume()
367 if (i == PARAM0 && valueType == napi_number) { in GetVolume()
441 napi_typeof(env, argv[PARAM0], &valueType); in GetVolumeSync()
448 napi_get_value_int32(env, argv[PARAM0], &volType); in GetVolumeSync()
475 for (size_t i = PARAM0; i < argc; i++) { in SetVolume()
479 if (i == PARAM0 && valueType == napi_number) { in SetVolume()
[all …]
Daudio_manager_napi.cpp108 const int PARAM0 = 0; variable
591 sizeof(audio_svc_mngr_properties) / sizeof(audio_svc_mngr_properties[PARAM0]), in Init()
599 … sizeof(static_prop) / sizeof(static_prop[PARAM0]), static_prop); in Init()
681 napi_get_undefined(env, &result[PARAM0]); in CommonCallbackRoutine()
691 napi_create_error(env, code, message, &result[PARAM0]); in CommonCallbackRoutine()
699 napi_reject_deferred(env, asyncContext->deferred, result[PARAM0]); in CommonCallbackRoutine()
788 for (size_t i = PARAM0; i < argc; i++) { in RequestIndependentInterrupt()
792 if (i == PARAM0 && valueType == napi_number) { in RequestIndependentInterrupt()
853 for (size_t i = PARAM0; i < argc; i++) { in AbandonIndependentInterrupt()
856 if (i == PARAM0 && valueType == napi_number) { in AbandonIndependentInterrupt()
[all …]
Daudio_routing_manager_napi.cpp38 const int PARAM0 = 0; variable
112 sizeof(audio_routing_manager_properties) / sizeof(audio_routing_manager_properties[PARAM0]), in Init()
187 napi_get_undefined(env, &result[PARAM0]); in CommonCallbackRoutine()
197 napi_create_error(env, code, message, &result[PARAM0]); in CommonCallbackRoutine()
205 napi_reject_deferred(env, asyncContext->deferred, result[PARAM0]); in CommonCallbackRoutine()
471 napi_get_undefined(env, &result[PARAM0]); in GetDevicesAsyncCallbackComplete()
543 napi_typeof(env, argv[PARAM0], &valueType); in GetDevicesSync()
550 napi_get_value_int32(env, argv[PARAM0], &deviceFlag); in GetDevicesSync()
571 for (size_t i = PARAM0; i < argc; i++) { in CheckParams()
575 if (i == PARAM0 && valueType == napi_number) { in CheckParams()
[all …]
Daudio_stream_mgr_napi.cpp41 const int PARAM0 = 0; variable
197 napi_get_undefined(env, &result[PARAM0]); in GetCurrentRendererChangeInfosCallbackComplete()
245 napi_get_undefined(env, &result[PARAM0]); in GetCurrentCapturerChangeInfosCallbackComplete()
284 sizeof(audio_stream_mgr_properties) / sizeof(audio_stream_mgr_properties[PARAM0]), in Init()
534 for (size_t i = PARAM0; i < argc; i++) { in GetCurrentAudioRendererInfos()
538 if (i == PARAM0) { in GetCurrentAudioRendererInfos()
658 for (size_t i = PARAM0; i < argc; i++) { in GetCurrentAudioCapturerInfos()
662 if (i == PARAM0) { in GetCurrentAudioCapturerInfos()
778 for (size_t i = PARAM0; i < argc; i++) { in IsAudioRendererLowLatencySupported()
781 if (i == PARAM0 && valueType == napi_object) { in IsAudioRendererLowLatencySupported()
[all …]
/foundation/barrierfree/accessibility/interfaces/kits/napi/src/
Dnapi_accessibility_event_info.cpp43 NAPI_CALL(env, napi_typeof(env, argv[PARAM0], &valueType)); in JSConstructor()
48 return argv[PARAM0]; in JSConstructor()
/foundation/barrierfree/accessibility/interfaces/kits/napi/accessibility_gesture_path/src/
Dnapi_accessibility_gesture_path.cpp34 NAPI_CALL(env, napi_typeof(env, argv[PARAM0], &valueType)); in JSConstructor()
42 NAPI_CALL(env, napi_set_named_property(env, jsthis, "durationTime", argv[PARAM0])); in JSConstructor()
/foundation/barrierfree/accessibility/interfaces/kits/napi/accessibility_gesture_point/src/
Dnapi_accessibility_gesture_point.cpp34 NAPI_CALL(env, napi_typeof(env, argv[PARAM0], &valueType)); in JSConstructor()
44 NAPI_CALL(env, napi_set_named_property(env, jsthis, "positionX", argv[PARAM0])); in JSConstructor()
/foundation/multimedia/audio_framework/frameworks/js/napi/audio_capturer/src/
Daudio_capturer_napi.cpp50 constexpr int PARAM0 = 0; variable
129 nullptr, sizeof(audio_capturer_properties) / sizeof(audio_capturer_properties[PARAM0]), in Init()
140 … sizeof(static_prop) / sizeof(static_prop[PARAM0]), static_prop); in Init()
267 for (size_t i = PARAM0; i < argc; i++) { in CreateAudioCapturer()
270 if (i == PARAM0 && valueType == napi_object) { in CreateAudioCapturer()
339 napi_typeof(env, argv[PARAM0], &valueType); in CreateAudioCapturerSync()
346 if (!ParseCapturerOptions(env, argv[PARAM0], &capturerOptions)) { in CreateAudioCapturerSync()
370 napi_get_undefined(env, &result[PARAM0]); in CommonCallbackRoutine()
380 napi_create_error(env, code, message, &result[PARAM0]); in CommonCallbackRoutine()
388 napi_reject_deferred(env, asyncContext->deferred, result[PARAM0]); in CommonCallbackRoutine()
[all …]
/foundation/barrierfree/accessibility/interfaces/kits/napi/accessibility_config/src/
Dnapi_accessibility_config.cpp45 if (ParseString(env, ability, parameters[PARAM0])) { in EnableAbilityError()
71 if (ParseString(env, ability, parameters[PARAM0])) { in DisableAbilityError()
204 if (!ParseString(env, observerType, args[PARAM0])) { in SubscribeState()
255 if (!ParseString(env, observerType, args[PARAM0])) { in UnsubscribeState()
294 result[PARAM0] = CreateBusinessError(env, callbackInfo->ret_); in AsyncWorkComplete()
304 napi_reject_deferred(env, callbackInfo->deferred_, result[PARAM0]); in AsyncWorkComplete()
410 result[PARAM0] = CreateBusinessError(env, callbackInfo->ret_); in GetConfigComplete()
422 napi_reject_deferred(env, callbackInfo->deferred_, result[PARAM0]); in GetConfigComplete()
513 bool ret = ParseInt32(env, timeout, parameters[PARAM0]); in ParseConnectTimeoutData()
522 bool ret = ParseInt32(env, time, parameters[PARAM0]); in ParseMouseAutoClickData()
[all …]
/foundation/communication/bluetooth/frameworks/js/napi/src/
Dnapi_bluetooth_pbap_pce.cpp70 if (!ParseString(env, type, argv[PARAM0])) { in On()
112 if (!ParseString(env, type, argv[PARAM0])) { in Off()
157 if (!ParseString(env, deviceId, argv[PARAM0])) { in GetDeviceState()
189 if (!ParseString(env, deviceId, argv[PARAM0])) { in Connect()
221 if (!ParseString(env, deviceId, argv[PARAM0])) { in Disconnect()
Dnapi_bluetooth_pbap_pse.cpp69 if (!ParseString(env, type, argv[PARAM0])) { in On()
112 if (!ParseString(env, type, argv[PARAM0])) { in Off()
155 if (!ParseString(env, deviceId, argv[PARAM0])) { in GetDeviceState()
187 if (!ParseString(env, deviceId, argv[PARAM0])) { in Disconnect()
/foundation/communication/bluetooth/frameworks/js/napi/src/hfp/
Dnapi_bluetooth_hfp_hf.cpp121 if (!ParseString(env, deviceId, argv[PARAM0])) { in GetDeviceState()
153 if (!ParseString(env, deviceId, argv[PARAM0])) { in GetScoState()
185 if (!ParseString(env, deviceId, argv[PARAM0])) { in Connect()
216 if (!ParseString(env, deviceId, argv[PARAM0])) { in Disconnect()
247 if (!ParseString(env, deviceId, argv[PARAM0])) { in ConnectSco()
278 if (!ParseString(env, deviceId, argv[PARAM0])) { in DisconnectSco()
309 if (!ParseString(env, deviceId, argv[PARAM0])) { in SendDTMF()
/foundation/multimedia/media_library/frameworks/js/src/
Dmedia_scanner_napi.cpp54 MediaScannerNapiConstructor, nullptr, sizeof(scanner_props) / sizeof(scanner_props[PARAM0]), in Init()
60 sizeof(static_prop) / sizeof(static_prop[PARAM0]), static_prop) == napi_ok) { in Init()
141 napi_get_undefined(env, &results[PARAM0]); in InvokeJSCallback()
181 napi_typeof(env, argv[PARAM0], &valueType); in NapiScanUtils()
183 napi_get_value_string_utf8(env, argv[PARAM0], buffer, PATH_MAX, &res); in NapiScanUtils()
/foundation/multimedia/camera_framework/frameworks/js/camera_napi/src/output/
Dvideo_output_napi.cpp107 napi_get_undefined(env_, &result[PARAM0]); in UpdateJSCallback()
123 napi_create_object(env_, &errJsResult[PARAM0]); in UpdateJSCallback()
125 napi_set_named_property(env_, errJsResult[PARAM0], "code", propValue); in UpdateJSCallback()
182 sizeof(video_output_props) / sizeof(video_output_props[PARAM0]), in Init()
246 for (size_t i = PARAM0; i < argc; i++) { in ConvertJSArgsToNative()
250 if (i == PARAM0 && valueType == napi_number) { in ConvertJSArgsToNative()
383 CAMERA_NAPI_GET_JS_ASYNC_CB_REF(env, argv[PARAM0], refCount, asyncContext->callbackRef); in Start()
434 CAMERA_NAPI_GET_JS_ASYNC_CB_REF(env, argv[PARAM0], refCount, asyncContext->callbackRef); in Stop()
527 CAMERA_NAPI_GET_JS_ASYNC_CB_REF(env, argv[PARAM0], refCount, asyncContext->callbackRef); in GetFrameRateRange()
659 CAMERA_NAPI_GET_JS_ASYNC_CB_REF(env, argv[PARAM0], refCount, asyncContext->callbackRef); in Release()
[all …]
Dpreview_output_napi.cpp108 napi_get_undefined(env_, &result[PARAM0]); in UpdateJSCallback()
124 napi_create_object(env_, &errJsResult[PARAM0]); in UpdateJSCallback()
126 napi_set_named_property(env_, errJsResult[PARAM0], "code", propValue); in UpdateJSCallback()
182 sizeof(preview_output_props) / sizeof(preview_output_props[PARAM0]), in Init()
382 CAMERA_NAPI_GET_JS_ASYNC_CB_REF(env, argv[PARAM0], refCount, asyncContext->callbackRef); in Release()
427 for (size_t i = PARAM0; i < argc; i++) { in ConvertJSArgsToNative()
430 if (i == PARAM0 && valueType == napi_string) { in ConvertJSArgsToNative()
546 CAMERA_NAPI_GET_JS_ASYNC_CB_REF(env, argv[PARAM0], refCount, asyncContext->callbackRef); in Start()
599 CAMERA_NAPI_GET_JS_ASYNC_CB_REF(env, argv[PARAM0], refCount, asyncContext->callbackRef); in Stop()
652 if (thisVar == nullptr || argv[PARAM0] == nullptr || argv[PARAM1] == nullptr) { in On()
[all …]
Dphoto_output_napi.cpp132 napi_get_undefined(env_, &result[PARAM0]); in UpdateJSCallback()
163 napi_create_object(env_, &errJsResult[PARAM0]); in UpdateJSCallback()
165 napi_set_named_property(env_, errJsResult[PARAM0], "code", propValue); in UpdateJSCallback()
322 sizeof(photo_output_props) / sizeof(photo_output_props[PARAM0]), in Init()
573 for (size_t i = PARAM0; i < argc; i++) { in ConvertJSArgsToNative()
576 if (i == PARAM0 && valueType == napi_object) { in ConvertJSArgsToNative()
577 GetFetchOptionsParam(env, argv[PARAM0], asyncContext, err); in ConvertJSArgsToNative()
583 } else if ((i == PARAM0) && (valueType == napi_function)) { in ConvertJSArgsToNative()
589 } else if ((i == PARAM0) && (valueType == napi_boolean)) { in ConvertJSArgsToNative()
592 } else if ((i == PARAM0) && (valueType == napi_undefined)) { in ConvertJSArgsToNative()
[all …]
/foundation/communication/bluetooth/frameworks/js/napi/src/ble/
Dnapi_bluetooth_ble_central_manager_callback.cpp145 napi_get_uv_event_loop(callbackInfos[PARAM0]->env_, &loop); in SysOnScanCallBack()
163 data->env = callbackInfos[PARAM0]->env_; in SysOnScanCallBack()
164 data->callbackSuccess = callbackInfos[PARAM0]->callback_; in SysOnScanCallBack()
313 napi_get_uv_event_loop(callbackInfos[PARAM0]->env_, &loop); in OnStartOrStopScanEvent()
330 data->env = callbackInfos[PARAM0]->env_; in OnStartOrStopScanEvent()
331 data->callbackSuccess = callbackInfos[PARAM0]->callback_; in OnStartOrStopScanEvent()
/foundation/multimedia/camera_framework/frameworks/js/camera_napi/src/session/
Dcamera_session_napi.cpp65 napi_get_undefined(env_, &result[PARAM0]); in OnExposureStateCallback()
116 napi_get_undefined(env_, &result[PARAM0]); in OnFocusStateCallback()
169 napi_create_object(env_, &result[PARAM0]); in OnErrorCallback()
173 napi_set_named_property(env_, result[PARAM0], "code", propValue); in OnErrorCallback()
275 sizeof(camera_session_props) / sizeof(camera_session_props[PARAM0]), in Init()
525 CAMERA_NAPI_GET_JS_ASYNC_CB_REF(env, argv[PARAM0], refCount, asyncContext->callbackRef); in CommitConfig()
612 for (size_t i = PARAM0; i < argc; i++) { in GetJSArgsForCameraInput()
615 if (i == PARAM0 && valueType == napi_object) { in GetJSArgsForCameraInput()
728 for (size_t i = PARAM0; i < argc; i++) { in GetJSArgsForCameraOutput()
732 if (i == PARAM0 && valueType == napi_object) { in GetJSArgsForCameraOutput()
[all …]
/foundation/multimedia/camera_framework/frameworks/js/camera_napi/src/input/
Dcamera_manager_napi.cpp117 … sizeof(camera_mgr_properties) / sizeof(camera_mgr_properties[PARAM0]), in Init()
317 for (size_t i = PARAM0; i < argc; i++) { in ConvertJSArgsToNative()
320 if (i == PARAM0 && valueType == napi_object) { in ConvertJSArgsToNative()
384 ParseProfile(env, argv[PARAM0], &profile); in CreatePreviewOutputInstance()
471 ParseProfile(env, argv[PARAM0], &profile); in CreatePhotoOutputInstance()
577 ParseMetadataObjectTypes(env, argv[PARAM0], metadataObjectTypes); in CreateMetadataOutputInstance()
625 status = napi_unwrap(env, argv[PARAM0], reinterpret_cast<void **>(&cameraDeviceNapi)); in GetSupportedOutputCapability()
687 napi_get_value_bool(env, argv[PARAM0], &isSupported); in MuteCamera()
717 status = napi_unwrap(env, argv[PARAM0], reinterpret_cast<void **>(&cameraDeviceNapi)); in CreateCameraInputInstance()
726 napi_get_value_int32(env, argv[PARAM0], &numValue); in CreateCameraInputInstance()
[all …]

1234