Home
last modified time | relevance | path

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

/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DManagedProfileWipeTest.java56 assertTrue(listUsers().contains(mProfileUserId)); in testWipeDataWithReason()
78 assertTrue(listUsers().contains(mProfileUserId)); in testWipeDataLogged()
100 assertTrue(listUsers().contains(mProfileUserId)); in testWipeDataWithoutReason()
125 assertTrue(listUsers().contains(mProfileUserId)); in testWipeData()
DEphemeralUserTest.java64 assertTrue("ephemeral user must exists after start", listUsers().contains(userId)); in testRemoveEphemeralOnStop()
66 assertFalse("ephemeral user must be removed after stop", listUsers().contains(userId)); in testRemoveEphemeralOnStop()
DBaseDevicePolicyTest.java468 protected ArrayList<Integer> listUsers() throws DeviceNotAvailableException { in listUsers() method in BaseDevicePolicyTest
469 return getDevice().listUsers(); in listUsers()
474 for (int userId : listUsers()) { in listRunningUsers()
483 for (int userId : listUsers()) { in getFirstManagedProfileUserId()
520 if (listUsers().contains(userId) && userId != USER_SYSTEM) { in removeUser()
529 if (listUsers().contains(userId)) { in removeUser()
562 List<Integer> result = listUsers(); in getUsersCreatedByTests()
644 return listUsers().size() + numberOfUsers <= getMaxNumberOfUsersSupported(); in canCreateAdditionalUsers()
1012 tryWaitForSuccess(() -> !listUsers().contains(userId), in waitUntilUserRemoved()
DOrgOwnedProfileOwnerTest.java533 while (listUsers().contains(userId) && (numWaits < MAX_NUM_WAITS)) { in assertHasNoUser()
542 assertThat(listUsers()).doesNotContain(userId); in assertHasNoUser()
/cts/hostsidetests/multiuser/src/android/host/multiuser/
DCreateUsersPermissionTest.java69 int userCount = getDevice().listUsers().size(); in testCanCreateGuestUserWhenUserLimitReached()
79 userCount = getDevice().listUsers().size(); in testCanCreateGuestUserWhenUserLimitReached()
DBaseMultiUserTest.java78 mFixedUsers = getDevice().listUsers(); in setUp()
131 for (int userId : getDevice().listUsers()) { in getGuestUser()
178 .that(getDevice().listUsers()).doesNotContain(userId); in assertUserNotPresent()
183 .that(getDevice().listUsers()).contains(userId); in assertUserPresent()
199 if (!getDevice().listUsers().contains(userId)) { in waitForUserRemove()
247 for (int userId : getDevice().listUsers()) { in removeTestUsers()
/cts/hostsidetests/accounts/src/android/host/accounts/
DBaseMultiUserTest.java68 mFixedUsers = getDevice().listUsers(); in setUp()
145 for (int userId : mDevice.listUsers()) { in getGuestUser()
158 for (int userId : getDevice().listUsers()) { in removeTestUsers()
/cts/hostsidetests/shortcuts/hostside/src/android/content/pm/cts/shortcuthost/
DBaseShortcutManagerHostTest.java76 mOriginalUsers = new ArrayList<>(getDevice().listUsers()); in setUp()
150 for (int userId : getDevice().listUsers()) { in removeTestUsers()
161 for (int userId : getDevice().listUsers()) { in getOrCreateSecondaryUser()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DResumeOnRebootHostTest.java545 private ArrayList<Integer> listUsers() throws DeviceNotAvailableException { in listUsers() method in ResumeOnRebootHostTest
546 return getDevice().listUsers(); in listUsers()
567 if (listUsers().contains(userId) && userId != USER_SYSTEM) { in removeUser()
574 if (listUsers().contains(userId)) { in removeUser()
DUtils.java170 for (Integer user : device.listUsers()) { in getAllUsers()
DAppDataIsolationTests.java385 int currentUserCount = getDevice().listUsers().size(); in assumeCanCreateUser()
/cts/hostsidetests/backup/src/android/cts/backup/
DMultiUserBackupStateTest.java99 if (getDevice().listUsers().contains(userId) && userId != USER_SYSTEM) { in removeUser()
/cts/hostsidetests/inputmethodservice/hostside/src/android/inputmethodservice/cts/hostside/
DMultiUserTest.java97 mOriginalUsers = new ArrayList<>(getDevice().listUsers()); in setUp()
116 final ArrayList<Integer> newUsers = getDevice().listUsers(); in tearDown()
/cts/hostsidetests/classloaders/useslibrary/src/android/classloaders/cts/
DUtils.java151 for (Integer user : device.listUsers()) { in getAllUsers()
/cts/hostsidetests/content/src/android/content/cts/
DBaseContextCrossProfileTest.java192 for (int userId : getDevice().listUsers()) { in removeTestUsers()
/cts/hostsidetests/car/src/android/car/cts/
DCarHostJUnit4TestCase.java150 int currentNumber = getDevice().listUsers().size(); in requiresExtraUsers()