/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/ |
D | UserIdManagerTest.java | 44 private final UserHandle systemUser = UserHandle.SYSTEM; field in UserIdManagerTest 59 when(mockUserManager.isManagedProfile(systemUser.getIdentifier())).thenReturn(false); in setUp() 70 UserId currentUser = UserId.of(systemUser); in testGetUserIds_systemUser_currentUserIsSystemUser() 71 initializeUserIdManager(currentUser, Arrays.asList(systemUser)); in testGetUserIds_systemUser_currentUserIsSystemUser() 72 assertThat(mUserIdManager.getUserIds()).containsExactly(UserId.of(systemUser)); in testGetUserIds_systemUser_currentUserIsSystemUser() 78 UserId currentUser = UserId.of(systemUser); in testGetUserIds_systemUserAndManagedUser_currentUserIsSystemUser() 79 initializeUserIdManager(currentUser, Arrays.asList(systemUser, managedUser1)); in testGetUserIds_systemUserAndManagedUser_currentUserIsSystemUser() 81 .containsExactly(UserId.of(systemUser), UserId.of(managedUser1)).inOrder(); in testGetUserIds_systemUserAndManagedUser_currentUserIsSystemUser() 88 initializeUserIdManager(currentUser, Arrays.asList(systemUser, managedUser1)); in testGetUserIds_systemUserAndManagedUser_currentUserIsManagedUser() 90 .containsExactly(UserId.of(systemUser), UserId.of(managedUser1)).inOrder(); in testGetUserIds_systemUserAndManagedUser_currentUserIsManagedUser() [all …]
|
D | ProfileTabsTest.java | 47 private final UserId systemUser = UserId.of(UserHandle.SYSTEM); field in ProfileTabsTest 84 initializeWithUsers(systemUser); in testUpdateView_singleUser_shouldHide() 92 initializeWithUsers(systemUser, managedUser); in testUpdateView_twoUsers_shouldShow() 98 assertThat(tab1.getTag()).isEqualTo(systemUser); 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() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/profiles/ |
D | ProfileHelperTest.java | 125 UserInfo systemUser = createAdminUser(UserHandle.USER_SYSTEM); in testGetAllsers() local 134 mockGetUsers(systemUser, fgUser, user2, user3, user4); in testGetAllsers() 145 UserInfo systemUser = createAdminUser(UserHandle.USER_SYSTEM); in testGetAllUsers_notHeadless() local 154 mockGetUsers(systemUser, fgUser, user2, user3, user4); in testGetAllUsers_notHeadless() 158 .containsExactly(systemUser, fgUser, user2, user3, user4); in testGetAllUsers_notHeadless() 164 UserInfo systemUser = createAdminUser(UserHandle.USER_SYSTEM); in testGetAllSwitchableUsers() local 172 mockGetUsers(systemUser, fgUser, user1, user2); in testGetAllSwitchableUsers() 183 UserInfo systemUser = createAdminUser(UserHandle.USER_SYSTEM); in testGetAllSwitchableUsers_notHeadless() local 191 mockGetUsers(systemUser, fgUser, user1, user2); in testGetAllSwitchableUsers_notHeadless() 194 assertThat(mProfileHelper.getAllSwitchableProfiles()).containsExactly(systemUser, user1, in testGetAllSwitchableUsers_notHeadless() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | UserIdManager.java | 172 UserId systemUser = null; in getUserIdsInternal() local 177 systemUser = UserId.of(userHandle); in getUserIdsInternal() 196 if (systemUser != null) { in getUserIdsInternal() 197 result.add(0, systemUser); in getUserIdsInternal() 205 + (systemUser != null)); in getUserIdsInternal() 208 mSystemUser = systemUser; in getUserIdsInternal()
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/ |
D | TestUserIdManager.java | 26 public UserId systemUser = null; field in TestUserIdManager 36 return systemUser; in getSystemUser()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/ |
D | IconHelperTest.java | 41 private UserId systemUser = UserId.of(UserHandle.SYSTEM); field in IconHelperTest 53 assertThat(mIconHelper.shouldShowBadge(systemUser.getIdentifier())).isFalse(); in testShouldShowBadge_returnFalse_onSystemUser()
|
/packages/services/Car/service/src/com/android/car/pm/ |
D | VendorServiceController.java | 196 boolean systemUser = UserHandle.SYSTEM.equals(user); in startOrBindServicesForUser() 198 boolean userScopeChecked = (!systemUser && service.isForegroundUserService()) in startOrBindServicesForUser() 199 || (systemUser && service.isSystemUserService()); in startOrBindServicesForUser()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/ |
D | InitialUserSetterTest.java | 923 UserInfo systemUser = newUser(UserHandle.USER_SYSTEM); in testHasInitialUser_hasOnlyWorkProfile() local 929 mockGetAliveUsers(systemUser, workProfile); in testHasInitialUser_hasOnlyWorkProfile()
|