Home
last modified time | relevance | path

Searched refs:listUsers (Results 1 – 17 of 17) 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.java458 protected ArrayList<Integer> listUsers() throws DeviceNotAvailableException { in listUsers() method in BaseDevicePolicyTest
459 return getDevice().listUsers(); in listUsers()
464 for (int userId : listUsers()) { in listRunningUsers()
473 for (int userId : listUsers()) { in getFirstManagedProfileUserId()
510 if (listUsers().contains(userId) && userId != USER_SYSTEM) { in removeUser()
519 if (listUsers().contains(userId)) { in removeUser()
552 List<Integer> result = listUsers(); in getUsersCreatedByTests()
634 return listUsers().size() + numberOfUsers <= getMaxNumberOfUsersSupported(); in canCreateAdditionalUsers()
998 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/
DBaseMultiUserTest.java78 mFixedUsers = getDevice().listUsers(); in setUp()
131 for (int userId : getDevice().listUsers()) { in getGuestUser()
174 .that(getDevice().listUsers()).doesNotContain(userId); in assertUserNotPresent()
179 .that(getDevice().listUsers()).contains(userId); in assertUserPresent()
195 if (!getDevice().listUsers().contains(userId)) { in waitForUserRemove()
243 for (int userId : getDevice().listUsers()) { in removeTestUsers()
DCreateUsersPermissionTest.java65 int userCount = getDevice().listUsers().size(); in testCanCreateGuestUserWhenUserLimitReached()
75 userCount = getDevice().listUsers().size(); in testCanCreateGuestUserWhenUserLimitReached()
/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/media/src/android/media/cts/
DBaseMultiUserTest.java106 for (int userId : getDevice().listUsers()) { in tearDown()
189 if (getDevice().listUsers().contains(userId) && userId != USER_SYSTEM in removeUser()
228 return getDevice().listUsers().size() + numberOfUsers <= in canCreateAdditionalUsers()
/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()