Searched refs:maxUsers (Results 1 – 8 of 8) sorted by relevance
/cts/hostsidetests/multiuser/src/android/host/multiuser/ |
D | CreateUsersPermissionTest.java | 68 int maxUsers = getDevice().getMaxNumberOfUsersSupported(); in testCanCreateGuestUserWhenUserLimitReached() local 70 int numUsersToCreate = maxUsers - userCount; in testCanCreateGuestUserWhenUserLimitReached() 81 .that(userCount).isGreaterThan(maxUsers); in testCanCreateGuestUserWhenUserLimitReached()
|
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/ |
D | AppSecurityPreparer.java | 47 final int maxUsers = device.getMaxNumberOfUsersSupported(); in setUp() local 49 if (maxUsers > 1) { in setUp() 53 if (maxUsers > 2) { in setUp()
|
D | Utils.java | 183 public static int[] prepareMultipleUsers(ITestDevice device, int maxUsers) in prepareMultipleUsers() argument 188 if (i < maxUsers) { in prepareMultipleUsers() 194 if (userIds.length > maxUsers) { in prepareMultipleUsers() 195 return Arrays.copyOf(userIds, maxUsers); in prepareMultipleUsers()
|
/cts/hostsidetests/classloaders/useslibrary/src/android/classloaders/cts/ |
D | Utils.java | 128 public static int[] prepareMultipleUsers(ITestDevice device, int maxUsers) in prepareMultipleUsers() argument 132 if (i < maxUsers) { in prepareMultipleUsers() 138 if (userIds.length > maxUsers) { in prepareMultipleUsers() 139 return Arrays.copyOf(userIds, maxUsers); in prepareMultipleUsers()
|
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ |
D | DeviceOwnerTest.java | 107 int maxUsers = getDevice().getMaxNumberOfUsersSupported(); in testCreateAndManageUser_MaxUsers() local 117 CLog.d("testCreateAndManageUser_MaxUsers(): maxUxers=%d, existingUsers=%d", maxUsers, in testCreateAndManageUser_MaxUsers() 120 for (int i = 0; i < maxUsers - existingUsers; i++) { in testCreateAndManageUser_MaxUsers() 194 int maxUsers = getDevice().getMaxNumberOfUsersSupported(); in testCreateAndManageUser_StartInBackground_MaxRunningUsers() local 198 int usersToCreateAndStart = Math.min(maxUsers, maxRunningUsers) - 1; in testCreateAndManageUser_StartInBackground_MaxRunningUsers() 206 + "maxRunningUsers=%d, usersToCreateAndStart=%d", maxUsers, maxRunningUsers, in testCreateAndManageUser_StartInBackground_MaxRunningUsers() 212 if (maxUsers > maxRunningUsers) { in testCreateAndManageUser_StartInBackground_MaxRunningUsers()
|
D | BaseDevicePolicyTest.java | 638 int maxUsers = getDevice().getMaxNumberOfUsersSupported(); in assumeCanCreateAdditionalUsers() local
|
/cts/tools/device-setup/TestDeviceSetup/src/android/tests/getinfo/ |
D | DeviceInfoInstrument.java | 409 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/modules/multiuser/src/main/kotlin/com/android/bedstead/multiuser/ |
D | UsersComponent.kt | 283 val maxUsers: Int = getMaxNumberOfUsersSupported() in <lambda>() constant 290 "($currentUsers current users, $maxUsers max users)", in <lambda>() 291 currentUsers + number <= maxUsers, in <lambda>()
|