/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ |
D | ManagedProfileWipeTest.java | 56 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()
|
D | BaseDevicePolicyTest.java | 456 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()
|
D | OrgOwnedProfileOwnerTest.java | 411 while (listUsers().contains(userId) && (numWaits < MAX_NUM_WAITS)) { in assertHasNoUser() 416 assertThat(listUsers()).doesNotContain(userId); in assertHasNoUser()
|
/cts/hostsidetests/multiuser/src/android/host/multiuser/ |
D | BaseMultiUserTest.java | 80 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()
|
D | CreateUsersPermissionTest.java | 69 int userCount = getDevice().listUsers().size(); in testCanCreateGuestUserWhenUserLimitReached() 79 userCount = getDevice().listUsers().size(); in testCanCreateGuestUserWhenUserLimitReached()
|
/cts/hostsidetests/accounts/src/android/host/accounts/ |
D | BaseMultiUserTest.java | 68 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/ |
D | BaseMultiUserTest.java | 80 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/ |
D | BaseShortcutManagerHostTest.java | 76 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/ |
D | MultiUserBackupStateTest.java | 99 if (getDevice().listUsers().contains(userId) && userId != USER_SYSTEM) { in removeUser()
|
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/ |
D | ResumeOnRebootHostTest.java | 499 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()
|
D | Utils.java | 213 for (Integer user : device.listUsers()) { in getAllUsers()
|
D | AppDataIsolationTests.java | 368 int currentUserCount = getDevice().listUsers().size(); in assumeCanCreateUser()
|
/cts/hostsidetests/content/src/android/content/cts/ |
D | BaseContextCrossProfileTest.java | 190 for (int userId : getDevice().listUsers()) { in removeTestUsers()
|
/cts/hostsidetests/classloaders/useslibrary/src/android/classloaders/cts/ |
D | Utils.java | 152 for (Integer user : device.listUsers()) { in getAllUsers()
|
/cts/hostsidetests/os/src/android/os/cts/ |
D | StaticSharedLibsHostTests.java | 734 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/ |
D | CarHostJUnit4TestCase.java | 189 int currentNumber = getDevice().listUsers().size(); in requiresExtraUsers()
|