Home
last modified time | relevance | path

Searched refs:mUserManagerState (Results 1 – 16 of 16) sorted by relevance

/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/data/
DUserManagerStateTest.java53 private UserManagerState mUserManagerState; field in UserManagerStateTest
122 assertThrows(IllegalStateException.class, () -> mUserManagerState.isMultiUserProfiles()); in testUserManagerStateThrowsErrorIfCalledFromNonMainThread()
124 () -> mUserManagerState.isManagedUserProfile(UserId.of(mManagedUser))); in testUserManagerStateThrowsErrorIfCalledFromNonMainThread()
126 () -> mUserManagerState.getCurrentUserProfileId()); in testUserManagerStateThrowsErrorIfCalledFromNonMainThread()
128 () -> mUserManagerState.getCrossProfileAllowedStatusForAll()); in testUserManagerStateThrowsErrorIfCalledFromNonMainThread()
129 assertThrows(IllegalStateException.class, () -> mUserManagerState.getAllUserProfileIds()); in testUserManagerStateThrowsErrorIfCalledFromNonMainThread()
131 () -> mUserManagerState.updateProfileOffValuesAndPostCrossProfileStatus()); in testUserManagerStateThrowsErrorIfCalledFromNonMainThread()
133 () -> mUserManagerState.waitForMediaProviderToBeAvailable( in testUserManagerStateThrowsErrorIfCalledFromNonMainThread()
136 () -> mUserManagerState.isCrossProfileAllowedToUser(UserId.of(mManagedUser))); in testUserManagerStateThrowsErrorIfCalledFromNonMainThread()
137 assertThrows(IllegalStateException.class, () -> mUserManagerState.resetUserIds()); in testUserManagerStateThrowsErrorIfCalledFromNonMainThread()
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DUserManagerStateTest.java86 private UserManagerState mUserManagerState; field in UserManagerStateTest
163 .that(mUserManagerState.getUserIds()).containsExactly(UserId.of(mSystemUser)); in testGetUserIds_onlySystemUser_returnsSystemUser()
175 .that(mUserManagerState.getUserIds()) in testGetUserIds_allProfilesCurrentUserSystem_allShowInSharingSurfacesSeparate()
189 .that(mUserManagerState.getUserIds()) in testGetUserIds_allProfilesCurrentUserManaged_allShowInSharingSurfacesSeparate()
202 .that(mUserManagerState.getUserIds()) in testGetUserIds_allProfilesCurrentUserPrivate_allShowInSharingSurfacesSeparate()
213 .that(mUserManagerState.getUserIds()) in testGetUserIds_systemAndManagedUserCurrentUserSystem_returnsBoth()
223 .that(mUserManagerState.getUserIds()) in testGetUserIds_systemAndManagedUserCurrentUserManaged_returnsBoth()
234 .that(mUserManagerState.getUserIds()) in testGetUserIds_systemAndPrivateUserCurrentUserSystem_returnsBoth()
245 .that(mUserManagerState.getUserIds()) in testGetUserIds_systemAndPrivateUserCurrentUserPrivate_returnsBoth()
256 .that(mUserManagerState.getUserIds()) in testGetUserIds_systemAndOtherUserCurrentUserOtherPreV_returnsCurrentUser()
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/ui/
DTabFragment.java94 private UserManagerState mUserManagerState; field in TabFragment
206 mUserManagerState = mPickerViewModel.getUserManagerState(); in onViewCreated()
282 mUserManagerState.isMultiUserProfiles()); in onViewCreated()
300 mUserManagerState.isMultiUserProfiles()); in onViewCreated()
346 mUserManagerState.getCrossProfileAllowed(); in setUpObserverForCrossProfileAndMultiUserChangeGeneric()
369 mUserManagerState.getIsMultiUserProfiles(); in setUpObserverForCrossProfileAndMultiUserChangeGeneric()
381 for (UserId userId : mUserManagerState.getAllUserProfileIds()) { in updateUserForProfileButtonAndHideProfileCount()
391 if (mUserManagerState.getProfileCount() - mHideProfileCount != 2) { in updateUserForProfileButtonAndHideProfileCount()
404 return mUserManagerState.isProfileOff(userId) in isProfileHideInQuietMode()
405 && mUserManagerState.getShowInQuietMode(userId) in isProfileHideInQuietMode()
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/ui/settings/
DSettingsViewModel.java40 private final UserManagerState mUserManagerState; field in SettingsViewModel
50 mUserManagerState = UserManagerState.create(context); in SettingsViewModel()
54 mUserManagerState = null; in SettingsViewModel()
83 return mUserManagerState; in getUserManagerState()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DProfileTabs.java60 private final UserManagerState mUserManagerState; field in ProfileTabs
91 mUserManagerState = checkNotNull(userManagerState); in ProfileTabs()
94 mUserManagerState = userManagerState; in ProfileTabs()
194 assert mUserManagerState != null; in getUserIds()
195 return mUserManagerState.getUserIds(); in getUserIds()
204 assert mUserManagerState != null; in addTabsPrivateSpaceEnabled()
205 Map<UserId, String> userIdToLabelMap = mUserManagerState.getUserIdToLabelMap(); in addTabsPrivateSpaceEnabled()
DDocumentsApplication.java82 private UserManagerState mUserManagerState; field in DocumentsApplication
129 ((DocumentsApplication) context.getApplicationContext()).mUserManagerState; in getUserManagerState()
133 ((DocumentsApplication) context.getApplicationContext()).mUserManagerState = in getUserManagerState()
162 ((DocumentsApplication) context.getApplicationContext()).mUserManagerState = null; in invalidateUserManagerState()
191 mUserManagerState = UserManagerState.create(this); in onCreate()
194 mUserManagerState = null; in onCreate()
DBaseActivity.java97 protected UserManagerState mUserManagerState; field in BaseActivity
307 mUserManagerState = DocumentsApplication.getUserManagerState(this); in onCreate()
311 if (mUserManagerState != null && SdkLevel.isAtLeastS()) { in onCreate()
312 mUserManagerState.setCurrentStateIntent(intent); in onCreate()
1060 if (mUserManagerState == null) { in updateRecentsSetting()
1069 + (!mUserManagerState.areHiddenInQuietModeProfilesPresent() ? "enabled" in updateRecentsSetting()
1072 setRecentsScreenshotEnabled(!mUserManagerState.areHiddenInQuietModeProfilesPresent()); in updateRecentsSetting()
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DAppsRowManager.java55 private final UserManagerState mUserManagerState; field in AppsRowManager
64 mUserManagerState = null; in AppsRowManager()
74 mUserManagerState = userManagerState; in AppsRowManager()
156 return mUserManagerState.getUserIds(); in getUserIds()
DIconHelper.java73 private final UserManagerState mUserManagerState; field in IconHelper
97 mUserManagerState = userManagerState; in IconHelper()
277 && mUserManagerState.getUserIds().size() > 1 in shouldShowBadge()
287 return mUserManagerState.getUserIdToLabelMap().get(UserId.of(userIdIdentifier)); in getProfileLabel()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DLoaderTask.java147 private final UserManagerState mUserManagerState; field in LoaderTask
178 mUserManagerState = userManagerState; in LoaderTask()
286 mModelDelegate.loadAndBindAllAppsItems(mUserManagerState, in run()
412 mModelDelegate.loadAndBindWorkspaceItems(mUserManagerState, in loadWorkspace()
454 mApp, mUserManagerState, mPmHelper, in loadWorkspaceImpl()
465 mUserCache, mUserManagerState, mLauncherApps, mPendingPackages, in loadWorkspaceImpl()
480 mModelDelegate.loadAndBindWorkspaceItems(mUserManagerState, in loadWorkspaceImpl()
482 mModelDelegate.loadAndBindAllAppsItems(mUserManagerState, in loadWorkspaceImpl()
530 mUserManagerState.init(mUserCache, mUserManager); in queryPinnedShortcutsForUnlockedUsers()
704 boolean quietMode = mUserManagerState.isUserQuiet(user); in loadAllApps()
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/viewmodel/
DBannerManager.java47 private final UserManagerState mUserManagerState; field in BannerManager
85 mUserManagerState = userManagerState; in BannerManager()
107 return mUserManagerState.getCurrentUserProfileId().getIdentifier(); in getCurrentUserProfileId()
DPickerViewModel.java164 private UserManagerState mUserManagerState; field in PickerViewModel
215 mUserManagerState = UserManagerState.create(mAppContext); in PickerViewModel()
219 mUserManagerState = null; in PickerViewModel()
298 mUserManagerState = userManagerState; in setUserManagerState()
343 return mUserManagerState; in getUserManagerState()
452 mUserManagerState.setUserAsCurrentUserProfile(userId); in resetToGivenUserProfile()
611 return mUserManagerState.getCurrentUserProfileId(); in getCurrentUserProfileId()
1103 mUserManagerState.setIntentAndCheckRestrictions(intent); in parseValuesFromIntent()
1157 ? new BannerManager(mAppContext, mUserManagerState, mConfigStore) in initBannerManager()
1159 mAppContext, mUserManagerState, mConfigStore); in initBannerManager()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/
DPhotoPickerActivity.java1180 private final UserManagerState mUserManagerState; field in CrossProfileListeners
1190 mUserManagerState = mPickerViewModel.getUserManagerState(); in CrossProfileListeners()
1308 if (mUserManagerState.isUserSelectedAsCurrentUserProfile(userId)) { in handleProfileOff()
1311 mUserManagerState.updateProfileOffValuesAndPostCrossProfileStatus(); in handleProfileOff()
1330 if (mUserManagerState.isUserSelectedAsCurrentUserProfile(userId)) { in handleProfileRemoved()
1333 mUserManagerState.resetUserIdsAndSetCrossProfileValues(getIntent()); in handleProfileRemoved()
1346 mUserManagerState.resetUserIdsAndSetCrossProfileValues(getIntent()); in handleProfileAdded()
1365 mUserManagerState.waitForMediaProviderToBeAvailable(userId); in handleProfileOn()
/packages/apps/Launcher3/src/com/android/launcher3/widget/picker/
DWidgetsFullSheet.java100 private final UserManagerState mUserManagerState = new UserManagerState(); field in WidgetsFullSheet
165 && !mUserManagerState.isUserQuiet(entry.mPkgItem.user); in WidgetsFullSheet()
171 mUserManagerState.init(UserCache.INSTANCE.get(context), in WidgetsFullSheet()
295 .anyMatch(mUserManagerState::isUserQuiet) in updateRecyclerViewVisibility()
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/
DPickActivity.java176 mUserManagerState, mConfigStore) in getAppsRowManager()
235 mState.canForwardToProfileIdMap = mUserManagerState.getCanForwardToProfileIdMap( in setupLayout()
/packages/apps/DocumentsUI/src/com/android/documentsui/files/
DFilesActivity.java206 mUserManagerState, mConfigStore) in getAppsRowManager()