/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | SecurityLoggingTest.java | 33 mDevicePolicyManager.setSecurityLoggingEnabled(getWho(), true); in testSetSecurityLoggingEnabledNotPossibleIfMoreThanOneUserPresent() 45 mDevicePolicyManager.retrieveSecurityLogs(getWho()); in testRetrievingSecurityLogsNotPossibleIfMoreThanOneUserPresent() 57 mDevicePolicyManager.retrievePreRebootSecurityLogs(getWho()); in testRetrievingPreviousSecurityLogsNotPossibleIfMoreThanOneUserPresent() 68 mDevicePolicyManager.setSecurityLoggingEnabled(getWho(), true); in testEnablingAndDisablingSecurityLogging() 69 assertTrue(mDevicePolicyManager.isSecurityLoggingEnabled(getWho())); in testEnablingAndDisablingSecurityLogging() 70 mDevicePolicyManager.setSecurityLoggingEnabled(getWho(), false); in testEnablingAndDisablingSecurityLogging() 71 assertFalse(mDevicePolicyManager.isSecurityLoggingEnabled(getWho())); in testEnablingAndDisablingSecurityLogging() 79 List<SecurityEvent> logs = mDevicePolicyManager.retrieveSecurityLogs(getWho()); in testRetrievingSecurityLogsNotPossibleImmediatelyAfterPreviousSuccessfulRetrieval() 82 assertNull(mDevicePolicyManager.retrieveSecurityLogs(getWho())); in testRetrievingSecurityLogsNotPossibleImmediatelyAfterPreviousSuccessfulRetrieval() 83 assertNull(mDevicePolicyManager.retrieveSecurityLogs(getWho())); in testRetrievingSecurityLogsNotPossibleImmediatelyAfterPreviousSuccessfulRetrieval()
|
D | CreateAndManageUserTest.java | 65 mDevicePolicyManager.clearUserRestriction(getWho(), UserManager.DISALLOW_ADD_USER); in tearDown() 66 mDevicePolicyManager.clearUserRestriction(getWho(), UserManager.DISALLOW_REMOVE_USER); in tearDown() 69 mDevicePolicyManager.removeUser(getWho(), mUserHandle); in tearDown() 209 getWho(), in testCreateAndManageEphemeralUser() 211 getWho(), in testCreateAndManageEphemeralUser() 231 getWho(), in testCreateAndManageEphemeralUserFails() 233 getWho(), in testCreateAndManageEphemeralUserFails() 258 mDevicePolicyManager.addUserRestriction(getWho(), UserManager.DISALLOW_ADD_USER); in testCreateAndManageUser_AddRestrictionSet() 260 mUserHandle = mDevicePolicyManager.createAndManageUser(getWho(), "Test User", getWho(), in testCreateAndManageUser_AddRestrictionSet() 266 mDevicePolicyManager.addUserRestriction(getWho(), UserManager.DISALLOW_REMOVE_USER); in testCreateAndManageUser_RemoveRestrictionSet() [all …]
|
D | CaCertManagementTest.java | 45 List<byte[]> caCerts = mDevicePolicyManager.getInstalledCaCerts(getWho()); in testCanRetrieveListOfInstalledCaCerts() 57 assertTrue(mDevicePolicyManager.installCaCert(getWho(), FAKE_RSA_1.caCertificate)); in testCanInstallAndUninstallACaCert() 61 mDevicePolicyManager.uninstallCaCert(getWho(), FAKE_RSA_1.caCertificate); in testCanInstallAndUninstallACaCert() 71 assertTrue(mDevicePolicyManager.installCaCert(getWho(), FAKE_RSA_1.caCertificate)); in testUninstallationIsSelective() 72 assertTrue(mDevicePolicyManager.installCaCert(getWho(), FAKE_DSA_1.caCertificate)); in testUninstallationIsSelective() 74 mDevicePolicyManager.uninstallCaCert(getWho(), FAKE_DSA_1.caCertificate); in testUninstallationIsSelective() 78 mDevicePolicyManager.uninstallCaCert(getWho(), FAKE_RSA_1.caCertificate); in testUninstallationIsSelective() 87 assertTrue(mDevicePolicyManager.installCaCert(getWho(), FAKE_RSA_1.caCertificate)); in testCanUninstallAllUserCaCerts() 88 assertTrue(mDevicePolicyManager.installCaCert(getWho(), FAKE_DSA_1.caCertificate)); in testCanUninstallAllUserCaCerts() 90 mDevicePolicyManager.uninstallAllUserCaCerts(getWho()); in testCanUninstallAllUserCaCerts() [all …]
|
D | KeyManagementTest.java | 18 import static com.android.cts.deviceowner.BaseDeviceOwnerTest.getWho; 79 mDevicePolicyManager.setPasswordQuality(getWho(), in tearDown() 81 mDevicePolicyManager.setPasswordMinimumLength(getWho(), 0); in tearDown() 92 assertTrue(mDevicePolicyManager.installKeyPair(getWho(), privKey, cert, alias)); in testCanInstallAndRemoveValidRsaKeypair() 103 assertTrue(mDevicePolicyManager.removeKeyPair(getWho(), alias)); in testCanInstallAndRemoveValidRsaKeypair() 116 assertTrue(mDevicePolicyManager.installKeyPair(getWho(), privKey, new Certificate[] {cert}, in testCanInstallWithAutomaticAccess() 118 assertTrue(mDevicePolicyManager.installKeyPair(getWho(), privKey, new Certificate[] {cert}, in testCanInstallWithAutomaticAccess() 129 assertTrue(mDevicePolicyManager.removeKeyPair(getWho(), grant)); in testCanInstallWithAutomaticAccess() 130 assertTrue(mDevicePolicyManager.removeKeyPair(getWho(), withhold)); in testCanInstallWithAutomaticAccess() 150 assertTrue(mDevicePolicyManager.installKeyPair(getWho(), privKey, certChain, alias, true)); in testCanInstallCertChain() [all …]
|
D | LockTaskTest.java | 123 mDevicePolicyManager.setLockTaskPackages(getWho(), new String[0]); in setUp() 137 mDevicePolicyManager.setLockTaskPackages(getWho(), new String[0]); in tearDown() 144 mDevicePolicyManager.setLockTaskPackages(getWho(), new String[] { TEST_PACKAGE }); in testSetLockTaskPackages() 147 mDevicePolicyManager.setLockTaskPackages(getWho(), new String[0]); in testSetLockTaskPackages() 153 mDevicePolicyManager.setLockTaskPackages(getWho(), new String[] { PACKAGE_NAME }); in testStartLockTask() 168 mDevicePolicyManager.setLockTaskPackages(getWho(), new String[] { PACKAGE_NAME }); in testCannotFinish() 181 mDevicePolicyManager.setLockTaskPackages(getWho(), new String[] { PACKAGE_NAME }); in testUpdateWhitelisting() 184 mDevicePolicyManager.setLockTaskPackages(getWho(), new String[0]); in testUpdateWhitelisting() 201 mDevicePolicyManager.setLockTaskPackages(getWho(), new String[] { PACKAGE_NAME }); in testStartActivity_withinTask() 224 mDevicePolicyManager.setLockTaskPackages(getWho(), new String[] { PACKAGE_NAME, in testStartActivity_outsideTaskWhitelisted() [all …]
|
D | ForceEphemeralUsersTest.java | 40 setForceEphemeralUsersMethod.invoke(mDevicePolicyManager, getWho(), true); in testSetForceEphemeralUsers() 44 assertTrue((boolean) getForceEphemeralUsersMethod.invoke(mDevicePolicyManager, getWho())); in testSetForceEphemeralUsers() 56 setForceEphemeralUsersMethod.invoke(mDevicePolicyManager, getWho(), true); in testSetForceEphemeralUsersFails()
|
D | LockScreenInfoTest.java | 25 mDevicePolicyManager.setDeviceOwnerLockScreenInfo(getWho(), null); in tearDown() 41 mDevicePolicyManager.setDeviceOwnerLockScreenInfo(getWho(), message); in testEmptyStringClearsLockInfo() 81 mDevicePolicyManager.setDeviceOwnerLockScreenInfo(getWho(), message); in setLockInfo()
|
D | BaseDeviceOwnerTest.java | 63 assertTrue(dpm.isAdminActive(getWho())); in assertDeviceOwner() 67 protected static ComponentName getWho() { in getWho() method in BaseDeviceOwnerTest
|
D | SystemUpdatePolicyTest.java | 62 mDevicePolicyManager.setSystemUpdatePolicy(getWho(), null); in tearDown() 118 mDevicePolicyManager.setSystemUpdatePolicy(getWho(), policy); in testPolicy()
|
D | WifiTest.java | 30 final String macAddress = mDevicePolicyManager.getWifiMacAddress(getWho()); in testGetWifiMacAddress()
|
D | RemoteBugreportTest.java | 51 mComponentName = BaseDeviceOwnerTest.getWho(); in setUp()
|
D | WifiConfigLockdownTest.java | 57 mDevicePolicyManager.setGlobalSetting(getWho(), in setUp() 67 mDevicePolicyManager.setGlobalSetting(getWho(), in tearDown()
|
/cts/hostsidetests/devicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/ |
D | SilentPackageInstallTest.java | 36 mDevicePolicyManager.setUninstallBlocked(getWho(), TEST_APP_PKG, true); in testUninstallBlocked() 37 assertTrue(mDevicePolicyManager.isUninstallBlocked(getWho(), TEST_APP_PKG)); in testUninstallBlocked() 42 mDevicePolicyManager.setUninstallBlocked(getWho(), TEST_APP_PKG, false); in testUninstallBlocked() 43 assertFalse(mDevicePolicyManager.isUninstallBlocked(getWho(), TEST_APP_PKG)); in testUninstallBlocked()
|
D | BasePackageInstallTest.java | 101 mDevicePolicyManager.setUninstallBlocked(getWho(), TEST_APP_PKG, false); in tearDown() 114 protected static ComponentName getWho() { in getWho() method in BasePackageInstallTest
|
/cts/hostsidetests/devicepolicy/app/ProfileOwner/src/com/android/cts/profileowner/ |
D | BaseProfileOwnerTest.java | 44 assertTrue(dpm.isAdminActive(getWho())); in assertProfileOwner() 48 protected static ComponentName getWho() { in getWho() method in BaseProfileOwnerTest
|
D | ClearProfileOwnerTest.java | 34 mDevicePolicyManager.clearProfileOwner(BaseProfileOwnerTest.getWho()); in tearDown() 38 waitForActiveAdminRemoved(BaseProfileOwnerTest.getWho()); in tearDown()
|
D | WifiTest.java | 21 mDevicePolicyManager.getWifiMacAddress(getWho()); in testGetWifiMacAddress()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | DeviceAdminTestReceiver.java | 115 dpm.addCrossProfileIntentFilter(getWho(context), filter, in setupProfile() 123 dpm.addCrossProfileIntentFilter(getWho(context), filter, in setupProfile()
|