Home
last modified time | relevance | path

Searched refs:personalUser (Results 1 – 10 of 10) sorted by relevance

/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/domain/interactor/
DUserInteractorTest.kt39 private val personalUser = User(id = baseId, role = Role.PERSONAL) constant
44 val personalProfile = Profile(PERSONAL, personalUser)
52 userRepository = FakeUserRepository(listOf(personalUser, cloneUser)), in <lambda>()
53 launchedAs = personalUser.handle in <lambda>()
58 assertThat(launchedAsProfile).isEqualTo(Profile(PERSONAL, personalUser, cloneUser)) in <lambda>()
65 userRepository = FakeUserRepository(listOf(personalUser, cloneUser)), in <lambda>()
70 assertThat(profiles).isEqualTo(Profile(PERSONAL, personalUser, cloneUser)) in <lambda>()
77 userRepository = FakeUserRepository(listOf(personalUser)), in <lambda>()
78 launchedAs = personalUser.handle in <lambda>()
83 assertThat(profiles).containsExactly(Profile(PERSONAL, personalUser)) in <lambda>()
[all …]
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/data/repository/
DFakeUserRepositoryTest.kt29 private val personalUser = User(id = baseId, role = User.Role.PERSONAL) constant in com.android.intentresolver.data.repository.FakeUserRepositoryTest
36 val repo = FakeUserRepository(listOf(personalUser, workUser, privateUser)) in <lambda>()
39 assertThat(users).containsExactly(personalUser, workUser, privateUser) in <lambda>()
49 repo.addUser(personalUser, true) in <lambda>()
50 assertThat(users).containsExactly(personalUser) in <lambda>()
53 assertThat(users).containsExactly(personalUser, workUser) in <lambda>()
58 val repo = FakeUserRepository(listOf(personalUser, workUser)) in <lambda>()
62 assertThat(users).containsExactly(personalUser) in <lambda>()
64 repo.removeUser(personalUser) in <lambda>()
70 val repo = FakeUserRepository(listOf(personalUser, workUser)) in <lambda>()
[all …]
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/data/
DUserIdManagerTest.java41 private final UserHandle personalUser = UserHandle.SYSTEM; field in UserIdManagerTest
57 when(mockUserManager.isManagedProfile(personalUser.getIdentifier())).thenReturn(false); in setUp()
58 when(mockUserManager.getProfileParent(managedUser1)).thenReturn(personalUser); in setUp()
68 UserId currentUser = UserId.of(personalUser); in testUserIdManagerThrowsErrorIfCalledFromNonMainThread()
69 initializeUserIdManager(currentUser, Arrays.asList(personalUser)); in testUserIdManagerThrowsErrorIfCalledFromNonMainThread()
83 UserId currentUser = UserId.of(personalUser); in testUserIds_personaUser_currentUserIsPersonalUser()
84 initializeUserIdManager(currentUser, Arrays.asList(personalUser)); in testUserIds_personaUser_currentUserIsPersonalUser()
99 UserId currentUser = UserId.of(personalUser); in testUserIds_personalUserAndManagedUser_currentUserIsPersonalUser()
100 initializeUserIdManager(currentUser, Arrays.asList(personalUser, managedUser1)); in testUserIds_personalUserAndManagedUser_currentUserIsPersonalUser()
116 initializeUserIdManager(currentUser, Arrays.asList(personalUser, managedUser1)); in testUserIds_personalUserAndManagedUser_currentUserIsManagedUser()
[all …]
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/
DProfileHelperTest.kt34 private val personalUser = User(0, User.Role.PERSONAL) constant
37 private val personalProfile = Profile(Profile.Type.PERSONAL, personalUser)
38 private val personalWithCloneProfile = Profile(Profile.Type.PERSONAL, personalUser, cloneUser)
92 val repository = FakeUserRepository(listOf(personalUser)) in <lambda>()
93 val interactor = UserInteractor(repository, launchedAs = personalUser.handle) in <lambda>()
107 assertThat(helper.getQueryIntentsHandle(personalUser.handle)) in <lambda>()
114 val repository = FakeUserRepository(listOf(personalUser, cloneUser)) in <lambda>()
115 val interactor = UserInteractor(repository, launchedAs = personalUser.handle) in <lambda>()
129 assertThat(helper.getQueryIntentsHandle(personalUser.handle)).isEqualTo(personalUser.handle) in <lambda>()
135 val repository = FakeUserRepository(listOf(personalUser, cloneUser)) in <lambda>()
[all …]
DProfileAvailabilityTest.kt33 private val personalUser = User(0, User.Role.PERSONAL) constant
36 private val personalProfile = Profile(Profile.Type.PERSONAL, personalUser)
39 private val repository = FakeUserRepository(listOf(personalUser, workUser))
40 private val interactor = UserInteractor(repository, launchedAs = personalUser.handle)
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/emptystate/
DNoCrossProfileEmptyStateProviderTest.kt46 private val personalUser = User(0, User.Role.PERSONAL) constant in com.android.intentresolver.emptystate.NoCrossProfileEmptyStateProviderTest
51 private val userRepository = FakeUserRepository(listOf(personalUser, workUser, privateUser))
56 on { userHandle } doReturn personalUser.handle in <lambda>()
95 assertThat(personalListAdapter.userHandle).isEqualTo(personalUser.handle) in verifyTestSetup()
119 val profileHelper = createProfileHelper(launchedAs = personalUser) in testPersonalToWork()
134 crossProfileIntentsChecker.verifyCalled(times(1), workIntents, personalUser, workUser) in testPersonalToWork()
154 crossProfileIntentsChecker.verifyCalled(times(1), personalIntents, workUser, personalUser) in testWorkToPersonal()
175 crossProfileIntentsChecker.verifyCalled(times(1), privateIntents, workUser, personalUser) in testWorkToPrivate()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/data/
DUserIdManager.java323 final UserId personalUser = mCurrentUser; in setUserIdsInternal() local
330 parentUser.equals(personalUser.getUserHandle())) { in setUserIdsInternal()
331 mPersonalUser = personalUser; in setUserIdsInternal()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/ui/settings/
DSettingsProfileSelectFragment.java165 int personalUser = ActivityManager.getCurrentUser(); in getTabUserId() local
169 return personalUser; in getTabUserId()
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/platform/
DFakeUserManagerTest.kt54 val personalUser = in <lambda>() constant
58 assertTrue(userInfoAreEqual.apply(personalUser, state.getPrimaryUser())) in <lambda>()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/
DResolverActivity.java1069 UserHandle personalUser = mProfiles.getPersonalHandle();
1070 return launchUser.equals(personalUser) ? PROFILE_PERSONAL : PROFILE_WORK;