Home
last modified time | relevance | path

Searched refs:getSelectedUser (Results 1 – 15 of 15) sorted by relevance

/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DProfileTabsTest.java215 assertThat(mProfileTabs.getSelectedUser()).isEqualTo(mManagedUser); in testUpdateView_getSelectedUser_afterUsersChanged()
224 assertThat(mProfileTabs.getSelectedUser()).isEqualTo(mSystemUser); in testUpdateView_getSelectedUser_afterUsersChanged()
232 assertThat(mProfileTabs.getSelectedUser()).isEqualTo(mSystemUser); in testUpdateView_afterCurrentRootChanged_shouldChangeSelectedUser()
239 assertThat(mProfileTabs.getSelectedUser()).isEqualTo(mManagedUser); in testUpdateView_afterCurrentRootChanged_shouldChangeSelectedUser()
250 assertThat(mProfileTabs.getSelectedUser()).isEqualTo(mSystemUser); in testUpdateView_afterCurrentRootChangedMultiUser_shouldChangeSelectedUser()
258 assertThat(mProfileTabs.getSelectedUser()).isEqualTo(userId); in testUpdateView_afterCurrentRootChangedMultiUser_shouldChangeSelectedUser()
271 assertThat(mProfileTabs.getSelectedUser()).isEqualTo(mPrivateUser); in testUpdateView_afterSelectedUserBecomesUnavailable_shouldSwitchToCurrentUser()
277 assertThat(mProfileTabs.getSelectedUser()).isEqualTo(mSystemUser); in testUpdateView_afterSelectedUserBecomesUnavailable_shouldSwitchToCurrentUser()
285 assertThat(mProfileTabs.getSelectedUser()).isEqualTo(mSystemUser); in testGetSelectedUser_twoUsers()
288 assertThat(mProfileTabs.getSelectedUser()).isEqualTo(mManagedUser); in testGetSelectedUser_twoUsers()
[all …]
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/users/
DUsersSpinner.java79 UserInfo user = getSelectedUser(); in init()
97 UserInfo user = getSelectedUser(); in getSelectedUserId()
104 public @Nullable UserInfo getSelectedUser() { in getSelectedUser() method in UsersSpinner
DProfileUserFragment.java204 int userToRemove = getSelectedUser(); in removeUser()
226 int userToUpdate = getSelectedUser(); in stopUser()
248 int userToUpdate = getSelectedUser(); in startUser()
282 int userId = getSelectedUser(); in assignUserToZone()
373 int userId = getSelectedUser(); in launchAppForDisplayAndUser()
427 private int getSelectedUser() { in getSelectedUser() method in ProfileUserFragment
DExistingUsersView.java70 updateUser(mExistingUsers.getSelectedUser()); in updateState()
DSimpleUserPickerFragment.java261 int userId = getSelectedUser(); in startUser()
319 int userId = getSelectedUser(); in switchUser()
450 private int getSelectedUser() { in getSelectedUser() method in SimpleUserPickerFragment
/packages/apps/DocumentsUI/src/com/android/documentsui/
DProfileTabs.java127 || !Objects.equal(currentRoot.userId, getSelectedUser())) { in updateView()
245 public UserId getSelectedUser() { in getSelectedUser() method in ProfileTabs
DNavigationViewManager.java244 public UserId getSelectedUser() { in getSelectedUser() method in NavigationViewManager
245 return mProfileTabs.getSelectedUser(); in getSelectedUser()
DBaseActivity.java420 mLastSelectedUser = getSelectedUser(); in onPause()
914 public UserId getSelectedUser() { in getSelectedUser() method in BaseActivity
915 return mNavigator.getSelectedUser(); in getSelectedUser()
923 return mProviders.getRecentsRoot(getSelectedUser()); in getCurrentRoot()
DDrawerController.java223 mCommonAddons.getSelectedUser(), Providers.AUTHORITY_STORAGE); in onDrawerOpened()
DAbstractActionHandler.java1000 UserId getSelectedUser(); in getSelectedUser() method
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/
DAppsRowManagerTest.java112 when(mActivity.getSelectedUser()).thenReturn(TestProvidersAccess.USER_ID); in setUp()
224 when(mActivity.getSelectedUser()).thenReturn(TestProvidersAccess.OtherUser.USER_ID); in testUpdateView_showSelectedUserItems_otherUser()
335 when(mActivity.getSelectedUser()).thenReturn(TestProvidersAccess.OtherUser.USER_ID); in testUpdateView_noItemsOnSelectedUser_hideRow()
/packages/apps/DocumentsUI/src/com/android/documentsui/sidebar/
DRootsFragment.java303 getBaseActivity().getSelectedUser(), in onActivityCreated()
364 if (!UserId.CURRENT_USER.equals(getBaseActivity().getSelectedUser())) { in updateCrossProfileStateAndMaybeRefresh()
375 if (!UserId.CURRENT_USER.equals(getBaseActivity().getSelectedUser())) { in updateCrossProfileMapStateAndMaybeRefresh()
641 ((BaseActivity) context).getSelectedUser(), Providers.AUTHORITY_STORAGE); in onResume()
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DDirectoryFragment.java264 if (Objects.equal(mActivity.getSelectedUser(), userId)) {
281 if (Objects.equal(mActivity.getSelectedUser(), userId)) {
364 if (mActivity.getSelectedUser().equals(userId) in checkUriWithDelay()
665 mActivity.getSelectedUser(), in getModelBackedDocumentsAdapter()
1398 if (doc == null && !mActivity.getSelectedUser().isQuietModeEnabled(mActivity)) { in onRefresh()
DAppsRowManager.java128 final UserId selectedUser = activity.getSelectedUser(); in updateView()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/display/
DSelfManagedVirtualDisplayView.java107 UserInfo user = mUsersSpinner.getSelectedUser(); in switchUser()