Home
last modified time | relevance | path

Searched refs:mUserIdManager (Results 1 – 12 of 12) sorted by relevance

/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DUserIdManagerTest.java52 private UserIdManager mUserIdManager; field in UserIdManagerTest
72 assertThat(mUserIdManager.getUserIds()).containsExactly(UserId.of(systemUser)); in testGetUserIds_systemUser_currentUserIsSystemUser()
80 assertThat(mUserIdManager.getUserIds()) in testGetUserIds_systemUserAndManagedUser_currentUserIsSystemUser()
89 assertThat(mUserIdManager.getUserIds()) in testGetUserIds_systemUserAndManagedUser_currentUserIsManagedUser()
98 assertThat(mUserIdManager.getUserIds()) in testGetUserIds_managedUserAndSystemUser_currentUserIsSystemUser()
108 assertThat(mUserIdManager.getUserIds()).containsExactly(UserId.of(nonManagedUser2)); in testGetUserIds_NormalUser1AndNormalUser2_currentUserIsNormalUser2()
118 assertThat(mUserIdManager.getUserIds()).containsExactly(UserId.of(nonManagedUser1)); in testGetUserIds_NormalUserAndManagedUser_currentUserIsNormalUser()
128 assertThat(mUserIdManager.getUserIds()).containsExactly(UserId.of(managedUser1)); in testGetUserIds_NormalUserAndManagedUser_currentUserIsManagedUser()
136 mUserIdManager = new UserIdManager.RuntimeUserIdManager(mockContext, currentUser, false); in testGetUserIds_deviceNotSupported()
137 assertThat(mUserIdManager.getUserIds()).containsExactly(UserId.of(systemUser)); in testGetUserIds_deviceNotSupported()
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/ui/settings/
DSettingsViewModel.java39 private final UserIdManager mUserIdManager; field in SettingsViewModel
51 mUserIdManager = null; in SettingsViewModel()
53 mUserIdManager = UserIdManager.create(context); in SettingsViewModel()
79 return mUserIdManager; in getUserIdManager()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DProfileTabs.java58 private final UserIdManager mUserIdManager; field in ProfileTabs
90 mUserIdManager = userIdManager; in ProfileTabs()
93 mUserIdManager = checkNotNull(userIdManager); in ProfileTabs()
197 assert mUserIdManager != null; in getUserIds()
198 return mUserIdManager.getUserIds(); in getUserIds()
215 assert mUserIdManager != null; in addTabsPrivateSpaceDisabled()
218 mUserIdManager.getSystemUser()), /* setSelected= */false); in addTabsPrivateSpaceDisabled()
221 mUserIdManager.getManagedUser()), /* setSelected= */false); in addTabsPrivateSpaceDisabled()
DDocumentsApplication.java81 private UserIdManager mUserIdManager; field in DocumentsApplication
115 ((DocumentsApplication) context.getApplicationContext()).mUserIdManager; in getUserIdManager()
118 ((DocumentsApplication) context.getApplicationContext()).mUserIdManager = userIdManager; in getUserIdManager()
192 mUserIdManager = null; in onCreate()
195 mUserIdManager = UserIdManager.create(this); in onCreate()
DBaseActivity.java96 protected UserIdManager mUserIdManager; field in BaseActivity
306 mUserIdManager = DocumentsApplication.getUserIdManager(this); in onCreate()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/ui/
DTabFragment.java93 private UserIdManager mUserIdManager; field in TabFragment
207 mUserIdManager = mPickerViewModel.getUserIdManager(); in onViewCreated()
288 setUpProfileButtonWithListeners(mUserIdManager.isMultiUserProfiles()); in onViewCreated()
302 setUpProfileButtonWithListeners(mUserIdManager.isMultiUserProfiles()); in onViewCreated()
320 final LiveData<Boolean> crossProfileAllowed = mUserIdManager.getCrossProfileAllowed(); in setupObserverForCrossProfileAccess()
336 final LiveData<Boolean> isMultiUserProfiles = mUserIdManager.getIsMultiUserProfiles(); in setupObserverForCrossProfileAccess()
655 if (!mUserIdManager.isMultiUserProfiles()) { in setUpProfileButton()
659 updateProfileButtonContent(mUserIdManager.isManagedUserSelected()); in setUpProfileButton()
660 updateProfileButtonColor(/* isDisabled */ !mUserIdManager.isCrossProfileAllowed()); in setUpProfileButton()
681 return mUserIdManager.isMultiUserProfiles() in shouldShowProfileButton()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DAppsRowManager.java54 private final UserIdManager mUserIdManager; field in AppsRowManager
63 mUserIdManager = userIdManager; in AppsRowManager()
73 mUserIdManager = null; in AppsRowManager()
158 return mUserIdManager.getUserIds(); in getUserIds()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/
DPhotoPickerActivity.java1179 private final UserIdManager mUserIdManager; field in CrossProfileListeners
1191 mUserIdManager = mPickerViewModel.getUserIdManager(); in CrossProfileListeners()
1212 && !userId.equals(mUserIdManager.getManagedUserId())
1288 if (mUserIdManager.isManagedUserSelected()) { in handleWorkProfileOff()
1291 mUserIdManager.updateWorkProfileOffValue(); in handleWorkProfileOff()
1322 if (mUserIdManager.isManagedUserSelected()) { in handleWorkProfileRemoved()
1325 mUserIdManager.resetUserIds(); in handleWorkProfileRemoved()
1341 mUserIdManager.resetUserIds(); in handleWorkProfileAdded()
1357 mUserIdManager.waitForMediaProviderToBeAvailable(); in handleWorkProfileOn()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/viewmodel/
DBannerManager.java46 private final UserIdManager mUserIdManager; field in BannerManager
86 mUserIdManager = userIdManager; in BannerManager()
109 return mUserIdManager.getCurrentUserProfileId().getIdentifier(); in getCurrentUserProfileId()
DPickerViewModel.java163 private UserIdManager mUserIdManager; field in PickerViewModel
216 mUserIdManager = null; in PickerViewModel()
218 mUserIdManager = UserIdManager.create(mAppContext); in PickerViewModel()
287 mUserIdManager = userIdManager; in setUserIdManager()
336 return mUserIdManager; in getUserIdManager()
438 mUserIdManager.setPersonalAsCurrentUserProfile(); in resetToPersonalProfile()
613 return mUserIdManager.getCurrentUserProfileId(); in getCurrentUserProfileId()
1105 mUserIdManager.setIntentAndCheckRestrictions(intent); in parseValuesFromIntent()
1162 ? new BannerManager(mAppContext, mUserIdManager, mConfigStore) in initBannerManager()
1164 mAppContext, mUserIdManager, mConfigStore); in initBannerManager()
/packages/apps/DocumentsUI/src/com/android/documentsui/files/
DFilesActivity.java208 mUserIdManager, mConfigStore); in getAppsRowManager()
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/
DPickActivity.java178 mUserIdManager, mConfigStore); in getAppsRowManager()