/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | DevicePolicySafetyCheckerIntegrationTest.java | 18 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 …]
|
D | HeadlessSystemUserTest.java | 24 import android.app.admin.DevicePolicyManager; 59 ComponentName admin = mCurrentUserDpm.getProfileOwner(); in testProfileOwnerIsSetOnCurrentUser() local 61 assertProfileOwner(admin, mUserId); in testProfileOwnerIsSetOnCurrentUser() 92 private void assertProfileOwner(ComponentName admin, @UserIdInt int userId) { in assertProfileOwner() argument 93 assertWithMessage("Component %s is profile owner for user %s", admin, userId) in assertProfileOwner() 94 .that(admin).isEqualTo(getWho()); in assertProfileOwner()
|
D | BaseDeviceOwnerTest.java | 23 import android.app.admin.DevicePolicyManager; 104 ComponentName admin = getWho(); in assertDeviceOwner() local 105 assertWithMessage("Component %s is admin for user %s", admin, myUserId) in assertDeviceOwner() 106 .that(mDevicePolicyManager.isAdminActive(admin)).isTrue(); in assertDeviceOwner() 109 assertWithMessage("Component %s is device owner for user %s", admin, myUserId) in assertDeviceOwner() 111 assertWithMessage("Component %s is profile owner for user %s", admin, myUserId) in assertDeviceOwner() 112 .that(mDevicePolicyManager.isManagedProfile(admin)).isFalse(); in assertDeviceOwner()
|
D | SetPolicyActivity.java | 19 import android.app.admin.DevicePolicyManager; 59 ComponentName admin = BasicAdminReceiver.getComponentName(this); in handleIntent() local 62 dpm.addUserRestriction(admin, restrictionKey); in handleIntent() 67 dpm.clearUserRestriction(admin, restrictionKey); in handleIntent()
|
/cts/hostsidetests/devicepolicy/app/common/src/com/android/cts/devicepolicy/ |
D | DevicePolicySafetyCheckerIntegrationTester.java | 18 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/ |
D | KeyGenerationUtils.java | 19 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/hostsidetests/packagemanager/domainverification/device/multiuser/src/com/android/cts/packagemanager/verify/domain/device/multiuser/ |
D | DomainVerificationWorkUtils.kt | 24 import android.app.admin.RemoteDevicePolicyManager 27 internal fun RemoteDevicePolicyManager.getAppLinkPolicy(admin: ComponentName) = in getAppLinkPolicy() 28 getUserRestrictions(admin)?.getBoolean( in getAppLinkPolicy() 31 internal fun RemoteDevicePolicyManager.setAppLinkPolicy(admin: ComponentName, allow: Boolean) { in getAppLinkPolicy() 33 addUserRestriction(admin, UserManager.ALLOW_PARENT_PROFILE_APP_LINKING) in getAppLinkPolicy() 35 clearUserRestriction(admin, UserManager.ALLOW_PARENT_PROFILE_APP_LINKING) in getAppLinkPolicy()
|
/cts/hostsidetests/devicepolicy/app/AccountCheck/Auth/src/com/android/cts/devicepolicy/accountcheck/ |
D | AccountCheckTest.java | 20 import android.app.admin.DevicePolicyManager; 103 final ComponentName admin = new ComponentName( in testCleanUpNonTestOwner() local 107 if (mDevicePolicyManager.isDeviceOwnerApp(admin.getPackageName())) { in testCleanUpNonTestOwner() 109 mDevicePolicyManager.clearDeviceOwnerApp(admin.getPackageName()); in testCleanUpNonTestOwner() 112 if (mDevicePolicyManager.isProfileOwnerApp(admin.getPackageName())) { in testCleanUpNonTestOwner() 114 mDevicePolicyManager.clearProfileOwner(admin); in testCleanUpNonTestOwner() 117 if (mDevicePolicyManager.isAdminActive(admin)) { in testCleanUpNonTestOwner() 119 mDevicePolicyManager.removeActiveAdmin(admin); in testCleanUpNonTestOwner() 123 && mDevicePolicyManager.isAdminActive(admin)) { in testCleanUpNonTestOwner()
|
/cts/hostsidetests/devicepolicy/app/DelegateApp/src/com/android/cts/delegate/ |
D | PermissionGrantDelegateTest.java | 18 import static android.app.admin.DevicePolicyManager.DELEGATION_PERMISSION_GRANT; 19 import static android.app.admin.DevicePolicyManager.PERMISSION_GRANT_STATE_DENIED; 20 import static android.app.admin.DevicePolicyManager.PERMISSION_GRANT_STATE_GRANTED; 21 import static android.app.admin.DevicePolicyManager.PERMISSION_POLICY_AUTO_DENY; 22 import static android.app.admin.DevicePolicyManager.PERMISSION_POLICY_AUTO_GRANT; 26 import android.app.admin.DevicePolicyManager;
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | DevicePolicyLoggingTest.java | 20 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.PASSWORD_COMPLEXITY_HIGH; 25 import static android.app.admin.DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED; 26 import static android.app.admin.DevicePolicyManager.PERMISSION_GRANT_STATE_DEFAULT; 27 import static android.app.admin.DevicePolicyManager.PERMISSION_GRANT_STATE_DENIED; 28 import static android.app.admin.DevicePolicyManager.PERMISSION_GRANT_STATE_GRANTED; 29 import static android.app.admin.DevicePolicyManager.PERMISSION_POLICY_AUTO_DENY; [all …]
|
D | SecurityLoggingTest.java | 18 import static android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_FINGERPRINT; 19 import static android.app.admin.DevicePolicyManager.PASSWORD_COMPLEXITY_HIGH; 20 import static android.app.admin.DevicePolicyManager.PASSWORD_QUALITY_COMPLEX; 21 import static android.app.admin.SecurityLog.LEVEL_ERROR; 22 import static android.app.admin.SecurityLog.LEVEL_INFO; 23 import static android.app.admin.SecurityLog.LEVEL_WARNING; 24 import static android.app.admin.SecurityLog.TAG_ADB_SHELL_CMD; 25 import static android.app.admin.SecurityLog.TAG_ADB_SHELL_INTERACTIVE; 26 import static android.app.admin.SecurityLog.TAG_APP_PROCESS_START; 27 import static android.app.admin.SecurityLog.TAG_CAMERA_POLICY_SET; [all …]
|
D | PasswordQualityAndComplexityTest.java | 19 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;
|
D | StorageEncryptionTest.java | 18 import static android.app.admin.DevicePolicyManager.ENCRYPTION_STATUS_ACTIVE; 19 import static android.app.admin.DevicePolicyManager.ENCRYPTION_STATUS_INACTIVE; 20 import static android.app.admin.DevicePolicyManager.ENCRYPTION_STATUS_UNSUPPORTED; 24 import android.app.admin.DevicePolicyManager;
|
/cts/hostsidetests/devicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/provisioning/ |
D | UserRestrictionTest.java | 19 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()
|
D | AffiliationTest.java | 20 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/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | ActivePasswordSufficientForDeviceTest.java | 18 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/tests/tests/security/src/android/security/cts/CVE_2021_0327/workprofilesetup/ |
D | ProvisionedActivity.java | 4 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/apps/CtsVerifier/src/com/android/cts/verifier/admin/tapjacking/ |
D | EmptyDeviceAdminReceiver.java | 17 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/ |
D | DeviceAdminReceiverUtils.java | 18 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()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/admin/ |
D | PolicySerializationTestActivity.java | 17 package com.android.cts.verifier.admin; 20 import android.app.admin.DevicePolicyManager; 170 ComponentName admin = DeviceAdminTestReceiver.getReceiverComponentName(); in handleAddDeviceAdminResult() local 172 item.applyExpectedValue(mDevicePolicyManager, admin); in handleAddDeviceAdminResult() 260 void applyExpectedValue(DevicePolicyManager deviceManager, ComponentName admin); in applyExpectedValue() argument 268 void loadActualValue(DevicePolicyManager deviceManager, ComponentName admin); in loadActualValue() argument 308 public final void loadActualValue(DevicePolicyManager deviceManager, ComponentName admin) { in loadActualValue() argument 309 mActualValue = getDeviceManagerValue(deviceManager, admin); in loadActualValue() 313 ComponentName admin); in getDeviceManagerValue() argument 422 public void applyExpectedValue(DevicePolicyManager deviceManager, ComponentName admin) { in applyExpectedValue() argument [all …]
|
/cts/hostsidetests/devicepolicy/app/SingleAdminApp/src/com/android/cts/devicepolicy/singleadmin/ |
D | ProvisioningSingleAdminTest.java | 18 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_PROFILE; 19 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME; 20 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_SKIP_ENCRYPTION; 24 import android.app.admin.DeviceAdminReceiver;
|
/cts/tests/admin/app/src/android/admin/app/ |
D | CtsDeviceAdminBrokenReceiver.java | 17 package android.admin.app; 19 import android.app.admin.DeviceAdminReceiver;
|
D | CtsDeviceAdminBrokenReceiver2.java | 17 package android.admin.app; 19 import android.app.admin.DeviceAdminReceiver;
|
D | CtsDeviceAdminReceiver.java | 17 package android.admin.app; 19 import android.app.admin.DeviceAdminReceiver;
|
D | CtsDeviceAdminBrokenReceiver4.java | 17 package android.admin.app; 19 import android.app.admin.DeviceAdminReceiver;
|