/frameworks/base/core/tests/coretests/src/com/android/internal/widget/ |
D | BackgroundFallbackTest.java | 51 private static final int SCREEN_HEIGHT = 2000; field in BackgroundFallbackTest 184 verify(mDrawableMock).setBounds(0, mLastTop, size, SCREEN_HEIGHT); in verifyFallbackLeft() 189 verify(mDrawableMock).setBounds(SCREEN_WIDTH - size, mLastTop, SCREEN_WIDTH, SCREEN_HEIGHT); in verifyFallbackRight() 194 verify(mDrawableMock).setBounds(0, SCREEN_HEIGHT - size, SCREEN_WIDTH, SCREEN_HEIGHT); in verifyFallbackBottom() 212 mNavigationBarView = mockView(0, SCREEN_HEIGHT - NAV_SIZE, SCREEN_WIDTH, in setUpViewHierarchy() 213 SCREEN_HEIGHT, new ColorDrawable(Color.BLACK), VISIBLE, emptyList()); in setUpViewHierarchy() 219 mNavigationBarView = mockView(0, 0, NAV_SIZE, SCREEN_HEIGHT, in setUpViewHierarchy() 227 SCREEN_HEIGHT, new ColorDrawable(Color.BLACK), VISIBLE, emptyList()); in setUpViewHierarchy() 235 SCREEN_HEIGHT - insetTop - insetBottom, null, VISIBLE, emptyList()); in setUpViewHierarchy() 237 SCREEN_HEIGHT - insetTop - insetBottom, null, VISIBLE, asList(mContentMock)); in setUpViewHierarchy() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | KeyguardClockPositionAlgorithmTest.java | 55 private static final int SCREEN_HEIGHT = 2000; field in KeyguardClockPositionAlgorithmTest 79 private float mClockBottom = SCREEN_HEIGHT / 2; 151 mKeyguardStatusHeight = SCREEN_HEIGHT; in clockPositionLargeClockOnAOD() 205 mKeyguardStatusHeight = SCREEN_HEIGHT; in largeClockOnLockScreenIsTransparent() 238 mKeyguardStatusHeight = SCREEN_HEIGHT; in notifPositionWithLargeClockOnAOD() 242 assertThat(mClockPosition.stackScrollerPadding).isEqualTo(SCREEN_HEIGHT); in notifPositionWithLargeClockOnAOD() 431 mKeyguardStatusHeight = SCREEN_HEIGHT; in notifPositionWithLargeClockOnLockScreen() 435 assertThat(mClockPosition.stackScrollerPadding).isEqualTo(SCREEN_HEIGHT); in notifPositionWithLargeClockOnLockScreen() 454 mKeyguardStatusHeight = SCREEN_HEIGHT; in notifPositionWithLargeClockFullDragOnLockScreen() 493 mClockBottom = SCREEN_HEIGHT - 500; in clockPositionMinimizesBurnInMovementToAvoidUdfpsOnAOD() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | AccessibilityWindowManagerWithAccessibilityWindowTest.java | 110 private static final int SCREEN_HEIGHT = 1920; field in AccessibilityWindowManagerWithAccessibilityWindowTest 389 setRegionForMockAccessibilityWindow(window, new Region(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT)); in onWindowsChanged_trustedFocusedNonTouchableWindow_shouldNotHideWindowsBelow() 404 setRegionForMockAccessibilityWindow(window, new Region(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT)); in onWindowsChanged_accessibilityOverlay_shouldNotHideWindowsBelow() 419 new Region(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT)); in onWindowsChanged_shouldReportFocusedWindowEvenIfOccluded() 641 new Region(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT / 2)); in computePartialInteractiveRegionForWindow_wholeVisible_returnWholeRegion() 644 new Region(0, SCREEN_HEIGHT / 2, SCREEN_WIDTH, SCREEN_HEIGHT)); in computePartialInteractiveRegionForWindow_wholeVisible_returnWholeRegion() 656 assertThat(outBounds.getBounds().height(), is(SCREEN_HEIGHT / 2)); in computePartialInteractiveRegionForWindow_wholeVisible_returnWholeRegion() 662 assertThat(outBounds.getBounds().height(), is(SCREEN_HEIGHT / 2)); in computePartialInteractiveRegionForWindow_wholeVisible_returnWholeRegion() 670 new Region(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT / 2)); in computePartialInteractiveRegionForWindow_halfVisible_returnHalfRegion() 673 new Region(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT)); in computePartialInteractiveRegionForWindow_halfVisible_returnHalfRegion() [all …]
|
D | AccessibilityWindowManagerTest.java | 108 private static final int SCREEN_HEIGHT = 1920; field in AccessibilityWindowManagerTest 375 windowInfo.regionInScreen.set(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT); in onWindowsChangedNoForceSend_windowChanged_shouldUpdateWindows() 501 windowInfo.regionInScreen.set(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT / 2); in computePartialInteractiveRegionForWindow_wholeVisible_returnWholeRegion() 503 windowInfo.regionInScreen.set(0, SCREEN_HEIGHT / 2, in computePartialInteractiveRegionForWindow_wholeVisible_returnWholeRegion() 504 SCREEN_WIDTH, SCREEN_HEIGHT); in computePartialInteractiveRegionForWindow_wholeVisible_returnWholeRegion() 514 assertThat(outBounds.getBounds().height(), is(SCREEN_HEIGHT / 2)); in computePartialInteractiveRegionForWindow_wholeVisible_returnWholeRegion() 520 assertThat(outBounds.getBounds().height(), is(SCREEN_HEIGHT / 2)); in computePartialInteractiveRegionForWindow_wholeVisible_returnWholeRegion() 527 windowInfo.regionInScreen.set(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT / 2); in computePartialInteractiveRegionForWindow_halfVisible_returnHalfRegion() 537 assertThat(outBounds.getBounds().height(), is(SCREEN_HEIGHT / 2)); in computePartialInteractiveRegionForWindow_halfVisible_returnHalfRegion() 556 region.op(0, SCREEN_HEIGHT - 200, SCREEN_WIDTH, SCREEN_HEIGHT, Region.Op.UNION); in computePartialInteractiveRegionForWindow_partialVisible_returnVisibleRegion() [all …]
|
/frameworks/base/libs/WindowManager/Shell/multivalentTests/src/com/android/wm/shell/bubbles/bar/ |
D | BubbleExpandedViewPinControllerTest.kt | 56 const val SCREEN_HEIGHT = 1000 in <lambda>() constant 83 windowBounds = Rect(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT), in <lambda>() 92 SCREEN_HEIGHT - deviceConfig.insets.bottom - BUBBLE_BAR_HEIGHT in <lambda>() 234 controller.onDragUpdate(SCREEN_WIDTH / 2f - 50, SCREEN_HEIGHT - 100f) in <lambda>() 252 controller.onDragUpdate(SCREEN_WIDTH / 2f + 50, SCREEN_HEIGHT - 100f) in <lambda>()
|
/frameworks/base/core/tests/coretests/src/android/graphics/ |
D | GraphicsPerformanceTests.java | 71 private static final int SCREEN_HEIGHT = 480; field in GraphicsPerformanceTests.GraphicsTestBase 89 mDestBitmap = Bitmap.createBitmap(SCREEN_WIDTH, SCREEN_HEIGHT, in setUp()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | LetterboxUiControllerTest.java | 126 private static final int SCREEN_HEIGHT = 100; field in LetterboxUiControllerTest 128 SCREEN_HEIGHT - TASKBAR_COLLAPSED_HEIGHT, SCREEN_WIDTH, SCREEN_HEIGHT); 130 SCREEN_HEIGHT - TASKBAR_EXPANDED_HEIGHT, SCREEN_WIDTH, SCREEN_HEIGHT); 549 mLetterboxedPortraitTaskBounds.set(SCREEN_WIDTH / 4, SCREEN_HEIGHT / 4, in testGetCropBoundsIfNeeded_noCrop() 550 SCREEN_WIDTH - SCREEN_WIDTH / 4, SCREEN_HEIGHT - SCREEN_HEIGHT / 4); in testGetCropBoundsIfNeeded_noCrop() 572 SCREEN_HEIGHT); in testGetCropBoundsIfNeeded_appliesCrop() 599 SCREEN_HEIGHT); in testGetCropBoundsIfNeeded_appliesCropWithSizeCompatScaling()
|