Home
last modified time | relevance | path

Searched refs:PARAM1 (Results 1 – 25 of 71) sorted by relevance

123

/foundation/multimedia/camera_framework/frameworks/js/camera_napi/src/input/
Dcamera_manager_callback_napi.cpp80 napi_get_undefined(env_, &result[PARAM1]); in OnCameraStatusCallback()
85 napi_create_object(env_, &result[PARAM1]); in OnCameraStatusCallback()
89 napi_set_named_property(env_, result[PARAM1], "camera", cameraDeviceNapi); in OnCameraStatusCallback()
92 napi_set_named_property(env_, result[PARAM1], "camera", undefinedResult); in OnCameraStatusCallback()
98 napi_set_named_property(env_, result[PARAM1], "status", propValue); in OnCameraStatusCallback()
Dcamera_mute_listener_napi.cpp71 napi_get_undefined(env_, &result[PARAM1]); in OnCameraMuteCallback()
73 napi_get_boolean(env_, muteMode, &result[PARAM1]); in OnCameraMuteCallback()
/foundation/multimedia/player_framework/frameworks/js/ringtone_manager/src/
Dsystem_sound_manager_napi.cpp33 const int32_t PARAM1 = 1; variable
266 napi_get_undefined(env, &result[PARAM1]); in SetSysRngUriAsyncCallbackComp()
277 napi_resolve_deferred(env, context->deferred, result[PARAM1]); in SetSysRngUriAsyncCallbackComp()
324 } else if (i == PARAM1 && valueType == napi_string) { in SetSystemRingtoneUri()
333 if ((i == PARAM1) && (valueType == napi_null)) { in SetSystemRingtoneUri()
378 napi_create_string_utf8(env, context->uri.c_str(), NAPI_AUTO_LENGTH, &result[PARAM1]); in GetSysRngUriAsyncCallbackComp()
383 napi_get_undefined(env, &result[PARAM1]); in GetSysRngUriAsyncCallbackComp()
388 napi_resolve_deferred(env, context->deferred, result[PARAM1]); in GetSysRngUriAsyncCallbackComp()
430 } else if (i == PARAM1 && valueType == napi_number) { in GetSystemRingtoneUri()
480 napi_get_undefined(env, &result[PARAM1]); in GetSysRngPlayerAsyncCallbackComp()
[all …]
Dringtone_player_napi.cpp28 const int32_t PARAM1 = 1; variable
175 napi_get_undefined(env, &result[PARAM1]); in CommonAsyncCallbackComp()
186 napi_resolve_deferred(env, context->deferred, result[PARAM1]); in CommonAsyncCallbackComp()
210 napi_create_string_utf8(env, context->title.c_str(), NAPI_AUTO_LENGTH, &result[PARAM1]); in GetTitleAsyncCallbackComplete()
215 napi_get_undefined(env, &result[PARAM1]); in GetTitleAsyncCallbackComplete()
220 napi_resolve_deferred(env, context->deferred, result[PARAM1]); in GetTitleAsyncCallbackComplete()
303 result[PARAM1] = valueParam; in AudioRendererInfoAsyncCallbackComplete()
308 napi_get_undefined(env, &result[PARAM1]); in AudioRendererInfoAsyncCallbackComplete()
313 napi_resolve_deferred(env, context->deferred, result[PARAM1]); in AudioRendererInfoAsyncCallbackComplete()
426 napi_typeof(env, argv[PARAM1], &valueType); in Configure()
[all …]
/foundation/communication/bluetooth/frameworks/js/napi/src/socket/
Dnapi_bluetooth_spp_server.cpp88 callbackInfo->sppOption_ = GetSppOptionFromJS(env, argv[PARAM1]); in CheckSppListenParams()
155 napi_create_int32(env, server->id_, &result[PARAM1]); in SppListen()
160 napi_get_undefined(env, &result[PARAM1]); in SppListen()
172 napi_resolve_deferred(env, callbackInfo->deferred_, result[PARAM1]); in SppListen()
175 napi_reject_deferred(env, callbackInfo->deferred_, result[PARAM1]); in SppListen()
216 NAPI_BT_CALL_RETURN(napi_typeof(env, argv[PARAM1], &valueType)); in CheckSppAcceptParams()
223 napi_create_reference(env, argv[PARAM1], 1, &callbackInfo->callback_); in CheckSppAcceptParams()
267 napi_create_int32(env, client->id_, &result[PARAM1]); in SppAccept()
271 napi_get_undefined(env, &result[PARAM1]); in SppAccept()
281 napi_resolve_deferred(env, callbackInfo->deferred_, result[PARAM1]); in SppAccept()
[all …]
Dnapi_bluetooth_spp_client.cpp45 callbackInfo->sppOption_ = GetSppOptionFromJS(env, argv[PARAM1]); in CheckSppConnectParams()
145 napi_create_int32(env, client->id_, &result[PARAM1]); in SppConnect()
150 napi_get_undefined(env, &result[PARAM1]); in SppConnect()
165 napi_resolve_deferred(env, callbackInfo->deferred_, result[PARAM1]); in SppConnect()
168 napi_reject_deferred(env, callbackInfo->deferred_, result[PARAM1]); in SppConnect()
229 NAPI_BT_RETURN_IF(!ParseArrayBuffer(env, totalBuf, totalSize, argv[PARAM1]), in CheckSppWriteParams()
320 NAPI_BT_CALL_RETURN(napi_typeof(env, argv[PARAM1], &valueType1)); in CheckSppClientOn()
327 …NAPI_BT_RETURN_IF(!ParseInt32(env, id, argv[PARAM1]), "Wrong argument type. Int expected.", napi_i… in CheckSppClientOn()
363 …NAPI_BT_RETURN_IF(!ParseInt32(env, id, argv[PARAM1]), "Wrong argument type. Int expected.", napi_i… in CheckSppClientOff()
/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()
86 info.argv[PARAM1] : nullptr; in GetLastParamForTwo()
87 } else if (info.argv[PARAM1] != nullptr && info.argv[PARAM1]->TypeOf() == NATIVE_FUNCTION) { in GetLastParamForTwo()
89 lastParam = info.argv[PARAM1]; in GetLastParamForTwo()
211 ((info.argv[PARAM1] != nullptr && info.argv[PARAM1]->TypeOf() == NATIVE_FUNCTION) ? in SetTargetBundleNameCompleteTask()
212 info.argv[PARAM1] : nullptr); in SetTargetBundleNameCompleteTask()
293 if (info.argv[PARAM1] != nullptr && info.argv[PARAM1]->TypeOf() == NATIVE_FUNCTION) { in OnGetWindowRootElement()
295 lastParam = info.argv[PARAM1]; in OnGetWindowRootElement()
381 if (info.argv[PARAM1] != nullptr && info.argv[PARAM1]->TypeOf() == NATIVE_FUNCTION) { in OnGetWindows()
[all …]
Dnapi_accessibility_element.cpp252 napi_resolve_deferred(env, callbackInfo->deferred_, result[PARAM1]); in AttributeNamesComplete()
337 napi_typeof(env, argv[PARAM1], &valueType); in AttributeValueAsync()
339 napi_create_reference(env, argv[PARAM1], 1, &callbackInfo->callback_); in AttributeValueAsync()
405 napi_get_undefined(callbackInfo->env_, &result[PARAM1]); in AttributeValueComplete()
408 (*elementIter->second)(callbackInfo, result[PARAM1]); in AttributeValueComplete()
415 napi_get_undefined(callbackInfo->env_, &result[PARAM1]); in AttributeValueComplete()
418 (*windowIter->second)(callbackInfo, result[PARAM1]); in AttributeValueComplete()
434 napi_resolve_deferred(env, callbackInfo->deferred_, result[PARAM1]); in AttributeValueComplete()
1058 napi_create_array(env, &result[PARAM1]); in ActionNamesComplete()
1059 ConvertStringVecToJS(env, result[PARAM1], actionNames); in ActionNamesComplete()
[all …]
/foundation/barrierfree/accessibility/interfaces/kits/napi/accessibility_gesture_point/src/
Dnapi_accessibility_gesture_point.cpp39 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valueType)); in JSConstructor()
45 NAPI_CALL(env, napi_set_named_property(env, jsthis, "positionY", argv[PARAM1])); in JSConstructor()
/foundation/ability/form_fwk/frameworks/js/napi/form_host/
Djs_form_host.cpp560 …if ((info.argc == ARGS_TWO || info.argc == ARGS_THREE) && info.argv[PARAM1]->TypeOf() != NATIVE_FU… in OnReleaseForm()
561 if (info.argv[PARAM1]->TypeOf() != NATIVE_BOOLEAN) { in OnReleaseForm()
567 if (!ConvertFromJsValue(engine, info.argv[PARAM1], isReleaseCache)) { in OnReleaseForm()
910 NativeValue *lastParam = (info.argc == ARGS_ONE) ? nullptr : info.argv[PARAM1]; in OnAcquireFormState()
943 if (info.argv[PARAM1]->TypeOf() != NATIVE_STRING) { in OnRegisterFormAddObserver()
948 if (!ConvertFromJsValue(engine, info.argv[PARAM1], bundleName)) { in OnRegisterFormAddObserver()
991 if (info.argv[PARAM1]->TypeOf() != NATIVE_STRING) { in OnRegisterFormRemoveObserver()
996 if (!ConvertFromJsValue(engine, info.argv[PARAM1], bundleName)) { in OnRegisterFormRemoveObserver()
1036 if (info.argv[PARAM1]->TypeOf() != NATIVE_FUNCTION) { in OnRegisterFormUninstallObserver()
1101 if (info.argv[PARAM1]->TypeOf() == NATIVE_FUNCTION) { in OnRegisteFormIsVisibleObserver()
[all …]
/foundation/multimedia/audio_framework/frameworks/js/napi/audio_manager/src/
Daudio_volume_manager_napi.cpp38 const int PARAM1 = 1; variable
184 result[PARAM1] = valueParam; in CommonCallbackRoutine()
194 napi_get_undefined(env, &result[PARAM1]); in CommonCallbackRoutine()
199 napi_resolve_deferred(env, asyncContext->deferred, result[PARAM1]); in CommonCallbackRoutine()
227 napi_create_array_with_length(env, size, &result[PARAM1]); in GetVolumeGroupInfosAsyncCallbackComplete()
241 napi_set_element(env, result[PARAM1], i, valueParam); in GetVolumeGroupInfosAsyncCallbackComplete()
245 CommonCallbackRoutine(env, asyncContext, result[PARAM1]); in GetVolumeGroupInfosAsyncCallbackComplete()
272 } else if (i == PARAM1) { in GetVolumeGroupInfos()
412 } else if (i == PARAM1) { in GetVolumeGroupManager()
509 if (napi_typeof(env, args[PARAM1], &handler) != napi_ok || handler != napi_function) { in On()
[all …]
Daudio_routing_manager_napi.cpp39 const int PARAM1 = 1; variable
188 result[PARAM1] = valueParam; in CommonCallbackRoutine()
198 napi_get_undefined(env, &result[PARAM1]); in CommonCallbackRoutine()
203 napi_resolve_deferred(env, asyncContext->deferred, result[PARAM1]); in CommonCallbackRoutine()
452 if (arrayLength > PARAM1) { in SetDevicesInfo()
453 SetDeviceDescriptors(env, result[PARAM1], valueParam, deviceDescriptors); in SetDevicesInfo()
475 CommonCallbackRoutine(env, asyncContext, result[PARAM1]); in GetDevicesAsyncCallbackComplete()
582 } else if (i == PARAM1) { in CheckParams()
625 } else if (i == PARAM1) { in SelectOutputDevice()
685 CommonCallbackRoutine(env, asyncContext, result[PARAM1]); in GetActiveOutputDeviceAsyncCallbackComplete()
[all …]
Daudio_stream_mgr_napi.cpp42 const int PARAM1 = 1; variable
174 napi_create_array_with_length(env, size, &result[PARAM1]); in GetCurrentRendererChangeInfosCallbackComplete()
193 napi_set_element(env, result[PARAM1], position, jsChangeInfoObj); in GetCurrentRendererChangeInfosCallbackComplete()
200 napi_resolve_deferred(env, asyncContext->deferred, result[PARAM1]); in GetCurrentRendererChangeInfosCallbackComplete()
223 napi_create_array_with_length(env, size, &result[PARAM1]); in GetCurrentCapturerChangeInfosCallbackComplete()
241 napi_set_element(env, result[PARAM1], position, jsChangeInfoObj); in GetCurrentCapturerChangeInfosCallbackComplete()
248 napi_resolve_deferred(env, asyncContext->deferred, result[PARAM1]); in GetCurrentCapturerChangeInfosCallbackComplete()
369 cb->SaveCallbackReference(args[PARAM1]); in RegisterRendererStateChangeCallback()
395 cb->SaveCallbackReference(args[PARAM1]); in RegisterCapturerStateChangeCallback()
787 } else if (i == PARAM1) { in IsAudioRendererLowLatencySupported()
[all …]
Daudio_manager_napi.cpp109 const int PARAM1 = 1; variable
682 result[PARAM1] = valueParam; in CommonCallbackRoutine()
692 napi_get_undefined(env, &result[PARAM1]); in CommonCallbackRoutine()
697 napi_resolve_deferred(env, asyncContext->deferred, result[PARAM1]); in CommonCallbackRoutine()
794 } else if (i == PARAM1) { in RequestIndependentInterrupt()
858 } else if (i == PARAM1) { in AbandonIndependentInterrupt()
924 } else if (i == PARAM1) { in SetMicrophoneMute()
1048 } else if (i == PARAM1) { in SetRingerMode()
1176 } else if (i == PARAM1) { in SetAudioScene()
1328 } else if (i == PARAM1 && valueType == napi_boolean) { in SetStreamMute()
[all …]
Daudio_volume_group_manager_napi.cpp71 const int PARAM1 = 1; variable
168 result[PARAM1] = valueParam; in CommonCallbackRoutine()
178 napi_get_undefined(env, &result[PARAM1]); in CommonCallbackRoutine()
183 napi_resolve_deferred(env, asyncContext->deferred, result[PARAM1]); in CommonCallbackRoutine()
333 napi_value args[PARAM1] = {groupId_}; in CreateAudioVolumeGroupManagerWrapper()
336 status = napi_new_instance(env, constructor, PARAM1, args, &result); in CreateAudioVolumeGroupManagerWrapper()
373 } else if (i == PARAM1) { in GetVolume()
485 } else if (i == PARAM1 && valueType == napi_number) { in SetVolume()
557 } else if (i == PARAM1) { in GetMaxVolume()
669 } else if (i == PARAM1) { in GetMinVolume()
[all …]
/foundation/multimedia/media_library/frameworks/js/src/
Dmedia_scanner_napi.cpp142 napi_create_object(env, &results[PARAM1]); in InvokeJSCallback()
146 napi_set_named_property(env, results[PARAM1], "status", jsStatus); in InvokeJSCallback()
150 napi_set_named_property(env, results[PARAM1], "fileUri", jsUri); in InvokeJSCallback()
189 napi_typeof(env, argv[PARAM1], &valueType); in NapiScanUtils()
191 napi_create_reference(env, argv[PARAM1], refCount, &callbackRef); in NapiScanUtils()
/foundation/barrierfree/accessibility/interfaces/kits/napi/src/
Dnapi_accessibility_system_ability_client.cpp179 NAPI_CALL_RETURN_VOID(env, napi_get_boolean(env, callbackInfo->enabled_, &result[PARAM1])); in Completefunction()
182 … NAPI_CALL_RETURN_VOID(env, napi_get_boolean(env, callbackInfo->touchEnabled_, &result[PARAM1])); in Completefunction()
196 napi_resolve_deferred(env, callbackInfo->deferred_, result[PARAM1]); in Completefunction()
224 napi_create_array(env, &result[PARAM1]); in GetAbilityListComplete()
225 ConvertAccessibleAbilityInfosToJS(env, result[PARAM1], callbackInfo->abilityList_); in GetAbilityListComplete()
235 napi_resolve_deferred(env, callbackInfo->deferred_, result[PARAM1]); in GetAbilityListComplete()
313 !ParseString(env, stateTypes, parameters[PARAM1])) { in GetAccessibilityExtensionList()
415 result[PARAM1] = ret; in SendEventComplete()
424 napi_resolve_deferred(env, callbackInfo->deferred_, result[PARAM1]); in SendEventComplete()
509 if (argc > ARGS_SIZE_TWO - 1 && CheckJsFunction(env, parameters[PARAM1])) { in SendAccessibilityEvent()
[all …]
/foundation/multimedia/player_framework/frameworks/js/soundpool/src/
Dsoundpool_napi.cpp180 asyncCtx->callbackRef = CommonNapi::CreateReference(env, args[PARAM1]); in JsLoad()
230 asyncCtx->callbackRef = CommonNapi::CreateReference(env, args[PARAM1]); in JsPlay()
272 asyncCtx->callbackRef = CommonNapi::CreateReference(env, args[PARAM1]); in JsStop()
323 status = napi_get_value_int32(env, args[PARAM1], &asyncCtx->loop_); in JsSetLoop()
370 status = napi_get_value_int32(env, args[PARAM1], &asyncCtx->priority_); in JsSetPriority()
494 asyncCtx->callbackRef = CommonNapi::CreateReference(env, args[PARAM1]); in JsUnload()
529 size_t argCount = PARAM1; in JsRelease()
530 napi_value args[PARAM1] = { nullptr }; in JsRelease()
652 status = napi_get_named_property(env, argv[PARAM1], "content", &tempValue); in GetJsInstanceWithParameter()
658 status = napi_get_named_property(env, argv[PARAM1], "usage", &tempValue); in GetJsInstanceWithParameter()
[all …]
/foundation/barrierfree/accessibility/interfaces/kits/napi/accessibility_config/src/
Dnapi_accessibility_config.cpp53 if (!ConvertJSToCapabilities(env, parameters[PARAM1], callbackInfo->capabilities_)) { in EnableAbilityError()
160 if (argc > ARGS_SIZE_TWO - 1 && CheckJsFunction(env, parameters[PARAM1])) { in DisableAbility()
161 napi_create_reference(env, parameters[PARAM1], 1, &callbackInfo->callback_); in DisableAbility()
217 napi_typeof(env, args[PARAM1], &valueType); in SubscribeState()
231 enableAbilityListsObservers_->SubscribeObserver(env, args[PARAM1]); in SubscribeState()
273 if (argc > ARGS_SIZE_TWO - 1 && CheckJsFunction(env, args[PARAM1])) { in UnsubscribeState()
274 enableAbilityListsObservers_->UnsubscribeObserver(env, args[PARAM1]); in UnsubscribeState()
371 napi_get_boolean(env, callbackInfo->boolConfig_, &result[PARAM1]); in ConfigCompleteInfoById()
375 napi_create_int32(env, callbackInfo->int32Config_, &result[PARAM1]); in ConfigCompleteInfoById()
379 … napi_create_double(env, static_cast<double>(callbackInfo->floatConfig_), &result[PARAM1]); in ConfigCompleteInfoById()
[all …]
/foundation/ability/form_fwk/frameworks/js/napi/form_provider/
Djs_form_provider.cpp223 if (info.argv[PARAM1]->TypeOf() != NATIVE_NUMBER) { in OnSetFormNextRefreshTime()
228 bool res = ConvertFromJsValue(engine, info.argv[PARAM1], time); in OnSetFormNextRefreshTime()
282 if (info.argv[PARAM1]->TypeOf() != NATIVE_OBJECT) { in OnUpdateForm()
288 auto arg1 = reinterpret_cast<napi_value>(info.argv[PARAM1]); in OnUpdateForm()
294 NativeObject* nativeObject = ConvertNativeValueTo<NativeObject>(info.argv[PARAM1]); in OnUpdateForm()
382 if (info.argv[PARAM1]->TypeOf() != NATIVE_OBJECT) { in OnRequestPublishForm()
388 auto arg1 = reinterpret_cast<napi_value>(info.argv[PARAM1]); in OnRequestPublishForm()
394 NativeObject* nativeObject = ConvertNativeValueTo<NativeObject>(info.argv[PARAM1]); in OnRequestPublishForm()
/foundation/communication/bluetooth/frameworks/js/napi/src/access/
Dnapi_bluetooth_access.cpp187 NAPI_BT_CALL_RETURN(napi_typeof(env, argv[PARAM1], &valueType)); in CheckAccessObserverParams()
189 NAPI_BT_CALL_RETURN(napi_create_reference(env, argv[PARAM1], 1, &outpCallbackInfo->callback_)); in CheckAccessObserverParams()
232 NAPI_BT_CALL_RETURN(NapiIsFunction(env, argv[PARAM1])); in CheckAccessDeregisterObserver()
233 NAPI_BT_CALL_RETURN(napi_create_reference(env, argv[PARAM1], 1, &pCallbackInfo->callback_)); in CheckAccessDeregisterObserver()
/foundation/multimedia/camera_framework/frameworks/js/camera_napi/src/output/
Dphoto_output_napi.cpp133 napi_get_undefined(env_, &result[PARAM1]); in UpdateJSCallback()
138 napi_create_int32(env_, info.captureID, &result[PARAM1]); in UpdateJSCallback()
143 napi_create_object(env_, &result[PARAM1]); in UpdateJSCallback()
145 napi_set_named_property(env_, result[PARAM1], "captureId", propValue); in UpdateJSCallback()
147 napi_set_named_property(env_, result[PARAM1], "frameCount", propValue); in UpdateJSCallback()
152 napi_create_object(env_, &result[PARAM1]); in UpdateJSCallback()
154 napi_set_named_property(env_, result[PARAM1], "captureId", propValue); in UpdateJSCallback()
156 napi_set_named_property(env_, result[PARAM1], "timestamp", propValue); in UpdateJSCallback()
586 } else if ((i == PARAM1) && (valueType == napi_function)) { in ConvertJSArgsToNative()
862 CAMERA_NAPI_GET_JS_ASYNC_CB_REF(env, argv[PARAM1], refCount, asyncContext->callbackRef); in SetMirror()
[all …]
Dmetadata_output_napi.cpp104 napi_get_undefined(env_, &result[PARAM1]); in OnMetadataObjectsAvailableCallback()
107 result[PARAM1] = CreateMetadataObjJSArray(env_, metadataObjList); in OnMetadataObjectsAvailableCallback()
108 if (result[PARAM1] == nullptr) { in OnMetadataObjectsAvailableCallback()
366 } else if ((i == static_cast<size_t>(PARAM1 + ArrayLen)) && (valueType == napi_function)) { in ConvertJSArgsToNative()
641 if (thisVar == nullptr || argv[PARAM0] == nullptr || argv[PARAM1] == nullptr) { in On()
650 … || napi_typeof(env, argv[PARAM1], &valueType) != napi_ok || valueType != napi_function) { in On()
658 napi_create_reference(env, argv[PARAM1], refCount, &callbackRef); in On()
/foundation/communication/bluetooth/frameworks/js/napi/src/
Dnapi_bluetooth_opp.cpp87 napi_typeof(env, argv[PARAM1], &valueType); in On()
92 napi_create_reference(env, argv[PARAM1], 1, &callbackInfo->callback_); in On()
179 if (argv[PARAM1] != nullptr) { in SendFile()
180 if (!ParseStringArrayParameters(env, argv[PARAM1], filePaths)) { in SendFile()
/foundation/multimedia/image_framework/frameworks/kits/js/common/
Dimage_packer_napi.cpp44 const int PARAM1 = 1; variable
438 if (argc < PARAM1 || argc > PARAM3) { in ParserPackingArguments()
439 BuildMsgOnError(env, context, (argc < PARAM1 || argc > PARAM3), "Arguments Count error"); in ParserPackingArguments()
449 if (argc > PARAM1 && ImageNapiUtils::getType(env, argv[PARAM1]) == napi_object) { in ParserPackingArguments()
451 parsePackOptions(env, argv[PARAM1], &(context->packOption)), "PackOptions mismatch"); in ParserPackingArguments()
452 context->resultBufferSize = parseBufferSize(env, argv[PARAM1]); in ParserPackingArguments()

123