Home
last modified time | relevance | path

Searched refs:OTHER_USER_ID (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
DUserManagerServiceTest.java110 private static final int OTHER_USER_ID = 666; field in UserManagerServiceTest
226 mockCurrentAndTargetUser(USER_ID, OTHER_USER_ID); in testGetCurrentAndTargetUserIds()
230 .isEqualTo(new Pair<>(USER_ID, OTHER_USER_ID)); in testGetCurrentAndTargetUserIds()
251 mockCurrentUser(OTHER_USER_ID); in testIsCurrentUserOrRunningProfileOfCurrentUser_notCurrentUser()
280 mockCurrentUser(OTHER_USER_ID); in testIsCurrentUserOrRunningProfileOfCurrentUser_profileOfNonCurrentUSer()
325 addUser(OTHER_USER_ID); in testSetBootUser_SuppliedUserIsSwitchable()
327 mUms.setBootUser(OTHER_USER_ID); in testSetBootUser_SuppliedUserIsSwitchable()
330 .that(mUmi.getBootUser(/* waitUntilSet= */ false)).isEqualTo(OTHER_USER_ID); in testSetBootUser_SuppliedUserIsSwitchable()
337 addUser(OTHER_USER_ID); in testSetBootUser_NotHeadless_SuppliedUserIsNotSwitchable()
352 addUser(OTHER_USER_ID); in testSetBootUser_Headless_SuppliedUserIsNotSwitchable()
[all …]
DUserVisibilityMediatorVisibleBackgroundUserTestCase.java78 int previousCurrentUserId = OTHER_USER_ID; in testSwitchFgUser_onDefaultDisplay()
196 AsyncUserVisibilityListener listener = addListenerForEvents(onVisible(OTHER_USER_ID)); in testStartVisibleBgUser_onSecondaryDisplay_displayAlreadyAssigned()
197 startUserInSecondaryDisplay(OTHER_USER_ID, SECONDARY_DISPLAY_ID); in testStartVisibleBgUser_onSecondaryDisplay_displayAlreadyAssigned()
205 expectUserAssignedToDisplay(SECONDARY_DISPLAY_ID, OTHER_USER_ID); in testStartVisibleBgUser_onSecondaryDisplay_displayAlreadyAssigned()
DUserVisibilityMediatorMUPANDTest.java53 int otherUserId = OTHER_USER_ID; in testStartVisibleBgUser_onDefaultDisplay_initialCurrentUserId()
91 int currentUserId = OTHER_USER_ID; in testStartVisibleBgUser_onDefaultDisplay_nonInitialCurrentUserId()
DUserVisibilityMediatorTestCase.java79 protected static final int OTHER_USER_ID = 666; field in UserVisibilityMediatorTestCase
282 onVisible(OTHER_USER_ID)); in testVisibleBgProfileBecomesInvisibleWhenParentIsSwitchedOut()
285 startForegroundUser(OTHER_USER_ID); in testVisibleBgProfileBecomesInvisibleWhenParentIsSwitchedOut()
289 expectUserAssignedToDisplay(DEFAULT_DISPLAY, OTHER_USER_ID); in testVisibleBgProfileBecomesInvisibleWhenParentIsSwitchedOut()
DUserVisibilityMediatorSUSDTest.java80 int previousCurrentUserId = OTHER_USER_ID; in testSwitchFgUser_onDefaultDisplay()