/base/security/permission_lite/services/js_api/src/ |
D | perm_module.cpp | 37 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/ |
D | js_print_extension.cpp | 112 …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()
|
D | js_print_extension_connection.cpp | 152 engine_.CallFunction(value, method, argv, NapiPrintUtils::ARGC_ONE); in HandleOnAbilityDisconnectDone() 181 engine_.CallFunction(value, method, argv, NapiPrintUtils::ARGC_ONE); in CallJsFailed()
|
D | js_print_extension_context.cpp | 94 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/ |
D | js_user_auth_extension.cpp | 39 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/ |
D | cipher_module.cpp | 41 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/ |
D | js_inputmethod_extension.cpp | 34 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()
|
D | js_inputmethod_extension_context.cpp | 41 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/ |
D | napi_push.cpp | 26 constexpr size_t ARGC_ONE = 1; variable 91 if (info.argc < ARGC_ONE) { in OnUnregisterPushCallback()
|
D | napi_push_callback.cpp | 26 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/ |
D | js_wallpaper_extension_ability.cpp | 36 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()
|
D | js_wallpaper_extension_context.cpp | 41 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/ |
D | napi_app_account_authorization_extension.cpp | 41 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()
|
D | napi_app_account_authorization_extension_context.cpp | 44 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/ |
D | js_static_subscriber_extension.cpp | 33 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/ |
D | napi_system_date_time.cpp | 79 … 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/ |
D | napi_inner_print.cpp | 71 …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()
|
D | napi_print_ext.cpp | 30 …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/ |
D | battery_module.cpp | 33 JSI::CallFunction(success, thisVal, &jsiValue, ARGC_ONE); in SuccessCallBack()
|
/base/time/time_service/framework/js/napi/system_timer/src/ |
D | napi_system_timer.cpp | 200 …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/ |
D | system_battery.cpp | 32 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/ |
D | napi_utils.h | 81 constexpr size_t ARGC_ONE = 1; variable
|
/base/print/print_fwk/frameworks/helper/include/ |
D | napi_print_utils.h | 29 static constexpr size_t ARGC_ONE = 1; variable
|
/base/inputmethod/imf/frameworks/js/napi/inputmethodclient/ |
D | js_get_input_method_setting.cpp | 34 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/ |
D | js_keyboard_delegate_setting.cpp | 31 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()
|