Home
last modified time | relevance | path

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

/cts/hostsidetests/appsearch/src/android/appsearch/cts/
DAppSearchMultiUserTest.java48 private int mInitialUserId; field in AppSearchMultiUserTest
56 mInitialUserId = getDevice().getCurrentUser(); in setUp()
60 installPackageAsUser(TARGET_APK_A, /* grantPermission= */true, mInitialUserId); in setUp()
63 runDeviceTestAsUserInPkgA("clearTestData", mInitialUserId); in setUp()
70 runDeviceTestAsUserInPkgA("clearTestData", mInitialUserId); in tearDown()
82 runDeviceTestAsUserInPkgA("testGetDocuments_nonexist", mInitialUserId); in testMultiUser_documentAccess()
/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/content/src/android/content/cts/
DBaseContextCrossProfileTest.java45 protected int mInitialUserId; field in BaseContextCrossProfileTest
71 mInitialUserId = getDevice().getCurrentUser(); in setFixedUsers()
85 if (getDevice().getCurrentUser() != mInitialUserId) { in tearDown()
86 CLog.w("User changed during test. Switching back to " + mInitialUserId); in tearDown()
87 getDevice().switchUser(mInitialUserId); in tearDown()
/cts/hostsidetests/multiuser/src/android/host/multiuser/
DCreateUsersNoAppCrashesTest.java48 assertSwitchToUser(userId, mInitialUserId); in testCanCreateGuestUser()
59 assertSwitchToUser(userId, mInitialUserId); in testCanCreateSecondaryUser()
DBaseMultiUserTest.java63 protected int mInitialUserId; field in BaseMultiUserTest
74 mInitialUserId = getDevice().getCurrentUser(); in setUp()
84 if (currentUserId != mInitialUserId) { in tearDown()
86 mInitialUserId); in tearDown()
87 getDevice().switchUser(mInitialUserId); in tearDown()
DEphemeralTest.java53 assertSwitchToUser(ephemeralUserId, mInitialUserId); in testSwitchAndRemoveEphemeralUser()
127 assertSwitchToUser(userId, mInitialUserId); in testRemoveUserOrSetEphemeral_currentUserSetEphemeral_removeAfterSwitch()
/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()
163 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/car/src/android/car/cts/
DCarHostJUnit4TestCase.java90 private int mInitialUserId; field in CarHostJUnit4TestCase
100 mInitialUserId = getCurrentUserId(); in saveUserState()
111 mInitialUserId, currentUserId, mUsersToBeRemoved, mInitialMaximumNumberOfUsers); in restoreUsersState()
112 if (currentUserId != mInitialUserId) { in restoreUsersState()
113 CLog.i("Switching back from %d to %d", currentUserId, mInitialUserId); in restoreUsersState()
114 switchUser(mInitialUserId); in restoreUsersState()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DMixedProfileOwnerTest.java46 + "mDeviceOwnerUserId=%d", getClass(), mUserId, mPrimaryUserId, mInitialUserId, in setUp()
DBaseDevicePolicyTest.java181 protected int mInitialUserId; field in BaseDevicePolicyTest
221 mInitialUserId = getDevice().getCurrentUser(); in setUp()
229 mPrimaryUserId = mInitialUserId; in setUp()
299 if (mSupportsMultiUser && getDevice().getCurrentUser() != mInitialUserId) { in tearDown()
300 switchUser(mInitialUserId); in tearDown()
543 if (userId != USER_SYSTEM && userId != mInitialUserId) { in removeTestAddedUser()
DMixedDeviceOwnerTest.java64 + "mDeviceOwnerUserId=%d", getClass(), mUserId, mPrimaryUserId, mInitialUserId, in setUp()