Home
last modified time | relevance | path

Searched refs:isUserSwitcherEnabled (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/base/packages/SystemUI/src/com/android/systemui/user/domain/interactor/
DUserActionsUtil.kt34 isUserSwitcherEnabled: Boolean, in canCreateGuest()
40 isUserSwitcherEnabled, in canCreateGuest()
53 isUserSwitcherEnabled: Boolean, in canCreateUser()
59 isUserSwitcherEnabled, in canCreateUser()
72 isUserSwitcherEnabled: Boolean, in canCreateSupervisedUser()
83 isUserSwitcherEnabled, in canCreateSupervisedUser()
88 fun canManageUsers(repository: UserRepository, isUserSwitcherEnabled: Boolean): Boolean { in canManageUsers()
89 return isUserSwitcherEnabled && repository.getSelectedUserInfo().isAdmin in canManageUsers()
99 isUserSwitcherEnabled: Boolean, in canAddMoreUsers()
103 if (!isUserSwitcherEnabled || !canAddUsersWhenLockedOrDeviceUnlocked) { in canAddMoreUsers()
DUserSwitcherInteractor.kt148 isUserSwitcherEnabled = settings.isUserSwitcherEnabled, in <lambda>()
213 settings.isUserSwitcherEnabled, in <lambda>()
226 settings.isUserSwitcherEnabled, in <lambda>()
241 settings.isUserSwitcherEnabled in <lambda>()
312 val isUserSwitcherEnabled: Boolean in <lambda>() constant
313 get() = repository.isUserSwitcherEnabled() in <lambda>()
397 pw.println("isUserSwitcherEnabled=$isUserSwitcherEnabled") in <lambda>()
692 isUserSwitcherEnabled: Boolean, in <lambda>()
704 isUserSwitcherEnabled = isUserSwitcherEnabled, in <lambda>()
717 isUserSwitcherEnabled: Boolean, in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/user/domain/interactor/
DUserSwitcherInteractorTest.kt181 userRepository.setSettings(UserSwitcherSettingsModel(isUserSwitcherEnabled = true)) in <lambda>()
201 userRepository.setSettings(UserSwitcherSettingsModel(isUserSwitcherEnabled = true)) in <lambda>()
229 userRepository.setSettings(UserSwitcherSettingsModel(isUserSwitcherEnabled = true)) in <lambda>()
248 userRepository.setSettings(UserSwitcherSettingsModel(isUserSwitcherEnabled = true)) in <lambda>()
270 userRepository.setSettings(UserSwitcherSettingsModel(isUserSwitcherEnabled = true)) in <lambda>()
288 userRepository.setSettings(UserSwitcherSettingsModel(isUserSwitcherEnabled = true)) in <lambda>()
303 userRepository.setSettings(UserSwitcherSettingsModel(isUserSwitcherEnabled = true)) in <lambda>()
319 userRepository.setSettings(UserSwitcherSettingsModel(isUserSwitcherEnabled = false)) in <lambda>()
333 userRepository.setSettings(UserSwitcherSettingsModel(isUserSwitcherEnabled = true)) in <lambda>()
351 userRepository.setSettings(UserSwitcherSettingsModel(isUserSwitcherEnabled = true)) in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/data/repository/
DUserRepository.kt110 fun isUserSwitcherEnabled(): Boolean in refreshUsers() method
255 override fun isUserSwitcherEnabled(): Boolean { in refreshUsers() method in com.android.systemui.user.data.repository.UserRepositoryImpl
256 return _userSwitcherSettings.value.isUserSwitcherEnabled in refreshUsers()
285 val isUserSwitcherEnabled = in refreshUsers() constant
302 isUserSwitcherEnabled = isUserSwitcherEnabled, in refreshUsers()
DUserSwitcherRepository.kt72 trySendWithFailureLogging(isUserSwitcherEnabled(), TAG) in <lambda>()
136 private suspend fun isUserSwitcherEnabled(): Boolean { in isUserSwitcherEnabled() method in com.android.systemui.user.data.repository.UserSwitcherRepositoryImpl
138 userManager.isUserSwitcherEnabled(showUserSwitcherForSingleUser) in isUserSwitcherEnabled()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/user/data/repository/
DUserRepositoryImplTest.kt75 isUserSwitcherEnabled = true, in <lambda>()
92 isUserSwitcherEnabled = true, in <lambda>()
279 isUserSwitcherEnabled: Boolean = true, in <lambda>()
295 if (isUserSwitcherEnabled) 1 else 0, in <lambda>()
308 assertThat(model.isUserSwitcherEnabled).isEqualTo(expectedUserSwitcherEnabled) in <lambda>()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
DUserManagerServiceTest.java477 assertThat(mUms.isUserSwitcherEnabled(USER_ID)).isFalse(); in assertIsUserSwitcherEnabledOnMultiUserSettings()
480 assertThat(mUms.isUserSwitcherEnabled(USER_ID)).isTrue(); in assertIsUserSwitcherEnabledOnMultiUserSettings()
489 assertThat(mUms.isUserSwitcherEnabled(USER_ID)).isFalse(); in assertIsUserSwitcherEnabledOnMaxSupportedUsers()
493 assertThat(mUms.isUserSwitcherEnabled(USER_ID)).isTrue(); in assertIsUserSwitcherEnabledOnMaxSupportedUsers()
501 assertThat(mUms.isUserSwitcherEnabled(true, USER_ID)).isTrue(); in assertIsUserSwitcherEnabled()
504 assertThat(mUms.isUserSwitcherEnabled(true, USER_ID)).isFalse(); in assertIsUserSwitcherEnabled()
507 assertThat(mUms.isUserSwitcherEnabled(false, USER_ID)).isTrue(); in assertIsUserSwitcherEnabled()
510 assertThat(mUms.isUserSwitcherEnabled(false, USER_ID)).isFalse(); in assertIsUserSwitcherEnabled()
514 assertThat(mUms.isUserSwitcherEnabled(true, USER_ID)).isFalse(); in assertIsUserSwitcherEnabled()
523 assertThat(mUms.isUserSwitcherEnabled(USER_ID)).isFalse(); in assertIsUserSwitcherEnabledOnShowMultiuserUI()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/data/model/
DUserSwitcherSettingsModel.kt24 val isUserSwitcherEnabled: Boolean = false, constant in com.android.systemui.user.data.model.UserSwitcherSettingsModel
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/user/data/repository/
DFakeUserRepository.kt106 override fun isUserSwitcherEnabled(): Boolean { in isUserSwitcherEnabled() method in com.android.systemui.user.data.repository.FakeUserRepository
107 return _userSwitcherSettings.value.isUserSwitcherEnabled in isUserSwitcherEnabled()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DBaseUserSwitcherAdapterTest.kt80 whenever(controller.isUserSwitcherEnabled).thenReturn(true) in <lambda>()
167 whenever(controller.isUserSwitcherEnabled).thenReturn(false) in <lambda>()
174 whenever(controller.isUserSwitcherEnabled).thenReturn(true) in <lambda>()
DKeyguardUserSwitcherAdapterTest.kt72 whenever(userSwitcherController.isUserSwitcherEnabled).thenReturn(true) in setUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DUserSwitcherController.kt73 val isUserSwitcherEnabled: Boolean constant in com.android.systemui.statusbar.policy.UserSwitcherController
74 get() = mUserSwitcherInteractor.isUserSwitcherEnabled
DBaseUserSwitcherAdapter.kt40 (controller.isUserSwitcherEnabled || it.isCurrent) in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shade/
DNotificationPanelViewControllerWithCoroutinesTest.kt100 whenever(mUserManager.isUserSwitcherEnabled(false)).thenReturn(true) in <lambda>()
116 whenever(mUserManager.isUserSwitcherEnabled(false /* showEvenIfNotActionable */)) in <lambda>()
136 whenever(mUserManager.isUserSwitcherEnabled(false /* showEvenIfNotActionable */)) in <lambda>()
DNotificationPanelViewControllerBaseTest.java911 when(mUserManager.isUserSwitcherEnabled(false)).thenReturn(enabled); in updateMultiUserSetting()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/footer/ui/viewmodel/
DFooterActionsViewModelTest.kt137 var isUserSwitcherEnabled = false in <lambda>() variable
139 whenever(userManager.isUserSwitcherEnabled(any())).thenAnswer { isUserSwitcherEnabled } in <lambda>()
165 isUserSwitcherEnabled = true in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DKeyguardStatusBarViewControllerTest.java242 verify(mUserManager).isUserSwitcherEnabled(anyBoolean()); in onViewAttached_updateUserSwitcherFlagEnabled_callbacksRegistered()
255 verify(mUserManager).isUserSwitcherEnabled(anyBoolean()); in onViewAttached_updateUserSwitcherFlagDisabled_callbacksRegistered()
271 verify(mUserManager).isUserSwitcherEnabled(anyBoolean()); in onConfigurationChanged_updateUserSwitcherFlagEnabled_updatesUserSwitcherVisibility()
285 verify(mUserManager).isUserSwitcherEnabled(anyBoolean()); in onConfigurationChanged_updateUserSwitcherFlagDisabled_updatesUserSwitcherVisibility()
302 verify(mUserManager).isUserSwitcherEnabled(anyBoolean()); in onKeyguardVisibilityChanged_userSwitcherFlagEnabled_updatesUserSwitcherVisibility()
316 verify(mUserManager).isUserSwitcherEnabled(anyBoolean()); in onKeyguardVisibilityChanged_userSwitcherFlagDisabled_updatesUserSwitcherVisibility()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DKeyguardStatusBarViewController.java636 final boolean isUserSwitcherEnabled = mUserManager.isUserSwitcherEnabled( in updateUserSwitcher()
639 mView.setUserSwitcherEnabled(isUserSwitcherEnabled); in updateUserSwitcher()
643 mView.setUserSwitcherEnabled(mUserManager.isUserSwitcherEnabled( in updateUserSwitcher()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/user/ui/viewmodel/
DStatusBarUserChipViewModelTest.kt159 userRepository.setSettings(UserSwitcherSettingsModel(isUserSwitcherEnabled = true)) in <lambda>()
276 userRepository.setSettings(UserSwitcherSettingsModel(isUserSwitcherEnabled = true)) in <lambda>()
DUserSwitcherViewModelTest.kt124 isUserSwitcherEnabled = true, in <lambda>()
/frameworks/base/core/java/android/os/
DIUserManager.aidl85 boolean isUserSwitcherEnabled(boolean showEvenIfNotActionable, int mUserId); in isUserSwitcherEnabled() method
DUserManager.java6335 public boolean isUserSwitcherEnabled() { in isUserSwitcherEnabled() method in UserManager
6336 return isUserSwitcherEnabled(true); in isUserSwitcherEnabled()
6352 public boolean isUserSwitcherEnabled(boolean showEvenIfNotActionable) { in isUserSwitcherEnabled() method in UserManager
6355 return mService.isUserSwitcherEnabled(showEvenIfNotActionable, mUserId); in isUserSwitcherEnabled()
/frameworks/base/services/core/java/com/android/server/policy/
DLegacyGlobalActions.java546 if (um.isUserSwitcherEnabled()) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/
DNotificationPanelViewController.java1058 if (mKeyguardUserSwitcherEnabled && mUserManager.isUserSwitcherEnabled( in onFinishInflate()
1442 boolean isUserSwitcherEnabled = mUserManager.isUserSwitcherEnabled( in reInflateViews()
1444 boolean showQsUserSwitch = mKeyguardQsUserSwitchEnabled && isUserSwitcherEnabled; in reInflateViews()
1448 && isUserSwitcherEnabled; in reInflateViews()
/frameworks/base/services/core/java/com/android/server/pm/
DUserManagerService.java2790 boolean isUserSwitcherEnabled(@UserIdInt int mUserId) { in isUserSwitcherEnabled() method in UserManagerService
2803 public boolean isUserSwitcherEnabled(boolean showEvenIfNotActionable, in isUserSwitcherEnabled() method in UserManagerService
2805 if (!isUserSwitcherEnabled(mUserId)) { in isUserSwitcherEnabled()
5957 isUserSwitcherEnabled(UserHandle.USER_ALL),

12