Home
last modified time | relevance | path

Searched refs:getUserSwitchability (Results 1 – 14 of 14) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/users/
DUserSettingsTest.java284 doReturn(SWITCHABILITY_STATUS_OK).when(mUserManager).getUserSwitchability(); in withDisallowRemoveUser_ShouldDisableRemoveUser()
309 doReturn(SWITCHABILITY_STATUS_OK).when(mUserManager).getUserSwitchability(); in withoutDisallowRemoveUser_ShouldNotDisableRemoveUser()
336 doReturn(SWITCHABILITY_STATUS_OK).when(mUserManager).getUserSwitchability(); in updateUserList_canAddUserAndSwitchUser_shouldShowAddUser()
352 doReturn(SWITCHABILITY_STATUS_OK).when(mUserManager).getUserSwitchability(); in updateUserList_canAddGuestAndSwitchUser_shouldShowAddGuest()
367 .when(mUserManager).getUserSwitchability(); in updateUserList_cannotSwitchUser_shouldDisableAddUser()
382 doReturn(SWITCHABILITY_STATUS_OK).when(mUserManager).getUserSwitchability(); in updateUserList_canNotAddMoreUsers_shouldDisableAddUserWithSummary()
399 doReturn(SWITCHABILITY_STATUS_USER_IN_CALL).when(mUserManager).getUserSwitchability(); in updateUserList_cannotSwitchUser_shouldDisableAddGuest()
614 doReturn(SWITCHABILITY_STATUS_OK).when(mUserManager).getUserSwitchability(); in updateUserList_uninitializedRestrictedUser_shouldAddUserPreference()
639 .when(mUserManager).getUserSwitchability(); in updateUserList_uninitializedUserAndCanNotSwitchUser_shouldDisablePref()
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/qc/
DProfileSwitcherTest.java116 when(mUserManager.getUserSwitchability(any())).thenReturn(SWITCHABILITY_STATUS_OK); in setUp()
176 when(mUserManager.getUserSwitchability(any())) in logoutAllowed_managedDevice_switchDisallowed()
191 when(mUserManager.getUserSwitchability(any())) in switchNotAllowed_returnsOnlyCurrentUser()
/packages/apps/Settings/tests/robotests/testutils/com/android/settings/testutils/shadow/
DShadowUserManager.java285 protected @UserManager.UserSwitchabilityResult int getUserSwitchability() { in getUserSwitchability() method in ShadowUserManager
/packages/apps/Car/Settings/src/com/android/car/settings/profiles/
DProfileHelper.java180 if (mUserManager.getUserSwitchability() != UserManager.SWITCHABILITY_STATUS_OK) { in removeThisProfileAndSwitchToGuest()
DProfileGridRecyclerView.java144 if (mUserManager.getUserSwitchability(fgUserHandle) != SWITCHABILITY_STATUS_OK) { in createProfileRecords()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DExperimentalCarUserServiceTest.java203 when(mMockedUserManager.getUserSwitchability()) in testSwitchDriver_IfUserSwitchIsNotAllowed()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/userpicker/
DUserEventManager.java271 return mUserManager.getUserSwitchability(fgUserHandle) != SWITCHABILITY_STATUS_OK; in isForegroundUserNotSwitchable()
/packages/apps/Settings/src/com/android/settings/users/
DUserDetailsSettings.java451 return mUserManager.getUserSwitchability() == UserManager.SWITCHABILITY_STATUS_OK;
DUserSettings.java1349 return mUserManager.getUserSwitchability() == UserManager.SWITCHABILITY_STATUS_OK;
/packages/services/Car/service/src/com/android/car/user/
DExperimentalCarUserService.java292 int userSwitchable = mUserManager.getUserSwitchability(); in switchDriver()
DCarUserService.java923 if (mUserManager.getUserSwitchability() != UserManager.SWITCHABILITY_STATUS_OK) { in switchUser()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/userswitcher/
DUserGridRecyclerView.java158 if (mUserManager.getUserSwitchability(fgUserHandle) != SWITCHABILITY_STATUS_OK) { in createUserRecords()
/packages/services/Car/libs/car-test-lib/src/android/car/test/mocks/
DAndroidMockitoHelper.java390 when(um.getUserSwitchability()).thenReturn(result); in mockUmGetUserSwitchability()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/qc/
DProfileSwitcher.java153 if (mUserManager.getUserSwitchability(fgUserHandle) != SWITCHABILITY_STATUS_OK) { in getQCItem()