/tools/tradefederation/core/javatests/com/android/tradefed/suite/checker/ |
D | UserCheckerTest.java | 72 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/ |
D | RunOnSecondaryUserTargetPreparerTest.java | 84 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 …]
|
D | UserCleanerFuncTest.java | 58 device.createUser(UUID.randomUUID().toString()); in testTearDown() 59 device.createUser(UUID.randomUUID().toString()); in testTearDown()
|
/tools/tradefederation/core/javatests/com/android/tradefed/util/ |
D | ITestDeviceMockHelper.java | 72 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/ |
D | TestDeviceUserFuncTest.java | 65 userId = mTestDevice.createUser(userName, false, false); in testUserLifecycle() 91 userId = mTestDevice.createUser(username, false, false); in testStartUser_IsRunningUser_StopUser()
|
D | TestDevicePackageFuncTest.java | 135 userId = mTestDevice.createUser(username, false, false); in testInstallListUninstall_forUser()
|
D | TestDeviceTest.java | 3225 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/ |
D | UserHelper.java | 41 public static int createUser(ITestDevice device, boolean reuseTestUser) in createUser() method in UserHelper 53 int userId = device.createUser(TF_CREATED_USER); in createUser()
|
D | CreateUserPreparer.java | 53 mCreatedUserId = UserHelper.createUser(device, mReuseTestUser); in setUp()
|
D | VisibleBackgroundUserPreparer.java | 61 mUserId = UserHelper.createUser(device, mReuseTestUser); in setUp()
|
D | RunOnSecondaryUserTargetPreparer.java | 156 return device.createUser( in createSecondaryUser()
|
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/ |
D | ITestDevice.java | 724 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/ |
D | UserChecker.java | 78 device.createUser( in preExecutionCheck()
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | TestDevice.java | 1833 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()
|
D | NativeDevice.java | 4935 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
|