Home
last modified time | relevance | path

Searched refs:listUsers (Results 1 – 16 of 16) sorted by relevance

/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/
DUserCleanerFuncTest.java48 for (int id : device.listUsers()) { in tearDown()
56 assertEquals("one user initially", 1, device.listUsers().size()); in testTearDown()
60 assertEquals("additional users created", 3, device.listUsers().size()); in testTearDown()
63 assertEquals("additional users removed", 1, device.listUsers().size()); in testTearDown()
DDeviceOwnerTargetPreparerTest.java71 when(mTestInfo.getDevice().listUsers()).thenReturn(userIds); in setUp()
112 when(mTestInfo.getDevice().listUsers()).thenReturn(userIds); in testSetUp_removeSecondaryUsers()
138 when(mTestInfo.getDevice().listUsers()).thenReturn(userIds); in testSetUp_headless_removeSecondaryUsers()
DUserCleanerTest.java59 when(mMockDevice.listUsers()).thenReturn(Lists.newArrayList(0, 1, 2, 3)); in testRemoveUsers()
DRunOnSecondaryUserTargetPreparerTest.java73 when(mTestInfo.getDevice().listUsers()).thenReturn(userIds); in setUp()
428 when(mTestInfo.getDevice().listUsers()).thenReturn(userIds); in setUp_hasOneSecondaryUser_createSecondaryUserOnSecondaryDisplay()
475 when(mTestInfo.getDevice().listUsers()).thenReturn(userIds); in setUp_hasOneSecondaryUser_doNothing()
524 when(mTestInfo.getDevice().listUsers()).thenReturn(userIds); in setUp_hasTwoSecondaryUsers_startSecondaryUserOnSecondaryDisplay()
DRunOnCloneProfileTargetPreparerTest.java104 when(mTestInfo.getDevice().listUsers()).thenReturn(userIds); in setUp()
DRunOnPrivateProfileTargetPreparerTest.java99 when(mTestInfo.getDevice().listUsers()).thenReturn(userIds); in setUp()
DRunOnWorkProfileTargetPreparerTest.java100 when(mTestInfo.getDevice().listUsers()).thenReturn(userIds); in setUp()
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DUserCleaner.java44 for (Integer id : device.listUsers()) { in tearDown()
DDeviceOwnerTargetPreparer.java104 for (Integer id : mDevice.listUsers()) { in removeSecondaryUsers()
/tools/tradefederation/core/javatests/com/android/tradefed/device/
DTestDeviceUserFuncTest.java68 List<Integer> listedIDs = mTestDevice.listUsers(); in testUserLifecycle()
DTestDeviceTest.java2869 ArrayList<Integer> actual = testDevice.listUsers(); in testListUsers_oneUser()
2884 testDevice.listUsers(); in testListUsers_invalidOutput()
2903 testDevice.listUsers(); in testListUsers_unparsableOutput()
2927 ArrayList<Integer> actual = testDevice.listUsers(); in testListUsers_multiUsers()
5222 public ArrayList<Integer> listUsers() throws DeviceNotAvailableException { in testGetAndroidIds()
5246 public ArrayList<Integer> listUsers() throws DeviceNotAvailableException { in testGetAndroidIds_noUser()
5259 public ArrayList<Integer> listUsers() throws DeviceNotAvailableException { in testGetAndroidIds_noMatch()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DRunOnSecondaryUserTargetPreparer.java241 return device.listUsers().size() + numberOfUsers <= device.getMaxNumberOfUsersSupported(); in canCreateAdditionalUsers()
DProfileTargetPreparer.java333 return device.listUsers().size() + numberOfUsers <= device.getMaxNumberOfUsersSupported(); in canCreateAdditionalUsers()
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/
DITestDevice.java777 ArrayList<Integer> listUsers() throws DeviceNotAvailableException; in listUsers() method
/tools/tradefederation/core/src/com/android/tradefed/device/
DTestDevice.java750 ArrayList<Integer> userIds = listUsers(); in allowLegacyStorageForApps()
1515 public ArrayList<Integer> listUsers() throws DeviceNotAvailableException { in listUsers() method in TestDevice
2358 ArrayList<Integer> userIds = listUsers(); in getAndroidIds()
DNativeDevice.java4879 public ArrayList<Integer> listUsers() throws DeviceNotAvailableException { in listUsers() method in NativeDevice