Home
last modified time | relevance | path

Searched refs:ADMIN (Results 1 – 3 of 3) sorted by relevance

/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DRequiredStrongAuthTimeoutTest.java31 private static final ComponentName ADMIN = ADMIN_RECEIVER_COMPONENT; field in RequiredStrongAuthTimeoutTest
39 assertEquals(mDevicePolicyManager.getRequiredStrongAuthTimeout(ADMIN), 0); in testSetRequiredStrongAuthTimeout()
42 mDevicePolicyManager.setRequiredStrongAuthTimeout(ADMIN, in testSetRequiredStrongAuthTimeout()
44 assertEquals(mDevicePolicyManager.getRequiredStrongAuthTimeout(ADMIN), in testSetRequiredStrongAuthTimeout()
50 mDevicePolicyManager.setRequiredStrongAuthTimeout(ADMIN, 0); in testSetRequiredStrongAuthTimeout()
51 assertEquals(mDevicePolicyManager.getRequiredStrongAuthTimeout(ADMIN), 0); in testSetRequiredStrongAuthTimeout()
56 mDevicePolicyManager.setRequiredStrongAuthTimeout(ADMIN, in testSetRequiredStrongAuthTimeout()
58 assertEquals(mDevicePolicyManager.getRequiredStrongAuthTimeout(ADMIN), in testSetRequiredStrongAuthTimeout()
64 mDevicePolicyManager.setRequiredStrongAuthTimeout(ADMIN, MIN_PLUS_ONE_MINUTE); in testSetRequiredStrongAuthTimeout()
65 assertEquals(mDevicePolicyManager.getRequiredStrongAuthTimeout(ADMIN), MIN_PLUS_ONE_MINUTE); in testSetRequiredStrongAuthTimeout()
[all …]
DPersonalAppsSuspensionTest.java47 private static final ComponentName ADMIN = BaseDeviceAdminTest.ADMIN_RECEIVER_COMPONENT; field in PersonalAppsSuspensionTest
53 mDpm.setPersonalAppsSuspended(ADMIN, true); in testSuspendPersonalApps()
54 assertThat(mDpm.getPersonalAppsSuspendedReasons(ADMIN)) in testSuspendPersonalApps()
60 mDpm.setPersonalAppsSuspended(ADMIN, false); in testUnsuspendPersonalApps()
61 assertThat(mDpm.getPersonalAppsSuspendedReasons(ADMIN)) in testUnsuspendPersonalApps()
67 mDpm.setManagedProfileMaximumTimeOff(ADMIN, 1000); in testSetManagedProfileMaximumTimeOff1Sec()
72 mDpm.setManagedProfileMaximumTimeOff(ADMIN, TimeUnit.DAYS.toMillis(365)); in testSetManagedProfileMaximumTimeOff1Year()
133 mDpm.setManagedProfileMaximumTimeOff(ADMIN, timeout); in testSetManagedProfileMaximumTimeOff()
134 assertThat(mDpm.getManagedProfileMaximumTimeOff(ADMIN)).isEqualTo(timeout); in testSetManagedProfileMaximumTimeOff()
135 mDpm.setManagedProfileMaximumTimeOff(ADMIN, 0); in testSetManagedProfileMaximumTimeOff()
[all …]
DWifiTest.java43 public static final ComponentName ADMIN = new ComponentName( field in WifiTest
67 mDevicePolicyManager.removeKeyPair(ADMIN, TEST_ALIAS); in tearDown()
77 final String macAddress = mDevicePolicyManager.getWifiMacAddress(ADMIN); in testGetWifiMacAddress()
87 mDevicePolicyManager.getWifiMacAddress(ADMIN); in testCannotGetWifiMacAddress()
145 assertTrue(mDevicePolicyManager.installKeyPair(ADMIN, getTestKey(), in prepareTestKeyPair()