Home
last modified time | relevance | path

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

/aosp12/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
H A DUserIdManagerTest.java44 private final UserHandle systemUser = UserHandle.SYSTEM; field in UserIdManagerTest
70 UserId currentUser = UserId.of(systemUser); in testGetUserIds_systemUser_currentUserIsSystemUser()
78 UserId currentUser = UserId.of(systemUser); in testGetUserIds_systemUserAndManagedUser_currentUserIsSystemUser()
96 UserId currentUser = UserId.of(systemUser); in testGetUserIds_managedUserAndSystemUser_currentUserIsSystemUser()
134 UserId currentUser = UserId.of(systemUser); in testGetUserIds_deviceNotSupported()
147 UserId currentUser = UserId.of(systemUser); in testGetUserIds_deviceWithoutPermission()
158 UserId currentUser = UserId.of(systemUser); in testGetUserIds_systemUserAndManagedUser_returnCachedList()
165 UserId currentUser = UserId.of(systemUser); in testGetManagedUser_contains()
172 UserId currentUser = UserId.of(systemUser); in testGetSystemUser_contains()
179 UserId currentUser = UserId.of(systemUser); in testGetSystemUser_singletonList_returnNull()
[all …]
H A DProfileTabsTest.java84 initializeWithUsers(systemUser); in testUpdateView_singleUser_shouldHide()
92 initializeWithUsers(systemUser, 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()
178 initializeWithUsers(systemUser, managedUser); in testUpdateView_afterCurrentRootChanged_shouldChangeSelectedUser()
195 initializeWithUsers(systemUser, managedUser); in testgetSelectedUser_twoUsers()
[all …]
/aosp12/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/profiles/
H A DProfileHelperTest.java125 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()
172 mockGetUsers(systemUser, fgUser, user1, user2); in testGetAllSwitchableUsers()
191 mockGetUsers(systemUser, fgUser, user1, user2); in testGetAllSwitchableUsers_notHeadless()
211 mockGetUsers(systemUser, fgUser, user2, user3, user4); in testGetAllPersistentUsers()
232 mockGetUsers(systemUser, fgUser, user2, user3, user4); in testGetAllPersistentUsers_notHeadless()
251 mockGetUsers(systemUser, fgUser, user2, user3, user4); in testGetAllAdminUsers()
271 mockGetUsers(systemUser, fgUser, user2, user3, user4); in testGetAllAdminUsers_notHeadless()
[all …]
/aosp12/packages/apps/DocumentsUI/src/com/android/documentsui/
H A DUserIdManager.java172 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()
/aosp12/packages/apps/DocumentsUI/tests/common/com/android/documentsui/
H A DTestUserIdManager.java26 public UserId systemUser = null; field in TestUserIdManager
36 return systemUser; in getSystemUser()
/aosp12/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/
H A DIconHelperTest.java41 private UserId systemUser = UserId.of(UserHandle.SYSTEM); field in IconHelperTest
53 assertThat(mIconHelper.shouldShowBadge(systemUser.getIdentifier())).isFalse(); in testShouldShowBadge_returnFalse_onSystemUser()
/aosp12/packages/services/Car/service/src/com/android/car/pm/
H A DVendorServiceController.java196 boolean systemUser = UserHandle.SYSTEM.equals(user); in startOrBindServicesForUser()
198 boolean userScopeChecked = (!systemUser && service.isForegroundUserService()) in startOrBindServicesForUser()
199 || (systemUser && service.isSystemUserService()); in startOrBindServicesForUser()
/aosp12/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
H A DSnoozeHelperTest.java193 int systemUser = UserHandle.SYSTEM.getIdentifier(); in testReadExpiredSnoozedNotification() local
196 systemUser, "pkg", r.getKey()).longValue()); in testReadExpiredSnoozedNotification()
/aosp12/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
H A DInitialUserSetterTest.java957 UserInfo systemUser = newUser(UserHandle.USER_SYSTEM); in testHasInitialUser_hasOnlyWorkProfile() local
963 mockGetAliveUsers(systemUser, workProfile); in testHasInitialUser_hasOnlyWorkProfile()