/cts/hostsidetests/appsearch/src/android/appsearch/cts/ |
D | AppSearchMultiUserTest.java | 48 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/ |
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/content/src/android/content/cts/ |
D | BaseContextCrossProfileTest.java | 45 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/ |
D | CreateUsersNoAppCrashesTest.java | 48 assertSwitchToUser(userId, mInitialUserId); in testCanCreateGuestUser() 59 assertSwitchToUser(userId, mInitialUserId); in testCanCreateSecondaryUser()
|
D | BaseMultiUserTest.java | 63 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()
|
D | EphemeralTest.java | 53 assertSwitchToUser(ephemeralUserId, mInitialUserId); in testSwitchAndRemoveEphemeralUser() 127 assertSwitchToUser(userId, mInitialUserId); in testRemoveUserOrSetEphemeral_currentUserSetEphemeral_removeAfterSwitch()
|
/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() 163 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/car/src/android/car/cts/ |
D | CarHostJUnit4TestCase.java | 90 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/ |
D | MixedProfileOwnerTest.java | 46 + "mDeviceOwnerUserId=%d", getClass(), mUserId, mPrimaryUserId, mInitialUserId, in setUp()
|
D | BaseDevicePolicyTest.java | 181 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()
|
D | MixedDeviceOwnerTest.java | 64 + "mDeviceOwnerUserId=%d", getClass(), mUserId, mPrimaryUserId, mInitialUserId, in setUp()
|