/frameworks/base/packages/SystemUI/src/com/android/systemui/user/domain/interactor/ |
D | UserActionsUtil.kt | 34 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()
|
D | UserSwitcherInteractor.kt | 148 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/ |
D | UserSwitcherInteractorTest.kt | 181 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/ |
D | UserRepository.kt | 110 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()
|
D | UserSwitcherRepository.kt | 72 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/ |
D | UserRepositoryImplTest.kt | 75 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/ |
D | UserManagerServiceTest.java | 477 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/ |
D | UserSwitcherSettingsModel.kt | 24 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/ |
D | FakeUserRepository.kt | 106 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/ |
D | BaseUserSwitcherAdapterTest.kt | 80 whenever(controller.isUserSwitcherEnabled).thenReturn(true) in <lambda>() 167 whenever(controller.isUserSwitcherEnabled).thenReturn(false) in <lambda>() 174 whenever(controller.isUserSwitcherEnabled).thenReturn(true) in <lambda>()
|
D | KeyguardUserSwitcherAdapterTest.kt | 72 whenever(userSwitcherController.isUserSwitcherEnabled).thenReturn(true) in setUp()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | UserSwitcherController.kt | 73 val isUserSwitcherEnabled: Boolean constant in com.android.systemui.statusbar.policy.UserSwitcherController 74 get() = mUserSwitcherInteractor.isUserSwitcherEnabled
|
D | BaseUserSwitcherAdapter.kt | 40 (controller.isUserSwitcherEnabled || it.isCurrent) in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shade/ |
D | NotificationPanelViewControllerWithCoroutinesTest.kt | 100 whenever(mUserManager.isUserSwitcherEnabled(false)).thenReturn(true) in <lambda>() 116 whenever(mUserManager.isUserSwitcherEnabled(false /* showEvenIfNotActionable */)) in <lambda>() 136 whenever(mUserManager.isUserSwitcherEnabled(false /* showEvenIfNotActionable */)) in <lambda>()
|
D | NotificationPanelViewControllerBaseTest.java | 911 when(mUserManager.isUserSwitcherEnabled(false)).thenReturn(enabled); in updateMultiUserSetting()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/footer/ui/viewmodel/ |
D | FooterActionsViewModelTest.kt | 137 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/ |
D | KeyguardStatusBarViewControllerTest.java | 242 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/ |
D | KeyguardStatusBarViewController.java | 636 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/ |
D | StatusBarUserChipViewModelTest.kt | 159 userRepository.setSettings(UserSwitcherSettingsModel(isUserSwitcherEnabled = true)) in <lambda>() 276 userRepository.setSettings(UserSwitcherSettingsModel(isUserSwitcherEnabled = true)) in <lambda>()
|
D | UserSwitcherViewModelTest.kt | 124 isUserSwitcherEnabled = true, in <lambda>()
|
/frameworks/base/core/java/android/os/ |
D | IUserManager.aidl | 85 boolean isUserSwitcherEnabled(boolean showEvenIfNotActionable, int mUserId); in isUserSwitcherEnabled() method
|
D | UserManager.java | 6335 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/ |
D | LegacyGlobalActions.java | 546 if (um.isUserSwitcherEnabled()) {
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/ |
D | NotificationPanelViewController.java | 1058 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/ |
D | UserManagerService.java | 2790 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),
|