Searched refs:listUsers (Results 1 – 5 of 5) sorted by relevance
155 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()
80 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()
179 protected ArrayList<Integer> listUsers() throws DeviceNotAvailableException { in listUsers() method in BaseDevicePolicyTest180 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()
129 assertTrue(listUsers().contains(mProfileUserId)); in testWipeData()134 assertFalse(listUsers().contains(mProfileUserId)); in testWipeData()
90 for (int userId : getDevice().listUsers()) { in removeTestUsers()