Home
last modified time | relevance | path

Searched refs:mInitialUserId (Results 1 – 12 of 12) sorted by relevance

/cts/hostsidetests/accounts/src/android/host/accounts/
DBaseMultiUserTest.java51 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/
DCreateUsersNoAppCrashesTest.java49 assertSwitchToUser(mInitialUserId); in testCanCreateGuestUser()
60 assertSwitchToUser(mInitialUserId); in testCanCreateSecondaryUser()
DBaseMultiUserTest.java65 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()
DEphemeralTest.java62 assertSwitchToUser(mInitialUserId); in testSwitchAndRemoveEphemeralUser()
140 assertSwitchToUser(mInitialUserId); in testRemoveUserWhenPossible_currentUserSetEphemeral_removeAfterSwitch()
/cts/hostsidetests/content/src/android/content/cts/
DBaseContextCrossProfileTest.java44 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/
DWebViewHostSideMultipleProfileTest.java58 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/
DBaseShortcutManagerHostTest.java58 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/
DBaseMultiUserTest.java55 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/
DCarHostJUnit4TestCase.java97 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/
DMixedProfileOwnerTest.java45 + "mDeviceOwnerUserId=%d", getClass(), mUserId, mPrimaryUserId, mInitialUserId, in setUp()
DBaseDevicePolicyTest.java176 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()
DMixedDeviceOwnerTest.java68 + "mDeviceOwnerUserId=%d", getClass(), mUserId, mPrimaryUserId, mInitialUserId, in setUp()