Searched refs:getCurrentUserProfileId (Results 1 – 13 of 13) sorted by relevance
126 () -> 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 …]
72 assertThrows(IllegalStateException.class, () -> userIdManager.getCurrentUserProfileId()); in testUserIdManagerThrowsErrorIfCalledFromNonMainThread()
105 @UserIdInt int getCurrentUserProfileId() { in getCurrentUserProfileId() method in BannerManager107 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()
609 private UserId getCurrentUserProfileId() { in getCurrentUserProfileId() method in PickerViewModel611 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 …]
46 getBannerControllersPerUser().forUser(getCurrentUserProfileId()); in getTestCloudBannerManager()82 getBannerControllersPerUser().forUser(getCurrentUserProfileId());
142 when(userManagerState.getCurrentUserProfileId()).thenReturn(UserId.CURRENT_USER); in setUp()146 when(userIdManager.getCurrentUserProfileId()).thenReturn(UserId.CURRENT_USER); in setUp()
174 when(userManagerState.getCurrentUserProfileId()).thenReturn(UserId.CURRENT_USER); in setUp()180 when(userIdManager.getCurrentUserProfileId()).thenReturn(UserId.CURRENT_USER); in setUp()
71 UserId getCurrentUserProfileId(); in getCurrentUserProfileId() method242 public UserId getCurrentUserProfileId() { in getCurrentUserProfileId() method in UserIdManager.RuntimeUserIdManager
72 UserId getCurrentUserProfileId(); in getCurrentUserProfileId() method375 public UserId getCurrentUserProfileId() { in getCurrentUserProfileId() method in UserManagerState.RuntimeUserManagerState
594 if (!userId.equals(mUserManagerState.getCurrentUserProfileId())) { in onClickProfileMenuItem()726 mUserManagerState.getCurrentUserProfileId())) { in getUserToSwitchFromProfileButton()803 final UserId currentUserProfileId = mUserManagerState.getCurrentUserProfileId(); in updateProfileButtonAndProfileMenuButtonContent()
136 userManagerState.isManagedUserProfile(userManagerState.getCurrentUserProfileId()); in setBlockedByAdminParams()
211 when(sUserIdManager.getCurrentUserProfileId()).thenReturn(UserId.CURRENT_USER); in setupClass()
884 return mPickerViewModel.getUserManagerState().getCurrentUserProfileId().getIdentifier(); in getCurrentUserId()886 return mPickerViewModel.getUserIdManager().getCurrentUserProfileId().getIdentifier(); in getCurrentUserId()