Home
last modified time | relevance | path

Searched refs:getCurrentUserProfileId (Results 1 – 13 of 13) sorted by relevance

/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/data/
DUserManagerStateTest.java126 () -> mUserManagerState.getCurrentUserProfileId()); in testUserManagerStateThrowsErrorIfCalledFromNonMainThread()
202 assertThat(mUserManagerState.getCurrentUserProfileId()) in testUserIds_singleUserProfileAvailable()
220 assertThat(mUserManagerState.getCurrentUserProfileId()).isEqualTo(UserId.of( in testUserIds_multiUserProfilesAvailable_currentUserIsPersonalUser()
230 mUserManagerState.getCurrentUserProfileId())).isFalse(); in testUserIds_multiUserProfilesAvailable_currentUserIsPersonalUser()
256 assertThat(mUserManagerState.getCurrentUserProfileId()) in testUserIds_multiUserProfilesAvailable_currentUserIsPersonalUser()
271 assertThat(mUserManagerState.getCurrentUserProfileId()) in testUserIds_multiUserProfilesAvailable_currentUserIsOtherUser2()
301 assertThat(mUserManagerState.getCurrentUserProfileId()) in testCurrentUser_AfterSettingASpecificUserAsCurrentUser()
304 mUserManagerState.getCurrentUserProfileId())).isTrue(); in testCurrentUser_AfterSettingASpecificUserAsCurrentUser()
310 assertThat(mUserManagerState.getCurrentUserProfileId()) in testCurrentUser_AfterSettingASpecificUserAsCurrentUser()
318 assertThat(mUserManagerState.getCurrentUserProfileId()) in testCurrentUser_AfterSettingASpecificUserAsCurrentUser()
[all …]
DUserIdManagerTest.java72 assertThrows(IllegalStateException.class, () -> userIdManager.getCurrentUserProfileId()); in testUserIdManagerThrowsErrorIfCalledFromNonMainThread()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/viewmodel/
DBannerManager.java105 @UserIdInt int getCurrentUserProfileId() { in getCurrentUserProfileId() method in BannerManager
107 return mUserManagerState.getCurrentUserProfileId().getIdentifier(); in getCurrentUserProfileId()
109 return mUserIdManager.getCurrentUserProfileId().getIdentifier(); in getCurrentUserProfileId()
273 final int currentUserProfileId = getCurrentUserProfileId(); in getCurrentBannerController()
346 final int currentUserProfileId = getCurrentUserProfileId(); in maybeInitialiseAndSetBannersForCurrentUser()
DPickerViewModel.java609 private UserId getCurrentUserProfileId() { in getCurrentUserProfileId() method in PickerViewModel
611 return mUserManagerState.getCurrentUserProfileId(); in getCurrentUserProfileId()
613 return mUserIdManager.getCurrentUserProfileId(); in getCurrentUserProfileId()
627 final UserId userId = getCurrentUserProfileId(); in loadItemsAsync()
766 UserId userId = getCurrentUserProfileId(); in getItemDataForUris()
918 final UserId userId = getCurrentUserProfileId(); in loadCategoryItemsAsync()
1015 final UserId userId = getCurrentUserProfileId(); in loadCategoriesAsync()
1188 if (userManagerState.getCurrentUserProfileId().getIdentifier() in logPickerOpened()
1192 userManagerState.getCurrentUserProfileId())) { in logPickerOpened()
1294 if (userManagerState.getCurrentUserProfileId().getIdentifier() in logPickerConfirm()
[all …]
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/viewmodel/
DBannerTestUtils.java46 getBannerControllersPerUser().forUser(getCurrentUserProfileId()); in getTestCloudBannerManager()
82 getBannerControllersPerUser().forUser(getCurrentUserProfileId());
DPickerViewModelPaginationTest.java142 when(userManagerState.getCurrentUserProfileId()).thenReturn(UserId.CURRENT_USER); in setUp()
146 when(userIdManager.getCurrentUserProfileId()).thenReturn(UserId.CURRENT_USER); in setUp()
DPickerViewModelTest.java174 when(userManagerState.getCurrentUserProfileId()).thenReturn(UserId.CURRENT_USER); in setUp()
180 when(userIdManager.getCurrentUserProfileId()).thenReturn(UserId.CURRENT_USER); in setUp()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/data/
DUserIdManager.java71 UserId getCurrentUserProfileId(); in getCurrentUserProfileId() method
242 public UserId getCurrentUserProfileId() { in getCurrentUserProfileId() method in UserIdManager.RuntimeUserIdManager
DUserManagerState.java72 UserId getCurrentUserProfileId(); in getCurrentUserProfileId() method
375 public UserId getCurrentUserProfileId() { in getCurrentUserProfileId() method in UserManagerState.RuntimeUserManagerState
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/ui/
DTabFragment.java594 if (!userId.equals(mUserManagerState.getCurrentUserProfileId())) { in onClickProfileMenuItem()
726 mUserManagerState.getCurrentUserProfileId())) { in getUserToSwitchFromProfileButton()
803 final UserId currentUserProfileId = mUserManagerState.getCurrentUserProfileId(); in updateProfileButtonAndProfileMenuButtonContent()
DProfileDialogFragment.java136 userManagerState.isManagedUserProfile(userManagerState.getCurrentUserProfileId()); in setBlockedByAdminParams()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/espresso/
DPhotoPickerBaseTest.java211 when(sUserIdManager.getCurrentUserProfileId()).thenReturn(UserId.CURRENT_USER); in setupClass()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/
DPhotoPickerActivity.java884 return mPickerViewModel.getUserManagerState().getCurrentUserProfileId().getIdentifier(); in getCurrentUserId()
886 return mPickerViewModel.getUserIdManager().getCurrentUserProfileId().getIdentifier(); in getCurrentUserId()