Searched refs:isMultiUserProfiles (Results 1 – 7 of 7) sorted by relevance
71 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()
122 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()
282 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() local337 if (isMultiUserProfiles != null) { in setupObserverForCrossProfileAccess()338 isMultiUserProfiles.observe(this, this::setUpProfileButtonWithListeners); in setupObserverForCrossProfileAccess()368 final LiveData<Boolean> isMultiUserProfiles = in setUpObserverForCrossProfileAndMultiUserChangeGeneric() local370 if (isMultiUserProfiles != null) { in setUpObserverForCrossProfileAndMultiUserChangeGeneric()371 isMultiUserProfiles.observe(this, isMultiUserProfilesAvailable -> { in setUpObserverForCrossProfileAndMultiUserChangeGeneric()[all …]
49 boolean isMultiUserProfiles(); in isMultiUserProfiles() method224 public boolean isMultiUserProfiles() { in isMultiUserProfiles() method in UserIdManager.RuntimeUserIdManager262 if (isMultiUserProfiles()) { in setIntentAndCheckRestrictions()295 mIsMultiUserProfiles.postValue(isMultiUserProfiles()); in setUserIds()
60 boolean isMultiUserProfiles(); in isMultiUserProfiles() method269 mIsMultiUserProfiles.postValue(isMultiUserProfiles()); in setUserIds()308 public boolean isMultiUserProfiles() { in isMultiUserProfiles() method in UserManagerState.RuntimeUserManagerState355 mIsMultiUserProfiles.postValue(isMultiUserProfiles()); in resetUserIdsAndSetCrossProfileValues()
297 when(sUserIdManager.isMultiUserProfiles()).thenReturn(true); in setUpActiveProfileButton()324 when(sUserIdManager.isMultiUserProfiles()).thenReturn(true); in setUpWorkAppsOffProfileButton()336 when(sUserIdManager.isMultiUserProfiles()).thenReturn(true); in setUpBlockedByAdminProfileButton()
205 if (userIdManager.isMultiUserProfiles()) { in getTargetFragment()