Searched refs:maxUsers (Results 1 – 6 of 6) sorted by relevance
83 int maxUsers = getDevice().getMaxNumberOfUsersSupported(); in testCanCreateGuestUserWhenUserLimitReached() local85 int numUsersToCreate = maxUsers - userCount; in testCanCreateGuestUserWhenUserLimitReached()96 userCount > maxUsers); in testCanCreateGuestUserWhenUserLimitReached()
47 final int maxUsers = device.getMaxNumberOfUsersSupported(); in setUp() local49 if (maxUsers > 1) { in setUp()53 if (maxUsers > 2) { in setUp()
145 public static int[] prepareMultipleUsers(ITestDevice device, int maxUsers) in prepareMultipleUsers() argument150 if (i < maxUsers) { in prepareMultipleUsers()156 if (userIds.length > maxUsers) { in prepareMultipleUsers()157 return Arrays.copyOf(userIds, maxUsers); in prepareMultipleUsers()
127 public static int[] prepareMultipleUsers(ITestDevice device, int maxUsers) in prepareMultipleUsers() argument131 if (i < maxUsers) { in prepareMultipleUsers()137 if (userIds.length > maxUsers) { in prepareMultipleUsers()138 return Arrays.copyOf(userIds, maxUsers); in prepareMultipleUsers()
205 int maxUsers = getDevice().getMaxNumberOfUsersSupported(); in testCreateAndManageUser_MaxUsers() local207 for (int i = 0; i < maxUsers - 1; i++) { in testCreateAndManageUser_MaxUsers()281 int maxUsers = getDevice().getMaxNumberOfUsersSupported(); in testCreateAndManageUser_StartInBackground_MaxRunningUsers() local285 int usersToCreateAndStart = Math.min(maxUsers, maxRunningUsers) - 1; in testCreateAndManageUser_StartInBackground_MaxRunningUsers()291 if (maxUsers > maxRunningUsers) { in testCreateAndManageUser_StartInBackground_MaxRunningUsers()
409 final Integer maxUsers = (Integer) method.invoke(null); in getMultiUserInfo() local410 if (maxUsers == 1) { in getMultiUserInfo()413 return maxUsers + " users supported"; in getMultiUserInfo()