Home
last modified time | relevance | path

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

/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/
DDeviceOwnerTargetPreparerTest.java68 ArrayList<Integer> userIds = new ArrayList<>(); in setUp() local
69 userIds.add(0, 1); in setUp()
71 when(mTestInfo.getDevice().listUsers()).thenReturn(userIds); in setUp()
108 ArrayList<Integer> userIds = new ArrayList<>(); in testSetUp_removeSecondaryUsers() local
109 userIds.add(0); in testSetUp_removeSecondaryUsers()
110 userIds.add(10); in testSetUp_removeSecondaryUsers()
111 userIds.add(11); in testSetUp_removeSecondaryUsers()
112 when(mTestInfo.getDevice().listUsers()).thenReturn(userIds); in testSetUp_removeSecondaryUsers()
134 ArrayList<Integer> userIds = new ArrayList<>(); in testSetUp_headless_removeSecondaryUsers() local
135 userIds.add(0); in testSetUp_headless_removeSecondaryUsers()
[all …]
DRunOnSecondaryUserTargetPreparerTest.java69 ArrayList<Integer> userIds = new ArrayList<>(); in setUp() local
70 userIds.add(0); in setUp()
73 when(mTestInfo.getDevice().listUsers()).thenReturn(userIds); in setUp()
422 ArrayList<Integer> userIds = new ArrayList<>(); in setUp_hasOneSecondaryUser_createSecondaryUserOnSecondaryDisplay() local
426 userIds.add(systemUser); in setUp_hasOneSecondaryUser_createSecondaryUserOnSecondaryDisplay()
427 userIds.add(secondaryUser1); in setUp_hasOneSecondaryUser_createSecondaryUserOnSecondaryDisplay()
428 when(mTestInfo.getDevice().listUsers()).thenReturn(userIds); in setUp_hasOneSecondaryUser_createSecondaryUserOnSecondaryDisplay()
469 ArrayList<Integer> userIds = new ArrayList<>(); in setUp_hasOneSecondaryUser_doNothing() local
473 userIds.add(systemUser); in setUp_hasOneSecondaryUser_doNothing()
474 userIds.add(secondaryUser1); in setUp_hasOneSecondaryUser_doNothing()
[all …]
DSwitchUserTargetPreparerTest.java267 private void mockListUsersInfo(ITestDevice device, Integer[] userIds, Integer[] flags) in mockListUsersInfo() argument
270 for (int i = 0; i < userIds.length; i++) { in mockListUsersInfo()
271 int userId = userIds[i]; in mockListUsersInfo()
DRunOnCloneProfileTargetPreparerTest.java100 ArrayList<Integer> userIds = new ArrayList<>(); in setUp() local
101 userIds.add(0); in setUp()
104 when(mTestInfo.getDevice().listUsers()).thenReturn(userIds); in setUp()
DRunOnPrivateProfileTargetPreparerTest.java95 ArrayList<Integer> userIds = new ArrayList<>(); in setUp() local
96 userIds.add(0); in setUp()
99 when(mTestInfo.getDevice().listUsers()).thenReturn(userIds); in setUp()
DRunOnWorkProfileTargetPreparerTest.java95 ArrayList<Integer> userIds = new ArrayList<>(); in setUp() local
96 userIds.add(0); in setUp()
100 when(mTestInfo.getDevice().listUsers()).thenReturn(userIds); in setUp()
/tools/tradefederation/core/javatests/com/android/tradefed/suite/checker/
DUserCheckerTest.java313 private ITestDevice mockDeviceUserState(int currentUser, Integer[] userIds) throws Exception { in mockDeviceUserState() argument
314 Integer[] flags = new Integer[userIds.length]; in mockDeviceUserState()
317 Boolean[] isRunning = new Boolean[userIds.length]; in mockDeviceUserState()
321 return mockDeviceUserState(currentUser, userIds, flags, isRunning); in mockDeviceUserState()
326 int currentUser, Integer[] userIds, Integer[] flags, Boolean[] isRunning) in mockDeviceUserState() argument
331 mockListUsersInfo(device, userIds, flags, isRunning); in mockDeviceUserState()
337 ITestDevice device, Integer[] userIds, Integer[] flags, Boolean[] isRunning) in mockListUsersInfo() argument
340 for (int i = 0; i < userIds.length; i++) { in mockListUsersInfo()
341 int userId = userIds[i]; in mockListUsersInfo()
/tools/tradefederation/core/src/com/android/tradefed/device/
DTestDevice.java750 ArrayList<Integer> userIds = listUsers(); in allowLegacyStorageForApps() local
751 for (int userId : userIds) { in allowLegacyStorageForApps()
1517 ArrayList<Integer> userIds = new ArrayList<Integer>(users.size()); in listUsers() local
1519 userIds.add(Integer.parseInt(user[1])); in listUsers()
1521 return userIds; in listUsers()
2358 ArrayList<Integer> userIds = listUsers(); in getAndroidIds() local
2359 if (userIds == null) { in getAndroidIds()
2363 for (Integer id : userIds) { in getAndroidIds()