Home
last modified time | relevance | path

Searched refs:DISPLAY_WIDTH (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/common/ui/domain/interactor/
DConfigurationInteractorTest.kt96 updateDisplay(width = DISPLAY_WIDTH, height = DISPLAY_HEIGHT) in maxBoundsChange_emitsMaxBoundsChange()
98 updateDisplay(width = DISPLAY_WIDTH * 2, height = DISPLAY_HEIGHT * 3) in maxBoundsChange_emitsMaxBoundsChange()
103 Rect(0, 0, DISPLAY_WIDTH, DISPLAY_HEIGHT), in maxBoundsChange_emitsMaxBoundsChange()
104 Rect(0, 0, DISPLAY_WIDTH * 2, DISPLAY_HEIGHT * 3), in maxBoundsChange_emitsMaxBoundsChange()
114 updateDisplay(width = DISPLAY_WIDTH, height = DISPLAY_HEIGHT) in maxBoundsSameOnConfigChange_doesNotEmitMaxBoundsChange()
116 updateDisplay(width = DISPLAY_WIDTH, height = DISPLAY_HEIGHT) in maxBoundsSameOnConfigChange_doesNotEmitMaxBoundsChange()
119 assertThat(values).containsExactly(Rect(0, 0, DISPLAY_WIDTH, DISPLAY_HEIGHT)) in maxBoundsSameOnConfigChange_doesNotEmitMaxBoundsChange()
127 updateDisplay(width = DISPLAY_WIDTH, height = DISPLAY_HEIGHT) in firstMaxBoundsChange_emitsMaxBoundsChange()
130 assertThat(values).containsExactly(Rect(0, 0, DISPLAY_WIDTH, DISPLAY_HEIGHT)) in firstMaxBoundsChange_emitsMaxBoundsChange()
138 updateDisplay(width = DISPLAY_WIDTH, height = DISPLAY_HEIGHT) in maxBoundsChange_emitsNaturalMaxBoundsChange()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/
DWindowLayoutTests.java56 private static final int DISPLAY_WIDTH = 500; field in WindowLayoutTests
63 new Rect(DISPLAY_WIDTH / 4, 0, DISPLAY_WIDTH * 3 / 4, DISPLAY_CUTOUT_HEIGHT);
88 mState.setDisplayFrame(new Rect(0, 0, DISPLAY_WIDTH, DISPLAY_HEIGHT)); in setUp()
90 0, 0, DISPLAY_WIDTH, STATUS_BAR_HEIGHT); in setUp()
92 0, DISPLAY_HEIGHT - NAVIGATION_BAR_HEIGHT, DISPLAY_WIDTH, DISPLAY_HEIGHT); in setUp()
94 mWindowBounds = new Rect(0, 0, DISPLAY_WIDTH, DISPLAY_HEIGHT); in setUp()
96 mRequestedWidth = DISPLAY_WIDTH; in setUp()
121 .setFrame(0, 0, DISPLAY_WIDTH, mDisplayCutoutSafe.top); in addDisplayCutout()
123 .setFrame(mDisplayCutoutSafe.right, 0, DISPLAY_WIDTH, DISPLAY_HEIGHT); in addDisplayCutout()
125 .setFrame(0, mDisplayCutoutSafe.bottom, DISPLAY_WIDTH, DISPLAY_HEIGHT); in addDisplayCutout()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayPolicyTestsBase.java45 static final int DISPLAY_WIDTH = 500; field in DisplayPolicyTestsBase
82 info.logicalWidth = flippedDimensions ? DISPLAY_HEIGHT : DISPLAY_WIDTH; in displayInfoAndCutoutForRotation()
83 info.logicalHeight = flippedDimensions ? DISPLAY_WIDTH : DISPLAY_HEIGHT; in displayInfoAndCutoutForRotation()
89 mDisplayContent.updateBaseDisplayMetrics(DISPLAY_WIDTH, DISPLAY_HEIGHT, in displayInfoAndCutoutForRotation()
99 rectF.set(DISPLAY_WIDTH / 4, 0, DISPLAY_WIDTH * 3 / 4, DISPLAY_CUTOUT_HEIGHT); in displayCutoutForRotation()
103 transformPhysicalToLogicalCoordinates(rotation, DISPLAY_WIDTH, DISPLAY_HEIGHT, m); in displayCutoutForRotation()
DDisplayPolicyLayoutTests.java213 mDisplayContent.mBaseDisplayWidth = DISPLAY_WIDTH; in testFixedRotationInsetsSourceFrame()
223 assertEquals(DISPLAY_WIDTH, frame.width()); in testFixedRotationInsetsSourceFrame()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DLogicalDisplayTest.java57 private static final int DISPLAY_WIDTH = 100; field in LogicalDisplayTest
83 mDisplayDeviceInfo.width = DISPLAY_WIDTH; in setUp()
88 DISPLAY_WIDTH, DISPLAY_HEIGHT, /* refreshRate= */ 60)}; in setUp()
124 assertEquals(DISPLAY_WIDTH, originalDisplayInfo.logicalWidth); in testLetterbox()
145 displayInfo.logicalWidth = DISPLAY_WIDTH; in testLetterbox()
170 assertEquals(DISPLAY_WIDTH, originalDisplayInfo.logicalWidth); in testNoLetterbox_noAnisotropyCorrectionForInternalDisplay()
199 assertEquals(DISPLAY_WIDTH * 2, originalDisplayInfo.logicalWidth); in testNoLetterbox_anisotropyCorrection()
220 displayInfo.logicalWidth = DISPLAY_WIDTH; in testLetterbox_anisotropyCorrectionYDpi()
241 displayInfo.logicalWidth = DISPLAY_WIDTH; in testPillarbox()
249 assertEquals(DISPLAY_WIDTH, updatedDisplayInfo.logicalWidth); in testPillarbox()
[all …]
DHighBrightnessModeControllerTest.java84 private static final int DISPLAY_WIDTH = 900; field in HighBrightnessModeControllerTest
129 mInjectorMock, mHandler, DISPLAY_WIDTH, DISPLAY_HEIGHT, mDisplayToken, in testNoHbmData()
140 mInjectorMock, mHandler, DISPLAY_WIDTH, DISPLAY_HEIGHT, mDisplayToken, in testNoHbmData_Enabled()
348 final int layerWidth = DISPLAY_WIDTH; in testHdrRequires50PercentOfScreen()
377 DISPLAY_WIDTH, DISPLAY_HEIGHT, 0 /*flags*/, 2.0f /*maxDesiredHdrSdrRatio*/); in testHdrRespectsMaxDesiredHdrSdrRatio()
383 DISPLAY_WIDTH, DISPLAY_HEIGHT, 0 /*flags*/, 0.5f /*maxDesiredHdrSdrRatio*/); in testHdrRespectsMaxDesiredHdrSdrRatio()
389 DISPLAY_WIDTH, DISPLAY_HEIGHT, 0 /*flags*/, in testHdrRespectsMaxDesiredHdrSdrRatio()
409 DISPLAY_WIDTH, DISPLAY_HEIGHT, 0 /*flags*/, 2.0f /*maxDesiredHdrSdrRatio*/); in testHdrRespectsChangingDesiredHdrSdrRatio()
417 DISPLAY_WIDTH, DISPLAY_HEIGHT, 0 /*flags*/, in testHdrRespectsChangingDesiredHdrSdrRatio()
438 DISPLAY_WIDTH, DISPLAY_HEIGHT, 0 /*flags*/, 1.0f /*maxDesiredHdrSdrRatio*/); in testHdrTrumpsSunlight()
[all …]
/frameworks/base/apct-tests/perftests/core/src/android/view/
DCutoutSpecificationBenchmark.java40 private static final int DISPLAY_WIDTH = 1080; field in CutoutSpecificationBenchmark
158 oldMethodParsingSpec(DOUBLE_CUTOUT_SPEC, DISPLAY_WIDTH, DISPLAY_HEIGHT, in parseByOldMethodForDoubleCutout()
167 new CutoutSpecification.Parser(DISPLAY_DENSITY, DISPLAY_WIDTH, DISPLAY_HEIGHT) in parseByNewMethodForDoubleCutout()
198 new CutoutSpecification.Parser(DISPLAY_DENSITY, DISPLAY_WIDTH, DISPLAY_HEIGHT) in parseLongEdgeCutout()
220 new CutoutSpecification.Parser(DISPLAY_DENSITY, DISPLAY_WIDTH, DISPLAY_HEIGHT) in parseShortEdgeCutout()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/biometrics/
DUdfpsControllerOverlayTest.kt95 private const val DISPLAY_WIDTH = 1080 in <lambda>() constant
242 val overlayBounds = Rect(0, 0, DISPLAY_WIDTH, DISPLAY_HEIGHT) in <lambda>()
247 DISPLAY_WIDTH, in <lambda>()
267 assertThat(lp.width).isEqualTo(DISPLAY_WIDTH) in <lambda>()
284 assertThat(lp.width).isEqualTo(DISPLAY_WIDTH) in <lambda>()
302 assertThat(lp.height).isEqualTo(DISPLAY_WIDTH) in <lambda>()
319 assertThat(lp.height).isEqualTo(DISPLAY_WIDTH) in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wallpapers/
DImageWallpaperTest.java73 private static final int DISPLAY_WIDTH = 1920; field in ImageWallpaperTest
106 new Rect(0, 0, DISPLAY_WIDTH, DISPLAY_HEIGHT)); in setUp()
136 int bitmapSide = DISPLAY_WIDTH; in testBitmapWallpaper_normal()
DWallpaperLocalColorExtractorTest.java68 private static final int DISPLAY_WIDTH = 1920; field in WallpaperLocalColorExtractorTest
251 DISPLAY_WIDTH, DISPLAY_HEIGHT), in testNewColorExtraction()
287 DISPLAY_WIDTH, DISPLAY_HEIGHT), in testRemoveColors()
322 spyColorExtractor.setDisplayDimensions(DISPLAY_WIDTH, DISPLAY_HEIGHT); in testRecomputeColorExtraction()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/events/
DPrivacyDotViewControllerTest.kt171 .isEqualTo(DISPLAY_WIDTH - CONTENT_AREA_ROTATION_NONE.right) in <lambda>()
204 .isEqualTo(DISPLAY_WIDTH - CONTENT_AREA_ROTATION_UPSIDE_DOWN.right) in <lambda>()
360 private const val DISPLAY_WIDTH = 1234 constant
388 output.x = DISPLAY_WIDTH in Rect()
/frameworks/native/services/inputflinger/tests/
DCursorInputMapper_test.cpp55 constexpr int32_t DISPLAY_WIDTH = 480; variable
68 v.logicalRight = isRotated ? DISPLAY_HEIGHT : DISPLAY_WIDTH; in createPrimaryViewport()
69 v.logicalBottom = isRotated ? DISPLAY_WIDTH : DISPLAY_HEIGHT; in createPrimaryViewport()
70 v.physicalRight = isRotated ? DISPLAY_HEIGHT : DISPLAY_WIDTH; in createPrimaryViewport()
71 v.physicalBottom = isRotated ? DISPLAY_WIDTH : DISPLAY_HEIGHT; in createPrimaryViewport()
72 v.deviceWidth = isRotated ? DISPLAY_HEIGHT : DISPLAY_WIDTH; in createPrimaryViewport()
73 v.deviceHeight = isRotated ? DISPLAY_WIDTH : DISPLAY_HEIGHT; in createPrimaryViewport()
84 v.logicalBottom = DISPLAY_WIDTH; in createSecondaryViewport()
86 v.physicalBottom = DISPLAY_WIDTH; in createSecondaryViewport()
88 v.deviceHeight = DISPLAY_WIDTH; in createSecondaryViewport()
[all …]
DTouchpadInputMapper_test.cpp41 constexpr int32_t DISPLAY_WIDTH = 480; variable
128 mFakePolicy->addDisplayViewport(DISPLAY_ID, DISPLAY_WIDTH, DISPLAY_HEIGHT, ui::ROTATION_0, in TEST_F()
DMultiTouchInputMapper_test.cpp39 static constexpr int32_t DISPLAY_WIDTH = 480; variable
112 mFakePolicy->addDisplayViewport(DISPLAY_ID, DISPLAY_WIDTH, DISPLAY_HEIGHT, ui::ROTATION_0, in SetUp()
DInputReader_test.cpp67 static constexpr int32_t DISPLAY_WIDTH = 480; variable
394 mFakePolicy->addDisplayViewport(DISPLAY_ID, DISPLAY_WIDTH, DISPLAY_HEIGHT, ui::ROTATION_0, in TEST_F()
424 mFakePolicy->addDisplayViewport(DISPLAY_ID, DISPLAY_WIDTH, DISPLAY_HEIGHT, ui::ROTATION_0, in TEST_F()
428 mFakePolicy->addDisplayViewport(DISPLAY_ID, DISPLAY_WIDTH, DISPLAY_HEIGHT, ui::ROTATION_0, in TEST_F()
432 mFakePolicy->addDisplayViewport(virtualDisplayId1, DISPLAY_WIDTH, DISPLAY_HEIGHT, in TEST_F()
436 mFakePolicy->addDisplayViewport(virtualDisplayId2, DISPLAY_WIDTH, DISPLAY_HEIGHT, in TEST_F()
486 mFakePolicy->addDisplayViewport(displayId1, DISPLAY_WIDTH, DISPLAY_HEIGHT, ui::ROTATION_0, in TEST_F()
489 mFakePolicy->addDisplayViewport(displayId2, DISPLAY_WIDTH, DISPLAY_HEIGHT, ui::ROTATION_0, in TEST_F()
529 mFakePolicy->addDisplayViewport(ui::LogicalDisplayId::DEFAULT, DISPLAY_WIDTH, DISPLAY_HEIGHT, in TEST_F()
532 mFakePolicy->addDisplayViewport(nonDefaultDisplayId, DISPLAY_WIDTH, DISPLAY_HEIGHT, in TEST_F()
[all …]
DPointerChoreographer_test.cpp52 constexpr int32_t DISPLAY_WIDTH = 480; variable
82 viewport.logicalRight = DISPLAY_WIDTH; in createViewports()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/onehanded/
DOneHandedDisplayAreaOrganizerTest.java71 static final int DISPLAY_WIDTH = 1000; field in OneHandedDisplayAreaOrganizerTest
134 when(mMockLeash.getWidth()).thenReturn(DISPLAY_WIDTH); in setUp()
/frameworks/native/services/surfaceflinger/tests/unittests/
DLayerHistoryIntegrationTest.cpp991 static constexpr int32_t DISPLAY_WIDTH = 100; member in android::scheduler::__anoneff1d65f0511::SmallAreaDetectionTest
1006 mScheduler->onActiveDisplayAreaChanged(DISPLAY_WIDTH * DISPLAY_HEIGHT); in SmallAreaDetectionTest()