/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/users/ |
D | UserHelperTest.java | 127 UserInfo systemUser = createAdminUser(UserHandle.USER_SYSTEM); in testGetAllsers() local 136 mockGetUsers(systemUser, fgUser, user2, user3, user4); in testGetAllsers() 147 UserInfo systemUser = createAdminUser(UserHandle.USER_SYSTEM); in testGetAllUsers_notHeadless() local 156 mockGetUsers(systemUser, fgUser, user2, user3, user4); in testGetAllUsers_notHeadless() 160 .containsExactly(systemUser, fgUser, user2, user3, user4); in testGetAllUsers_notHeadless() 166 UserInfo systemUser = createAdminUser(UserHandle.USER_SYSTEM); in testGetAllSwitchableUsers() local 174 mockGetUsers(systemUser, fgUser, user1, user2); in testGetAllSwitchableUsers() 185 UserInfo systemUser = createAdminUser(UserHandle.USER_SYSTEM); in testGetAllSwitchableUsers_notHeadless() local 193 mockGetUsers(systemUser, fgUser, user1, user2); in testGetAllSwitchableUsers_notHeadless() 196 assertThat(mUserHelper.getAllSwitchableUsers()).containsExactly(systemUser, user1, user2); 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/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/ |
D | DisallowAddUserTaskTest.java | 55 private UserInfo systemUser = new UserInfo(UserHandle.USER_SYSTEM, "System", 0 /* flags */); field in DisallowAddUserTaskTest 117 systemUser, meatUser})); in testMaybeDisallowAddUsers_splitUserSystem_meatUserDeviceOwner() 127 systemUser.getUserHandle()); in testMaybeDisallowAddUsers_splitUserSystem_meatUserDeviceOwner() 136 when(mockUserManager.getUsers()).thenReturn(Collections.singletonList(systemUser)); in testMaybeDisallowAddUsers_splitUserSystem_systemDeviceOwner() 142 task.run(systemUser.id); in testMaybeDisallowAddUsers_splitUserSystem_systemDeviceOwner()
|
/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 | 192 boolean systemUser = UserHandle.SYSTEM.equals(user); in startOrBindServicesForUser() 194 boolean userScopeChecked = (!systemUser && service.isForegroundUserService()) in startOrBindServicesForUser() 195 || (systemUser && service.isSystemUserService()); in startOrBindServicesForUser()
|
/packages/services/Car/tests/carservice_unit_test/src/android/car/userlib/ |
D | CarUserManagerHelperTest.java | 302 UserInfo systemUser = newUser(UserHandle.USER_SYSTEM); in testHasInitialUser_hasOnlyWorkProfile() local 308 mockGetUsers(systemUser, workProfile); in testHasInitialUser_hasOnlyWorkProfile()
|