Home
last modified time | relevance | path

Searched refs:ARGC_ONE (Results 1 – 25 of 32) sorted by relevance

12

/base/security/permission_lite/services/js_api/src/
Dperm_module.cpp37 JSIValue argv[ARGC_ONE] = { code }; in CheckSelfPerm()
40 JSI::CallFunction(fail, thisVal, argv, ARGC_ONE); in CheckSelfPerm()
44 JSI::CallFunction(success, thisVal, argv, ARGC_ONE); in CheckSelfPerm()
/base/print/print_fwk/frameworks/kits/extension/src/
Djs_print_extension.cpp112 …xtRef = jsRuntime.LoadSystemModule("PrintExtensionContext", &contextObj, NapiPrintUtils::ARGC_ONE); in InitContextObj()
144 CallObjectMethod("onCreate", argv, NapiPrintUtils::ARGC_ONE); in OnStart()
202 …iveValue *remoteNative = nativeEngine->CallFunction(value, method, argv, NapiPrintUtils::ARGC_ONE); in OnConnect()
241 nativeEngine->CallFunction(value, method, argv, NapiPrintUtils::ARGC_ONE); in OnDisconnect()
346 callback->Exec(value, "onConnectPrinter", arg, NapiPrintUtils::ARGC_ONE); in RegisterConnectionCb()
361 callback->Exec(value, "onDisconnectPrinter", arg, NapiPrintUtils::ARGC_ONE); in RegisterConnectionCb()
379 callback->Exec(value, "onStartPrintJob", arg, NapiPrintUtils::ARGC_ONE); in RegisterPrintJobCb()
393 callback->Exec(value, "onCancelPrintJob", arg, NapiPrintUtils::ARGC_ONE); in RegisterPrintJobCb()
411 callback->Exec(value, "onRequestPreview", arg, NapiPrintUtils::ARGC_ONE); in RegisterPreviewCb()
430 callback->Exec(value, "onRequestPrinterCapability", arg, NapiPrintUtils::ARGC_ONE); in RegisterQueryCapCb()
Djs_print_extension_connection.cpp152 engine_.CallFunction(value, method, argv, NapiPrintUtils::ARGC_ONE); in HandleOnAbilityDisconnectDone()
181 engine_.CallFunction(value, method, argv, NapiPrintUtils::ARGC_ONE); in CallJsFailed()
Djs_print_extension_context.cpp94 if (info.argc != NapiPrintUtils::ARGC_ONE && info.argc != NapiPrintUtils::ARGC_TWO && in OnStartAbility()
109 if (info.argc > NapiPrintUtils::ARGC_ONE && info.argv[1]->TypeOf() == NATIVE_OBJECT) { in OnStartAbility()
215 if (info.argc != NapiPrintUtils::ARGC_ZERO && info.argc != NapiPrintUtils::ARGC_ONE) { in OnTerminateAbility()
357 if (info.argc != NapiPrintUtils::ARGC_ONE && info.argc != NapiPrintUtils::ARGC_TWO) { in OnDisconnectAbility()
403 (info.argc == NapiPrintUtils::ARGC_ONE) ? nullptr : info.argv[1]; in OnDisconnectAbility()
/base/useriam/user_auth_framework/frameworks/js/napi/user_auth_extension/module_loader/
Djs_user_auth_extension.cpp39 constexpr size_t ARGC_ONE = 1; variable
149 &contextObj, ARGC_ONE); in BindContext()
180 CallObjectMethod("onCreate", argv, ARGC_ONE); in OnStart()
380 CallObjectMethod("onSessionDestroy", argv, ARGC_ONE); in DestroyWindow()
445 NativeValue* remoteNative = nativeEngine->CallFunction(value, method, argv, ARGC_ONE); in CallOnConnect()
479 return handleEscape.Escape(nativeEngine->CallFunction(value, method, argv, ARGC_ONE)); in CallOnDisconnect()
481 nativeEngine->CallFunction(value, method, argv, ARGC_ONE); in CallOnDisconnect()
505 CallObjectMethod("onConfigurationUpdate", &jsConfiguration, ARGC_ONE); in OnConfigurationUpdated()
543 NativeValue* dumpInfo = nativeEngine.CallFunction(value, method, argv, ARGC_ONE); in Dump()
/base/security/huks/frameworks/crypto_lite/js/builtin/src/
Dcipher_module.cpp41 JSIValue argvSuccess[ARGC_ONE] = { result }; in Rsa()
80 JSI::CallFunction(success, thisVal, argvSuccess, ARGC_ONE); in Rsa()
115 JSIValue argvSuccess[ARGC_ONE] = { result }; in Aes()
147 JSI::CallFunction(success, thisVal, argvSuccess, ARGC_ONE); in Aes()
/base/inputmethod/imf/frameworks/kits/extension/src/
Djs_inputmethod_extension.cpp34 constexpr size_t ARGC_ONE = 1; variable
131 …hellContextRef = jsRuntime_.LoadSystemModule("InputMethodExtensionContext", &contextObj, ARGC_ONE); in BindContext()
167 CallObjectMethod("onCreate", argv, ARGC_ONE); in OnStart()
218 NativeValue *remoteNative = nativeEngine->CallFunction(value, method, argv, ARGC_ONE); in OnConnect()
258 nativeEngine->CallFunction(value, method, argv, ARGC_ONE); in OnDisconnect()
Djs_inputmethod_extension_context.cpp41 constexpr size_t ARGC_ONE = 1; variable
103 if (info.argc != ARGC_ONE && info.argc != ARGC_TWO && info.argc != ARGC_THREE) { in OnStartAbility()
117 if (info.argc > ARGC_ONE && info.argv[INDEX_ONE]->TypeOf() == NATIVE_OBJECT) { in OnStartAbility()
216 if (info.argc != ARGC_ZERO && info.argc != ARGC_ONE) { in OnTerminateAbility()
352 if (info.argc != ARGC_ONE && info.argc != ARGC_TWO) { in OnDisconnectAbility()
393 NativeValue *lastParam = (info.argc == ARGC_ONE) ? nullptr : info.argv[INDEX_ONE]; in OnDisconnectAbility()
605 engine_.CallFunction(value, method, argv, ARGC_ONE); in HandleOnAbilityDisconnectDone()
634 engine_.CallFunction(value, method, argv, ARGC_ONE); in CallJsFailed()
/base/notification/distributed_notification_service/frameworks/js/napi/src/manager/
Dnapi_push.cpp26 constexpr size_t ARGC_ONE = 1; variable
91 if (info.argc < ARGC_ONE) { in OnUnregisterPushCallback()
Dnapi_push_callback.cpp26 constexpr size_t ARGC_ONE = 1; variable
81 funcResult = handleEscape.Escape(engine_.CallFunction(value, value, argv, ARGC_ONE)); in OnCheckNotification()
/base/theme/wallpaper_mgr/frameworks/kits/extension/src/
Djs_wallpaper_extension_ability.cpp36 constexpr size_t ARGC_ONE = 1; variable
104 … shellContextRef = jsRuntime_.LoadSystemModule("WallpaperExtensionContext", &contextObj, ARGC_ONE); in Init()
136 CallObjectMethod("onCreate", argv, ARGC_ONE); in OnStart()
270 "onWallpaperChange", arg, ARGC_ONE); in RegisterWallpaperCallback()
Djs_wallpaper_extension_context.cpp41 constexpr size_t ARGC_ONE = 1; variable
102 if (info.argc != ARGC_ONE && info.argc != ARGC_TWO && info.argc != ARGC_THREE) { in OnStartAbility()
116 if (info.argc > ARGC_ONE && info.argv[INDEX_ONE]->TypeOf() == NATIVE_OBJECT) { in OnStartAbility()
215 if (info.argc != ARGC_ZERO && info.argc != ARGC_ONE) { in OnTerminateAbility()
357 if (info.argc != ARGC_ONE && info.argc != ARGC_TWO) { in OnDisconnectAbility()
403 NativeValue *lastParam = (info.argc == ARGC_ONE) ? nullptr : info.argv[INDEX_ONE]; in OnDisconnectAbility()
630 engine_.CallFunction(value, method, argv, ARGC_ONE); in HandleOnAbilityDisconnectDone()
659 engine_.CallFunction(value, method, argv, ARGC_ONE); in CallJsFailed()
/base/account/os_account/interfaces/kits/napi/appaccount/src/
Dnapi_app_account_authorization_extension.cpp41 constexpr size_t ARGC_ONE = 1; variable
104 if (argc < ARGC_ONE) { in GetExtentionCallbackCommonParam()
118 *businessData = argv[ARGC_ONE]; in GetExtentionCallbackCommonParam()
126 size_t argc = ARGC_ONE; in GetRequestRedirectedParam()
127 napi_value argv[ARGC_ONE] = {nullptr}; in GetRequestRedirectedParam()
130 if (argc < ARGC_ONE) { in GetRequestRedirectedParam()
362 …ntime_.LoadSystemModule("account.appAccount.AuthorizationExtensionContext", &contextObj, ARGC_ONE); in BindContext()
Dnapi_app_account_authorization_extension_context.cpp44 constexpr size_t ARGC_ONE = 1; variable
200 if (info.argc < ARGC_ONE) { in OnDisconnectAbility()
238 NativeValue *lastParam = (info.argc == ARGC_ONE) ? nullptr : info.argv[INDEX_ONE]; in OnDisconnectAbility()
378 engine_.CallFunction(value, method, argv, ARGC_ONE); in HandleOnAbilityDisconnectDone()
400 engine_.CallFunction(value, method, argv, ARGC_ONE); in CallJsFailed()
/base/notification/common_event_service/frameworks/extension/src/
Djs_static_subscriber_extension.cpp33 constexpr size_t ARGC_ONE = 1; variable
129 &engine, "application.StaticSubscriberExtensionContext", &contextObj, ARGC_ONE); in Init()
229 nativeEngine.CallFunction(value, method, argv, ARGC_ONE); in OnReceiveEvent()
/base/time/time_service/framework/js/napi/system_date_time/src/
Dnapi_system_date_time.cpp79 … CHECK_ARGS_RETURN_VOID(TIME_MODULE_JS_NAPI, setTimeContext, argc >= ARGC_ONE, "invalid arguments", in SetTime()
105 … CHECK_ARGS_RETURN_VOID(TIME_MODULE_JS_NAPI, setDateContext, argc >= ARGC_ONE, "invalid arguments", in SetDate()
152 if (argc >= ARGC_ONE) { in GetRealActiveTime()
193 if (argc >= ARGC_ONE) { in GetCurrentTime()
234 if (argc >= ARGC_ONE) { in GetTime()
269 if (argc >= ARGC_ONE) { in GetRealTime()
380 …CHECK_ARGS_RETURN_VOID(TIME_MODULE_JS_NAPI, setTimezoneContext, argc >= ARGC_ONE, "invalid argumen… in SetTimezone()
/base/print/print_fwk/interfaces/kits/napi/src/
Dnapi_inner_print.cpp71 …PRINT_ASSERT_BASE(env, argc == NapiPrintUtils::ARGC_ONE, " should 1 parameter!", napi_invalid_arg); in StartDiscovery()
139 …PRINT_ASSERT_BASE(env, argc == NapiPrintUtils::ARGC_ONE, " should 1 parameter!", napi_invalid_arg); in ConnectPrinter()
171 …PRINT_ASSERT_BASE(env, argc == NapiPrintUtils::ARGC_ONE, " should 1 parameter!", napi_invalid_arg); in DisconnectPrinter()
203 …PRINT_ASSERT_BASE(env, argc == NapiPrintUtils::ARGC_ONE, " should 1 parameter!", napi_invalid_arg); in StartPrintJob()
237 …PRINT_ASSERT_BASE(env, argc == NapiPrintUtils::ARGC_ONE, " should 1 parameter!", napi_invalid_arg); in CancelPrintJob()
274 …PRINT_ASSERT_BASE(env, argc == NapiPrintUtils::ARGC_ONE, " should 1 parameter!", napi_invalid_arg); in RequestPreview()
309 …PRINT_ASSERT_BASE(env, argc == NapiPrintUtils::ARGC_ONE, " should 1 parameter!", napi_invalid_arg); in QueryCapability()
373 …PRINT_ASSERT_BASE(env, argc == NapiPrintUtils::ARGC_ONE, " should 1 parameter!", napi_invalid_arg); in QueryPrintJobById()
444 …PRINT_ASSERT_BASE(env, argc == NapiPrintUtils::ARGC_ONE, " should 1 parameter!", napi_invalid_arg); in Off()
Dnapi_print_ext.cpp30 …PRINT_ASSERT_BASE(env, argc == NapiPrintUtils::ARGC_ONE, " should 1 parameter!", napi_invalid_arg); in AddPrinters()
81 …PRINT_ASSERT_BASE(env, argc == NapiPrintUtils::ARGC_ONE, " should 1 parameter!", napi_invalid_arg); in RemovePrinters()
128 …PRINT_ASSERT_BASE(env, argc == NapiPrintUtils::ARGC_ONE, " should 1 parameter!", napi_invalid_arg); in UpdatePrinters()
280 …PRINT_ASSERT_BASE(env, argc == NapiPrintUtils::ARGC_ONE, " should 1 parameter!", napi_invalid_arg); in UpdateExtensionInfo()
362 …PRINT_ASSERT_BASE(env, argc == NapiPrintUtils::ARGC_ONE, " should 1 parameter!", napi_invalid_arg); in QueryPrinterCapabilityByUri()
/base/powermgr/powermgr_lite/interfaces/kits/battery/js/builtin/src/
Dbattery_module.cpp33 JSI::CallFunction(success, thisVal, &jsiValue, ARGC_ONE); in SuccessCallBack()
/base/time/time_service/framework/js/napi/system_timer/src/
Dnapi_system_timer.cpp200 …CHECK_ARGS_RETURN_VOID(TIME_MODULE_JS_NAPI, createTimerContext, argc >= ARGC_ONE, "invalid argumen… in CreateTimer()
267 …CHECK_ARGS_RETURN_VOID(TIME_MODULE_JS_NAPI, stopTimerContext, argc >= ARGC_ONE, "invalid arguments… in StopTimer()
295 …CHECK_ARGS_RETURN_VOID(TIME_MODULE_JS_NAPI, destroyTimerContext, argc == ARGC_ONE, "invalid argume… in DestroyTimer()
/base/powermgr/battery_manager/frameworks/napi/
Dsystem_battery.cpp32 const uint32_t ARGC_ONE = 0; variable
234 RETURN_IF_WITH_RET(!asyncInfo->CreateCallbackRef(env, argv[ARGC_ONE]), nullptr); in GetStatus()
/base/time/time_service/framework/js/napi/common/include/
Dnapi_utils.h81 constexpr size_t ARGC_ONE = 1; variable
/base/print/print_fwk/frameworks/helper/include/
Dnapi_print_utils.h29 static constexpr size_t ARGC_ONE = 1; variable
/base/inputmethod/imf/frameworks/js/napi/inputmethodclient/
Djs_get_input_method_setting.cpp34 constexpr size_t ARGC_ONE = 1; variable
408 std::make_shared<JSCallbackObject>(env, argv[ARGC_ONE], std::this_thread::get_id()); in Subscribe()
409 auto ret = engine->RegisterListener(argv[ARGC_ONE], type, callback); in Subscribe()
473 engine->UnRegisterListener(argv[ARGC_ONE], type); in UnSubscribe()
/base/inputmethod/imf/frameworks/js/napi/inputmethodability/
Djs_keyboard_delegate_setting.cpp31 constexpr size_t ARGC_ONE = 1; variable
235 engine->RegisterListener(argv[ARGC_ONE], type, callback); in Subscribe()
265 delegate->UnRegisterListener(argv[ARGC_ONE], type); in UnSubscribe()

12