Home
last modified time | relevance | path

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

12345678

/cts/tests/security/src/android/keystore/cts/
DKeyGenerationUtils.java19 import static android.app.admin.DevicePolicyManager.ID_TYPE_SERIAL;
24 import android.app.admin.DevicePolicyManager;
47 ComponentName admin, int deviceIdAttestationFlags) { in generateKeyWithIdFlagsExpectingSuccess() argument
50 admin, "RSA", buildRsaKeySpecWithKeyAttestation(ALIAS), in generateKeyWithIdFlagsExpectingSuccess()
54 assertThat(dpm.removeKeyPair(admin, ALIAS)).isTrue(); in generateKeyWithIdFlagsExpectingSuccess()
59 ComponentName admin) { in generateKeyWithDeviceIdAttestationExpectingSuccess() argument
60 generateKeyWithIdFlagsExpectingSuccess(dpm, admin, ID_TYPE_SERIAL); in generateKeyWithDeviceIdAttestationExpectingSuccess()
64 ComponentName admin) { in generateKeyWithDeviceIdAttestationExpectingFailure() argument
66 () -> dpm.generateKeyPair(admin, "RSA", buildRsaKeySpecWithKeyAttestation(ALIAS), in generateKeyWithDeviceIdAttestationExpectingFailure()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/admin/
DPolicySerializationTestActivity.java17 package com.android.cts.verifier.admin;
24 import android.app.admin.DevicePolicyManager;
158 ComponentName admin = DeviceAdminTestReceiver.getReceiverComponentName(); in handleAddDeviceAdminResult() local
160 item.applyExpectedValue(mDevicePolicyManager, admin); in handleAddDeviceAdminResult()
248 void applyExpectedValue(DevicePolicyManager deviceManager, ComponentName admin); in applyExpectedValue() argument
256 void loadActualValue(DevicePolicyManager deviceManager, ComponentName admin); in loadActualValue() argument
295 public final void loadActualValue(DevicePolicyManager deviceManager, ComponentName admin) { in loadActualValue() argument
296 mActualValue = getDeviceManagerValue(deviceManager, admin); in loadActualValue()
300 ComponentName admin); in getDeviceManagerValue() argument
410 public void applyExpectedValue(DevicePolicyManager deviceManager, ComponentName admin) { in applyExpectedValue() argument
[all …]
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DSecurityLoggingTest.java18 import static android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_FINGERPRINT;
19 import static android.app.admin.DevicePolicyManager.PASSWORD_QUALITY_COMPLEX;
20 import static android.app.admin.SecurityLog.LEVEL_ERROR;
21 import static android.app.admin.SecurityLog.LEVEL_INFO;
22 import static android.app.admin.SecurityLog.LEVEL_WARNING;
23 import static android.app.admin.SecurityLog.TAG_ADB_SHELL_CMD;
24 import static android.app.admin.SecurityLog.TAG_ADB_SHELL_INTERACTIVE;
25 import static android.app.admin.SecurityLog.TAG_APP_PROCESS_START;
26 import static android.app.admin.SecurityLog.TAG_CERT_AUTHORITY_INSTALLED;
27 import static android.app.admin.SecurityLog.TAG_CERT_AUTHORITY_REMOVED;
[all …]
DSetPolicyActivity.java19 import android.app.admin.DevicePolicyManager;
66 ComponentName admin = BasicAdminReceiver.getComponentName(this); in handleIntent() local
69 dpm.addUserRestriction(admin, restrictionKey); in handleIntent()
74 dpm.clearUserRestriction(admin, restrictionKey); in handleIntent()
DPrivateDnsPolicyTest.java19 import static android.app.admin.DevicePolicyManager.PRIVATE_DNS_MODE_OFF;
20 import static android.app.admin.DevicePolicyManager.PRIVATE_DNS_MODE_OPPORTUNISTIC;
21 import static android.app.admin.DevicePolicyManager.PRIVATE_DNS_MODE_PROVIDER_HOSTNAME;
23 import android.app.admin.DevicePolicyManager;
/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_TRUST_AGENTS;
23 import static android.app.admin.DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED;
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;
[all …]
DDelegationTest.java19 import static android.app.admin.DevicePolicyManager.DELEGATION_APP_RESTRICTIONS;
20 import static android.app.admin.DevicePolicyManager.DELEGATION_BLOCK_UNINSTALL;
21 import static android.app.admin.DevicePolicyManager.DELEGATION_CERT_INSTALL;
22 import static android.app.admin.DevicePolicyManager.DELEGATION_CERT_SELECTION;
23 import static android.app.admin.DevicePolicyManager.DELEGATION_ENABLE_SYSTEM_APP;
24 import static android.app.admin.DevicePolicyManager.DELEGATION_NETWORK_LOGGING;
25 import static android.app.admin.DevicePolicyManager.EXTRA_DELEGATION_SCOPES;
28 import android.app.admin.DevicePolicyManager;
DStorageEncryptionTest.java18 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/AccountCheck/Auth/src/com/android/cts/devicepolicy/accountcheck/
DAccountCheckTest.java20 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/tests/admin/src/android/admin/cts/
DDeviceAdminActivationTest.java17 package android.admin.cts;
20 import android.app.admin.DevicePolicyManager;
25 import android.admin.app.CtsDeviceAdminBrokenReceiver;
26 import android.admin.app.CtsDeviceAdminBrokenReceiver2;
27 import android.admin.app.CtsDeviceAdminBrokenReceiver3;
28 import android.admin.app.CtsDeviceAdminBrokenReceiver4;
29 import android.admin.app.CtsDeviceAdminBrokenReceiver5;
30 import android.admin.app.CtsDeviceAdminDeactivatedReceiver;
31 import android.admin.app.CtsDeviceAdminActivationTestActivity;
32 import android.admin.app.CtsDeviceAdminActivationTestActivity.OnActivityResultListener;
DDeviceAdminReceiverTest.java17 package android.admin.cts;
19 import static android.app.admin.DeviceAdminReceiver.ACTION_LOCK_TASK_ENTERING;
20 import static android.app.admin.DeviceAdminReceiver.ACTION_PASSWORD_CHANGED;
21 import static android.app.admin.DeviceAdminReceiver.ACTION_PASSWORD_FAILED;
22 import static android.app.admin.DeviceAdminReceiver.ACTION_PASSWORD_SUCCEEDED;
23 import static android.app.admin.DeviceAdminReceiver.ACTION_PASSWORD_EXPIRING;
24 import static android.app.admin.DeviceAdminReceiver.EXTRA_LOCK_TASK_PACKAGE;
31 import android.app.admin.DeviceAdminReceiver;
/cts/hostsidetests/devicepolicy/app/DelegateApp/src/com/android/cts/delegate/
DPermissionGrantDelegateTest.java18 import static android.app.admin.DevicePolicyManager.DELEGATION_PERMISSION_GRANT;
19 import static android.app.admin.DevicePolicyManager.PERMISSION_POLICY_AUTO_GRANT;
20 import static android.app.admin.DevicePolicyManager.PERMISSION_POLICY_AUTO_DENY;
21 import static android.app.admin.DevicePolicyManager.PERMISSION_GRANT_STATE_GRANTED;
22 import static android.app.admin.DevicePolicyManager.PERMISSION_GRANT_STATE_DENIED;
25 import android.app.admin.DevicePolicyManager;
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DCompHelperActivity.java20 import android.app.admin.DevicePolicyManager;
78 final ComponentName admin = CompDeviceAdminTestReceiver.getReceiverComponentName(); in onCreate() local
85 dpm.setAlwaysOnVpnPackage(admin, getPackageName(), false /* lockdownEnabled */); in onCreate()
90 dpm.installCaCert(admin, TEST_CA.getBytes()); in onCreate()
92 dpm.setMaximumFailedPasswordsForWipe(admin, 100); in onCreate()
DDeviceAdminTestReceiver.java19 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_ADMIN_EXTRAS_BUNDLE;
22 import android.app.admin.DeviceAdminReceiver;
23 import android.app.admin.DevicePolicyManager;
114 ComponentName admin = getReceiverComponentName(); in onEnabled() local
115 dpm.setAffiliationIds(admin, in onEnabled()
130 ComponentName admin = getReceiverComponentName(); in onEnabled() local
131 dpm.setAffiliationIds(admin, in onEnabled()
133 dpm.logoutUser(admin); in onEnabled()
DLockTaskUiTestActivity.java19 import static android.app.admin.DevicePolicyManager.LOCK_TASK_FEATURE_GLOBAL_ACTIONS;
20 import static android.app.admin.DevicePolicyManager.LOCK_TASK_FEATURE_HOME;
21 import static android.app.admin.DevicePolicyManager.LOCK_TASK_FEATURE_KEYGUARD;
22 import static android.app.admin.DevicePolicyManager.LOCK_TASK_FEATURE_NONE;
23 import static android.app.admin.DevicePolicyManager.LOCK_TASK_FEATURE_NOTIFICATIONS;
24 import static android.app.admin.DevicePolicyManager.LOCK_TASK_FEATURE_OVERVIEW;
25 import static android.app.admin.DevicePolicyManager.LOCK_TASK_FEATURE_SYSTEM_INFO;
33 import android.app.admin.DevicePolicyManager;
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DProvisioningTest.java18 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_PROFILE;
19 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_ACCOUNT_TO_MIGRATE;
20 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_ADMIN_EXTRAS_BUNDLE;
21 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_COMPONENT_NAME;
22 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_KEEP_ACCOUNT_ON_MIGRATION;
23 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_SKIP_ENCRYPTION;
32 import android.app.admin.DeviceAdminReceiver;
33 import android.app.admin.DevicePolicyManager;
DDevicePolicyManagerParentSupportTest.java3 import static android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_TRUST_AGENTS;
4 import static android.app.admin.DevicePolicyManager.PASSWORD_QUALITY_NUMERIC_COMPLEX;
5 import static android.app.admin.DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED;
9 import android.app.admin.DevicePolicyManager;
/cts/hostsidetests/devicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/provisioning/
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()
DUserRestrictionTest.java19 import android.app.admin.DevicePolicyManager;
54 ComponentName admin = AdminReceiver.getComponentName(getContext()); in setUserRestriction() local
56 dpm.addUserRestriction(admin, restriction); in setUserRestriction()
58 dpm.clearUserRestriction(admin, restriction); in setUserRestriction()
/cts/hostsidetests/devicepolicy/app/SingleAdminApp/src/com/android/cts/devicepolicy/singleadmin/
DProvisioningSingleAdminTest.java18 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/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/hostsidetests/devicepolicy/app/PasswordComplexity/src/com.android.cts.passwordcomplexity/
DGetPasswordComplexityTest.java3 import static android.app.admin.DevicePolicyManager.PASSWORD_COMPLEXITY_HIGH;
4 import static android.app.admin.DevicePolicyManager.PASSWORD_COMPLEXITY_LOW;
5 import static android.app.admin.DevicePolicyManager.PASSWORD_COMPLEXITY_MEDIUM;
6 import static android.app.admin.DevicePolicyManager.PASSWORD_COMPLEXITY_NONE;
11 import android.app.admin.DevicePolicyManager;
/cts/hostsidetests/devicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/
DManagementTest.java18 import android.app.admin.DevicePolicyManager;
92 ComponentName admin = AdminReceiver.getComponentName(mContext); in testCreateSecondaryUser() local
93 assertNotNull(mDevicePolicyManager.createAndManageUser(admin, "secondary-user", in testCreateSecondaryUser()
94 admin, null, DevicePolicyManager.SKIP_SETUP_WIZARD)); in testCreateSecondaryUser()
/cts/hostsidetests/devicepolicy/app/TransferOwnerOutgoingApp/src/com/android/cts/transferowner/
DDeviceAndProfileOwnerTransferOutgoingTest.java24 import android.app.admin.DeviceAdminReceiver;
25 import android.app.admin.DevicePolicyManager;
193 ComponentName admin = mOutgoingComponentName; in setAffiliationId() local
197 dpm.setAffiliationIds(admin, ids); in setAffiliationId()
198 assertEquals(ids, dpm.getAffiliationIds(admin)); in setAffiliationId()
/cts/hostsidetests/devicepolicy/app/TransferOwnerIncomingApp/src/com/android/cts/transferowner/
DDeviceAndProfileOwnerTransferIncomingTest.java23 import android.app.admin.DeviceAdminReceiver;
24 import android.app.admin.DevicePolicyManager;
92 ComponentName admin = mIncomingComponentName; in getAffiliationId() local
95 Set<String> affiliationIds = dpm.getAffiliationIds(admin); in getAffiliationId()

12345678