Home
last modified time | relevance | path

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

/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DUserIdManagerTest.java44 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 …]
DProfileTabsTest.java346 mTestUserIdManager.systemUser = userId; in initializeWithUsers()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/profiles/
DProfileHelperTest.java124 UserInfo systemUser = createAdminUser(UserHandle.USER_SYSTEM); in testGetAllsers() local
133 mockGetUsers(systemUser, fgUser, user2, user3, user4); in testGetAllsers()
144 UserInfo systemUser = createAdminUser(UserHandle.USER_SYSTEM); in testGetAllUsers_notHeadless() local
153 mockGetUsers(systemUser, fgUser, user2, user3, user4); in testGetAllUsers_notHeadless()
157 .containsExactly(systemUser, fgUser, user2, user3, user4); in testGetAllUsers_notHeadless()
163 UserInfo systemUser = createAdminUser(UserHandle.USER_SYSTEM); in testGetAllSwitchableUsers() local
171 mockGetUsers(systemUser, fgUser, user1, user2); in testGetAllSwitchableUsers()
182 UserInfo systemUser = createAdminUser(UserHandle.USER_SYSTEM); in testGetAllSwitchableUsers_notHeadless() local
190 mockGetUsers(systemUser, fgUser, user1, user2); in testGetAllSwitchableUsers_notHeadless()
193 assertThat(mProfileHelper.getAllSwitchableProfiles()).containsExactly(systemUser, user1, in testGetAllSwitchableUsers_notHeadless()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/
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()
DUserManagerState.java372 UserId systemUser = null; in getUserIdsInternalPreV() local
376 systemUser = UserId.of(userHandle); in getUserIdsInternalPreV()
383 } else if (mCurrentUser.isManagedProfile(mUserManager) && systemUser != null) { in getUserIdsInternalPreV()
384 result.add(0, systemUser); in getUserIdsInternalPreV()
389 + (systemUser != null)); in getUserIdsInternalPreV()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/
DTestUserIdManager.java26 public UserId systemUser = null; field in TestUserIdManager
36 return systemUser; in getSystemUser()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DInitialUserSetterTest.java997 UserHandle systemUser = expectRegularUserExists(mMockedUserHandleHelper, in testHasInitialUser_hasOnlyWorkProfile() local
1002 mockGetAliveUsers(systemUser, workProfile); in testHasInitialUser_hasOnlyWorkProfile()