/foundation/barrierfree/accessibility/interfaces/kits/napi/accessibility_gesture_point/src/ |
D | napi_accessibility_gesture_point.cpp | 25 size_t argc = ARGS_SIZE_TWO; in JSConstructor() 26 napi_value argv[ARGS_SIZE_TWO] = {nullptr}; in JSConstructor() 30 if (argc != ARGS_SIZE_TWO) { in JSConstructor()
|
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/launcher_bundle_manager/ |
D | launcher_bundle_manager.cpp | 75 napi_value result[ARGS_SIZE_TWO] = {0}; in GetLauncherAbilityInfoComplete() 85 …:NapiReturnDeferred<GetLauncherAbilityCallbackInfo>(env, asyncCallbackInfo, result, ARGS_SIZE_TWO); in GetLauncherAbilityInfoComplete() 92 if (!args.Init(ARGS_SIZE_TWO, ARGS_SIZE_THREE)) { in GetLauncherAbilityInfo() 102 if (args.GetMaxArgc() >= ARGS_SIZE_TWO) { in GetLauncherAbilityInfo() 135 if (!args.Init(ARGS_SIZE_TWO, ARGS_SIZE_TWO)) { in GetLauncherAbilityInfoSync() 205 napi_value result[ARGS_SIZE_TWO] = {0}; in GetAllLauncherAbilityInfoComplete() 215 …piReturnDeferred<GetAllLauncherAbilityCallbackInfo>(env, asyncCallbackInfo, result, ARGS_SIZE_TWO); in GetAllLauncherAbilityInfoComplete() 222 if (!args.Init(ARGS_SIZE_ONE, ARGS_SIZE_TWO)) { in GetAllLauncherAbilityInfo() 237 if (args.GetMaxArgc() == ARGS_SIZE_TWO) { in GetAllLauncherAbilityInfo() 286 napi_value result[ARGS_SIZE_TWO] = {0}; in GetShortcutInfoComplete() [all …]
|
/foundation/communication/bluetooth/frameworks/js/napi/src/ |
D | napi_bluetooth_host.cpp | 47 size_t argc = ARGS_SIZE_TWO; in RegisterHostObserver() 48 napi_value argv[ARGS_SIZE_TWO] = {0}; in RegisterHostObserver() 68 size_t argc = ARGS_SIZE_TWO; in DeregisterHostObserver() 69 napi_value argv[ARGS_SIZE_TWO] = {0}; in DeregisterHostObserver()
|
/foundation/communication/bluetooth/frameworks/js/napi/src/socket/ |
D | napi_bluetooth_spp_server.cpp | 145 napi_value result[ARGS_SIZE_TWO] = {0}; in SppListen() 167 napi_call_function(env, undefined, callback, ARGS_SIZE_TWO, result, &callResult); in SppListen() 194 size_t argc = ARGS_SIZE_TWO; in CheckSppAcceptParams() 195 napi_value argv[ARGS_SIZE_TWO] = {0}; in CheckSppAcceptParams() 198 NAPI_BT_RETURN_IF((argc != ARGS_SIZE_TWO && argc != ARGS_SIZE_TWO - CALLBACK_SIZE), in CheckSppAcceptParams() 213 if (argc == ARGS_SIZE_TWO) { in CheckSppAcceptParams() 258 napi_value result[ARGS_SIZE_TWO] = {0}; in SppAccept() 277 napi_call_function(env, undefined, callback, ARGS_SIZE_TWO, result, &callResult); in SppAccept()
|
D | napi_bluetooth_spp_client.cpp | 134 napi_value result[ARGS_SIZE_TWO] = {0}; in SppConnect() 159 napi_call_function(env, undefined, callback, ARGS_SIZE_TWO, result, &callResult); in SppConnect() 222 size_t argc = ARGS_SIZE_TWO; in CheckSppWriteParams() 223 napi_value argv[ARGS_SIZE_TWO] = {0}; in CheckSppWriteParams() 227 NAPI_BT_RETURN_IF((argc != ARGS_SIZE_TWO), "Requires 2 arguments.", napi_invalid_arg); in CheckSppWriteParams()
|
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/bundle_monitor/ |
D | bundle_monitor.cpp | 50 if (!args.Init(ARGS_SIZE_TWO, ARGS_SIZE_TWO)) { in Register() 94 if (!args.Init(ARGS_SIZE_ONE, ARGS_SIZE_TWO)) { in Unregister() 121 if (args.GetMaxArgc() >= ARGS_SIZE_TWO) { in Unregister()
|
/foundation/barrierfree/accessibility/interfaces/kits/napi/src/ |
D | napi_accessibility_system_ability_client.cpp | 173 napi_value result[ARGS_SIZE_TWO] = {0}; in Completefunction() 191 napi_call_function(env, undefined, callback, ARGS_SIZE_TWO, result, &returnVal); in Completefunction() 220 napi_value result[ARGS_SIZE_TWO] = {0}; in GetAbilityListComplete() 230 napi_call_function(env, undefined, callback, ARGS_SIZE_TWO, result, &returnVal); in GetAbilityListComplete() 267 if (argc > ARGS_SIZE_TWO && CheckJsFunction(env, parameters[ARGS_SIZE_TWO])) { in GetAbilityList() 268 napi_create_reference(env, parameters[ARGS_SIZE_TWO], 1, &callbackInfo->callback_); in GetAbilityList() 408 napi_value result[ARGS_SIZE_TWO] = {0}; in SendEventComplete() 419 napi_call_function(env, undefined, callback, ARGS_SIZE_TWO, result, &returnVal); in SendEventComplete() 444 size_t argc = ARGS_SIZE_TWO; in SendEvent() 445 napi_value parameters[ARGS_SIZE_TWO] = {0}; in SendEvent() [all …]
|
/foundation/communication/bluetooth/frameworks/js/napi/src/access/ |
D | napi_bluetooth_access.cpp | 183 NAPI_BT_RETURN_IF(argc != ARGS_SIZE_TWO, "Requires 2 arguments.", napi_invalid_arg); in CheckAccessObserverParams() 200 size_t argc = ARGS_SIZE_TWO; in RegisterAccessObserver() 201 napi_value argv[ARGS_SIZE_TWO] = {0}; in RegisterAccessObserver() 217 size_t argc = ARGS_SIZE_TWO; in CheckAccessDeregisterObserver() 218 napi_value argv[ARGS_SIZE_TWO] = {0}; in CheckAccessDeregisterObserver() 226 NAPI_BT_RETURN_IF(argc != ARGS_SIZE_TWO, "Requires 2 arguments.", napi_invalid_arg); in CheckAccessDeregisterObserver()
|
/foundation/communication/bluetooth/frameworks/js/napi/src/ble/ |
D | napi_bluetooth_gatt_server.cpp | 102 size_t argc = ARGS_SIZE_TWO; in CheckGattsOn() 103 napi_value argv[ARGS_SIZE_TWO] = {nullptr}; in CheckGattsOn() 106 NAPI_BT_RETURN_IF(argc != ARGS_SIZE_TWO, "Requires 2 arguments.", napi_invalid_arg); in CheckGattsOn() 143 size_t argc = ARGS_SIZE_TWO; in CheckGattsOff() 144 napi_value argv[ARGS_SIZE_TWO] = {nullptr}; // argv[PARAM1] is not used. in CheckGattsOff() 147 …NAPI_BT_RETURN_IF(argc != ARGS_SIZE_ONE && argc != ARGS_SIZE_TWO, "Requires 1 or 2 arguments.", na… in CheckGattsOff() 343 …NAPI_BT_RETURN_IF(argc != ARGS_SIZE_TWO && argc != ARGS_SIZE_THREE, "Requires 2 or 3 arguments.", … in CheckNotifyCharacteristicChangedEx() 393 size_t argc = ARGS_SIZE_TWO; in CheckGattsNotify() 394 napi_value argv[ARGS_SIZE_TWO] = {nullptr}; in CheckGattsNotify() 397 NAPI_BT_RETURN_IF(argc != ARGS_SIZE_TWO, "Requires 2 arguments.", napi_invalid_arg); in CheckGattsNotify()
|
D | napi_bluetooth_gatt_client.cpp | 229 size_t argc = ARGS_SIZE_TWO; in CheckGattClientOn() 230 napi_value argv[ARGS_SIZE_TWO] = {nullptr}; in CheckGattClientOn() 233 NAPI_BT_RETURN_IF(argc != ARGS_SIZE_TWO, "Requires 2 arguments.", napi_invalid_arg); in CheckGattClientOn() 267 size_t argc = ARGS_SIZE_TWO; in CheckGattClientOff() 268 napi_value argv[ARGS_SIZE_TWO] = {nullptr}; // argv[PARAM1] is not used. in CheckGattClientOff() 271 …NAPI_BT_RETURN_IF(argc != ARGS_SIZE_ONE && argc != ARGS_SIZE_TWO, "Requires 1 or 2 arguments.", na… in CheckGattClientOff() 360 size_t expectedArgsCount = ARGS_SIZE_TWO; in ParseGattClientReadCharacteristicValue() 362 napi_value argv[ARGS_SIZE_TWO] = {0}; in ParseGattClientReadCharacteristicValue() 412 size_t expectedArgsCount = ARGS_SIZE_TWO; in ParseGattClientReadDescriptorValue() 414 napi_value argv[ARGS_SIZE_TWO] = {0}; in ParseGattClientReadDescriptorValue() [all …]
|
D | napi_bluetooth_ble.cpp | 209 std::array<std::string, ARGS_SIZE_TWO> funcArray {"success", "fail"}; in ParseDeviceFoundParameters() 266 size_t argc = ARGS_SIZE_TWO; in On() 267 napi_value argv[ARGS_SIZE_TWO] = {nullptr}; in On() 270 NAPI_BT_RETURN_IF(argc != ARGS_SIZE_TWO, "Requires 2 arguments", napi_invalid_arg); in On() 294 size_t argc = ARGS_SIZE_TWO; in Off() 295 napi_value argv[ARGS_SIZE_TWO] = {nullptr}; in Off() 299 … argc != ARGS_SIZE_ONE && argc != ARGS_SIZE_TWO, "Requires 1 or 2 arguments", napi_invalid_arg); in Off() 565 size_t argc = ARGS_SIZE_TWO; in CheckBleScanParams() 566 napi_value argv[ARGS_SIZE_TWO] = {nullptr}; in CheckBleScanParams() 569 …NAPI_BT_RETURN_IF((argc == 0 || argc > ARGS_SIZE_TWO), "Requires 1 or 2 arguments.", napi_invalid_… in CheckBleScanParams() [all …]
|
/foundation/barrierfree/accessibility/interfaces/kits/napi/accessibility_config/src/ |
D | napi_accessibility_config.cpp | 63 if (argc < ARGS_SIZE_TWO - 1) { in DisableAbilityError() 143 size_t argc = ARGS_SIZE_TWO; in DisableAbility() 144 napi_value parameters[ARGS_SIZE_TWO] = {0}; in DisableAbility() 160 if (argc > ARGS_SIZE_TWO - 1 && CheckJsFunction(env, parameters[PARAM1])) { in DisableAbility() 192 size_t argc = ARGS_SIZE_TWO; in SubscribeState() 193 napi_value args[ARGS_SIZE_TWO] = {0}; in SubscribeState() 197 if (argc < ARGS_SIZE_TWO) { in SubscribeState() 243 size_t argc = ARGS_SIZE_TWO; in UnsubscribeState() 244 napi_value args[ARGS_SIZE_TWO] = {0}; in UnsubscribeState() 248 if (argc < ARGS_SIZE_TWO - 1) { in UnsubscribeState() [all …]
|
/foundation/communication/bluetooth/frameworks/js/napi/src/common/ |
D | napi_bluetooth_event.cpp | 123 size_t expectedArgsCount = ARGS_SIZE_TWO; in OnEvent() 125 napi_value argv[ARGS_SIZE_TWO] = {0}; in OnEvent() 162 napi_value argv[ARGS_SIZE_TWO] = {0}; in OffEvent() 169 if (argc != ARGS_SIZE_ONE && argc != ARGS_SIZE_TWO) { in OffEvent()
|
D | napi_bluetooth_utils.cpp | 709 size_t argc = ARGS_SIZE_TWO; in CheckSetDevicePairingConfirmationParam() 710 napi_value argv[ARGS_SIZE_TWO] = {nullptr}; in CheckSetDevicePairingConfirmationParam() 713 NAPI_BT_RETURN_IF(argc != ARGS_SIZE_TWO, "Wrong argument type", false); in CheckSetDevicePairingConfirmationParam() 732 size_t argc = ARGS_SIZE_TWO; in CheckSetBluetoothScanModeParam() 733 napi_value argv[ARGS_SIZE_TWO] = {nullptr}; in CheckSetBluetoothScanModeParam() 736 NAPI_BT_RETURN_IF(argc != ARGS_SIZE_TWO, "Wrong argument type", false); in CheckSetBluetoothScanModeParam() 775 …NAPI_BT_RETURN_IF(argc != ARGS_SIZE_TWO && argc != ARGS_SIZE_THREE, "Requires 2 or 3 arguments.", … in CheckSetConnectStrategyParam() 784 size_t argc = ARGS_SIZE_TWO; in CheckDeviceAddressParam() 785 napi_value argv[ARGS_SIZE_TWO] = {nullptr}; in CheckDeviceAddressParam() 787 …NAPI_BT_RETURN_IF(argc != ARGS_SIZE_ONE && argc != ARGS_SIZE_TWO, "Requires 1 or 2 arguments.", na… in CheckDeviceAddressParam()
|
D | napi_async_callback.cpp | 117 napi_value argv[ARGS_SIZE_TWO] = {code, val}; in CallFunction() 118 NapiCallFunction(env_, callbackRef_, argv, ARGS_SIZE_TWO); in CallFunction()
|
/foundation/ability/form_fwk/frameworks/js/napi/formProvider/ |
D | napi_form_provider.cpp | 42 constexpr size_t ARGS_SIZE_TWO = 2; variable 53 napi_value callbackValues[ARGS_SIZE_TWO] = {nullptr, nullptr}; in ExecuteAsyncCallbackWork() 60 napi_call_function(env, nullptr, callback, ARGS_SIZE_TWO, callbackValues, &callResult); in ExecuteAsyncCallbackWork() 210 napi_value callbackValues[ARGS_SIZE_TWO] = {nullptr, nullptr}; in RequestPublishFormCallback() 221 … napi_call_function(env, nullptr, callback, ARGS_SIZE_TWO, callbackValues, &callResult); in RequestPublishFormCallback() 314 if (argc < ARGS_SIZE_TWO) { in NAPI_RequestPublishForm() 317 } else if (argc > ARGS_SIZE_TWO) { in NAPI_RequestPublishForm() 349 if (info.argc > ARGS_SIZE_TWO) { in OnGetFormsInfo() 397 if (info.argc < ARGS_SIZE_TWO || info.argc > ARGS_SIZE_THREE) { in OnSetFormNextRefreshTime() 458 if (info.argc < ARGS_SIZE_TWO || info.argc > ARGS_SIZE_THREE) { in OnUpdateForm()
|
/foundation/ability/form_fwk/frameworks/js/napi/formHost/ |
D | napi_form_host.cpp | 47 constexpr size_t ARGS_SIZE_TWO = 2; variable 154 napi_value callbackValues[ARGS_SIZE_TWO] = {nullptr, nullptr}; in AcquireFormStateCallbackComplete() 162 napi_call_function(env, nullptr, callback, ARGS_SIZE_TWO, callbackValues, &callResult); in AcquireFormStateCallbackComplete() 464 size_t argc = ARGS_SIZE_TWO; in NAPI_AcquireFormState() 465 napi_value argv[ARGS_SIZE_TWO] = {nullptr, nullptr}; in NAPI_AcquireFormState() 467 if (argc > ARGS_SIZE_TWO) { in NAPI_AcquireFormState() 473 int32_t callbackType = (argc == ARGS_SIZE_TWO) ? CALLBACK_FLG : PROMISE_FLG; in NAPI_AcquireFormState() 503 if (argc == ARGS_SIZE_TWO) { in NAPI_AcquireFormState() 531 size_t argc = ARGS_SIZE_TWO; in NAPI_RegisterFormUninstallObserver() 532 napi_value argv[ARGS_SIZE_TWO] = {nullptr, nullptr}; in NAPI_RegisterFormUninstallObserver() [all …]
|
/foundation/communication/bluetooth/frameworks/js/napi/src/connection/ |
D | napi_bluetooth_connection.cpp | 115 size_t argc = ARGS_SIZE_TWO; in CheckRegisterObserver() 116 napi_value argv[ARGS_SIZE_TWO] = {0}; in CheckRegisterObserver() 119 NAPI_BT_RETURN_IF(argc != ARGS_SIZE_TWO, "Requires 2 arguments.", napi_invalid_arg); in CheckRegisterObserver() 145 size_t argc = ARGS_SIZE_TWO; in CheckDeRegisterObserver() 146 napi_value argv[ARGS_SIZE_TWO] = {0}; in CheckDeRegisterObserver() 162 } else if (argc == ARGS_SIZE_TWO) { in CheckDeRegisterObserver() 486 napi_value results[ARGS_SIZE_TWO] = {nullptr}; in SetCallback() 490 … env, napi_call_function(env, undefined, callback, ARGS_SIZE_TWO, &results[PARAM0], &resultout)); in SetCallback() 610 size_t argc = ARGS_SIZE_TWO; in CheckDeviceAsyncParam() 611 napi_value argv[ARGS_SIZE_TWO] = {nullptr}; in CheckDeviceAsyncParam() [all …]
|
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/package/ |
D | package.cpp | 38 constexpr size_t ARGS_SIZE_TWO = 2; variable 160 if (info.argc < ARGS_SIZE_ONE || info.argc > ARGS_SIZE_TWO) { in OnHasInstalled() 182 engine.CallFunction(value, callback, args, ARGS_SIZE_TWO); in OnHasInstalled()
|
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/common/ |
D | napi_constants.h | 23 constexpr size_t ARGS_SIZE_TWO = 2; variable
|
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/app_control/ |
D | js_app_control.cpp | 136 if (!args.Init(ARGS_SIZE_TWO, ARGS_SIZE_THREE)) { in SetDisposedStatus() 182 if (!args.Init(ARGS_SIZE_TWO, ARGS_SIZE_TWO)) { in SetDisposedStatusSync() 266 if (!args.Init(ARGS_SIZE_ONE, ARGS_SIZE_TWO)) { in DeleteDisposedStatus() 376 CommonFunc::NapiReturnDeferred<DisposedStatus>(env, asyncCallbackInfo, result, ARGS_SIZE_TWO); in GetDisposedStatusComplete() 389 if (!args.Init(ARGS_SIZE_ONE, ARGS_SIZE_TWO)) { in GetDisposedStatus()
|
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/bundle_manager/ |
D | bundle_manager.cpp | 144 napi_value result[ARGS_SIZE_TWO] = {0}; in GetBundleArchiveInfoComplete() 154 …apiReturnDeferred<GetBundleArchiveInfoCallbackInfo>(env, asyncCallbackInfo, result, ARGS_SIZE_TWO); in GetBundleArchiveInfoComplete() 167 if (!args.Init(ARGS_SIZE_TWO, ARGS_SIZE_THREE)) { in GetBundleArchiveInfo() 298 …:NapiReturnDeferred<GetBundleNameByUidCallbackInfo>(env, asyncCallbackInfo, result, ARGS_SIZE_TWO); in GetBundleNameByUidComplete() 319 …nc::NapiReturnDeferred<ApplicationInfoCallbackInfo>(env, asyncCallbackInfo, result, ARGS_SIZE_TWO); in GetApplicationInfoComplete() 340 …c::NapiReturnDeferred<ApplicationInfosCallbackInfo>(env, asyncCallbackInfo, result, ARGS_SIZE_TWO); in GetApplicationInfosComplete() 375 if (!args.Init(ARGS_SIZE_ONE, ARGS_SIZE_TWO)) { in GetBundleNameByUid() 414 if (!args.Init(ARGS_SIZE_TWO, ARGS_SIZE_FOUR)) { in GetApplicationInfo() 420 if (args.GetMaxArgc() < ARGS_SIZE_TWO) { in GetApplicationInfo() 439 } else if (i == ARGS_SIZE_TWO) { in GetApplicationInfo() [all …]
|
D | bundle_manager_sync.cpp | 67 if (!args.Init(ARGS_SIZE_TWO, ARGS_SIZE_TWO)) { in SetApplicationEnabledSync() 108 if (!args.Init(ARGS_SIZE_TWO, ARGS_SIZE_TWO)) { in SetAbilityEnabledSync() 415 if (!args.Init(ARGS_SIZE_ONE, ARGS_SIZE_TWO)) { in ParamsProcessGetLaunchWantForBundleSync() 485 if (!args.Init(ARGS_SIZE_TWO, ARGS_SIZE_TWO)) { in GetBundleArchiveInfoSync() 564 if (!args.Init(ARGS_SIZE_TWO, ARGS_SIZE_THREE)) { in ParamsProcessGetProfileByAbilitySync() 740 if (!args.Init(ARGS_SIZE_ONE, ARGS_SIZE_TWO)) { in GetAppProvisionInfoSync() 751 if (args.GetMaxArgc() >= ARGS_SIZE_TWO) { in GetAppProvisionInfoSync()
|
/foundation/barrierfree/accessibility/interfaces/kits/napi/accessibility_extension_module_loader/src/ |
D | napi_accessibility_element.cpp | 225 napi_value result[ARGS_SIZE_TWO] = {0}; in AttributeNamesComplete() 248 napi_call_function(env, undefined, callback, ARGS_SIZE_TWO, result, &returnVal); in AttributeNamesComplete() 261 size_t argc = ARGS_SIZE_TWO; in AttributeValue() 262 napi_value argv[ARGS_SIZE_TWO] = {0}; in AttributeValue() 313 if (argc < ARGS_SIZE_TWO - 1) { in GetAttribute() 335 if (argc > ARGS_SIZE_TWO - 1) { in AttributeValueAsync() 398 napi_value result[ARGS_SIZE_TWO] = {0}; in AttributeValueComplete() 430 napi_call_function(env, undefined, callback, ARGS_SIZE_TWO, result, &returnVal); in AttributeValueComplete() 1039 napi_value result[ARGS_SIZE_TWO] = {0}; in ActionNamesComplete() 1072 napi_call_function(env, undefined, callback, ARGS_SIZE_TWO, result, &returnVal); in ActionNamesComplete() [all …]
|
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/default_app/ |
D | js_default_app.cpp | 265 napi_value result[ARGS_SIZE_TWO] = {0}; in IsDefaultApplicationComplete() 273 …monFunc::NapiReturnDeferred<DefaultAppCallbackInfo>(env, asyncCallbackInfo, result, ARGS_SIZE_TWO); in IsDefaultApplicationComplete() 286 if (!args.Init(ARGS_SIZE_ONE, ARGS_SIZE_TWO)) { in IsDefaultApplication() 412 napi_value result[ARGS_SIZE_TWO] = {0}; in GetDefaultApplicationComplete() 421 …monFunc::NapiReturnDeferred<DefaultAppCallbackInfo>(env, asyncCallbackInfo, result, ARGS_SIZE_TWO); in GetDefaultApplicationComplete() 480 if (!args.Init(ARGS_SIZE_ONE, ARGS_SIZE_TWO)) { in ParamsProcessGetDefaultApplicationSync() 596 if (!args.Init(ARGS_SIZE_TWO, ARGS_SIZE_FOUR)) { in SetDefaultApplication() 647 if (!args.Init(ARGS_SIZE_TWO, ARGS_SIZE_THREE)) { in ParamsProcessSetDefaultApplicationSync() 814 if (!args.Init(ARGS_SIZE_ONE, ARGS_SIZE_TWO)) { in ParamsProcessResetDefaultApplicationSync()
|