Searched refs:mAdminComponent (Results 1 – 7 of 7) sorted by relevance
/cts/hostsidetests/devicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/ |
D | DeviceWideLoggingFeaturesTest.java | 34 private ComponentName mAdminComponent; field in DeviceWideLoggingFeaturesTest 41 mAdminComponent = AdminReceiver.getComponentName(mContext); in setUp() 50 mDevicePolicyManager.retrieveSecurityLogs(mAdminComponent); in testRetrievingLogsThrowsSecurityException() 56 mDevicePolicyManager.retrievePreRebootSecurityLogs(mAdminComponent); in testRetrievingLogsThrowsSecurityException() 62 mDevicePolicyManager.retrieveNetworkLogs(mAdminComponent, NETWORK_LOGGING_BATCH_TOKEN); in testRetrievingLogsThrowsSecurityException() 69 mDevicePolicyManager.retrieveSecurityLogs(mAdminComponent); in testRetrievingLogsDoesNotThrowException() 70 mDevicePolicyManager.retrievePreRebootSecurityLogs(mAdminComponent); in testRetrievingLogsDoesNotThrowException() 71 mDevicePolicyManager.retrieveNetworkLogs(mAdminComponent, NETWORK_LOGGING_BATCH_TOKEN); in testRetrievingLogsDoesNotThrowException() 76 mDevicePolicyManager.requestBugreport(mAdminComponent); in testRequestBugreportThrowsSecurityException() 83 mDevicePolicyManager.requestBugreport(mAdminComponent); in testRequestBugreportDoesNotThrowException() [all …]
|
/cts/hostsidetests/devicepolicy/app/DeviceAdmin/src/com.android.cts.deviceadmin/ |
D | DeviceOwnerPasswordTest.java | 45 dpm.setPasswordQuality(mAdminComponent, in testPasswordQuality_something() 48 dpm.getPasswordQuality(mAdminComponent)); in testPasswordQuality_something() 56 dpm.setPasswordMinimumLength(mAdminComponent, 10); in testPasswordQuality_something() 58 assertEquals(10, dpm.getPasswordMinimumLength(mAdminComponent)); in testPasswordQuality_something() 66 dpm.setPasswordMinimumLength(mAdminComponent, 4); in testPasswordQuality_something() 69 mAdminComponent)); in testPasswordQuality_something() 78 dpm.setPasswordQuality(mAdminComponent, in testPasswordQuality_numeric() 81 dpm.getPasswordQuality(mAdminComponent)); in testPasswordQuality_numeric() 89 dpm.setPasswordMinimumLength(mAdminComponent, 10); in testPasswordQuality_numeric() 91 assertEquals(10, dpm.getPasswordMinimumLength(mAdminComponent)); in testPasswordQuality_numeric() [all …]
|
D | DeviceAdminTest.java | 42 dpm.setMaximumFailedPasswordsForWipe(mAdminComponent, 3); in testGetMaximumFailedPasswordsForWipe() 43 assertEquals(3, dpm.getMaximumFailedPasswordsForWipe(mAdminComponent)); in testGetMaximumFailedPasswordsForWipe() 45 dpm.setMaximumFailedPasswordsForWipe(mAdminComponent, 5); in testGetMaximumFailedPasswordsForWipe() 46 assertEquals(5, dpm.getMaximumFailedPasswordsForWipe(mAdminComponent)); in testGetMaximumFailedPasswordsForWipe() 52 dpm.setPasswordQuality(mAdminComponent, in testPasswordHistoryLength() 54 int originalValue = dpm.getPasswordHistoryLength(mAdminComponent); in testPasswordHistoryLength() 56 dpm.setPasswordHistoryLength(mAdminComponent, 3); in testPasswordHistoryLength() 57 assertEquals(3, dpm.getPasswordHistoryLength(mAdminComponent)); in testPasswordHistoryLength() 62 dpm.setPasswordHistoryLength(mAdminComponent, originalValue); in testPasswordHistoryLength() 67 long originalValue = dpm.getPasswordExpirationTimeout(mAdminComponent); in testPasswordExpirationTimeout() [all …]
|
D | BaseDeviceAdminTest.java | 30 protected ComponentName mAdminComponent; field in BaseDeviceAdminTest 40 mAdminComponent = new ComponentName(mContext, AdminReceiver.class); in setUp() 55 return dpm.isDeviceOwnerApp(mAdminComponent.getPackageName()); in isDeviceOwner() 67 for (int i = 0; i < 1000 && dpm.isAdminActive(mAdminComponent); i++) { in assertNotActiveAdmin() 70 assertFalse("Still active admin", dpm.isAdminActive(mAdminComponent)); in assertNotActiveAdmin() 78 dpm.setPasswordMinimumLength(mAdminComponent, 0); in resetComplexPasswordRestrictions() 79 dpm.setPasswordMinimumUpperCase(mAdminComponent, 0); in resetComplexPasswordRestrictions() 80 dpm.setPasswordMinimumLowerCase(mAdminComponent, 0); in resetComplexPasswordRestrictions() 81 dpm.setPasswordMinimumLetters(mAdminComponent, 0); in resetComplexPasswordRestrictions() 82 dpm.setPasswordMinimumNumeric(mAdminComponent, 0); in resetComplexPasswordRestrictions() [all …]
|
D | ClearDeviceAdminTest.java | 27 if (dpm.isAdminActive(mAdminComponent)) { in testRemoveActiveAdmin() 28 dpm.removeActiveAdmin(mAdminComponent); in testRemoveActiveAdmin()
|
D | DeviceAdminPasswordTest.java | 71 final int currentQuality = dpm.getPasswordQuality(mAdminComponent); in waitUntilPasswordState() 72 dpm.setPasswordQuality(mAdminComponent, DevicePolicyManager.PASSWORD_QUALITY_SOMETHING); in waitUntilPasswordState() 82 dpm.setPasswordQuality(mAdminComponent, currentQuality); in waitUntilPasswordState()
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | AffiliationTest.java | 42 private ComponentName mAdminComponent; field in AffiliationTest 49 mAdminComponent = BasicAdminReceiver.getComponentName(context); in setUp() 55 mDevicePolicyManager.setAffiliationIds(mAdminComponent, null); in testSetAffiliationId_null() 65 mDevicePolicyManager.setAffiliationIds(mAdminComponent, Collections.singleton(null)); in testSetAffiliationId_containsEmptyString() 91 mDevicePolicyManager.setLockTaskPackages(mAdminComponent, packages); in testSetLockTaskPackagesClearedIfUserBecomesUnaffiliated() 92 assertArrayEquals(packages, mDevicePolicyManager.getLockTaskPackages(mAdminComponent)); in testSetLockTaskPackagesClearedIfUserBecomesUnaffiliated() 97 mDevicePolicyManager.getAffiliationIds(mAdminComponent); in testSetLockTaskPackagesClearedIfUserBecomesUnaffiliated() 106 assertEquals(0, mDevicePolicyManager.getLockTaskPackages(mAdminComponent).length); in testSetLockTaskPackagesClearedIfUserBecomesUnaffiliated() 109 mDevicePolicyManager.setAffiliationIds(mAdminComponent, previousAffiliationIds); in testSetLockTaskPackagesClearedIfUserBecomesUnaffiliated() 114 mDevicePolicyManager.setAffiliationIds(mAdminComponent, ids); in setAffiliationIds() [all …]
|