/cts/hostsidetests/accounts/src/android/host/accounts/ |
D | BaseMultiUserTest.java | 51 protected int mInitialUserId; field in BaseMultiUserTest 64 mInitialUserId = getDevice().getCurrentUser(); in setUp() 73 if (getDevice().getCurrentUser() != mInitialUserId) { in tearDown() 74 CLog.w("User changed during test. Switching back to " + mInitialUserId); in tearDown() 75 getDevice().switchUser(mInitialUserId); in tearDown()
|
/cts/hostsidetests/multiuser/src/android/host/multiuser/ |
D | CreateUsersNoAppCrashesTest.java | 49 assertSwitchToUser(mInitialUserId); in testCanCreateGuestUser() 60 assertSwitchToUser(mInitialUserId); in testCanCreateSecondaryUser()
|
D | BaseMultiUserTest.java | 65 protected int mInitialUserId; field in BaseMultiUserTest 76 mInitialUserId = getDevice().getCurrentUser(); in setUp() 86 if (currentUserId != mInitialUserId) { in tearDown() 88 mInitialUserId); in tearDown() 89 getDevice().switchUser(mInitialUserId); in tearDown()
|
D | EphemeralTest.java | 62 assertSwitchToUser(mInitialUserId); in testSwitchAndRemoveEphemeralUser() 140 assertSwitchToUser(mInitialUserId); in testRemoveUserWhenPossible_currentUserSetEphemeral_removeAfterSwitch()
|
/cts/hostsidetests/content/src/android/content/cts/ |
D | BaseContextCrossProfileTest.java | 44 protected int mInitialUserId; field in BaseContextCrossProfileTest 69 mInitialUserId = getDevice().getCurrentUser(); in setFixedUsers() 83 if (getDevice().getCurrentUser() != mInitialUserId) { in tearDown() 84 CLog.w("User changed during test. Switching back to " + mInitialUserId); in tearDown() 85 getDevice().switchUser(mInitialUserId); in tearDown()
|
/cts/hostsidetests/webkit/src/com/android/cts/webkit/ |
D | WebViewHostSideMultipleProfileTest.java | 58 private int mInitialUserId; field in WebViewHostSideMultipleProfileTest 65 mInitialUserId = mDevice.getCurrentUser(); in setUp() 71 Assert.assertTrue(mDevice.switchUser(mInitialUserId)); in tearDown() 169 mDevice.switchUser(mInitialUserId); in stopAndRemoveUser()
|
/cts/hostsidetests/shortcuts/hostside/src/android/content/pm/cts/shortcuthost/ |
D | BaseShortcutManagerHostTest.java | 58 private int mInitialUserId; field in BaseShortcutManagerHostTest 75 mInitialUserId = getDevice().getCurrentUser(); in setUp() 149 getDevice().switchUser(mInitialUserId); in removeTestUsers() 158 if (getDevice().isUserSecondary(mInitialUserId)) { in getOrCreateSecondaryUser() 159 return mInitialUserId; in getOrCreateSecondaryUser()
|
/cts/hostsidetests/media/src/android/media/cts/ |
D | BaseMultiUserTest.java | 55 private int mInitialUserId; field in BaseMultiUserTest 79 mInitialUserId = getDevice().getCurrentUser(); in setUp() 129 if (getDevice().getCurrentUser() != mInitialUserId) { in tearDown() 130 getDevice().switchUser(mInitialUserId); in tearDown()
|
/cts/hostsidetests/car/util/src/android/car/cts/ |
D | CarHostJUnit4TestCase.java | 97 private int mInitialUserId; field in CarHostJUnit4TestCase 112 mInitialUserId = getCurrentUserId(); in saveUserState() 135 mInitialUserId, currentUserId, mUsersToBeRemoved, mInitialMaximumNumberOfUsers); in restoreUsersState() 136 if (currentUserId != mInitialUserId && mSwitchToInitialUser) { in restoreUsersState() 137 CLog.i("Switching back from %d to %d", currentUserId, mInitialUserId); in restoreUsersState() 138 switchUser(mInitialUserId); in restoreUsersState()
|
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ |
D | MixedProfileOwnerTest.java | 45 + "mDeviceOwnerUserId=%d", getClass(), mUserId, mPrimaryUserId, mInitialUserId, in setUp()
|
D | BaseDevicePolicyTest.java | 176 protected int mInitialUserId; field in BaseDevicePolicyTest 220 mInitialUserId = getDevice().getCurrentUser(); in setUp() 291 if (mSupportsMultiUser && getDevice().getCurrentUser() != mInitialUserId) { in tearDown() 292 switchUser(mInitialUserId); in tearDown() 538 if (userId != USER_SYSTEM && userId != mInitialUserId) { in removeTestAddedUser()
|
D | MixedDeviceOwnerTest.java | 68 + "mDeviceOwnerUserId=%d", getClass(), mUserId, mPrimaryUserId, mInitialUserId, in setUp()
|