Home
last modified time | relevance | path

Searched refs:managedUser (Results 1 – 9 of 9) sorted by relevance

/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DProfileTabsTest.java48 private final UserId managedUser = UserId.of(100); field in ProfileTabsTest
92 initializeWithUsers(systemUser, managedUser); in testUpdateView_twoUsers_shouldShow()
102 assertThat(tab2.getTag()).isEqualTo(managedUser); in testUpdateView_twoUsers_shouldShow()
108 initializeWithUsers(systemUser, managedUser); in testUpdateView_twoUsers_doesNotSupportCrossProfile_shouldHide()
118 initializeWithUsers(systemUser, managedUser); in testUpdateView_twoUsers_subFolder_shouldHide()
130 initializeWithUsers(systemUser, managedUser); in testUpdateView_twoUsers_recents_subFolder_shouldHide()
143 initializeWithUsers(systemUser, managedUser); in testUpdateView_twoUsers_thirdParty_shouldHide()
156 initializeWithUsers(systemUser, managedUser); in testUpdateView_twoUsers_isSearching_shouldHide()
164 initializeWithUsers(systemUser, managedUser); in testUpdateView_getSelectedUser_afterUsersChanged()
168 assertThat(mProfileTabs.getSelectedUser()).isEqualTo(managedUser); in testUpdateView_getSelectedUser_afterUsersChanged()
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/
DIconHelperTest.java42 private UserId managedUser = UserId.of(100); field in IconHelperTest
48 mThumbnailCache, managedUser); in setUp()
58 assertThat(mIconHelper.shouldShowBadge(managedUser.getIdentifier())).isTrue(); in testShouldShowBadge_returnTrue_onManagedUser()
64 mThumbnailCache, managedUser); in testShouldShowBadge_returnFalse_onManagedUser_doNotShowBadge()
65 assertThat(mIconHelper.shouldShowBadge(managedUser.getIdentifier())).isFalse(); in testShouldShowBadge_returnFalse_onManagedUser_doNotShowBadge()
72 assertThat(mIconHelper.shouldShowBadge(managedUser.getIdentifier())).isFalse(); in testShouldShowBadge_returnFalse_onManagedUser_withoutManagedUser()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DUserIdManager.java173 UserId managedUser = null; in getUserIdsInternal() local
180 if (managedUser == null in getUserIdsInternal()
182 managedUser = UserId.of(userHandle); in getUserIdsInternal()
188 if (managedUser != null) { in getUserIdsInternal()
189 result.add(managedUser); in getUserIdsInternal()
209 mManagedUser = managedUser; in getUserIdsInternal()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/
DTestUserIdManager.java27 public UserId managedUser = null; field in TestUserIdManager
41 return managedUser; in getManagedUser()
/packages/apps/Settings/src/com/android/settings/accounts/
DContactSearchPreferenceController.java39 public void setManagedUser(UserHandle managedUser) { in setManagedUser() argument
40 mManagedUser = managedUser; in setManagedUser()
DCrossProfileCalendarPreferenceController.java39 public void setManagedUser(UserHandle managedUser) { in setManagedUser() argument
40 mManagedUser = managedUser; in setManagedUser()
DWorkModePreferenceController.java55 public void setManagedUser(UserHandle managedUser) { in setManagedUser() argument
56 mManagedUser = managedUser; in setManagedUser()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DApplicationFeatureProviderImplTest.java218 final UserInfo managedUser = new UserInfo(MANAGED_PROFILE_ID, "managed", in testFindPersistentPreferredActivities() local
224 when(mUserManager.getUserInfo(MANAGED_PROFILE_ID)).thenReturn(managedUser); in testFindPersistentPreferredActivities()
249 expectedManagedUserActivities.add(new UserAppInfo(managedUser, in testFindPersistentPreferredActivities()
251 expectedManagedUserActivities.add(new UserAppInfo(managedUser, in testFindPersistentPreferredActivities()
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DIconHelper.java81 @Nullable UserId managedUser) { in IconHelper() argument
85 mManagedUser = managedUser; in IconHelper()