Home
last modified time | relevance | path

Searched refs:ARGS_SIZE_ONE (Results 1 – 25 of 40) sorted by relevance

12

/base/customization/enterprise_device_management/interfaces/kits/device_control/src/
Ddevice_control_addon.cpp38 ASSERT_AND_THROW_PARAM_ERROR(env, argc >= ARGS_SIZE_ONE, "parameter count error"); in ResetFactory()
40 if (argc > ARGS_SIZE_ONE) { in ResetFactory()
55 if (argc > ARGS_SIZE_ONE) { in ResetFactory()
/base/theme/screenlock_mgr/frameworks/js/napi/src/
Dnapi_screenlock_ability.cpp147 …env, argc == ARGS_SIZE_ZERO || argc == ARGS_SIZE_ONE, " should 0 or 1 parameters!", napi_invalid_a… in NAPI_IsScreenLocked()
233 size_t argc = ARGS_SIZE_ONE; in NAPI_Lock()
234 napi_value argv[ARGS_SIZE_ONE] = { nullptr }; in NAPI_Lock()
240 if (argc == ARGS_SIZE_ONE) { in NAPI_Lock()
280 size_t argc = ARGS_SIZE_ONE; in NAPI_UnlockScreen()
281 napi_value argv[ARGS_SIZE_ONE] = { nullptr }; in NAPI_UnlockScreen()
285 …NAPI_ASSERT(env, argc == ARGS_SIZE_ZERO || argc == ARGS_SIZE_ONE, "Wrong number of arguments, requ… in NAPI_UnlockScreen()
289 if (argc == ARGS_SIZE_ONE) { in NAPI_UnlockScreen()
324 size_t argc = ARGS_SIZE_ONE; in NAPI_Unlock()
325 napi_value argv[ARGS_SIZE_ONE] = { nullptr }; in NAPI_Unlock()
[all …]
Dscreenlock_system_ability_callback.cpp70 …screenlockOnCallBackPtr->env, nullptr, callbackFunc, ARGS_SIZE_ONE, &callbackValue, &callbackResul… in __anonf6c467d20102()
/base/customization/enterprise_device_management/interfaces/kits/device_info/src/
Ddevice_info_addon.cpp58 ASSERT_AND_THROW_PARAM_ERROR(env, argc >= ARGS_SIZE_ONE, "parameter count error"); in GetDeviceInfo()
60 if (argc > ARGS_SIZE_ONE) { in GetDeviceInfo()
76 if (argc > ARGS_SIZE_ONE) { in GetDeviceInfo()
/base/customization/config_policy/interfaces/kits/js/src/
Dconfig_policy_napi.cpp29 static constexpr size_t ARGS_SIZE_ONE = 1; variable
57 if (argc < ARGS_SIZE_ONE) { in NAPIGetOneCfgFile()
81 if (argc < ARGS_SIZE_ONE) { in NAPIGetCfgFiles()
99 size_t argc = ARGS_SIZE_ONE; in NAPIGetCfgDirList()
100 napi_value argv[ARGS_SIZE_ONE] = {nullptr}; in NAPIGetCfgDirList()
106 if (argc == ARGS_SIZE_ONE) { in NAPIGetCfgDirList()
/base/security/certificate_framework/frameworks/js/napi/certificate/src/
Dnapi_x509_crl.cpp274 size_t argc = ARGS_SIZE_ONE; in IsRevoked()
275 napi_value argv[ARGS_SIZE_ONE] = { nullptr }; in IsRevoked()
278 if (!CertCheckArgsCount(env, argc, ARGS_SIZE_ONE, true)) { in IsRevoked()
309 size_t argc = ARGS_SIZE_ONE; in GetEncoded()
310 napi_value argv[ARGS_SIZE_ONE] = { nullptr }; in GetEncoded()
313 if (!CertCheckArgsCount(env, argc, ARGS_SIZE_ONE, false)) { in GetEncoded()
324 if (!CreateCallbackAndPromise(env, context, argc, ARGS_SIZE_ONE, argv[PARAM0])) { in GetEncoded()
472 size_t argc = ARGS_SIZE_ONE; in GetRevokedCertificate()
473 napi_value argv[ARGS_SIZE_ONE] = { nullptr }; in GetRevokedCertificate()
476 if (!CertCheckArgsCount(env, argc, ARGS_SIZE_ONE, true)) { in GetRevokedCertificate()
[all …]
Dnapi_x509_crl_entry.cpp168 size_t argc = ARGS_SIZE_ONE; in GetEncoded()
169 napi_value argv[ARGS_SIZE_ONE] = { nullptr }; in GetEncoded()
172 if (!CertCheckArgsCount(env, argc, ARGS_SIZE_ONE, false)) { in GetEncoded()
183 if (!CreateCallbackAndPromise(env, context, argc, ARGS_SIZE_ONE, argv[PARAM0])) { in GetEncoded()
Dnapi_cert_chain_validator.cpp206 size_t argc = ARGS_SIZE_ONE; in CreateCertChainValidator()
207 napi_value argv[ARGS_SIZE_ONE] = { nullptr }; in CreateCertChainValidator()
210 if (argc != ARGS_SIZE_ONE) { in CreateCertChainValidator()
/base/customization/enterprise_device_management/interfaces/kits/network_manager/src/
Dnetwork_manager_addon.cpp121 ASSERT_AND_THROW_PARAM_ERROR(env, argc >= ARGS_SIZE_ONE, "parameter count error"); in GetAllNetworkInterfaces()
123 if (argc > ARGS_SIZE_ONE) { in GetAllNetworkInterfaces()
124 matchFlag = matchFlag && MatchValueType(env, argv[ARGS_SIZE_ONE], napi_function); in GetAllNetworkInterfaces()
139 if (argc > ARGS_SIZE_ONE) { in GetAllNetworkInterfaces()
141 … napi_create_reference(env, argv[ARGS_SIZE_ONE], NAPI_RETURN_ONE, &asyncCallbackInfo->callback); in GetAllNetworkInterfaces()
510 ASSERT_AND_THROW_PARAM_ERROR(env, argc >= ARGS_SIZE_ONE, "parameter count error"); in ListIptablesFilterRules()
512 if (argc > ARGS_SIZE_ONE) { in ListIptablesFilterRules()
513 matchFlag = matchFlag && MatchValueType(env, argv[ARGS_SIZE_ONE], napi_function); in ListIptablesFilterRules()
528 if (argc > ARGS_SIZE_ONE) { in ListIptablesFilterRules()
530 … napi_create_reference(env, argv[ARGS_SIZE_ONE], NAPI_RETURN_ONE, &asyncCallbackInfo->callback); in ListIptablesFilterRules()
[all …]
/base/security/certificate_framework/frameworks/js/napi/certificate/inc/
Dnapi_cert_defines.h24 constexpr size_t ARGS_SIZE_ONE = 1; variable
/base/security/crypto_framework/frameworks/js/napi/crypto/src/
Dnapi_pub_key.cpp147 size_t expectedArgc = ARGS_SIZE_ONE; in JsGetAsyKeySpec()
148 size_t argc = ARGS_SIZE_ONE; in JsGetAsyKeySpec()
149 napi_value argv[ARGS_SIZE_ONE] = { nullptr }; in JsGetAsyKeySpec()
Dnapi_sym_key_generator.cpp78 size_t expectedArgc = ARGS_SIZE_ONE; in BuildContextForGenerateKey()
79 size_t argc = ARGS_SIZE_ONE; in BuildContextForGenerateKey()
80 napi_value argv[ARGS_SIZE_ONE] = { nullptr }; in BuildContextForGenerateKey()
372 size_t expectedArgc = ARGS_SIZE_ONE; in CreateSymKeyGenerator()
373 size_t argc = ARGS_SIZE_ONE; in CreateSymKeyGenerator()
374 napi_value argv[ARGS_SIZE_ONE] = { nullptr }; in CreateSymKeyGenerator()
Dnapi_pri_key.cpp170 size_t expectedArgc = ARGS_SIZE_ONE; in JsGetAsyKeySpec()
171 size_t argc = ARGS_SIZE_ONE; in JsGetAsyKeySpec()
172 napi_value argv[ARGS_SIZE_ONE] = { nullptr }; in JsGetAsyKeySpec()
Dnapi_md.cpp207 size_t expectedArgsCount = ARGS_SIZE_ONE; in BuildMdJsDoFinalCtx()
209 napi_value argv[ARGS_SIZE_ONE] = { nullptr }; in BuildMdJsDoFinalCtx()
211 if (!CheckArgsCount(env, argc, ARGS_SIZE_ONE, false)) { in BuildMdJsDoFinalCtx()
388 size_t expectedArgc = ARGS_SIZE_ONE; in CreateMd()
390 napi_value argv[ARGS_SIZE_ONE] = { nullptr }; in CreateMd()
Dnapi_sign.cpp272 napi_value params[ARGS_SIZE_ONE] = { businessError }; in ReturnInitCallbackResult()
280 napi_call_function(env, recv, func, ARGS_SIZE_ONE, params, &callFuncRet); in ReturnInitCallbackResult()
299 napi_value params[ARGS_SIZE_ONE] = { businessError }; in ReturnUpdateCallbackResult()
307 napi_call_function(env, recv, func, ARGS_SIZE_ONE, params, &callFuncRet); in ReturnUpdateCallbackResult()
720 size_t expectedArgc = ARGS_SIZE_ONE; in JsGetSignSpec()
721 size_t argc = ARGS_SIZE_ONE; in JsGetSignSpec()
722 napi_value argv[ARGS_SIZE_ONE] = { nullptr }; in JsGetSignSpec()
Dnapi_rand.cpp243 size_t expectedArgsCount = ARGS_SIZE_ONE; in JsGenerateRandomSync()
245 napi_value argv[ARGS_SIZE_ONE] = { nullptr }; in JsGenerateRandomSync()
290 size_t expectedArgsCount = ARGS_SIZE_ONE; in JsSetSeed()
292 napi_value argv[ARGS_SIZE_ONE] = { nullptr }; in JsSetSeed()
Dnapi_mac.cpp273 size_t expectedArgsCount = ARGS_SIZE_ONE; in BuildMacJsDoFinalCtx()
275 napi_value argv[ARGS_SIZE_ONE] = { nullptr }; in BuildMacJsDoFinalCtx()
277 if (!CheckArgsCount(env, argc, ARGS_SIZE_ONE, false)) { in BuildMacJsDoFinalCtx()
495 size_t expectedArgc = ARGS_SIZE_ONE; in CreateMac()
497 napi_value argv[ARGS_SIZE_ONE] = { nullptr }; in CreateMac()
Dnapi_verify.cpp294 napi_value params[ARGS_SIZE_ONE] = { businessError }; in ReturnInitCallbackResult()
302 napi_call_function(env, recv, func, ARGS_SIZE_ONE, params, &callFuncRet); in ReturnInitCallbackResult()
322 napi_value params[ARGS_SIZE_ONE] = { businessError }; in ReturnUpdateCallbackResult()
330 napi_call_function(env, recv, func, ARGS_SIZE_ONE, params, &callFuncRet); in ReturnUpdateCallbackResult()
746 size_t expectedArgc = ARGS_SIZE_ONE; in JsGetVerifySpec()
747 size_t argc = ARGS_SIZE_ONE; in JsGetVerifySpec()
748 napi_value argv[ARGS_SIZE_ONE] = { nullptr }; in JsGetVerifySpec()
/base/customization/enterprise_device_management/interfaces/kits/restrictions/src/
Drestrictions_addon.cpp135 ASSERT_AND_THROW_PARAM_ERROR(env, argc >= ARGS_SIZE_ONE, "parameter count error"); in IsPolicyDisabled()
156 if (argc > ARGS_SIZE_ONE) { in IsPolicyDisabled()
160 if (argc > ARGS_SIZE_ONE) { in IsPolicyDisabled()
/base/customization/enterprise_device_management/interfaces/kits/device_settings/src/
Ddevice_settings_addon.cpp40 ASSERT_AND_THROW_PARAM_ERROR(env, argc >= ARGS_SIZE_ONE, "parameter count error"); in GetScreenOffTime()
42 if (argc > ARGS_SIZE_ONE) { in GetScreenOffTime()
58 if (argc > ARGS_SIZE_ONE) { in GetScreenOffTime()
/base/customization/enterprise_device_management/interfaces/kits/datetime_manager/src/
Ddatetime_manager_addon.cpp152 ASSERT_AND_THROW_PARAM_ERROR(env, argc >= ARGS_SIZE_ONE, "parameter count error"); in IsModifyDateTimeDisallowed()
172 if (argc > ARGS_SIZE_ONE) { in IsModifyDateTimeDisallowed()
176 if (argc > ARGS_SIZE_ONE) { in IsModifyDateTimeDisallowed()
/base/customization/enterprise_device_management/interfaces/kits/admin_manager/src/
Dadmin_manager_addon.cpp158 ASSERT_AND_THROW_PARAM_ERROR(env, argc >= ARGS_SIZE_ONE, "Parameter count error"); in DisableAdmin()
212 ASSERT_AND_THROW_PARAM_ERROR(env, argc >= ARGS_SIZE_ONE, "parameter count error"); in DisableSuperAdmin()
221 if (argc > ARGS_SIZE_ONE) { in DisableSuperAdmin()
259 ASSERT_AND_THROW_PARAM_ERROR(env, argc >= ARGS_SIZE_ONE, "parameter count error"); in GetEnterpriseInfo()
261 if (argc > ARGS_SIZE_ONE) { in GetEnterpriseInfo()
277 if (argc > ARGS_SIZE_ONE) { in GetEnterpriseInfo()
407 ASSERT_AND_THROW_PARAM_ERROR(env, argc >= ARGS_SIZE_ONE, "parameter count error"); in IsSuperAdmin()
417 if (argc > ARGS_SIZE_ONE) { in IsSuperAdmin()
444 ASSERT_AND_THROW_PARAM_ERROR(env, argc >= ARGS_SIZE_ONE, "Parameter count error"); in IsAdminEnabled()
/base/account/os_account/interfaces/kits/napi/appaccount/src/
Dnapi_app_account_common.cpp75 napi_value results[ARGS_SIZE_ONE] = {nullptr}; in UvQueueWorkOnAppAccountsChanged()
77 NapiCallVoidFunction(data->env, results, ARGS_SIZE_ONE, data->ref); in UvQueueWorkOnAppAccountsChanged()
253 napi_value results[ARGS_SIZE_ONE] = {AppExecFwk::WrapWant(data->env, data->request)}; in UvQueueWorkOnRequestRedirected()
254 NapiCallVoidFunction(data->env, results, ARGS_SIZE_ONE, data->callback.onRequestRedirected); in UvQueueWorkOnRequestRedirected()
469 size_t argc = ARGS_SIZE_ONE; in GetAuthenticatorCallbackForResult()
470 napi_value argv[ARGS_SIZE_ONE] = { remote }; in GetAuthenticatorCallbackForResult()
479 if (argc < ARGS_SIZE_ONE) { in ParseContextWithExInfo()
731 size_t argc = ARGS_SIZE_ONE; in ParseContextCBArray()
732 napi_value argv[ARGS_SIZE_ONE] = {0}; in ParseContextCBArray()
734 …if ((argc == ARGS_SIZE_ONE) && (!GetCallbackProperty(env, argv[0], asyncContext->callbackRef, 1)))… in ParseContextCBArray()
[all …]
/base/security/crypto_framework/frameworks/js/napi/crypto/inc/
Dnapi_crypto_framework_defines.h24 constexpr size_t ARGS_SIZE_ONE = 1; variable
/base/account/os_account/dfx/hidumper_adapter/
Daccount_dump_helper.cpp27 const std::int32_t ARGS_SIZE_ONE = 1; variable
82 if (argsSize == ARGS_SIZE_ONE) { in Dump()

12