/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/ |
D | VisibleBackgroundUserPreparerTest.java | 18 import static com.android.tradefed.targetprep.UserHelper.RUN_TESTS_AS_USER_KEY; 107 verifyTestInfoProperty(RUN_TESTS_AS_USER_KEY, "42"); in testSetUp_tearDown() 126 verifyTestInfoProperty(RUN_TESTS_AS_USER_KEY, "42"); in testSetUp_specificDisplayByOption() 140 verifyTestInfoProperty(RUN_TESTS_AS_USER_KEY, "42"); in testSetUp_specificDisplayBySetter() 156 verifyTestInfoProperty(RUN_TESTS_AS_USER_KEY, "42"); in testSetUp_useDefaultDisplayWhenVisibleBackgroundUsersOnDefaultDisplayIsNotSupported() 172 verifyTestInfoProperty(RUN_TESTS_AS_USER_KEY, "42"); in testSetUp_ignoreDefaultDisplayWhenVisibleBackgroundUsersOnDefaultDisplayIsSupported() 222 verifyTestInfoProperty(RUN_TESTS_AS_USER_KEY, "42"); in testSetUp_tearDown_reuseTestUser_invisible() 258 verifyTestInfoProperty(RUN_TESTS_AS_USER_KEY, "42"); in testSetUp_tearDown_reuseTestUser_alreadyVisible() 286 verifyTestInfoProperty(RUN_TESTS_AS_USER_KEY, "42"); in testSetUp_tearDown_reuseTestUser_noExistingTestUser()
|
D | RunOnCloneProfileTargetPreparerTest.java | 20 import static com.android.tradefed.targetprep.RunOnWorkProfileTargetPreparer.RUN_TESTS_AS_USER_KEY; 116 verify(mTestInfo.properties(), never()).put(eq(RUN_TESTS_AS_USER_KEY), any()); in setUp_apiDoesNotSupportCloneUser_doesNotChangeTestUser() 135 verify(mTestInfo.properties(), never()).put(eq(RUN_TESTS_AS_USER_KEY), any()); in setUp_deviceDoesNotSupportCloneUser_doesNotChangeTestUser() 206 verify(mTestInfo.properties()).put(RUN_TESTS_AS_USER_KEY, "11"); in setUp_profileAlreadyExists_runsTestAsExistingUser() 218 verify(mTestInfo.properties()).put(RUN_TESTS_AS_USER_KEY, "10"); in setUp_setsRunTestsAsUser() 279 when(mTestInfo.properties().get(RUN_TESTS_AS_USER_KEY)).thenReturn("10"); in tearDown_clearsRunTestsAsUserProperty() 283 verify(mTestInfo.properties()).remove(RUN_TESTS_AS_USER_KEY); in tearDown_clearsRunTestsAsUserProperty() 292 verify(mTestInfo.properties(), never()).put(eq(RUN_TESTS_AS_USER_KEY), any()); in setUp_doesNotSupportAdditionalUsers_doesNotChangeTestUser()
|
D | RunOnSystemUserTargetPreparerTest.java | 19 import static com.android.tradefed.targetprep.UserHelper.RUN_TESTS_AS_USER_KEY; 71 verify(mTestInfo.properties()).put(RUN_TESTS_AS_USER_KEY, "0"); in setUp_alreadySwitchedToSystemUser_runsOnSystemUser() 89 verify(mTestInfo.properties()).put(RUN_TESTS_AS_USER_KEY, "0"); in setUp_switchedToDifferentUser_runsOnSystemUser() 109 verify(mTestInfo.properties()).put(RUN_TESTS_AS_USER_KEY, "0"); in setup_headlessSystemUser_runsOnSystemUser()
|
D | RunOnPrivateProfileTargetPreparerTest.java | 20 import static com.android.tradefed.targetprep.RunOnWorkProfileTargetPreparer.RUN_TESTS_AS_USER_KEY; 110 verify(mTestInfo.properties(), never()).put(eq(RUN_TESTS_AS_USER_KEY), any()); in setUp_doesNotSupportPrivateUser_doesNotChangeTestUser() 188 verify(mTestInfo.properties()).put(RUN_TESTS_AS_USER_KEY, "11"); in setUp_profileAlreadyExists_runsTestAsExistingUser() 202 verify(mTestInfo.properties()).put(RUN_TESTS_AS_USER_KEY, "10"); in setUp_setsRunTestsAsUser() 267 when(mTestInfo.properties().get(RUN_TESTS_AS_USER_KEY)).thenReturn("10"); in tearDown_clearsRunTestsAsUserProperty() 271 verify(mTestInfo.properties()).remove(RUN_TESTS_AS_USER_KEY); in tearDown_clearsRunTestsAsUserProperty() 280 verify(mTestInfo.properties(), never()).put(eq(RUN_TESTS_AS_USER_KEY), any()); in setUp_doesNotSupportAdditionalUsers_doesNotChangeTestUser()
|
D | RunOnWorkProfileTargetPreparerTest.java | 20 import static com.android.tradefed.targetprep.RunOnWorkProfileTargetPreparer.RUN_TESTS_AS_USER_KEY; 236 verify(mTestInfo.properties()).put(RUN_TESTS_AS_USER_KEY, "11"); in setUp_workProfileAlreadyExists_runsTestAsExistingUser() 247 verify(mTestInfo.properties()).put(RUN_TESTS_AS_USER_KEY, "10"); in setUp_setsRunTestsAsUser() 326 when(mTestInfo.properties().get(RUN_TESTS_AS_USER_KEY)).thenReturn("10"); in tearDown_clearsRunTestsAsUserProperty() 330 verify(mTestInfo.properties()).remove(RUN_TESTS_AS_USER_KEY); in tearDown_clearsRunTestsAsUserProperty() 358 verify(mTestInfo.properties(), never()).put(eq(RUN_TESTS_AS_USER_KEY), any()); in setUp_doesNotSupportManagedUsers_doesNotChangeTestUser() 376 verify(mTestInfo.properties(), never()).put(eq(RUN_TESTS_AS_USER_KEY), any()); in setUp_doesNotSupportAdditionalUsers_doesNotChangeTestUser()
|
D | RunOnSecondaryUserTargetPreparerTest.java | 20 import static com.android.tradefed.targetprep.UserHelper.RUN_TESTS_AS_USER_KEY; 191 verify(mTestInfo.properties()).put(RUN_TESTS_AS_USER_KEY, "3"); in setUp_secondaryUserAlreadyExists_runsTestAsExistingUser() 201 verify(mTestInfo.properties()).put(RUN_TESTS_AS_USER_KEY, "2"); in setUp_setsRunTestsAsUser() 355 when(mTestInfo.properties().get(RUN_TESTS_AS_USER_KEY)).thenReturn("2"); in tearDown_clearsRunTestsAsUserProperty() 359 verify(mTestInfo.properties()).remove(RUN_TESTS_AS_USER_KEY); in tearDown_clearsRunTestsAsUserProperty() 368 verify(mTestInfo.properties(), never()).put(eq(RUN_TESTS_AS_USER_KEY), any()); in setUp_doesNotSupportAdditionalUsers_doesNotChangeTestUser()
|
D | RunCommandTargetPreparerTest.java | 19 import static com.android.tradefed.targetprep.UserHelper.RUN_TESTS_AS_USER_KEY; 181 mTestInfo.properties().put(RUN_TESTS_AS_USER_KEY, "abracadabra"); in testTeardown_withTestUserToken() 324 mTestInfo.properties().put(RUN_TESTS_AS_USER_KEY, "abracadabra"); in testBgCmd_withTestUserToken() 394 mTestInfo.properties().put(RUN_TESTS_AS_USER_KEY, "abracadabra"); in testCmd_withTestUserToken()
|
D | TestAppInstallSetupTest.java | 22 import static com.android.tradefed.targetprep.UserHelper.RUN_TESTS_AS_USER_KEY; 238 mTestInfo.properties().put(RUN_TESTS_AS_USER_KEY, Integer.toString(userId)); in testSetupAndTeardown_install_runTestsAsUser()
|
/tools/tradefederation/core/src/com/android/tradefed/targetprep/ |
D | RunOnSystemUserTargetPreparer.java | 19 import static com.android.tradefed.targetprep.UserHelper.RUN_TESTS_AS_USER_KEY; 47 testInfo.properties().put(RUN_TESTS_AS_USER_KEY, "0"); in setUp() 52 testInfo.properties().remove(RUN_TESTS_AS_USER_KEY); in tearDown()
|
D | VisibleBackgroundUserPreparer.java | 18 import static com.android.tradefed.targetprep.UserHelper.RUN_TESTS_AS_USER_KEY; 132 CLog.i("Setting test property %s=%d", RUN_TESTS_AS_USER_KEY, mUserId); in startUserVisibleOnBackground() 133 testInfo.properties().put(RUN_TESTS_AS_USER_KEY, Integer.toString(mUserId)); in startUserVisibleOnBackground() 143 testInfo.properties().remove(RUN_TESTS_AS_USER_KEY); in tearDown()
|
D | UserHelper.java | 39 public static final String RUN_TESTS_AS_USER_KEY = "RUN_TESTS_AS_USER"; field in UserHelper 70 String val = testInfo.properties().get(RUN_TESTS_AS_USER_KEY); in getRunTestsAsUser() 75 CLog.e("Failed to parse the userId for " + RUN_TESTS_AS_USER_KEY + " due to " + e); in getRunTestsAsUser()
|
D | RunOnSecondaryUserTargetPreparer.java | 19 import static com.android.tradefed.targetprep.UserHelper.RUN_TESTS_AS_USER_KEY; 110 testInfo.properties().put(RUN_TESTS_AS_USER_KEY, Integer.toString(secondaryUserId)); in setUp() 168 testInfo.properties().remove(RUN_TESTS_AS_USER_KEY); in tearDown()
|
D | ProfileTargetPreparer.java | 43 @VisibleForTesting static final String RUN_TESTS_AS_USER_KEY = "RUN_TESTS_AS_USER"; field in ProfileTargetPreparer 116 testInfo.properties().put(RUN_TESTS_AS_USER_KEY, Integer.toString(profileId)); in setUp() 295 testInfo.properties().remove(RUN_TESTS_AS_USER_KEY); in tearDown()
|
D | RunCommandTargetPreparer.java | 19 import static com.android.tradefed.targetprep.UserHelper.RUN_TESTS_AS_USER_KEY; 103 mTestUser = testInfo.properties().get(RUN_TESTS_AS_USER_KEY); in setUp()
|
D | TestAppInstallSetup.java | 18 import static com.android.tradefed.targetprep.UserHelper.RUN_TESTS_AS_USER_KEY; 385 if (mUserId == null && testInfo.properties().get(RUN_TESTS_AS_USER_KEY) != null) { in setUp() 386 mUserId = Integer.parseInt(testInfo.properties().get(RUN_TESTS_AS_USER_KEY)); in setUp()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/ |
D | AndroidJUnitTest.java | 421 && testInfo.properties().containsKey(RUN_TESTS_AS_USER_KEY)) { in run() 423 Integer.parseInt(testInfo.properties().get(RUN_TESTS_AS_USER_KEY))); in run()
|
D | InstrumentationTest.java | 108 public static final String RUN_TESTS_AS_USER_KEY = "RUN_TESTS_AS_USER"; field in InstrumentationTest 1055 if (testInfo != null && testInfo.properties().containsKey(RUN_TESTS_AS_USER_KEY)) { in runInstrumentationTests() 1058 Integer.parseInt(testInfo.properties().get(RUN_TESTS_AS_USER_KEY)), in runInstrumentationTests()
|
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/ |
D | InstrumentationTestTest.java | 19 import static com.android.tradefed.testtype.InstrumentationTest.RUN_TESTS_AS_USER_KEY; 225 mTestInfo.properties().put(RUN_TESTS_AS_USER_KEY, "10"); in testRun_runTestsAsUser()
|