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()
DBaseDevicePolicyTest.java456 protected ArrayList<Integer> listUsers() throws DeviceNotAvailableException { in listUsers() method in BaseDevicePolicyTest
457 return getDevice().listUsers(); in listUsers()
462 for (int userId : listUsers()) { in listRunningUsers()
471 for (int userId : listUsers()) { in getFirstManagedProfileUserId()
508 if (listUsers().contains(userId) && userId != USER_SYSTEM) { in removeUser()
515 if (listUsers().contains(userId)) { in removeUser()
547 List<Integer> result = listUsers(); in getUsersCreatedByTests()
629 return listUsers().size() + numberOfUsers <= getMaxNumberOfUsersSupported(); in canCreateAdditionalUsers()
1024 tryWaitForSuccess(() -> !listUsers().contains(userId), in waitUntilUserRemoved()
DOrgOwnedProfileOwnerTest.java411 while (listUsers().contains(userId) && (numWaits < MAX_NUM_WAITS)) { in assertHasNoUser()
416 assertThat(listUsers()).doesNotContain(userId); in assertHasNoUser()
/cts/hostsidetests/multiuser/src/android/host/multiuser/
DBaseMultiUserTest.java80 mFixedUsers = getDevice().listUsers(); in setUp()
133 for (int userId : getDevice().listUsers()) { in getGuestUser()
162 .that(getDevice().listUsers()).doesNotContain(userId); in assertUserNotPresent()
167 .that(getDevice().listUsers()).contains(userId); in assertUserPresent()
183 if (!getDevice().listUsers().contains(userId)) { in waitForUserRemove()
200 for (int userId : getDevice().listUsers()) { in removeTestUsers()
DCreateUsersPermissionTest.java69 int userCount = getDevice().listUsers().size(); in testCanCreateGuestUserWhenUserLimitReached()
79 userCount = getDevice().listUsers().size(); in testCanCreateGuestUserWhenUserLimitReached()
/cts/hostsidetests/accounts/src/android/host/accounts/
DBaseMultiUserTest.java68 mFixedUsers = getDevice().listUsers(); in setUp()
144 for (int userId : mDevice.listUsers()) { in getGuestUser()
157 for (int userId : getDevice().listUsers()) { in removeTestUsers()
/cts/hostsidetests/media/src/android/media/cts/
DBaseMultiUserTest.java80 mExistingUsers = getDevice().listUsers(); in setUp()
108 for (int userId : getDevice().listUsers()) { in tearDown()
211 if (getDevice().listUsers().contains(userId) && userId != USER_SYSTEM in removeUser()
250 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/backup/src/android/cts/backup/
DMultiUserBackupStateTest.java99 if (getDevice().listUsers().contains(userId) && userId != USER_SYSTEM) { in removeUser()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DResumeOnRebootHostTest.java499 private ArrayList<Integer> listUsers() throws DeviceNotAvailableException { in listUsers() method in ResumeOnRebootHostTest
500 return getDevice().listUsers(); in listUsers()
518 if (listUsers().contains(userId) && userId != USER_SYSTEM in removeUser()
526 if (listUsers().contains(userId)) { in removeUser()
DUtils.java213 for (Integer user : device.listUsers()) { in getAllUsers()
DAppDataIsolationTests.java368 int currentUserCount = getDevice().listUsers().size(); in assumeCanCreateUser()
/cts/hostsidetests/content/src/android/content/cts/
DBaseContextCrossProfileTest.java190 for (int userId : getDevice().listUsers()) { in removeTestUsers()
/cts/hostsidetests/classloaders/useslibrary/src/android/classloaders/cts/
DUtils.java152 for (Integer user : device.listUsers()) { in getAllUsers()
/cts/hostsidetests/os/src/android/os/cts/
DStaticSharedLibsHostTests.java734 final int currentUserCount = getDevice().listUsers().size(); in testPruneUnusedStaticSharedLibrariesWithMultiUser_reboot_fullMode()
762 final int currentUserCount = getDevice().listUsers().size(); in testPruneUnusedStaticSharedLibrariesWithMultiUser_reboot_instantMode()
/cts/hostsidetests/car/util/src/android/car/cts/
DCarHostJUnit4TestCase.java189 int currentNumber = getDevice().listUsers().size(); in requiresExtraUsers()