Home
last modified time | relevance | path

Searched refs:listUsers (Results 1 – 5 of 5) sorted by relevance

/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DDeviceOwnerTest.java155 assertTrue("User must have been created", listUsers().contains(userId)); in testRemoveUsersOnSetForceEphemeralUsers()
161 assertFalse("User must have been removed", listUsers().contains(userId)); in testRemoveUsersOnSetForceEphemeralUsers()
178 assertTrue("User must have been created", listUsers().contains(userId)); in testRemoveUsersOnSetForceEphemeralUsersWithUserSwitch()
195 if (!listUsers().contains(userId)) { in testRemoveUsersOnSetForceEphemeralUsersWithUserSwitch()
226 ArrayList<Integer> originalUsers = listUsers(); in testCreateAndManageEphemeralUser()
229 ArrayList<Integer> newUsers = listUsers(); in testCreateAndManageEphemeralUser()
DEphemeralUserTest.java80 assertTrue("ephemeral user must exists after start", listUsers().contains(userId)); in testRemoveEphemeralOnStop()
82 assertFalse("ephemeral user must be removed after stop", listUsers().contains(userId)); in testRemoveEphemeralOnStop()
DBaseDevicePolicyTest.java179 protected ArrayList<Integer> listUsers() throws DeviceNotAvailableException { in listUsers() method in BaseDevicePolicyTest
180 return getDevice().listUsers(); in listUsers()
191 if (listUsers().contains(userId) && userId != USER_SYSTEM) { in removeUser()
202 for (int userId : listUsers()) { in removeTestUsers()
278 return listUsers().size() + numberOfUsers <= getMaxNumberOfUsersSupported(); in canCreateAdditionalUsers()
DManagedProfileTest.java129 assertTrue(listUsers().contains(mProfileUserId)); in testWipeData()
134 assertFalse(listUsers().contains(mProfileUserId)); in testWipeData()
/cts/hostsidetests/multiuser/src/android/host/multiuser/
DBaseMultiUserTest.java90 for (int userId : getDevice().listUsers()) { in removeTestUsers()