Home
last modified time | relevance | path

Searched refs:admin (Results 1 – 25 of 445) sorted by relevance

12345678910>>...18

/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DDevicePolicySafetyCheckerIntegrationTest.java18 import static android.app.admin.DevicePolicyManager.OPERATION_CREATE_AND_MANAGE_USER;
19 import static android.app.admin.DevicePolicyManager.OPERATION_REBOOT;
20 import static android.app.admin.DevicePolicyManager.OPERATION_REMOVE_USER;
21 import static android.app.admin.DevicePolicyManager.OPERATION_REQUEST_BUGREPORT;
22 import static android.app.admin.DevicePolicyManager.OPERATION_SET_APPLICATION_HIDDEN;
23 import static android.app.admin.DevicePolicyManager.OPERATION_SET_APPLICATION_RESTRICTIONS;
24 import static android.app.admin.DevicePolicyManager.OPERATION_SET_CAMERA_DISABLED;
25 import static android.app.admin.DevicePolicyManager.OPERATION_SET_FACTORY_RESET_PROTECTION_POLICY;
26 import static android.app.admin.DevicePolicyManager.OPERATION_SET_GLOBAL_PRIVATE_DNS;
27 import static android.app.admin.DevicePolicyManager.OPERATION_SET_KEEP_UNINSTALLED_PACKAGES;
[all …]
DHeadlessSystemUserTest.java24 import android.app.admin.DevicePolicyManager;
59 ComponentName admin = mCurrentUserDpm.getProfileOwner(); in testProfileOwnerIsSetOnCurrentUser() local
61 assertProfileOwner(admin, mUserId); in testProfileOwnerIsSetOnCurrentUser()
94 private void assertProfileOwner(ComponentName admin, @UserIdInt int userId) { in assertProfileOwner() argument
95 assertWithMessage("Component %s is profile owner for user %s", admin, userId) in assertProfileOwner()
96 .that(admin).isEqualTo(getWho()); in assertProfileOwner()
DBaseDeviceOwnerTest.java27 import android.app.admin.DevicePolicyManager;
106 ComponentName admin = getWho(); in assertDeviceOwner() local
107 assertWithMessage("Component %s is admin for user %s", admin, myUserId) in assertDeviceOwner()
108 .that(mDevicePolicyManager.isAdminActive(admin)).isTrue(); in assertDeviceOwner()
111 assertWithMessage("Component %s is device owner for user %s", admin, myUserId) in assertDeviceOwner()
113 assertWithMessage("Component %s is profile owner for user %s", admin, myUserId) in assertDeviceOwner()
114 .that(mDevicePolicyManager.isManagedProfile(admin)).isFalse(); in assertDeviceOwner()
/cts/hostsidetests/devicepolicy/app/common/src/com/android/cts/devicepolicy/
DDevicePolicySafetyCheckerIntegrationTester.java18 import static android.app.admin.DevicePolicyManager.OPERATION_LOCK_NOW;
19 import static android.app.admin.DevicePolicyManager.OPERATION_LOGOUT_USER;
20 import static android.app.admin.DevicePolicyManager.OPERATION_REMOVE_ACTIVE_ADMIN;
21 import static android.app.admin.DevicePolicyManager.OPERATION_REMOVE_KEY_PAIR;
22 import static android.app.admin.DevicePolicyManager.OPERATION_SAFETY_REASON_DRIVING_DISTRACTION;
23 import static android.app.admin.DevicePolicyManager.OPERATION_SET_ALWAYS_ON_VPN_PACKAGE;
24 import static android.app.admin.DevicePolicyManager.OPERATION_SET_MASTER_VOLUME_MUTED;
25 import static android.app.admin.DevicePolicyManager.OPERATION_SET_PERMISSION_GRANT_STATE;
26 import static android.app.admin.DevicePolicyManager.OPERATION_SET_PERMISSION_POLICY;
27 import static android.app.admin.DevicePolicyManager.OPERATION_SET_RESTRICTIONS_PROVIDER;
[all …]
/cts/tests/security/src/android/keystore/cts/
DKeyGenerationUtils.java19 import static android.app.admin.DevicePolicyManager.ID_TYPE_SERIAL;
24 import android.app.admin.DevicePolicyManager;
46 private static AttestedKeyPair generateRsaKeyPair(DevicePolicyManager dpm, ComponentName admin, in generateRsaKeyPair() argument
49 admin, "RSA", buildRsaKeySpecWithKeyAttestation(alias), in generateRsaKeyPair()
54 ComponentName admin, int deviceIdAttestationFlags) { in generateKeyWithIdFlagsExpectingSuccess() argument
57 generateRsaKeyPair(dpm, admin, deviceIdAttestationFlags, ALIAS); in generateKeyWithIdFlagsExpectingSuccess()
60 assertThat(dpm.removeKeyPair(admin, ALIAS)).isTrue(); in generateKeyWithIdFlagsExpectingSuccess()
64 public static void generateRsaKey(DevicePolicyManager dpm, ComponentName admin, String alias) { in generateRsaKey() argument
65 assertThat(generateRsaKeyPair(dpm, admin, 0, alias)).isNotNull(); in generateRsaKey()
69 ComponentName admin) { in generateKeyWithDeviceIdAttestationExpectingSuccess() argument
[all …]
/cts/common/device-side/bedstead/testapisreflection/java/apis/
Dallowlisted-test-methods.txt1 android.app.admin.DevicePolicyManager,public boolean isCurrentInputMethodSetByOwner()
2 android.app.admin.DevicePolicyManager,public boolean setDeviceOwnerOnly(android.content.ComponentNa…
3 android.app.admin.DevicePolicyManager,public java.util.List<java.lang.String> getOwnerInstalledCaCe…
4 android.app.admin.DevicePolicyManager,public void clearOrganizationId()
5 android.app.admin.DevicePolicyManager,public void setNextOperationSafety(int, int)
6 android.app.admin.DevicePolicyManager,public void setActiveAdmin(android.content.ComponentName, boo…
7 android.app.admin.DevicePolicyManager,public long forceNetworkLogs()
8 android.app.admin.DevicePolicyManager,public boolean isNewUserDisclaimerAcknowledged()
9 android.app.admin.DevicePolicyManager,public void resetShouldAllowBypassingDevicePolicyManagementRo…
10 android.app.admin.DevicePolicyManager,public java.util.Set<String> getDefaultCrossProfilePackages()
[all …]
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DEnforcingAdminAndAuthorityTest.java21 import android.app.admin.Authority;
22 import android.app.admin.DeviceAdminAuthority;
23 import android.app.admin.DpcAuthority;
24 import android.app.admin.EnforcingAdmin;
25 import android.app.admin.RoleAuthority;
26 import android.app.admin.UnknownAuthority;
60 EnforcingAdmin admin = new EnforcingAdmin(PACKAGE_NAME, AUTHORITY, USER_HANDLE); in enforcingAdmin_getPackageName_returnsCorrectPackage() local
62 assertThat(admin.getPackageName()).isEqualTo(PACKAGE_NAME); in enforcingAdmin_getPackageName_returnsCorrectPackage()
69 EnforcingAdmin admin = new EnforcingAdmin(PACKAGE_NAME, AUTHORITY, USER_HANDLE); in enforcingAdmin_getAuthority_returnsCorrectAuthority() local
71 assertThat(admin.getAuthority()).isEqualTo(AUTHORITY); in enforcingAdmin_getAuthority_returnsCorrectAuthority()
[all …]
DPolicyUpdateReceiverTest.java19 import static android.app.admin.PolicyUpdateReceiver.ACTION_DEVICE_POLICY_CHANGED;
20 import static android.app.admin.PolicyUpdateReceiver.ACTION_DEVICE_POLICY_SET_RESULT;
21 import static android.app.admin.PolicyUpdateReceiver.EXTRA_POLICY_BUNDLE_KEY;
22 import static android.app.admin.PolicyUpdateReceiver.EXTRA_POLICY_KEY;
23 import static android.app.admin.PolicyUpdateReceiver.EXTRA_POLICY_TARGET_USER_ID;
24 import static android.app.admin.PolicyUpdateReceiver.EXTRA_POLICY_UPDATE_RESULT_KEY;
28 import android.app.admin.PolicyUpdateReceiver;
29 import android.app.admin.PolicyUpdateResult;
30 import android.app.admin.TargetUser;
DDevicePolicyManagerTest.java19 import static android.app.admin.DevicePolicyIdentifiers.getIdentifierForUserRestriction;
20 import static android.app.admin.TargetUser.GLOBAL_USER_ID;
21 import static android.app.admin.flags.Flags.FLAG_DEVICE_POLICY_SIZE_TRACKING_INTERNAL_BUG_FIX_ENABL…
30 import android.app.admin.DevicePolicyManager;
31 import android.app.admin.DpcAuthority;
32 import android.app.admin.EnforcingAdmin;
33 import android.app.admin.PolicyState;
34 import android.app.admin.PolicyUpdateResult;
35 import android.app.admin.UserRestrictionPolicyKey;
228 EnforcingAdmin admin = new EnforcingAdmin( in setMaxPolicyStorageLimit_policySet_sizeIncreases() local
[all …]
DPolicyKeysTest.java21 import android.app.admin.AccountTypePolicyKey;
22 import android.app.admin.IntentFilterPolicyKey;
23 import android.app.admin.PackagePermissionPolicyKey;
24 import android.app.admin.PackagePolicyKey;
25 import android.app.admin.PolicyKey;
26 import android.app.admin.UserRestrictionPolicyKey;
DWifiMinimumSecurityTest.java19 import static android.app.admin.DevicePolicyManager.WIFI_SECURITY_ENTERPRISE_192;
20 import static android.app.admin.DevicePolicyManager.WIFI_SECURITY_ENTERPRISE_EAP;
21 import static android.app.admin.DevicePolicyManager.WIFI_SECURITY_OPEN;
22 import static android.app.admin.DevicePolicyManager.WIFI_SECURITY_PERSONAL;
28 import android.app.admin.RemoteDevicePolicyManager;
/cts/common/device-side/bedstead/harrier/common/src/main/java/com/android/bedstead/harrier/policies/
DKeyguardDisableFeatures.java19 import static android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_FACE;
20 import static android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_FINGERPRINT;
21 import static android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_IRIS;
22 import static android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_REMOTE_INPUT;
23 import static android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_SECURE_CAMERA;
24 import static android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_SECURE_NOTIFICATIONS;
25 import static android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_TRUST_AGENTS;
26 import static android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_UNREDACTED_NOTIFICATIONS;
/cts/hostsidetests/packagemanager/domainverification/device/multiuser/src/com/android/cts/packagemanager/verify/domain/device/multiuser/
DDomainVerificationWorkUtils.kt25 import android.app.admin.RemoteDevicePolicyManager
28 internal fun RemoteDevicePolicyManager.getAppLinkPolicy(admin: ComponentName) = in getAppLinkPolicy()
29 getUserRestrictions(admin)?.getBoolean( in getAppLinkPolicy()
32 internal fun RemoteDevicePolicyManager.setAppLinkPolicy(admin: ComponentName, allow: Boolean) { in getAppLinkPolicy()
34 addUserRestriction(admin, UserManager.ALLOW_PARENT_PROFILE_APP_LINKING) in getAppLinkPolicy()
36 clearUserRestriction(admin, UserManager.ALLOW_PARENT_PROFILE_APP_LINKING) in getAppLinkPolicy()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DDevicePolicyLoggingTest.java20 import static android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_FEATURES_NONE;
21 import static android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_FINGERPRINT;
22 import static android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_SECURE_CAMERA;
23 import static android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_TRUST_AGENTS;
24 import static android.app.admin.DevicePolicyManager.PERMISSION_GRANT_STATE_DEFAULT;
25 import static android.app.admin.DevicePolicyManager.PERMISSION_GRANT_STATE_DENIED;
26 import static android.app.admin.DevicePolicyManager.PERMISSION_GRANT_STATE_GRANTED;
27 import static android.app.admin.DevicePolicyManager.PERMISSION_POLICY_AUTO_DENY;
28 import static android.app.admin.DevicePolicyManager.PERMISSION_POLICY_AUTO_GRANT;
29 import static android.app.admin.DevicePolicyManager.PERMISSION_POLICY_PROMPT;
DSecurityLoggingTest.java19 import static android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_FINGERPRINT;
20 import static android.app.admin.DevicePolicyManager.PASSWORD_COMPLEXITY_HIGH;
21 import static android.app.admin.DevicePolicyManager.PASSWORD_COMPLEXITY_LOW;
22 import static android.app.admin.DevicePolicyManager.PASSWORD_COMPLEXITY_MEDIUM;
23 import static android.app.admin.DevicePolicyManager.PASSWORD_COMPLEXITY_NONE;
24 import static android.app.admin.DevicePolicyManager.PASSWORD_QUALITY_COMPLEX;
25 import static android.app.admin.SecurityLog.LEVEL_ERROR;
26 import static android.app.admin.SecurityLog.LEVEL_INFO;
27 import static android.app.admin.SecurityLog.LEVEL_WARNING;
28 import static android.app.admin.SecurityLog.TAG_ADB_SHELL_CMD;
[all …]
DPasswordQualityAndComplexityTest.java19 import static android.app.admin.DevicePolicyManager.PASSWORD_COMPLEXITY_NONE;
20 import static android.app.admin.DevicePolicyManager.PASSWORD_QUALITY_SOMETHING;
21 import static android.app.admin.DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED;
25 import android.app.admin.DevicePolicyManager;
/cts/hostsidetests/devicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/provisioning/
DUserRestrictionTest.java19 import android.app.admin.DevicePolicyManager;
37 ComponentName admin = AdminReceiver.getComponentName(getContext()); in setUserRestriction() local
39 dpm.addUserRestriction(admin, restriction); in setUserRestriction()
41 dpm.clearUserRestriction(admin, restriction); in setUserRestriction()
DAffiliationTest.java20 import android.app.admin.DevicePolicyManager;
41 ComponentName admin = AdminReceiver.getComponentName(getContext()); in setAffiliationId() local
45 dpm.setAffiliationIds(admin, ids); in setAffiliationId()
46 assertEquals(ids, dpm.getAffiliationIds(admin)); in setAffiliationId()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/utils/
DPolicySetResultUtils.java19 import static android.app.admin.PolicyUpdateReceiver.ACTION_DEVICE_POLICY_SET_RESULT;
20 import static android.app.admin.PolicyUpdateReceiver.EXTRA_POLICY_BUNDLE_KEY;
21 import static android.app.admin.PolicyUpdateReceiver.EXTRA_POLICY_KEY;
22 import static android.app.admin.PolicyUpdateReceiver.EXTRA_POLICY_TARGET_USER_ID;
23 import static android.app.admin.PolicyUpdateReceiver.EXTRA_POLICY_UPDATE_RESULT_KEY;
DPolicyEngineUtils.java23 import android.app.admin.DevicePolicyManager;
24 import android.app.admin.DevicePolicyState;
25 import android.app.admin.LockTaskPolicy;
26 import android.app.admin.MostRecent;
27 import android.app.admin.MostRestrictive;
28 import android.app.admin.PolicyKey;
29 import android.app.admin.PolicyState;
30 import android.app.admin.TopPriority;
/cts/tests/admin/src/android/admin/cts/
DDeviceAdminActivationTest.java17 package android.admin.cts;
22 import android.admin.app.CtsDeviceAdminActivationTestActivity;
23 import android.admin.app.CtsDeviceAdminActivationTestActivity.OnActivityResultListener;
24 import android.admin.app.CtsDeviceAdminBrokenReceiver;
25 import android.admin.app.CtsDeviceAdminBrokenReceiver2;
26 import android.admin.app.CtsDeviceAdminBrokenReceiver3;
27 import android.admin.app.CtsDeviceAdminBrokenReceiver4;
28 import android.admin.app.CtsDeviceAdminBrokenReceiver5;
29 import android.admin.app.CtsDeviceAdminDeactivatedReceiver;
33 import android.app.admin.DevicePolicyManager;
[all …]
/cts/tests/tests/security/src/android/security/cts/CVE_2021_0327/workprofilesetup/
DProvisionedActivity.java4 import android.app.admin.DevicePolicyManager;
32 ComponentName admin = new ComponentName(this, AdminReceiver.class); in onCreate() local
34 admin, in onCreate()
38 manager.setProfileEnabled(admin); in onCreate()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DActivePasswordSufficientForDeviceTest.java18 import static android.app.admin.DevicePolicyManager.PASSWORD_COMPLEXITY_HIGH;
19 import static android.app.admin.DevicePolicyManager.PASSWORD_COMPLEXITY_LOW;
20 import static android.app.admin.DevicePolicyManager.PASSWORD_COMPLEXITY_MEDIUM;
21 import static android.app.admin.DevicePolicyManager.PASSWORD_COMPLEXITY_NONE;
22 import static android.app.admin.DevicePolicyManager.PASSWORD_QUALITY_ALPHANUMERIC;
23 import static android.app.admin.DevicePolicyManager.PASSWORD_QUALITY_NUMERIC;
24 import static android.app.admin.DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED;
/cts/apps/CtsVerifier/src/com/android/cts/verifier/admin/tapjacking/
DEmptyDeviceAdminReceiver.java17 package com.android.cts.verifier.admin.tapjacking;
19 import android.app.admin.DeviceAdminReceiver;
20 import android.app.admin.DevicePolicyManager;
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/enterprise/
DDeviceAdminReceiverUtils.java18 import android.app.admin.DevicePolicyManager;
68 ComponentName admin = dpm.getProfileOwner(); in disableSelf() local
69 Log.i(TAG, "Disabling " + admin.flattenToShortString() + " as profile owner for user " in disableSelf()
71 dpm.clearProfileOwner(admin); in disableSelf()

12345678910>>...18