/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/ |
D | UserVisibilityMediatorVisibleBackgroundUserTestCase.java | 61 expectUserIsNotVisibleOnDisplay(USER_ID, SECONDARY_DISPLAY_ID); in testStartFgUser_onDefaultDisplay() 67 expectUserAssignedToDisplay(SECONDARY_DISPLAY_ID, USER_ID); in testStartFgUser_onDefaultDisplay() 71 assertUserCanBeAssignedExtraDisplay(USER_ID, SECONDARY_DISPLAY_ID); in testStartFgUser_onDefaultDisplay() 95 expectUserIsNotVisibleOnDisplay(currentUserId, SECONDARY_DISPLAY_ID); in testSwitchFgUser_onDefaultDisplay() 101 expectUserAssignedToDisplay(SECONDARY_DISPLAY_ID, currentUserId); in testSwitchFgUser_onDefaultDisplay() 106 assertUserCanBeAssignedExtraDisplay(USER_ID, SECONDARY_DISPLAY_ID); in testSwitchFgUser_onDefaultDisplay() 121 assertInvisibleUserCannotBeAssignedExtraDisplay(USER_ID, SECONDARY_DISPLAY_ID); in testStartFgUser_onInvalidDisplay() 138 assertInvisibleUserCannotBeAssignedExtraDisplay(USER_ID, SECONDARY_DISPLAY_ID); in testStartVisibleBgUser_onInvalidDisplay() 149 SECONDARY_DISPLAY_ID, false); in testStartVisibleBgUser_onSecondaryDisplay_displayAvailable() 151 expectUserCannotBeUnassignedFromDisplay(USER_ID, SECONDARY_DISPLAY_ID); in testStartVisibleBgUser_onSecondaryDisplay_displayAvailable() [all …]
|
D | UserVisibilityMediatorSUSDTest.java | 48 assertInvisibleUserCannotBeAssignedExtraDisplay(userId, SECONDARY_DISPLAY_ID); in testStartVisibleBgUser_onDefaultDisplay() 65 expectUserIsVisibleOnDisplay(USER_ID, SECONDARY_DISPLAY_ID); in testStartFgUser_onDefaultDisplay() 71 expectUserAssignedToDisplay(SECONDARY_DISPLAY_ID, USER_ID); in testStartFgUser_onDefaultDisplay() 97 expectUserIsVisibleOnDisplay(currentUserId, SECONDARY_DISPLAY_ID); in testSwitchFgUser_onDefaultDisplay() 103 expectUserAssignedToDisplay(SECONDARY_DISPLAY_ID, currentUserId); in testSwitchFgUser_onDefaultDisplay() 133 expectUserIsVisibleOnDisplay(PROFILE_USER_ID, SECONDARY_DISPLAY_ID); in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsCurrentUser() 147 SECONDARY_DISPLAY_ID, false); in testStartVisibleBgUser_onSecondaryDisplay() 153 expectInitialCurrentUserAssignedToDisplay(SECONDARY_DISPLAY_ID); in testStartVisibleBgUser_onSecondaryDisplay() 173 expectUserIsVisibleOnDisplay(PROFILE_USER_ID, SECONDARY_DISPLAY_ID); in testStartVisibleBgProfile_communalProfile()
|
D | UserVisibilityMediatorTestCase.java | 103 protected static final int SECONDARY_DISPLAY_ID = 42; field in UserVisibilityMediatorTestCase 172 SECONDARY_DISPLAY_ID, false); in testStartFgUser_onSecondaryDisplay() 194 assertInvisibleUserCannotBeAssignedExtraDisplay(USER_ID, SECONDARY_DISPLAY_ID); in testStartBgUser_onDefaultDisplay() 220 SECONDARY_DISPLAY_ID, false); in testStartBgUser_onSecondaryDisplay() 226 assertInvisibleUserCannotBeAssignedExtraDisplay(USER_ID, SECONDARY_DISPLAY_ID); in testStartBgUser_onSecondaryDisplay() 241 SECONDARY_DISPLAY_ID, false); in testStartBgSystemUser_onSecondaryDisplay() 247 expectUserAssignedToDisplay(SECONDARY_DISPLAY_ID, USER_ID); in testStartBgSystemUser_onSecondaryDisplay() 249 assertUserCannotBeAssignedExtraDisplay(USER_SYSTEM, SECONDARY_DISPLAY_ID); in testStartBgSystemUser_onSecondaryDisplay() 291 assertUserCannotBeAssignedExtraDisplay(PROFILE_USER_ID, SECONDARY_DISPLAY_ID); in testVisibleBgProfileBecomesInvisibleWhenParentIsSwitchedOut() 326 assertInvisibleUserCannotBeAssignedExtraDisplay(PROFILE_USER_ID, SECONDARY_DISPLAY_ID); in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsStartedOnBg() [all …]
|
D | UserVisibilityMediatorMUMDTest.java | 39 assertInvisibleUserCannotBeAssignedExtraDisplay(userId, SECONDARY_DISPLAY_ID); in testStartVisibleBgUser_onDefaultDisplay()
|
D | UserVisibilityMediatorMUPANDTest.java | 147 assertInvisibleUserCannotBeAssignedExtraDisplay(PROFILE_USER_ID, SECONDARY_DISPLAY_ID); in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsStartedVisibleOnBgOnSecondaryDisplay()
|
/frameworks/base/core/tests/coretests/src/android/app/ |
D | UiAutomationTest.java | 40 private static final int SECONDARY_DISPLAY_ID = 42; field in UiAutomationTest 79 mockContextDisplay(SECONDARY_DISPLAY_ID); in testGetDisplay_contextWithSecondaryDisplayId() 101 mockContextDisplay(SECONDARY_DISPLAY_ID); in testGetDisplay_visibleBgUsers() 108 .isEqualTo(SECONDARY_DISPLAY_ID); in testGetDisplay_visibleBgUsers()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | AccessibilityWindowManagerTest.java | 102 private static final int SECONDARY_DISPLAY_ID = Display.DEFAULT_DISPLAY + 1; field in AccessibilityWindowManagerTest 133 Display.DEFAULT_DISPLAY, SECONDARY_DISPLAY_ID)); 229 startTrackingPerDisplay(SECONDARY_DISPLAY_ID); in stopTrackingWindows_onNonTopFocusedDisplay_shouldNotResetTopFocusWindow() 230 assertTrue(mA11yWindowManager.isTrackingWindowsLocked(SECONDARY_DISPLAY_ID)); in stopTrackingWindows_onNonTopFocusedDisplay_shouldNotResetTopFocusWindow() 232 mA11yWindowManager.stopTrackingWindows(SECONDARY_DISPLAY_ID); in stopTrackingWindows_onNonTopFocusedDisplay_shouldNotResetTopFocusWindow() 266 startTrackingPerDisplay(SECONDARY_DISPLAY_ID); in onWindowsChanged_focusChangeOnNonTopFocusedDisplay_perDisplayFocusOn_notChangeWindow() 273 changeFocusedWindowOnDisplayPerDisplayFocusConfig(SECONDARY_DISPLAY_ID, in onWindowsChanged_focusChangeOnNonTopFocusedDisplay_perDisplayFocusOn_notChangeWindow() 276 onWindowsForAccessibilityChanged(SECONDARY_DISPLAY_ID, SEND_ON_WINDOW_CHANGES); in onWindowsChanged_focusChangeOnNonTopFocusedDisplay_perDisplayFocusOn_notChangeWindow() 294 startTrackingPerDisplay(SECONDARY_DISPLAY_ID); in onWindowChange_focusChangeToNonTopFocusedDisplay_perDisplayFocusOff_shouldChangeWindow() 301 changeFocusedWindowOnDisplayPerDisplayFocusConfig(SECONDARY_DISPLAY_ID, in onWindowChange_focusChangeToNonTopFocusedDisplay_perDisplayFocusOff_shouldChangeWindow() [all …]
|
D | AccessibilityWindowManagerWithAccessibilityWindowTest.java | 104 private static final int SECONDARY_DISPLAY_ID = Display.DEFAULT_DISPLAY + 1; field in AccessibilityWindowManagerWithAccessibilityWindowTest 134 Display.DEFAULT_DISPLAY, SECONDARY_DISPLAY_ID)); 245 startTrackingPerDisplay(SECONDARY_DISPLAY_ID); in stopTrackingWindows_onNonTopFocusedDisplay_shouldNotResetTopFocusWindow() 246 assertTrue(mA11yWindowManager.isTrackingWindowsLocked(SECONDARY_DISPLAY_ID)); in stopTrackingWindows_onNonTopFocusedDisplay_shouldNotResetTopFocusWindow() 248 mA11yWindowManager.stopTrackingWindows(SECONDARY_DISPLAY_ID); in stopTrackingWindows_onNonTopFocusedDisplay_shouldNotResetTopFocusWindow() 281 startTrackingPerDisplay(SECONDARY_DISPLAY_ID); in onWindowsChanged_focusChangeOnNonTopFocusedDisplay_perDisplayFocusOn_notChangeWindow() 288 changeFocusedWindowOnDisplayPerDisplayFocusConfig(SECONDARY_DISPLAY_ID, in onWindowsChanged_focusChangeOnNonTopFocusedDisplay_perDisplayFocusOn_notChangeWindow() 291 onAccessibilityWindowsChanged(SECONDARY_DISPLAY_ID, SEND_ON_WINDOW_CHANGES); in onWindowsChanged_focusChangeOnNonTopFocusedDisplay_perDisplayFocusOn_notChangeWindow() 309 startTrackingPerDisplay(SECONDARY_DISPLAY_ID); in onWindowChange_focusChangeToNonTopFocusedDisplay_perDisplayFocusOff_shouldChangeWindow() 316 changeFocusedWindowOnDisplayPerDisplayFocusConfig(SECONDARY_DISPLAY_ID, in onWindowChange_focusChangeToNonTopFocusedDisplay_perDisplayFocusOff_shouldChangeWindow() [all …]
|
D | AbstractAccessibilityServiceConnectionTest.java | 133 private static final int SECONDARY_DISPLAY_ID = Display.DEFAULT_DISPLAY + 1; field in AbstractAccessibilityServiceConnectionTest 164 Display.DEFAULT_DISPLAY, SECONDARY_DISPLAY_ID)); 213 SECONDARY_DISPLAY_ID); in setup() 222 WINDOWID_ONSECONDDISPLAY)).thenReturn(SECONDARY_DISPLAY_ID); in setup() 223 when(mMockA11yWindowManager.getWindowListLocked(SECONDARY_DISPLAY_ID)) in setup() 353 assertThat(allWindows.get(SECONDARY_DISPLAY_ID), is(mA11yWindowInfosOnSecondDisplay)); in getWindows() 354 assertEquals(1, allWindows.get(SECONDARY_DISPLAY_ID).size()); in getWindows()
|
/frameworks/base/core/tests/coretests/src/android/window/ |
D | SystemPerformanceHinterTests.java | 67 private static final int SECONDARY_DISPLAY_ID = DEFAULT_DISPLAY_ID + 1; field in SystemPerformanceHinterTests 92 mRootProvider.put(SECONDARY_DISPLAY_ID, mSecondaryDisplayRoot); in setUpOnce() 129 mHinter.startSession(HINT_SF_FRAME_RATE, SECONDARY_DISPLAY_ID, TEST_REASON); in testGetSecondaryDisplayRoot() 130 assertEquals(SECONDARY_DISPLAY_ID, mRootProvider.lastRequestedDisplayId); in testGetSecondaryDisplayRoot() 369 mHinter.startSession(HINT_ALL, SECONDARY_DISPLAY_ID, TEST_REASON); in testOverlappingHintsOnDifferentDisplays()
|
/frameworks/base/core/tests/coretests/src/android/content/res/ |
D | ResourcesManagerTest.java | 53 private static final int SECONDARY_DISPLAY_ID = 1; field in ResourcesManagerTest 94 mDisplayMetricsMap.put(SECONDARY_DISPLAY_ID, secondaryDisplayMetrics); in setUp() 344 mResourcesManager.updateResourcesForActivity(activity, null, SECONDARY_DISPLAY_ID); in testChangingActivityDisplayDoesntOverrideDisplayRequestedByResources() 346 assertEquals(mDisplayMetricsMap.get(SECONDARY_DISPLAY_ID).widthPixels, in testChangingActivityDisplayDoesntOverrideDisplayRequestedByResources() 348 assertEquals(mDisplayMetricsMap.get(SECONDARY_DISPLAY_ID).heightPixels, in testChangingActivityDisplayDoesntOverrideDisplayRequestedByResources()
|
/frameworks/native/services/inputflinger/tests/ |
D | CursorInputMapper_test.cpp | 54 constexpr ui::LogicalDisplayId SECONDARY_DISPLAY_ID = ui::LogicalDisplayId{DISPLAY_ID.val() + 1}; 81 v.displayId = SECONDARY_DISPLAY_ID; in createSecondaryViewport() 660 WithDisplayId(SECONDARY_DISPLAY_ID), WithCoords(0.0f, 0.0f))))); in TEST_F() 684 WithDisplayId(SECONDARY_DISPLAY_ID), WithCoords(0.0f, 0.0f))))); in TEST_F() 899 mFakePolicy->setDefaultPointerDisplayId(SECONDARY_DISPLAY_ID); in TEST_F()
|
D | InputReader_test.cpp | 65 static constexpr ui::LogicalDisplayId SECONDARY_DISPLAY_ID = 1066 mFakePolicy->addDisplayViewport(SECONDARY_DISPLAY_ID, DISPLAY_WIDTH, DISPLAY_HEIGHT, in TEST_F() 1083 ASSERT_TRUE(mReader->canDispatchToDisplay(deviceId, SECONDARY_DISPLAY_ID)); in TEST_F() 1088 ASSERT_FALSE(mReader->canDispatchToDisplay(deviceId, SECONDARY_DISPLAY_ID)); in TEST_F() 2908 mFakePolicy->addDisplayViewport(SECONDARY_DISPLAY_ID, DISPLAY_WIDTH, DISPLAY_HEIGHT, in TEST_F() 2945 mFakePolicy->addDisplayViewport(SECONDARY_DISPLAY_ID, DISPLAY_WIDTH, DISPLAY_HEIGHT, in TEST_F() 2973 mFakePolicy->addDisplayViewport(SECONDARY_DISPLAY_ID, DISPLAY_WIDTH, DISPLAY_HEIGHT, in TEST_F() 2981 ASSERT_EQ(mDevice->getDeviceInfo().getAssociatedDisplayId(), SECONDARY_DISPLAY_ID); in TEST_F() 4419 setDisplayInfoAndReconfigure(SECONDARY_DISPLAY_ID, DISPLAY_WIDTH, DISPLAY_HEIGHT, in prepareSecondaryDisplay() 9083 ASSERT_EQ(SECONDARY_DISPLAY_ID, args.displayId); in TEST_F() [all …]
|
/frameworks/base/core/tests/coretests/src/android/view/accessibility/ |
D | AccessibilityCacheTest.java | 72 private static final int SECONDARY_DISPLAY_ID = Display.DEFAULT_DISPLAY + 1; field in AccessibilityCacheTest 249 putWindowWithWindowIdAndDisplayIdInCache(WINDOW_ID_3, SECONDARY_DISPLAY_ID, in setWindowsAtFirstDisplay_thenAddWindowAtSecondDisplay_returnWindowLayerOrderUnchange() 296 allWindows.put(SECONDARY_DISPLAY_ID, windowsIn2); in setWindowsAtTwoDisplays_thenGetWindows_returnsInDecreasingLayerOrder() 310 windowsOut2 = getWindowsByDisplay(SECONDARY_DISPLAY_ID); in setWindowsAtTwoDisplays_thenGetWindows_returnsInDecreasingLayerOrder()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | NotificationManagerServiceTest.java | 367 private static final int SECONDARY_DISPLAY_ID = 42; field in NotificationManagerServiceTest 8472 mockIsUserVisible(SECONDARY_DISPLAY_ID, true); in testTextToastsCallStatusBar_nonUiContext_secondaryDisplay() 8474 enqueueTextToast(TEST_PACKAGE, "Text", /* isUiContext= */ false, SECONDARY_DISPLAY_ID); in testTextToastsCallStatusBar_nonUiContext_secondaryDisplay() 8476 verifyToastShownForTestPackage("Text", SECONDARY_DISPLAY_ID); in testTextToastsCallStatusBar_nonUiContext_secondaryDisplay() 8483 mockDisplayAssignedToUser(SECONDARY_DISPLAY_ID); in testTextToastsCallStatusBar_visibleBgUsers_uiContext_defaultDisplay() 8496 mockIsUserVisible(SECONDARY_DISPLAY_ID, true); in testTextToastsCallStatusBar_visibleBgUsers_uiContext_secondaryDisplay() 8500 enqueueTextToast(TEST_PACKAGE, "Text", /* isUiContext= */ true, SECONDARY_DISPLAY_ID); in testTextToastsCallStatusBar_visibleBgUsers_uiContext_secondaryDisplay() 8502 verifyToastShownForTestPackage("Text", SECONDARY_DISPLAY_ID); in testTextToastsCallStatusBar_visibleBgUsers_uiContext_secondaryDisplay() 8509 mockIsUserVisible(SECONDARY_DISPLAY_ID, true); in testTextToastsCallStatusBar_visibleBgUsers_nonUiContext_defaultDisplay() 8510 mockDisplayAssignedToUser(SECONDARY_DISPLAY_ID); in testTextToastsCallStatusBar_visibleBgUsers_nonUiContext_defaultDisplay() [all …]
|