/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 | EphemeralUserTest.java | 64 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()
|
D | BaseDevicePolicyTest.java | 458 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()
|
D | OrgOwnedProfileOwnerTest.java | 533 while (listUsers().contains(userId) && (numWaits < MAX_NUM_WAITS)) { in assertHasNoUser() 542 assertThat(listUsers()).doesNotContain(userId); in assertHasNoUser()
|
/cts/hostsidetests/multiuser/src/android/host/multiuser/ |
D | BaseMultiUserTest.java | 78 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()
|
D | CreateUsersPermissionTest.java | 65 int userCount = getDevice().listUsers().size(); in testCanCreateGuestUserWhenUserLimitReached() 75 userCount = getDevice().listUsers().size(); in testCanCreateGuestUserWhenUserLimitReached()
|
/cts/hostsidetests/accounts/src/android/host/accounts/ |
D | BaseMultiUserTest.java | 68 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/ |
D | BaseMultiUserTest.java | 106 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/ |
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/appsecurity/src/android/appsecurity/cts/ |
D | ResumeOnRebootHostTest.java | 545 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()
|
D | Utils.java | 170 for (Integer user : device.listUsers()) { in getAllUsers()
|
D | AppDataIsolationTests.java | 385 int currentUserCount = getDevice().listUsers().size(); in assumeCanCreateUser()
|
/cts/hostsidetests/backup/src/android/cts/backup/ |
D | MultiUserBackupStateTest.java | 99 if (getDevice().listUsers().contains(userId) && userId != USER_SYSTEM) { in removeUser()
|
/cts/hostsidetests/inputmethodservice/hostside/src/android/inputmethodservice/cts/hostside/ |
D | MultiUserTest.java | 97 mOriginalUsers = new ArrayList<>(getDevice().listUsers()); in setUp() 116 final ArrayList<Integer> newUsers = getDevice().listUsers(); in tearDown()
|
/cts/hostsidetests/classloaders/useslibrary/src/android/classloaders/cts/ |
D | Utils.java | 151 for (Integer user : device.listUsers()) { in getAllUsers()
|
/cts/hostsidetests/content/src/android/content/cts/ |
D | BaseContextCrossProfileTest.java | 192 for (int userId : getDevice().listUsers()) { in removeTestUsers()
|
/cts/hostsidetests/car/src/android/car/cts/ |
D | CarHostJUnit4TestCase.java | 150 int currentNumber = getDevice().listUsers().size(); in requiresExtraUsers()
|