Home
last modified time | relevance | path

Searched refs:ARR_INDEX_ONE (Results 1 – 17 of 17) sorted by relevance

/base/customization/enterprise_device_management/interfaces/kits/admin_manager/src/
Dadmin_manager_addon.cpp48 …D_THROW_PARAM_ERROR(env, ParseEnterpriseInfo(env, asyncCallbackInfo->entInfo, argv[ARR_INDEX_ONE]), in EnableAdmin()
110 MatchValueType(env, argv[ARR_INDEX_ONE], napi_object) && in CheckEnableAdminParamType()
120 MatchValueType(env, argv[ARR_INDEX_ONE], napi_object) && in CheckEnableAdminParamType()
127 MatchValueType(env, argv[ARR_INDEX_ONE], napi_object) && in CheckEnableAdminParamType()
136 MatchValueType(env, argv[ARR_INDEX_ONE], napi_object) && in CheckEnableAdminParamType()
170 … ASSERT_AND_THROW_PARAM_ERROR(env, ParseInt(env, asyncCallbackInfo->userId, argv[ARR_INDEX_ONE]), in DisableAdmin()
222 bool matchFlag = MatchValueType(env, argv[ARR_INDEX_ONE], napi_function); in DisableSuperAdmin()
223 … napi_create_reference(env, argv[ARR_INDEX_ONE], NAPI_RETURN_ONE, &asyncCallbackInfo->callback); in DisableSuperAdmin()
262 matchFlag = matchFlag && MatchValueType(env, argv[ARR_INDEX_ONE], napi_function); in GetEnterpriseInfo()
279 … napi_create_reference(env, argv[ARR_INDEX_ONE], NAPI_RETURN_ONE, &asyncCallbackInfo->callback); in GetEnterpriseInfo()
[all …]
/base/customization/enterprise_device_management/interfaces/kits/device_settings/src/
Ddevice_settings_addon.cpp43 matchFlag = matchFlag && MatchValueType(env, argv[ARR_INDEX_ONE], napi_function); in GetScreenOffTime()
60 … napi_create_reference(env, argv[ARR_INDEX_ONE], NAPI_RETURN_ONE, &asyncCallbackInfo->callback); in GetScreenOffTime()
95 matchFlag = MatchValueType(env, argv[ARR_INDEX_ONE], napi_object); in InstallUserCertificate()
114 bool retCertBlob = ParseCertBlob(env, argv[ARR_INDEX_ONE], asyncCallbackInfo); in InstallUserCertificate()
150 matchFlag = MatchValueType(env, argv[ARR_INDEX_ONE], napi_string); in UninstallUserCertificate()
169 bool retAlias = ParseString(env, asyncCallbackInfo->alias, argv[ARR_INDEX_ONE]); in UninstallUserCertificate()
/base/customization/enterprise_device_management/interfaces/kits/datetime_manager/src/
Ddatetime_manager_addon.cpp41 MatchValueType(env, argv[ARR_INDEX_ONE], napi_number); in SetDateTime()
57 ret = ParseLong(env, asyncCallbackInfo->time, argv[ARR_INDEX_ONE]); in SetDateTime()
97 MatchValueType(env, argv[ARR_INDEX_ONE], napi_boolean); in DisallowModifyDateTime()
113 ret = ParseBool(env, asyncCallbackInfo->disallow, argv[ARR_INDEX_ONE]); in DisallowModifyDateTime()
173 matchFlag = matchFlag && MatchValueType(env, argv[ARR_INDEX_ONE], napi_function); in IsModifyDateTimeDisallowed()
178 … napi_create_reference(env, argv[ARR_INDEX_ONE], NAPI_RETURN_ONE, &asyncCallbackInfo->callback); in IsModifyDateTimeDisallowed()
/base/customization/enterprise_device_management/interfaces/kits/browser/src/
Dbrowser_addon.cpp44 …MatchValueType(env, argv[ARR_INDEX_ONE], napi_string) && MatchValueType(env, argv[ARR_INDEX_TWO], … in SetPolicies()
56 … ASSERT_AND_THROW_PARAM_ERROR(env, ParseString(env, asyncCallbackInfo->appId, argv[ARR_INDEX_ONE]), in SetPolicies()
95 …ASSERT_AND_THROW_PARAM_ERROR(env, MatchValueType(env, argv[ARR_INDEX_ONE], napi_string), "appId ty… in GetPolicies()
108 … ASSERT_AND_THROW_PARAM_ERROR(env, ParseString(env, asyncCallbackInfo->appId, argv[ARR_INDEX_ONE]), in GetPolicies()
/base/customization/enterprise_device_management/interfaces/kits/device_control/src/
Ddevice_control_addon.cpp41 matchFlag = matchFlag && MatchValueType(env, argv[ARR_INDEX_ONE], napi_function); in ResetFactory()
57 … napi_create_reference(env, argv[ARR_INDEX_ONE], NAPI_RETURN_ONE, &asyncCallbackInfo->callback); in ResetFactory()
/base/customization/enterprise_device_management/tools/edm/src/
Dedm_command.cpp26 constexpr int32_t ARR_INDEX_ONE = 1; variable
125 elementName.SetElementAbilityName(&elementName, elementNameStr[ARR_INDEX_ONE].c_str()); in RunAsEnableCommand()
170 elementName.SetElementAbilityName(&elementName, elementNameStr[ARR_INDEX_ONE].c_str()); in RunDisableNormalAdminCommand()
/base/customization/enterprise_device_management/interfaces/kits/account_manager/src/
Daccount_manager_addon.cpp39 MatchValueType(env, argv[ARR_INDEX_ONE], napi_boolean); in DisallowAddLocalAccount()
55 ret = ParseBool(env, asyncCallbackInfo->isDisallow, argv[ARR_INDEX_ONE]); in DisallowAddLocalAccount()
/base/customization/enterprise_device_management/interfaces/kits/restrictions/src/
Drestrictions_addon.cpp66 bool hasPolicy = MatchValueType(env, argv[ARR_INDEX_ONE], napi_boolean); in SetPolicyDisabled()
84 ret = ParseBool(env, asyncCallbackInfo->isDisabled, argv[ARR_INDEX_ONE]); in SetPolicyDisabled()
157 matchFlag = matchFlag && MatchValueType(env, argv[ARR_INDEX_ONE], napi_function); in IsPolicyDisabled()
162 … napi_create_reference(env, argv[ARR_INDEX_ONE], NAPI_RETURN_ONE, &asyncCallbackInfo->callback); in IsPolicyDisabled()
/base/customization/enterprise_device_management/interfaces/kits/common/src/
Dnapi_edm_common.cpp436 napi_get_boolean(env, asyncCallbackInfo->boolRet, &callbackValue[ARR_INDEX_ONE]); in NativeBoolCallbackComplete()
442 napi_get_null(env, &callbackValue[ARR_INDEX_ONE]); in NativeBoolCallbackComplete()
476 napi_create_int32(env, asyncCallbackInfo->intRet, &callbackValue[ARR_INDEX_ONE]); in NativeNumberCallbackComplete()
482 napi_get_null(env, &callbackValue[ARR_INDEX_ONE]); in NativeNumberCallbackComplete()
522 &callbackValue[ARR_INDEX_ONE]); in NativeStringCallbackComplete()
533 napi_get_null(env, &callbackValue[ARR_INDEX_ONE]); in NativeStringCallbackComplete()
573 napi_get_null(env, &callbackValue[ARR_INDEX_ONE]); in NativeArrayStringCallbackComplete()
612 if (MatchValueType(env, argv[ARR_INDEX_ONE], napi_function)) { in CheckAdminWithUserIdParamType()
621 return MatchValueType(env, argv[ARR_INDEX_ONE], napi_number); in CheckAdminWithUserIdParamType()
627 return MatchValueType(env, argv[ARR_INDEX_ONE], napi_number) && in CheckAdminWithUserIdParamType()
/base/customization/enterprise_device_management/interfaces/kits/network_manager/src/
Dnetwork_manager_addon.cpp187 …e(env, argv[ARR_INDEX_ZERO], napi_object) && MatchValueType(env, argv[ARR_INDEX_ONE], napi_string); in GetIpOrMacAddress()
199 …_THROW_PARAM_ERROR(env, ParseString(env, asyncCallbackInfo->networkInterface, argv[ARR_INDEX_ONE]), in GetIpOrMacAddress()
243 …MatchValueType(env, argv[ARR_INDEX_ONE], napi_string) && MatchValueType(env, argv[ARR_INDEX_TWO], … in SetNetworkInterfaceDisabled()
255 …_THROW_PARAM_ERROR(env, ParseString(env, asyncCallbackInfo->networkInterface, argv[ARR_INDEX_ONE]), in SetNetworkInterfaceDisabled()
300 …e(env, argv[ARR_INDEX_ZERO], napi_object) && MatchValueType(env, argv[ARR_INDEX_ONE], napi_string); in IsNetworkInterfaceDisabled()
312 …_THROW_PARAM_ERROR(env, ParseString(env, asyncCallbackInfo->networkInterface, argv[ARR_INDEX_ONE]), in IsNetworkInterfaceDisabled()
356 matchFlag = matchFlag && MatchValueType(env, argv[ARR_INDEX_ONE], napi_object); in AddIptablesFilterRule()
373 …ASSERT_AND_THROW_PARAM_ERROR(env, JsObjToAddFirewallObject(env, argv[ARR_INDEX_ONE], asyncCallback… in AddIptablesFilterRule()
439 matchFlag = matchFlag && MatchValueType(env, argv[ARR_INDEX_ONE], napi_object); in RemoveIptablesFilterRule()
457 …JsObjToRemoveFirewallObject(env, argv[ARR_INDEX_ONE], asyncCallbackInfo->removeFilter), "firewall … in RemoveIptablesFilterRule()
[all …]
/base/customization/config_policy/interfaces/kits/js/src/
Dconfig_policy_napi.cpp32 static constexpr int32_t ARR_INDEX_ONE = 1; variable
64 bool matchFlag = MatchValueType(env, argv[ARR_INDEX_ONE], napi_function); in NAPIGetOneCfgFile()
68 … napi_create_reference(env, argv[ARR_INDEX_ONE], NAPI_RETURN_ONE, &asyncContext->callbackRef_); in NAPIGetOneCfgFile()
88 bool matchFlag = MatchValueType(env, argv[ARR_INDEX_ONE], napi_function); in NAPIGetCfgFiles()
92 … napi_create_reference(env, argv[ARR_INDEX_ONE], NAPI_RETURN_ONE, &asyncContext->callbackRef_); in NAPIGetCfgFiles()
/base/customization/enterprise_device_management/interfaces/kits/device_info/src/
Ddevice_info_addon.cpp61 matchFlag = matchFlag && MatchValueType(env, argv[ARR_INDEX_ONE], napi_function); in GetDeviceInfo()
78 … napi_create_reference(env, argv[ARR_INDEX_ONE], NAPI_RETURN_ONE, &asyncCallbackInfo->callback); in GetDeviceInfo()
/base/customization/enterprise_device_management/interfaces/kits/usb_manager/src/
Dusb_manager_addon.cpp57 bool usbPolicy = MatchValueType(env, argv[ARR_INDEX_ONE], napi_number); in SetUsbPolicy()
76 ASSERT_AND_THROW_PARAM_ERROR(env, ParseInt(env, asyncCallbackInfo->policy, argv[ARR_INDEX_ONE]), in SetUsbPolicy()
/base/customization/enterprise_device_management/interfaces/kits/application_manager/src/
Dapplication_manager_addon.cpp60 … ASSERT_AND_THROW_PARAM_ERROR(env, ParseInt(env, asyncCallbackInfo->userId, argv[ARR_INDEX_ONE]), in GetDisallowedRunningBundles()
128 …MatchValueType(env, argv[ARR_INDEX_ZERO], napi_object) || !MatchValueType(env, argv[ARR_INDEX_ONE], in CheckAddDisallowedRunningBundlesParamType()
181 …T_AND_THROW_PARAM_ERROR(env, ParseStringArray(env, asyncCallbackInfo->appIds, argv[ARR_INDEX_ONE]), in AddOrRemovellowedRunningBundles()
/base/customization/enterprise_device_management/interfaces/kits/bundle_manager/src/
Dbundle_manager_addon.cpp210 …RT_AND_THROW_PARAM_ERROR(env, ParseString(env, asyncCallbackInfo->bundleName, argv[ARR_INDEX_ONE]), in CheckAndParseUninstallParamType()
284 …THROW_PARAM_ERROR(env, ParseStringArray(env, asyncCallbackInfo->hapFilePaths, argv[ARR_INDEX_ONE]), in CheckAndParseInstallParamType()
334 … ASSERT_AND_THROW_PARAM_ERROR(env, ParseInt(env, asyncCallbackInfo->userId, argv[ARR_INDEX_ONE]), in GetAllowedOrDisallowedInstallBundles()
416 !MatchValueType(env, argv[ARR_INDEX_ONE], napi_object)) { in CheckAddInstallBundlesParamType()
468 …_AND_THROW_PARAM_ERROR(env, ParseStringArray(env, asyncCallbackInfo->bundles, argv[ARR_INDEX_ONE]), in AddOrRemoveInstallBundles()
/base/customization/enterprise_device_management/interfaces/kits/wifi_manager/src/
Dwifi_manager_addon.cpp174 matchFlag = matchFlag && MatchValueType(env, argv[ARR_INDEX_ONE], napi_function); in IsWifiActive()
190 … napi_create_reference(env, argv[ARR_INDEX_ONE], NAPI_RETURN_ONE, &asyncCallbackInfo->callback); in IsWifiActive()
208 matchFlag = matchFlag && MatchValueType(env, argv[ARR_INDEX_ONE], napi_object); in SetWifiProfile()
225 …JsObjToDeviceConfig(env, argv[ARR_INDEX_ONE], asyncCallbackInfo->wifiDeviceConfig), "wifiProfile p… in SetWifiProfile()
/base/customization/enterprise_device_management/interfaces/kits/common/include/
Dnapi_edm_common.h46 constexpr int32_t ARR_INDEX_ONE = 1; variable