/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/ |
D | UserIdManagerTest.java | 52 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/ |
D | SettingsViewModel.java | 39 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/ |
D | ProfileTabs.java | 58 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()
|
D | DocumentsApplication.java | 81 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()
|
D | BaseActivity.java | 96 protected UserIdManager mUserIdManager; field in BaseActivity 306 mUserIdManager = DocumentsApplication.getUserIdManager(this); in onCreate()
|
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/ui/ |
D | TabFragment.java | 93 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/ |
D | AppsRowManager.java | 54 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/ |
D | PhotoPickerActivity.java | 1179 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/ |
D | BannerManager.java | 46 private final UserIdManager mUserIdManager; field in BannerManager 86 mUserIdManager = userIdManager; in BannerManager() 109 return mUserIdManager.getCurrentUserProfileId().getIdentifier(); in getCurrentUserProfileId()
|
D | PickerViewModel.java | 163 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/ |
D | FilesActivity.java | 208 mUserIdManager, mConfigStore); in getAppsRowManager()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/ |
D | PickActivity.java | 178 mUserIdManager, mConfigStore); in getAppsRowManager()
|