/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/ |
D | UserVisibilityMediatorMUPANDTest.java | 136 AsyncUserVisibilityListener listener = addListenerForEvents(onVisible(PARENT_USER_ID)); in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsStartedVisibleOnBgOnSecondaryDisplay() 137 startUserInSecondaryDisplay(PARENT_USER_ID, OTHER_SECONDARY_DISPLAY_ID); in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsStartedVisibleOnBgOnSecondaryDisplay() 139 int result = mMediator.assignUserToDisplayOnStart(PROFILE_USER_ID, PARENT_USER_ID, in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsStartedVisibleOnBgOnSecondaryDisplay() 145 expectUserAssignedToDisplay(OTHER_SECONDARY_DISPLAY_ID, PARENT_USER_ID); in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsStartedVisibleOnBgOnSecondaryDisplay() 157 onVisible(PARENT_USER_ID), in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsStartedVisibleOnBgOnDefaultDisplay() 159 startUserInSecondaryDisplay(PARENT_USER_ID, DEFAULT_DISPLAY); in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsStartedVisibleOnBgOnDefaultDisplay() 161 int result = mMediator.assignUserToDisplayOnStart(PROFILE_USER_ID, PARENT_USER_ID, in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsStartedVisibleOnBgOnDefaultDisplay() 166 expectUserIsVisible(PARENT_USER_ID); in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsStartedVisibleOnBgOnDefaultDisplay() 167 expectUserIsVisibleOnDisplay(PARENT_USER_ID, DEFAULT_DISPLAY); in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsStartedVisibleOnBgOnDefaultDisplay() 168 expectUserIsNotVisibleOnDisplay(PARENT_USER_ID, INVALID_DISPLAY); in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsStartedVisibleOnBgOnDefaultDisplay() [all …]
|
D | UserVisibilityMediatorVisibleBackgroundUserTestCase.java | 182 expectUserIsNotVisibleOnDisplay("before", PARENT_USER_ID, SECONDARY_DISPLAY_ID); in testVisibilityOfCurrentUserAndProfilesOnDisplayAssignedToAnotherUser() 189 expectUserIsNotVisibleOnDisplay("after", PARENT_USER_ID, SECONDARY_DISPLAY_ID); in testVisibilityOfCurrentUserAndProfilesOnDisplayAssignedToAnotherUser() 283 onVisible(PARENT_USER_ID), in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsCurrentUser() 285 startForegroundUser(PARENT_USER_ID); in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsCurrentUser() 287 int result = mMediator.assignUserToDisplayOnStart(PROFILE_USER_ID, PARENT_USER_ID, in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsCurrentUser() 296 expectVisibleUsers(PARENT_USER_ID, PROFILE_USER_ID); in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsCurrentUser() 299 expectUserAssignedToDisplay(DEFAULT_DISPLAY, PARENT_USER_ID); in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsCurrentUser() 310 AsyncUserVisibilityListener listener = addListenerForEvents(onVisible(PARENT_USER_ID)); in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsStartedVisibleOnAnotherDisplay() 311 startUserInSecondaryDisplay(PARENT_USER_ID, OTHER_SECONDARY_DISPLAY_ID); in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsStartedVisibleOnAnotherDisplay() 313 int result = mMediator.assignUserToDisplayOnStart(PROFILE_USER_ID, PARENT_USER_ID, in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsStartedVisibleOnAnotherDisplay() [all …]
|
D | UserVisibilityMediatorTestCase.java | 91 protected static final int PARENT_USER_ID = 642; field in UserVisibilityMediatorTestCase 259 onVisible(PARENT_USER_ID), in testStopVisibleBgProfile() 268 expectUserAssignedToDisplay(DEFAULT_DISPLAY, PARENT_USER_ID); in testStopVisibleBgProfile() 278 onVisible(PARENT_USER_ID), in testVisibleBgProfileBecomesInvisibleWhenParentIsSwitchedOut() 280 onInvisible(PARENT_USER_ID), in testVisibleBgProfileBecomesInvisibleWhenParentIsSwitchedOut() 301 int result = mMediator.assignUserToDisplayOnStart(PROFILE_USER_ID, PARENT_USER_ID, in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsNotStarted() 315 startBackgroundUser(PARENT_USER_ID); in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsStartedOnBg() 317 int result = mMediator.assignUserToDisplayOnStart(PROFILE_USER_ID, PARENT_USER_ID, in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsStartedOnBg() 336 int result = mMediator.assignUserToDisplayOnStart(PROFILE_USER_ID, PARENT_USER_ID, in testStartVisibleBgProfile_onSecondaryDisplay() 356 int result = mMediator.assignUserToDisplayOnStart(PROFILE_USER_ID, PARENT_USER_ID, BG, in testStartBgProfile_onDefaultDisplay_whenParentIsNotStarted() [all …]
|
D | UserVisibilityMediatorSUSDTest.java | 121 onVisible(PARENT_USER_ID), in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsCurrentUser() 123 startForegroundUser(PARENT_USER_ID); in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsCurrentUser() 125 int result = mMediator.assignUserToDisplayOnStart(PROFILE_USER_ID, PARENT_USER_ID, in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsCurrentUser() 134 expectVisibleUsers(PARENT_USER_ID, PROFILE_USER_ID); in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsCurrentUser() 137 expectUserAssignedToDisplay(DEFAULT_DISPLAY, PARENT_USER_ID); in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsCurrentUser()
|
D | UserManagerServiceTest.java | 117 private static final int PARENT_USER_ID = 642; field in UserManagerServiceTest 261 mockCurrentUser(PARENT_USER_ID); in testIsCurrentUserOrRunningProfileOfCurrentUser_startedProfileOfCurrentUser() 271 mockCurrentUser(PARENT_USER_ID); in testIsCurrentUserOrRunningProfileOfCurrentUser_stoppedProfileOfCurrentUser() 963 addUser(PARENT_USER_ID); in addDefaultProfileAndParent() 964 addProfile(PROFILE_USER_ID, PARENT_USER_ID); in addDefaultProfileAndParent()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/devicepolicy/ |
D | OwnerShellDataTest.java | 34 private static final int PARENT_USER_ID = 'M' + 'I' + 6; field in OwnerShellDataTest 94 () -> OwnerShellData.forManagedProfileOwner(USER_ID, PARENT_USER_ID, null)); in testForManagedProfileOwner_noAdmin() 100 () -> OwnerShellData.forManagedProfileOwner(USER_NULL, PARENT_USER_ID, ADMIN)); in testForManagedProfileOwner_invalidUser() 117 OwnerShellData dto = OwnerShellData.forManagedProfileOwner(USER_ID, PARENT_USER_ID, ADMIN); in testForManagedProfileOwner() 121 .isEqualTo(PARENT_USER_ID); in testForManagedProfileOwner()
|
/frameworks/base/core/java/android/app/admin/ |
D | TargetUser.java | 46 public static final int PARENT_USER_ID = -2; field in TargetUser 74 public static final TargetUser PARENT_USER = new TargetUser(PARENT_USER_ID);
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/trust/ |
D | TrustManagerServiceTest.java | 137 private static final int PARENT_USER_ID = 60; field in TrustManagerServiceTest 428 verify(mKeyStoreAuthorization).onDeviceUnlocked(PARENT_USER_ID, null); in testLockDeviceForManagedProfileWithUnifiedChallenge_usesParentBiometricSids() 434 .onDeviceLocked(eq(PARENT_USER_ID), eq(PARENT_BIOMETRIC_SIDS), eq(false)); in testLockDeviceForManagedProfileWithUnifiedChallenge_usesParentBiometricSids() 801 UserInfo parent = new UserInfo(PARENT_USER_ID, "parent", UserInfo.FLAG_FULL); in setupMocksForProfile() 804 when(mUserManager.getUserInfo(PARENT_USER_ID)).thenReturn(parent); in setupMocksForProfile() 807 when(mUserManager.getEnabledProfileIds(PARENT_USER_ID)) in setupMocksForProfile() 818 when(mBiometricManager.getAuthenticatorIds(PARENT_USER_ID)) in setupMocksForProfile()
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbProfileGroupSettingsManager.java | 1598 dump.write("parent_user_id", UsbProfileGroupSettingsManagerProto.PARENT_USER_ID, in dump()
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | DevicePolicyEngine.java | 1173 return TargetUser.PARENT_USER_ID; in getTargetUser()
|
/frameworks/base/core/api/ |
D | test-current.txt | 743 field public static final int PARENT_USER_ID = -2; // 0xfffffffe
|