Home
last modified time | relevance | path

Searched refs:getWho (Results 1 – 18 of 18) sorted by relevance

/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DSecurityLoggingTest.java33 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()
DCreateAndManageUserTest.java65 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 …]
DCaCertManagementTest.java45 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 …]
DKeyManagementTest.java18 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 …]
DLockTaskTest.java123 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 …]
DForceEphemeralUsersTest.java40 setForceEphemeralUsersMethod.invoke(mDevicePolicyManager, getWho(), true); in testSetForceEphemeralUsers()
44 assertTrue((boolean) getForceEphemeralUsersMethod.invoke(mDevicePolicyManager, getWho())); in testSetForceEphemeralUsers()
56 setForceEphemeralUsersMethod.invoke(mDevicePolicyManager, getWho(), true); in testSetForceEphemeralUsersFails()
DLockScreenInfoTest.java25 mDevicePolicyManager.setDeviceOwnerLockScreenInfo(getWho(), null); in tearDown()
41 mDevicePolicyManager.setDeviceOwnerLockScreenInfo(getWho(), message); in testEmptyStringClearsLockInfo()
81 mDevicePolicyManager.setDeviceOwnerLockScreenInfo(getWho(), message); in setLockInfo()
DBaseDeviceOwnerTest.java63 assertTrue(dpm.isAdminActive(getWho())); in assertDeviceOwner()
67 protected static ComponentName getWho() { in getWho() method in BaseDeviceOwnerTest
DSystemUpdatePolicyTest.java62 mDevicePolicyManager.setSystemUpdatePolicy(getWho(), null); in tearDown()
118 mDevicePolicyManager.setSystemUpdatePolicy(getWho(), policy); in testPolicy()
DWifiTest.java30 final String macAddress = mDevicePolicyManager.getWifiMacAddress(getWho()); in testGetWifiMacAddress()
DRemoteBugreportTest.java51 mComponentName = BaseDeviceOwnerTest.getWho(); in setUp()
DWifiConfigLockdownTest.java57 mDevicePolicyManager.setGlobalSetting(getWho(), in setUp()
67 mDevicePolicyManager.setGlobalSetting(getWho(), in tearDown()
/cts/hostsidetests/devicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/
DSilentPackageInstallTest.java36 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()
DBasePackageInstallTest.java101 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/
DBaseProfileOwnerTest.java44 assertTrue(dpm.isAdminActive(getWho())); in assertProfileOwner()
48 protected static ComponentName getWho() { in getWho() method in BaseProfileOwnerTest
DClearProfileOwnerTest.java34 mDevicePolicyManager.clearProfileOwner(BaseProfileOwnerTest.getWho()); in tearDown()
38 waitForActiveAdminRemoved(BaseProfileOwnerTest.getWho()); in tearDown()
DWifiTest.java21 mDevicePolicyManager.getWifiMacAddress(getWho()); in testGetWifiMacAddress()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DDeviceAdminTestReceiver.java115 dpm.addCrossProfileIntentFilter(getWho(context), filter, in setupProfile()
123 dpm.addCrossProfileIntentFilter(getWho(context), filter, in setupProfile()