/base/customization/enterprise_device_management/interfaces/kits/device_control/src/ |
D | device_control_addon.cpp | 38 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/ |
D | napi_screenlock_ability.cpp | 147 …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 …]
|
D | screenlock_system_ability_callback.cpp | 70 …screenlockOnCallBackPtr->env, nullptr, callbackFunc, ARGS_SIZE_ONE, &callbackValue, &callbackResul… in __anonf6c467d20102()
|
/base/customization/enterprise_device_management/interfaces/kits/device_info/src/ |
D | device_info_addon.cpp | 58 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/ |
D | config_policy_napi.cpp | 29 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/ |
D | napi_x509_crl.cpp | 274 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 …]
|
D | napi_x509_crl_entry.cpp | 168 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()
|
D | napi_cert_chain_validator.cpp | 206 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/ |
D | network_manager_addon.cpp | 121 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/ |
D | napi_cert_defines.h | 24 constexpr size_t ARGS_SIZE_ONE = 1; variable
|
/base/security/crypto_framework/frameworks/js/napi/crypto/src/ |
D | napi_pub_key.cpp | 147 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()
|
D | napi_sym_key_generator.cpp | 78 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()
|
D | napi_pri_key.cpp | 170 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()
|
D | napi_md.cpp | 207 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()
|
D | napi_sign.cpp | 272 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()
|
D | napi_rand.cpp | 243 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()
|
D | napi_mac.cpp | 273 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()
|
D | napi_verify.cpp | 294 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/ |
D | restrictions_addon.cpp | 135 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/ |
D | device_settings_addon.cpp | 40 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/ |
D | datetime_manager_addon.cpp | 152 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/ |
D | admin_manager_addon.cpp | 158 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/ |
D | napi_app_account_common.cpp | 75 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/ |
D | napi_crypto_framework_defines.h | 24 constexpr size_t ARGS_SIZE_ONE = 1; variable
|
/base/account/os_account/dfx/hidumper_adapter/ |
D | account_dump_helper.cpp | 27 const std::int32_t ARGS_SIZE_ONE = 1; variable 82 if (argsSize == ARGS_SIZE_ONE) { in Dump()
|