Home
last modified time | relevance | path

Searched refs:createUser (Results 1 – 15 of 15) sorted by relevance

/tools/tradefederation/core/javatests/com/android/tradefed/suite/checker/
DUserCheckerTest.java72 verify(preDevice, never()).createUser(any(), anyBoolean(), anyBoolean()); in testSwitchIsSuccess()
82 verify(postDevice, never()).createUser(any(), anyBoolean(), anyBoolean()); in testSwitchIsSuccess()
97 when(preDevice.createUser("Tfsecondary", false, false)).thenReturn(10); in testCreateIsSuccess()
101 verify(preDevice, times(1)).createUser("Tfsecondary", false, false); in testCreateIsSuccess()
127 when(preDevice.createUser("Tfsecondary", false, false)).thenReturn(10); in testCreateCleanup()
131 verify(preDevice, times(1)).createUser("Tfsecondary", false, false); in testCreateCleanup()
159 when(preDevice.createUser("Tfsecondary", false, false)).thenReturn(10); in testCreateCleanup_cleanupFail()
163 verify(preDevice, times(1)).createUser("Tfsecondary", false, false); in testCreateCleanup_cleanupFail()
219 verify(device, never()).createUser(any(), anyBoolean(), anyBoolean()); in testSwitchToSystem()
235 verify(device, never()).createUser(any(), anyBoolean(), anyBoolean()); in testSwitchToSecondary()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/
DRunOnSecondaryUserTargetPreparerTest.java84 when(mTestInfo.getDevice().createUser(any(), anyBoolean(), anyBoolean(), anyBoolean())) in setUp_createsStartsAndSwitchesToSecondaryUser()
91 .createUser( in setUp_createsStartsAndSwitchesToSecondaryUser()
103 when(mTestInfo.getDevice().createUser(any(), anyBoolean(), anyBoolean(), anyBoolean())) in setUp_oldVersion_createsStartsAndSwitchesToSecondaryUserWithoutWait()
111 .createUser( in setUp_oldVersion_createsStartsAndSwitchesToSecondaryUserWithoutWait()
131 .createUser(any(), anyBoolean(), anyBoolean(), anyBoolean()); in setUp_secondaryUserAlreadyExists_doesNotCreateSecondaryUser()
152 when(mTestInfo.getDevice().createUser(any(), anyBoolean(), anyBoolean(), anyBoolean())) in tearDown_switchesBackToInitialUser()
196 when(mTestInfo.getDevice().createUser(any(), anyBoolean(), anyBoolean(), anyBoolean())) in setUp_setsRunTestsAsUser()
222 when(mTestInfo.getDevice().createUser(any(), anyBoolean(), anyBoolean(), anyBoolean())) in setUp_installsPackagesInSecondaryUser()
260 .createUser( in setUp_secondaryUserIsNonForTesting_createsNewSecondaryUser()
333 when(mTestInfo.getDevice().createUser(any(), anyBoolean(), anyBoolean(), anyBoolean())) in setUp_doesNotDisableTearDown()
[all …]
DUserCleanerFuncTest.java58 device.createUser(UUID.randomUUID().toString()); in testTearDown()
59 device.createUser(UUID.randomUUID().toString()); in testTearDown()
/tools/tradefederation/core/javatests/com/android/tradefed/util/
DITestDeviceMockHelper.java72 when(mMockDevice.createUser(any())).thenReturn(userId); in mockCreateUser()
77 when(mMockDevice.createUser(any())).thenThrow(e); in mockCreateUserFailure()
100 verify(mMockDevice, never()).createUser(any()); in verifyNoUserCreated()
104 verify(mMockDevice).createUser(any()); in verifyUserCreated()
/tools/tradefederation/core/javatests/com/android/tradefed/device/
DTestDeviceUserFuncTest.java65 userId = mTestDevice.createUser(userName, false, false); in testUserLifecycle()
91 userId = mTestDevice.createUser(username, false, false); in testStartUser_IsRunningUser_StopUser()
DTestDevicePackageFuncTest.java135 userId = mTestDevice.createUser(username, false, false); in testInstallListUninstall_forUser()
DTestDeviceTest.java3225 assertEquals(10, mTestDevice.createUser("foo")); in testCreateUser()
3242 assertEquals(12, mTestDevice.createUser("TEST", true, true)); in testCreateUserFlags()
3257 mTestDevice.createUser("TEST", true, true); in testCreateUser_wrongOutput()
3272 mTestDevice.createUser("foo"); in testCreateUser_failed()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DUserHelper.java41 public static int createUser(ITestDevice device, boolean reuseTestUser) in createUser() method in UserHelper
53 int userId = device.createUser(TF_CREATED_USER); in createUser()
DCreateUserPreparer.java53 mCreatedUserId = UserHelper.createUser(device, mReuseTestUser); in setUp()
DVisibleBackgroundUserPreparer.java61 mUserId = UserHelper.createUser(device, mReuseTestUser); in setUp()
DRunOnSecondaryUserTargetPreparer.java156 return device.createUser( in createSecondaryUser()
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/
DITestDevice.java724 public int createUser(String name) throws DeviceNotAvailableException, IllegalStateException; in createUser() method
735 public int createUser(String name, boolean guest, boolean ephemeral) in createUser() method
748 public int createUser(String name, boolean guest, boolean ephemeral, boolean forTesting) in createUser() method
/tools/tradefederation/core/src/com/android/tradefed/suite/checker/
DUserChecker.java78 device.createUser( in preExecutionCheck()
/tools/tradefederation/core/src/com/android/tradefed/device/
DTestDevice.java1833 public int createUser(String name) throws DeviceNotAvailableException, IllegalStateException { in createUser() method in TestDevice
1834 return createUser(name, false, false); in createUser()
1841 public int createUser(String name, boolean guest, boolean ephemeral) in createUser() method in TestDevice
1843 return createUser(name, guest, ephemeral, /* forTesting= */ false); in createUser()
1848 public int createUser(String name, boolean guest, boolean ephemeral, boolean forTesting) in createUser() method in TestDevice
1872 return createUser(name); in createUserNoThrow()
DNativeDevice.java4935 public int createUser(String name) throws DeviceNotAvailableException, IllegalStateException { in createUser() method in NativeDevice
4943 public int createUser(String name, boolean guest, boolean ephemeral) in createUser() method in NativeDevice
4950 public int createUser(String name, boolean guest, boolean ephemeral, boolean forTesting) in createUser() method in NativeDevice