/base/customization/enterprise_device_management/interfaces/kits/admin_manager/src/ |
D | admin_manager_addon.cpp | 48 …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/ |
D | device_settings_addon.cpp | 43 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/ |
D | datetime_manager_addon.cpp | 41 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/ |
D | browser_addon.cpp | 44 …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/ |
D | device_control_addon.cpp | 41 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/ |
D | edm_command.cpp | 26 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/ |
D | account_manager_addon.cpp | 39 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/ |
D | restrictions_addon.cpp | 66 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/ |
D | napi_edm_common.cpp | 436 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/ |
D | network_manager_addon.cpp | 187 …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/ |
D | config_policy_napi.cpp | 32 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/ |
D | device_info_addon.cpp | 61 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/ |
D | usb_manager_addon.cpp | 57 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/ |
D | application_manager_addon.cpp | 60 … 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/ |
D | bundle_manager_addon.cpp | 210 …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/ |
D | wifi_manager_addon.cpp | 174 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/ |
D | napi_edm_common.h | 46 constexpr int32_t ARR_INDEX_ONE = 1; variable
|