Searched refs:mAdminComponent (Results 1 – 5 of 5) sorted by relevance
/cts/hostsidetests/devicepolicy/app/DeviceAdmin/src/com.android.cts.deviceadmin/ |
D | DeviceAdminWithEnterprisePoliciesBlockedTest.java | 31 boolean originalValue = dpm.getCameraDisabled(mAdminComponent); in testCameraDisabled() 32 assertSecurityException(() -> dpm.setCameraDisabled(mAdminComponent, true)); in testCameraDisabled() 33 assertEquals(originalValue, dpm.getCameraDisabled(mAdminComponent)); in testCameraDisabled() 37 int originalValue = dpm.getKeyguardDisabledFeatures(mAdminComponent); in testKeyguardDisabledFeatures() 38 assertSecurityException(() -> dpm.setKeyguardDisabledFeatures(mAdminComponent, in testKeyguardDisabledFeatures() 40 assertEquals(originalValue, dpm.getKeyguardDisabledFeatures(mAdminComponent)); in testKeyguardDisabledFeatures() 52 int originalValue = dpm.getPasswordHistoryLength(mAdminComponent); in testPasswordHistoryLength() 53 assertSecurityException(() -> dpm.setPasswordHistoryLength(mAdminComponent, 3)); in testPasswordHistoryLength() 54 assertEquals(originalValue, dpm.getPasswordHistoryLength(mAdminComponent)); in testPasswordHistoryLength() 58 int originalValue = dpm.getPasswordMinimumLength(mAdminComponent); in testPasswordMinimumLength() [all …]
|
D | DeviceAdminTest.java | 47 dpm.setMaximumFailedPasswordsForWipe(mAdminComponent, 3); in testGetMaximumFailedPasswordsForWipe() 48 assertEquals(3, dpm.getMaximumFailedPasswordsForWipe(mAdminComponent)); in testGetMaximumFailedPasswordsForWipe() 50 dpm.setMaximumFailedPasswordsForWipe(mAdminComponent, 5); in testGetMaximumFailedPasswordsForWipe() 51 assertEquals(5, dpm.getMaximumFailedPasswordsForWipe(mAdminComponent)); in testGetMaximumFailedPasswordsForWipe() 60 dpm.setPasswordQuality(mAdminComponent, in testPasswordHistoryLength() 62 int originalValue = dpm.getPasswordHistoryLength(mAdminComponent); in testPasswordHistoryLength() 64 dpm.setPasswordHistoryLength(mAdminComponent, 3); in testPasswordHistoryLength() 65 assertEquals(3, dpm.getPasswordHistoryLength(mAdminComponent)); in testPasswordHistoryLength() 70 dpm.setPasswordHistoryLength(mAdminComponent, originalValue); in testPasswordHistoryLength() 78 long originalValue = dpm.getPasswordExpirationTimeout(mAdminComponent); in testPasswordExpirationTimeout() [all …]
|
D | BaseDeviceAdminTest.java | 33 protected ComponentName mAdminComponent; field in BaseDeviceAdminTest 45 mAdminComponent = new ComponentName(mContext, AdminReceiver.class); in setUp() 48 Log.d(TAG, "setUp(): userId=" + userId + ", admin=" + mAdminComponent in setUp() 65 return dpm.isDeviceOwnerApp(mAdminComponent.getPackageName()); in isDeviceOwner() 77 for (int i = 0; i < 1000 && dpm.isAdminActive(mAdminComponent); i++) { in assertNotActiveAdmin() 80 assertFalse("Still active admin", dpm.isAdminActive(mAdminComponent)); in assertNotActiveAdmin() 88 dpm.setPasswordMinimumLength(mAdminComponent, 0); in resetComplexPasswordRestrictions() 89 dpm.setPasswordMinimumUpperCase(mAdminComponent, 0); in resetComplexPasswordRestrictions() 90 dpm.setPasswordMinimumLowerCase(mAdminComponent, 0); in resetComplexPasswordRestrictions() 91 dpm.setPasswordMinimumLetters(mAdminComponent, 0); in resetComplexPasswordRestrictions() [all …]
|
D | ClearDeviceAdminTest.java | 27 if (dpm.isAdminActive(mAdminComponent)) { in testRemoveActiveAdmin() 28 dpm.removeActiveAdmin(mAdminComponent); in testRemoveActiveAdmin()
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | AffiliationTest.java | 45 private ComponentName mAdminComponent; field in AffiliationTest 55 mAdminComponent = BasicAdminReceiver.getComponentName(context); in setUp() 56 Log.d(TAG, "setUp(): userId=" + mUserId + ", admin=" + mAdminComponent); in setUp() 63 mDevicePolicyManager.setAffiliationIds(mAdminComponent, null); in testSetAffiliationId_null() 74 mDevicePolicyManager.setAffiliationIds(mAdminComponent, Collections.singleton(null)); in testSetAffiliationId_containsEmptyString() 94 mDevicePolicyManager.setAffiliationIds(mAdminComponent, ids); in setAffiliationIds() 95 Set<String> setIds = mDevicePolicyManager.getAffiliationIds(mAdminComponent); in setAffiliationIds()
|