Home
last modified time | relevance | path

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

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
DUserVisibilityMediatorSUSDTest.java122 onVisible(PROFILE_USER_ID)); in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsCurrentUser()
125 int result = mMediator.assignUserToDisplayOnStart(PROFILE_USER_ID, PARENT_USER_ID, in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsCurrentUser()
128 expectUserCannotBeUnassignedFromDisplay(PROFILE_USER_ID, DEFAULT_DISPLAY); in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsCurrentUser()
130 expectUserIsVisible(PROFILE_USER_ID); in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsCurrentUser()
131 expectUserIsNotVisibleOnDisplay(PROFILE_USER_ID, INVALID_DISPLAY); in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsCurrentUser()
132 expectUserIsVisibleOnDisplay(PROFILE_USER_ID, DEFAULT_DISPLAY); in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsCurrentUser()
133 expectUserIsVisibleOnDisplay(PROFILE_USER_ID, SECONDARY_DISPLAY_ID); in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsCurrentUser()
134 expectVisibleUsers(PARENT_USER_ID, PROFILE_USER_ID); in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsCurrentUser()
136 expectDisplayAssignedToUser(PROFILE_USER_ID, DEFAULT_DISPLAY); in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsCurrentUser()
161 onVisible(PROFILE_USER_ID)); in testStartVisibleBgProfile_communalProfile()
[all …]
DUserVisibilityMediatorTestCase.java98 protected static final int PROFILE_USER_ID = 643; field in UserVisibilityMediatorTestCase
260 onVisible(PROFILE_USER_ID), in testStopVisibleBgProfile()
261 onInvisible(PROFILE_USER_ID)); in testStopVisibleBgProfile()
264 mMediator.unassignUserFromDisplayOnStop(PROFILE_USER_ID); in testStopVisibleBgProfile()
266 expectUserIsNotVisibleAtAll(PROFILE_USER_ID); in testStopVisibleBgProfile()
267 expectNoDisplayAssignedToUser(PROFILE_USER_ID); in testStopVisibleBgProfile()
279 onVisible(PROFILE_USER_ID), in testVisibleBgProfileBecomesInvisibleWhenParentIsSwitchedOut()
281 onInvisible(PROFILE_USER_ID), in testVisibleBgProfileBecomesInvisibleWhenParentIsSwitchedOut()
287 expectUserIsNotVisibleAtAll(PROFILE_USER_ID); in testVisibleBgProfileBecomesInvisibleWhenParentIsSwitchedOut()
288 expectNoDisplayAssignedToUser(PROFILE_USER_ID); in testVisibleBgProfileBecomesInvisibleWhenParentIsSwitchedOut()
[all …]
DUserVisibilityMediatorVisibleBackgroundUserTestCase.java183 expectUserIsNotVisibleOnDisplay("before", PROFILE_USER_ID, SECONDARY_DISPLAY_ID); in testVisibilityOfCurrentUserAndProfilesOnDisplayAssignedToAnotherUser()
190 expectUserIsNotVisibleOnDisplay("after", PROFILE_USER_ID, SECONDARY_DISPLAY_ID); in testVisibilityOfCurrentUserAndProfilesOnDisplayAssignedToAnotherUser()
284 onVisible(PROFILE_USER_ID)); in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsCurrentUser()
287 int result = mMediator.assignUserToDisplayOnStart(PROFILE_USER_ID, PARENT_USER_ID, in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsCurrentUser()
290 expectUserCannotBeUnassignedFromDisplay(PROFILE_USER_ID, DEFAULT_DISPLAY); in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsCurrentUser()
292 expectUserIsVisible(PROFILE_USER_ID); in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsCurrentUser()
293 expectUserIsNotVisibleOnDisplay(PROFILE_USER_ID, INVALID_DISPLAY); in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsCurrentUser()
294 expectUserIsNotVisibleOnDisplay(PROFILE_USER_ID, SECONDARY_DISPLAY_ID); in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsCurrentUser()
295 expectUserIsVisibleOnDisplay(PROFILE_USER_ID, DEFAULT_DISPLAY); in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsCurrentUser()
296 expectVisibleUsers(PARENT_USER_ID, PROFILE_USER_ID); in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsCurrentUser()
[all …]
DUserVisibilityMediatorMUPANDTest.java139 int result = mMediator.assignUserToDisplayOnStart(PROFILE_USER_ID, PARENT_USER_ID, in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsStartedVisibleOnBgOnSecondaryDisplay()
143 expectUserIsNotVisibleAtAll(PROFILE_USER_ID); in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsStartedVisibleOnBgOnSecondaryDisplay()
144 expectNoDisplayAssignedToUser(PROFILE_USER_ID); in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsStartedVisibleOnBgOnSecondaryDisplay()
147 assertInvisibleUserCannotBeAssignedExtraDisplay(PROFILE_USER_ID, SECONDARY_DISPLAY_ID); in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsStartedVisibleOnBgOnSecondaryDisplay()
158 onVisible(PROFILE_USER_ID)); in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsStartedVisibleOnBgOnDefaultDisplay()
161 int result = mMediator.assignUserToDisplayOnStart(PROFILE_USER_ID, PARENT_USER_ID, in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsStartedVisibleOnBgOnDefaultDisplay()
174 expectUserIsVisible(PROFILE_USER_ID); in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsStartedVisibleOnBgOnDefaultDisplay()
175 expectUserIsVisibleOnDisplay(PROFILE_USER_ID, DEFAULT_DISPLAY); in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsStartedVisibleOnBgOnDefaultDisplay()
176 expectUserIsNotVisibleOnDisplay(PROFILE_USER_ID, INVALID_DISPLAY); in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsStartedVisibleOnBgOnDefaultDisplay()
178 expectDisplayAssignedToUser(PROFILE_USER_ID, INVALID_DISPLAY); in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsStartedVisibleOnBgOnDefaultDisplay()
[all …]
DUserManagerServiceTest.java124 private static final int PROFILE_USER_ID = 643; field in UserManagerServiceTest
263 assertWithMessage("isCurrentUserOrRunningProfileOfCurrentUser(%s)", PROFILE_USER_ID) in testIsCurrentUserOrRunningProfileOfCurrentUser_startedProfileOfCurrentUser()
264 .that(mUms.isCurrentUserOrRunningProfileOfCurrentUser(PROFILE_USER_ID)).isTrue(); in testIsCurrentUserOrRunningProfileOfCurrentUser_startedProfileOfCurrentUser()
273 assertWithMessage("isCurrentUserOrRunningProfileOfCurrentUser(%s)", PROFILE_USER_ID) in testIsCurrentUserOrRunningProfileOfCurrentUser_stoppedProfileOfCurrentUser()
274 .that(mUms.isCurrentUserOrRunningProfileOfCurrentUser(PROFILE_USER_ID)).isFalse(); in testIsCurrentUserOrRunningProfileOfCurrentUser_stoppedProfileOfCurrentUser()
282 assertWithMessage("isCurrentUserOrRunningProfileOfCurrentUser(%s)", PROFILE_USER_ID) in testIsCurrentUserOrRunningProfileOfCurrentUser_profileOfNonCurrentUSer()
283 .that(mUms.isCurrentUserOrRunningProfileOfCurrentUser(PROFILE_USER_ID)).isFalse(); in testIsCurrentUserOrRunningProfileOfCurrentUser_profileOfNonCurrentUSer()
309 assertWithMessage("isUserRunning(%s)", PROFILE_USER_ID) in testIsUserRunning_CurrentUserStartedWorkProfileShouldReturnTrue()
310 .that(mUms.isUserRunning(PROFILE_USER_ID)).isTrue(); in testIsUserRunning_CurrentUserStartedWorkProfileShouldReturnTrue()
318 assertWithMessage("isUserRunning(%s)", PROFILE_USER_ID) in testIsUserRunning_CurrentUserStoppedWorkProfileShouldReturnFalse()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/
DWorkLockActivityControllerTest.java61 private static final int PROFILE_USER_ID = 555; field in WorkLockActivityControllerTest
103 mTaskStackListener.onTaskProfileLocked(TASK_INFO, PROFILE_USER_ID); in testOverlayStartedWhenLocked()
106 verifyStartActivity(TASK_ID, true /*taskOverlay*/, PROFILE_USER_ID); in testOverlayStartedWhenLocked()
116 mTaskStackListener.onTaskProfileLocked(TASK_INFO, PROFILE_USER_ID); in testRemoveTaskOnFailureToStartOverlay()
120 verifyStartActivity(TASK_ID, true /*taskOverlay*/, PROFILE_USER_ID); in testRemoveTaskOnFailureToStartOverlay()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/trust/
DTrustManagerServiceTest.java138 private static final int PROFILE_USER_ID = 70; field in TrustManagerServiceTest
429 verify(mKeyStoreAuthorization).onDeviceUnlocked(PROFILE_USER_ID, null); in testLockDeviceForManagedProfileWithUnifiedChallenge_usesParentBiometricSids()
436 .onDeviceLocked(eq(PROFILE_USER_ID), eq(PARENT_BIOMETRIC_SIDS), eq(false)); in testLockDeviceForManagedProfileWithUnifiedChallenge_usesParentBiometricSids()
448 mTrustManager.setDeviceLockedForUser(PROFILE_USER_ID, false); in testLockDeviceForManagedProfileWithSeparateChallenge_usesProfileBiometricSids()
449 verify(mKeyStoreAuthorization).onDeviceUnlocked(PROFILE_USER_ID, null); in testLockDeviceForManagedProfileWithSeparateChallenge_usesProfileBiometricSids()
451 mTrustManager.setDeviceLockedForUser(PROFILE_USER_ID, true); in testLockDeviceForManagedProfileWithSeparateChallenge_usesProfileBiometricSids()
453 .onDeviceLocked(eq(PROFILE_USER_ID), eq(PROFILE_BIOMETRIC_SIDS), eq(false)); in testLockDeviceForManagedProfileWithSeparateChallenge_usesProfileBiometricSids()
802 UserInfo profile = new UserInfo(PROFILE_USER_ID, "profile", UserInfo.FLAG_MANAGED_PROFILE); in setupMocksForProfile()
805 when(mUserManager.getUserInfo(PROFILE_USER_ID)).thenReturn(profile); in setupMocksForProfile()
806 when(mUserManager.getProfileParent(PROFILE_USER_ID)).thenReturn(parent); in setupMocksForProfile()
[all …]