Home
last modified time | relevance | path

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

/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/data/repository/
DFakeUserRepositoryTest.kt31 private val workUser = User(id = baseId + 2, role = User.Role.WORK) constant
36 val repo = FakeUserRepository(listOf(personalUser, workUser, privateUser)) in <lambda>()
39 assertThat(users).containsExactly(personalUser, workUser, privateUser) in <lambda>()
52 repo.addUser(workUser, false) in <lambda>()
53 assertThat(users).containsExactly(personalUser, workUser) in <lambda>()
58 val repo = FakeUserRepository(listOf(personalUser, workUser)) in <lambda>()
61 repo.removeUser(workUser) in <lambda>()
70 val repo = FakeUserRepository(listOf(personalUser, workUser)) in <lambda>()
74 repo.requestState(workUser, false) in <lambda>()
75 assertThat(available!![workUser]).isFalse() in <lambda>()
[all …]
DUserRepositoryImplTest.kt84 val workUser = User(work.identifier, Role.WORK) in <lambda>() constant
87 assertThat(available?.get(workUser)).isTrue() in <lambda>()
90 assertThat(available?.get(workUser)).isFalse() in <lambda>()
93 assertThat(available?.get(workUser)).isTrue() in <lambda>()
118 val workUser = User(work.identifier, Role.WORK) in <lambda>() constant
121 assertThat(available?.get(workUser)).isTrue() in <lambda>()
123 repo.requestState(workUser, false) in <lambda>()
124 assertThat(available?.get(workUser)).isFalse() in <lambda>()
126 repo.requestState(workUser, true) in <lambda>()
127 assertThat(available?.get(workUser)).isTrue() in <lambda>()
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/domain/interactor/
DUserInteractorTest.kt41 private val workUser = User(id = baseId + 2, role = Role.WORK) constant in com.android.intentresolver.domain.interactor.UserInteractorTest
45 val workProfile = Profile(WORK, workUser)
116 FakeUserRepository(listOf(personalUser, cloneUser, workUser, privateUser)), in <lambda>()
124 Profile(WORK, workUser), in <lambda>()
134 FakeUserRepository(listOf(workUser, cloneUser, privateUser, personalUser)), in <lambda>()
142 Profile(WORK, workUser), in <lambda>()
151 userRepo.addUser(workUser, false) in <lambda>()
163 val userRepo = FakeUserRepository(listOf(workUser, personalUser)) in <lambda>()
172 userRepo.requestState(workUser, false) in <lambda>()
176 userRepo.requestState(workUser, true) in <lambda>()
[all …]
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/emptystate/
DNoCrossProfileEmptyStateProviderTest.kt47 private val workUser = User(10, User.Role.WORK) constant
51 private val userRepository = FakeUserRepository(listOf(personalUser, workUser, privateUser))
62 on { userHandle } doReturn workUser.handle in <lambda>()
94 assertThat(workListAdapter.userHandle).isEqualTo(workUser.handle) in verifyTestSetup()
101 val profileHelper = createProfileHelper(launchedAs = workUser) in sameProfilePermitted()
134 crossProfileIntentsChecker.verifyCalled(times(1), workIntents, personalUser, workUser) in testPersonalToWork()
139 val profileHelper = createProfileHelper(launchedAs = workUser) in testWorkToPersonal()
154 crossProfileIntentsChecker.verifyCalled(times(1), personalIntents, workUser, personalUser) in testWorkToPersonal()
159 val profileHelper = createProfileHelper(launchedAs = workUser) in testWorkToPrivate()
175 crossProfileIntentsChecker.verifyCalled(times(1), privateIntents, workUser, personalUser) in testWorkToPrivate()
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/
DProfileAvailabilityTest.kt34 private val workUser = User(10, User.Role.WORK) constant in com.android.intentresolver.ProfileAvailabilityTest
37 private val workProfile = Profile(Profile.Type.WORK, workUser)
39 private val repository = FakeUserRepository(listOf(personalUser, workUser))
DProfileHelperTest.kt40 private val workUser = User(11, User.Role.WORK) constant in com.android.intentresolver.ProfileHelperTest
41 private val workProfile = Profile(Profile.Type.WORK, workUser)
158 val repository = FakeUserRepository(listOf(personalUser, workUser)) in <lambda>()
175 assertThat(helper.getQueryIntentsHandle(workUser.handle)) in <lambda>()
182 val repository = FakeUserRepository(listOf(personalUser, workUser)) in <lambda>()
183 val interactor = UserInteractor(repository, launchedAs = workUser.handle) in <lambda>()
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/platform/
DFakeUserManagerTest.kt62 val workUser = in <lambda>() constant
67 userInfoAreEqual.apply(workUser, userManager.getUserInfo(workHandle.identifier)!!) in <lambda>()
113 val workUser = state.getUser(workHandle) in <lambda>() constant
116 assertThat(workUser.profileGroupId).isEqualTo(primaryUser.profileGroupId) in <lambda>()
/packages/apps/Settings/src/com/android/settings/applications/autofill/
DPasswordsPreferenceController.java238 UserHandle workUser = getWorkProfileUser(); in getUser() local
239 return workUser != null ? workUser.getIdentifier() : UserHandle.myUserId(); in getUser()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DInCallControllerTests.java1869 UserHandle workUser = new UserHandle(12); in testRemoveAllServiceConnections_MultiUser() local
1871 when(mMockCall.getAssociatedUser()).thenReturn(workUser); in testRemoveAllServiceConnections_MultiUser()
1889 assertTrue(mInCallController.getInCallServiceConnections().containsKey(workUser)); in testRemoveAllServiceConnections_MultiUser()
1897 assertNull(mInCallController.getInCallServiceConnections().get(workUser)); in testRemoveAllServiceConnections_MultiUser()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/
DChooserActivity.java2060 UserHandle workUser = mProfiles.getWorkHandle();
2061 ProfileRecord record = workUser == null ? null : getProfileRecord(workUser);