Home
last modified time | relevance | path

Searched refs:isMultiUserProfiles (Results 1 – 7 of 7) sorted by relevance

/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/data/
DUserIdManagerTest.java71 assertThrows(IllegalStateException.class, () -> userIdManager.isMultiUserProfiles()); in testUserIdManagerThrowsErrorIfCalledFromNonMainThread()
86 assertThat(userIdManager.isMultiUserProfiles()).isFalse(); in testUserIds_personaUser_currentUserIsPersonalUser()
102 assertThat(userIdManager.isMultiUserProfiles()).isTrue(); in testUserIds_personalUserAndManagedUser_currentUserIsPersonalUser()
118 assertThat(userIdManager.isMultiUserProfiles()).isTrue(); in testUserIds_personalUserAndManagedUser_currentUserIsManagedUser()
135 assertThat(userIdManager.isMultiUserProfiles()).isFalse(); in testUserIds_otherUsers_currentUserIsOtherUser2()
151 assertThat(userIdManager.isMultiUserProfiles()).isFalse(); in testUserIds_otherUserAndManagedUserAndPersonalUser_currentUserIsOtherUser()
170 assertThat(userIdManager.isMultiUserProfiles()).isTrue(); in testGetUserIds_otherUserAndManagedUser_currentUserIsManagedUser()
DUserManagerStateTest.java122 assertThrows(IllegalStateException.class, () -> mUserManagerState.isMultiUserProfiles()); in testUserManagerStateThrowsErrorIfCalledFromNonMainThread()
200 assertThat(mUserManagerState.isMultiUserProfiles()).isFalse(); in testUserIds_singleUserProfileAvailable()
218 assertThat(mUserManagerState.isMultiUserProfiles()).isTrue(); in testUserIds_multiUserProfilesAvailable_currentUserIsPersonalUser()
238 assertThat(mUserManagerState.isMultiUserProfiles()).isTrue(); in testUserIds_multiUserProfilesAvailable_currentUserIsPersonalUser()
240 assertThat(mUserManagerState.isMultiUserProfiles()).isFalse(); in testUserIds_multiUserProfilesAvailable_currentUserIsPersonalUser()
254 assertThat(mUserManagerState.isMultiUserProfiles()).isFalse(); in testUserIds_multiUserProfilesAvailable_currentUserIsPersonalUser()
270 assertThat(mUserManagerState.isMultiUserProfiles()).isTrue(); in testUserIds_multiUserProfilesAvailable_currentUserIsOtherUser2()
284 assertThat(mUserManagerState.isMultiUserProfiles()).isFalse(); in testUserIds_multiUserProfilesAvailable_currentUserIsOtherUser2()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/ui/
DTabFragment.java282 mUserManagerState.isMultiUserProfiles()); in onViewCreated()
288 setUpProfileButtonWithListeners(mUserIdManager.isMultiUserProfiles()); in onViewCreated()
300 mUserManagerState.isMultiUserProfiles()); in onViewCreated()
302 setUpProfileButtonWithListeners(mUserIdManager.isMultiUserProfiles()); in onViewCreated()
336 final LiveData<Boolean> isMultiUserProfiles = mUserIdManager.getIsMultiUserProfiles(); in setupObserverForCrossProfileAccess() local
337 if (isMultiUserProfiles != null) { in setupObserverForCrossProfileAccess()
338 isMultiUserProfiles.observe(this, this::setUpProfileButtonWithListeners); in setupObserverForCrossProfileAccess()
368 final LiveData<Boolean> isMultiUserProfiles = in setUpObserverForCrossProfileAndMultiUserChangeGeneric() local
370 if (isMultiUserProfiles != null) { in setUpObserverForCrossProfileAndMultiUserChangeGeneric()
371 isMultiUserProfiles.observe(this, isMultiUserProfilesAvailable -> { in setUpObserverForCrossProfileAndMultiUserChangeGeneric()
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/data/
DUserIdManager.java49 boolean isMultiUserProfiles(); in isMultiUserProfiles() method
224 public boolean isMultiUserProfiles() { in isMultiUserProfiles() method in UserIdManager.RuntimeUserIdManager
262 if (isMultiUserProfiles()) { in setIntentAndCheckRestrictions()
295 mIsMultiUserProfiles.postValue(isMultiUserProfiles()); in setUserIds()
DUserManagerState.java60 boolean isMultiUserProfiles(); in isMultiUserProfiles() method
269 mIsMultiUserProfiles.postValue(isMultiUserProfiles()); in setUserIds()
308 public boolean isMultiUserProfiles() { in isMultiUserProfiles() method in UserManagerState.RuntimeUserManagerState
355 mIsMultiUserProfiles.postValue(isMultiUserProfiles()); in resetUserIdsAndSetCrossProfileValues()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/espresso/
DPhotoPickerBaseTest.java297 when(sUserIdManager.isMultiUserProfiles()).thenReturn(true); in setUpActiveProfileButton()
324 when(sUserIdManager.isMultiUserProfiles()).thenReturn(true); in setUpWorkAppsOffProfileButton()
336 when(sUserIdManager.isMultiUserProfiles()).thenReturn(true); in setUpBlockedByAdminProfileButton()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/
DPhotoPickerSettingsActivity.java205 if (userIdManager.isMultiUserProfiles()) { in getTargetFragment()