Home
last modified time | relevance | path

Searched refs:maxUsers (Results 1 – 8 of 8) sorted by relevance

/cts/hostsidetests/multiuser/src/android/host/multiuser/
DCreateUsersPermissionTest.java64 int maxUsers = getDevice().getMaxNumberOfUsersSupported(); in testCanCreateGuestUserWhenUserLimitReached() local
66 int numUsersToCreate = maxUsers - userCount; in testCanCreateGuestUserWhenUserLimitReached()
77 .that(userCount).isGreaterThan(maxUsers); in testCanCreateGuestUserWhenUserLimitReached()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DAppSecurityPreparer.java47 final int maxUsers = device.getMaxNumberOfUsersSupported(); in setUp() local
49 if (maxUsers > 1) { in setUp()
53 if (maxUsers > 2) { in setUp()
DUtils.java145 public static int[] prepareMultipleUsers(ITestDevice device, int maxUsers) in prepareMultipleUsers() argument
150 if (i < maxUsers) { in prepareMultipleUsers()
156 if (userIds.length > maxUsers) { in prepareMultipleUsers()
157 return Arrays.copyOf(userIds, maxUsers); in prepareMultipleUsers()
/cts/hostsidetests/classloaders/useslibrary/src/android/classloaders/cts/
DUtils.java127 public static int[] prepareMultipleUsers(ITestDevice device, int maxUsers) in prepareMultipleUsers() argument
131 if (i < maxUsers) { in prepareMultipleUsers()
137 if (userIds.length > maxUsers) { in prepareMultipleUsers()
138 return Arrays.copyOf(userIds, maxUsers); in prepareMultipleUsers()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DDeviceOwnerTest.java150 int maxUsers = getDevice().getMaxNumberOfUsersSupported(); in testCreateAndManageUser_MaxUsers() local
160 CLog.d("testCreateAndManageUser_MaxUsers(): maxUxers=%d, existingUsers=%d", maxUsers, in testCreateAndManageUser_MaxUsers()
163 for (int i = 0; i < maxUsers - existingUsers; i++) { in testCreateAndManageUser_MaxUsers()
227 int maxUsers = getDevice().getMaxNumberOfUsersSupported(); in testCreateAndManageUser_StartInBackground_MaxRunningUsers() local
231 int usersToCreateAndStart = Math.min(maxUsers, maxRunningUsers) - 1; in testCreateAndManageUser_StartInBackground_MaxRunningUsers()
239 + "maxRunningUsers=%d, usersToCreateAndStart=%d", maxUsers, maxRunningUsers, in testCreateAndManageUser_StartInBackground_MaxRunningUsers()
245 if (maxUsers > maxRunningUsers) { in testCreateAndManageUser_StartInBackground_MaxRunningUsers()
DBaseDevicePolicyTest.java643 int maxUsers = getDevice().getMaxNumberOfUsersSupported(); in assumeCanCreateAdditionalUsers() local
/cts/tools/device-setup/TestDeviceSetup/src/android/tests/getinfo/
DDeviceInfoInstrument.java409 final Integer maxUsers = (Integer) method.invoke(null); in getMultiUserInfo() local
410 if (maxUsers == 1) { in getMultiUserInfo()
413 return maxUsers + " users supported"; in getMultiUserInfo()
/cts/common/device-side/bedstead/harrier/src/main/java/com/android/bedstead/harrier/
DDeviceState.java1101 int maxUsers = getMaxNumberOfUsersSupported();
1105 " current users, " + maxUsers + " max users)", currentUsers + 1 <= maxUsers);