Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/users/
DUserSettingsTest.java212 doReturn(SWITCHABILITY_STATUS_OK).when(mUserManager).getUserSwitchability(); in withDisallowRemoveUser_ShouldDisableRemoveUser()
237 doReturn(SWITCHABILITY_STATUS_OK).when(mUserManager).getUserSwitchability(); in withoutDisallowRemoveUser_ShouldNotDisableRemoveUser()
263 doReturn(SWITCHABILITY_STATUS_OK).when(mUserManager).getUserSwitchability(); in updateUserList_canAddUserAndSwitchUser_shouldShowAddUser()
278 doReturn(SWITCHABILITY_STATUS_OK).when(mUserManager).getUserSwitchability(); in updateUserList_canAddGuestAndSwitchUser_shouldShowAddGuest()
294 .when(mUserManager).getUserSwitchability(); in updateUserList_cannotSwitchUser_shouldDisableAddUser()
309 doReturn(SWITCHABILITY_STATUS_OK).when(mUserManager).getUserSwitchability(); in updateUserList_canNotAddMoreUsers_shouldDisableAddUserWithSummary()
324 doReturn(SWITCHABILITY_STATUS_USER_IN_CALL).when(mUserManager).getUserSwitchability(); in updateUserList_cannotSwitchUser_shouldDisableAddGuest()
501 doReturn(SWITCHABILITY_STATUS_OK).when(mUserManager).getUserSwitchability(); in updateUserList_uninitializedRestrictedUser_shouldAddUserPreference()
526 .when(mUserManager).getUserSwitchability(); in updateUserList_uninitializedUserAndCanNotSwitchUser_shouldDisablePref()
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowUserManager.java195 protected @UserManager.UserSwitchabilityResult int getUserSwitchability() { in getUserSwitchability() method in ShadowUserManager
/packages/apps/Settings/src/com/android/settings/users/
DUserDetailsSettings.java331 return mUserManager.getUserSwitchability() == UserManager.SWITCHABILITY_STATUS_OK;
DUserSettings.java1060 return mUserManager.getUserSwitchability() == UserManager.SWITCHABILITY_STATUS_OK;
/packages/apps/Car/Settings/src/com/android/car/settings/profiles/
DProfileHelper.java171 if (mUserManager.getUserSwitchability() != UserManager.SWITCHABILITY_STATUS_OK) { in removeThisProfileAndSwitchToGuest()
DProfileGridRecyclerView.java144 if (mUserManager.getUserSwitchability(fgUserHandle) != SWITCHABILITY_STATUS_OK) { in createProfileRecords()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/userswitcher/
DUserGridRecyclerView.java148 if (mUserManager.getUserSwitchability(fgUserHandle) != SWITCHABILITY_STATUS_OK) { in createUserRecords()
/packages/services/Car/service/src/com/android/car/user/
DCarUserService.java558 int userSwitchable = mUserManager.getUserSwitchability(); in switchDriver()
991 if (mUserManager.getUserSwitchability() != UserManager.SWITCHABILITY_STATUS_OK) { in switchUser()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DCarUserServiceTest.java763 when(mMockedUserManager.getUserSwitchability()) in testSwitchDriver_IfUserSwitchIsNotAllowed()
1103 .getUserSwitchability(); in testSwitchUser_noUserSwitchability()