Home
last modified time | relevance | path

Searched refs:logicalWidth (Results 1 – 25 of 86) sorted by relevance

1234

/frameworks/native/libs/gui/tests/
DDisplayInfo_test.cpp32 info.logicalWidth = 99; in TEST()
43 ASSERT_EQ(info.logicalWidth, info2.logicalWidth); in TEST()
/frameworks/native/libs/gui/
DDisplayInfo.cpp43 SAFE_PARCEL(parcel->readInt32, &logicalWidth); in readFromParcel()
65 SAFE_PARCEL(parcel->writeInt32, logicalWidth); in writeToParcel()
83 StringAppendF(&out, INDENT "Width=%" PRId32 ", Height=%" PRId32 "\n", logicalWidth, in dump()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DLogicalDisplayTest.java127 assertEquals(DISPLAY_WIDTH, originalDisplayInfo.logicalWidth); in testLetterbox()
148 displayInfo.logicalWidth = DISPLAY_WIDTH; in testLetterbox()
174 assertEquals(DISPLAY_WIDTH, originalDisplayInfo.logicalWidth); in testNoLetterbox_noAnisotropyCorrectionForInternalDisplay()
204 assertEquals(DISPLAY_WIDTH * 2, originalDisplayInfo.logicalWidth); in testNoLetterbox_anisotropyCorrection()
226 displayInfo.logicalWidth = DISPLAY_WIDTH; in testLetterbox_anisotropyCorrectionYDpi()
247 displayInfo.logicalWidth = DISPLAY_WIDTH; in testPillarbox()
255 assertEquals(DISPLAY_WIDTH, updatedDisplayInfo.logicalWidth); in testPillarbox()
285 displayInfo.logicalWidth = DISPLAY_WIDTH; in testPillarbox_anisotropyCorrection()
323 assertEquals(DISPLAY_WIDTH, originalDisplayInfo.logicalWidth); in testNoPillarbox_anisotropyCorrectionYDpi()
367 displayInfo.logicalWidth = DISPLAY_WIDTH; in testGetDisplayPosition()
[all …]
DDisplayTopologyCoordinatorTest.kt61 info.logicalWidth = i * 300 in <lambda>()
89 val widthDp = pxToDp(displayInfo.logicalWidth.toFloat(), displayInfo.logicalDensityDpi) in <lambda>()
125 pxToDp(displayInfos[0].logicalWidth.toFloat(), displayInfos[0].logicalDensityDpi) in <lambda>()
143 pxToDp(displayInfos[0].logicalWidth.toFloat(), displayInfos[0].logicalDensityDpi) in <lambda>()
228 displayInfos[0].logicalWidth += 100 in <lambda>()
233 pxToDp(displayInfos[0].logicalWidth.toFloat(), displayInfos[0].logicalDensityDpi) in <lambda>()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayPolicyTests.java380 final int w = info.logicalWidth; in testSwitchDecorInsets()
384 info.logicalWidth, info.logicalHeight).mConfigFrame); in testSwitchDecorInsets()
399 info.logicalWidth, info.logicalHeight).mConfigFrame); in testSwitchDecorInsets()
422 displayPolicy.getDecorInsetsInfo(info.rotation, info.logicalWidth, info.logicalHeight) in testSwitchDecorInsets()
429 info.logicalWidth, info.logicalHeight).mConfigFrame); in testSwitchDecorInsets()
443 di.logicalHeight, di.logicalWidth).mOverrideConfigInsets.bottom); in testUpdateDisplayConfigurationByDecor()
449 di.logicalHeight, di.logicalWidth).mOverrideConfigInsets.bottom); in testUpdateDisplayConfigurationByDecor()
455 di.logicalWidth, di.logicalHeight).mConfigInsets.bottom); in testUpdateDisplayConfigurationByDecor()
465 di.logicalWidth, di.logicalHeight).mConfigInsets.top); in testUpdateDisplayConfigurationByDecor()
470 di.logicalWidth, di.logicalHeight).mConfigInsets.top); in testUpdateDisplayConfigurationByDecor()
[all …]
DDisplayPolicyInsetsTests.java167 di.rotation, di.logicalWidth, di.logicalHeight); in verifyConsistency()
177 equalTo(di.logicalWidth - insets.left - insets.right)); in verifyConsistency()
184 di.rotation, di.logicalWidth, di.logicalHeight).mConfigInsets; in getStableInsets()
189 di.rotation, di.logicalWidth, di.logicalHeight).mNonDecorInsets; in getNonDecorInsets()
DPossibleDisplayInfoMapperTests.java161 outDisplayInfo.logicalWidth = logicalBounds.width(); in initializeDisplayInfo()
169 assertThat(displayInfo.logicalWidth).isEqualTo(expectedDisplayInfo.logicalWidth); in assertPossibleDisplayInfoEntries()
DTestDisplayContent.java114 mInfo.logicalWidth = width; in Builder()
160 Rect boundRight = right != 0 ? new Rect(mInfo.logicalWidth - right, 0, in setCutout()
161 mInfo.logicalWidth, cutoutFillerSize) : null; in setCutout()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/layout/
DStatusBarContentInsetsProvider.kt280 val width = point.logicalWidth(rotation) in getStatusBarContentInsetsForRotation()
614 var logicalWidth = actualCutoutRect.logicalWidth(relativeRotation) in getStatusBarContentBounds() variable
615 if (isRtl) logicalWidth += dotWidth in getStatusBarContentBounds()
616 leftMargin = max(logicalWidth, leftMargin) in getStatusBarContentBounds()
618 var logicalWidth = actualCutoutRect.logicalWidth(relativeRotation) in getStatusBarContentBounds() variable
619 if (!isRtl) logicalWidth += dotWidth in getStatusBarContentBounds()
620 rightMargin = max(rightMargin, logicalWidth) in getStatusBarContentBounds()
756 private fun Rect.logicalWidth(@Rotation rot: Int): Int { in Rect() method
781 private fun Point.logicalWidth(@Rotation rot: Int): Int { in Point() method
/frameworks/base/libs/hwui/renderthread/
DHardwareBufferRenderParams.h39 HardwareBufferRenderParams(int32_t logicalWidth, int32_t logicalHeight, in HardwareBufferRenderParams() argument
42 : mLogicalWidth(logicalWidth) in HardwareBufferRenderParams()
/frameworks/base/core/java/android/window/
DWindowInfosListener.java97 private DisplayInfo(int displayId, int logicalWidth, int logicalHeight, Matrix transform) { in DisplayInfo() argument
99 mLogicalSize = new Size(logicalWidth, logicalHeight); in DisplayInfo()
/frameworks/base/services/core/java/com/android/server/wm/utils/
DDisplayInfoOverrides.java40 out.logicalWidth = source.logicalWidth;
DCoordinateTransforms.java107 final int h = flipped ? info.logicalWidth : info.logicalHeight; in transformToRotation()
108 final int w = flipped ? info.logicalHeight : info.logicalWidth; in transformToRotation()
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/common/
DExtensionHelper.java63 isSideRotation ? displayInfo.logicalHeight : displayInfo.logicalWidth; in rotateRectToDisplayRotation()
65 isSideRotation ? displayInfo.logicalWidth : displayInfo.logicalHeight; in rotateRectToDisplayRotation()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/wallpaper/
DWallpaperCropperTest.java734 displayInfo.logicalWidth = 2560; in isWallpaperCompatibleForDisplay_defaultDisplay_returnTrue()
736 setUpWithDisplays(List.of(new Point(displayInfo.logicalWidth, displayInfo.logicalHeight))); in isWallpaperCompatibleForDisplay_defaultDisplay_returnTrue()
751 displayInfo.logicalWidth = 2560; in isWallpaperCompatibleForDisplay_stockWallpaper_returnTrue()
753 setUpWithDisplays(List.of(new Point(displayInfo.logicalWidth, displayInfo.logicalHeight))); in isWallpaperCompatibleForDisplay_stockWallpaper_returnTrue()
769 displayInfo.logicalWidth = 2560; in isWallpaperCompatibleForDisplay_wallpaperSizeLargerThanDisplayAndMeetAspectRatio_returnTrue()
771 setUpWithDisplays(List.of(new Point(displayInfo.logicalWidth, displayInfo.logicalHeight))); in isWallpaperCompatibleForDisplay_wallpaperSizeLargerThanDisplayAndMeetAspectRatio_returnTrue()
787 displayInfo.logicalWidth = 2560; in isWallpaperCompatibleForDisplay_wallpaperSizeSmallerThanDisplayButBeyondThresholdAndMeetAspectRatio_returnTrue()
789 setUpWithDisplays(List.of(new Point(displayInfo.logicalWidth, displayInfo.logicalHeight))); in isWallpaperCompatibleForDisplay_wallpaperSizeSmallerThanDisplayButBeyondThresholdAndMeetAspectRatio_returnTrue()
805 displayInfo.logicalWidth = 2560; in isWallpaperCompatibleForDisplay_wallpaperSizeSmallerThanDisplayButAboveThresholdAndMeetAspectRatio_returnFalse()
807 setUpWithDisplays(List.of(new Point(displayInfo.logicalWidth, displayInfo.logicalHeight))); in isWallpaperCompatibleForDisplay_wallpaperSizeSmallerThanDisplayButAboveThresholdAndMeetAspectRatio_returnFalse()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DDeferredDisplayUpdater.java144 displayInfo.logicalWidth, displayInfo.logicalHeight); in updateDisplayInfo()
156 displayInfo.logicalWidth, displayInfo.logicalHeight); in updateDisplayInfo()
164 displayInfo.logicalWidth, displayInfo.logicalHeight); in updateDisplayInfo()
169 displayInfo.logicalWidth, displayInfo.logicalHeight); in updateDisplayInfo()
449 || first.logicalWidth != second.logicalWidth in calculateDisplayInfoDiff()
DSeamlessRotator.java61 final int pH = flipped ? info.logicalWidth : info.logicalHeight; in SeamlessRotator()
62 final int pW = flipped ? info.logicalHeight : info.logicalWidth; in SeamlessRotator()
/frameworks/base/libs/WindowManager/Jetpack/tests/unittest/src/androidx/window/common/
DExtensionHelperTest.java86 displayInfo.logicalWidth = MOCK_DISPLAY_WIDTH; in getMockDisplayInfo()
89 displayInfo.logicalWidth = MOCK_DISPLAY_HEIGHT; in getMockDisplayInfo()
/frameworks/base/core/java/android/view/
DDisplayInfo.java152 public int logicalWidth; field in DisplayInfo
479 && logicalWidth == other.logicalWidth in equals()
553 logicalWidth = other.logicalWidth; in copyFrom()
615 logicalWidth = source.readInt(); in readFromParcel()
698 dest.writeInt(logicalWidth); in writeToParcel()
871 getMetricsWithSize(outMetrics, compatInfo, configuration, logicalWidth, logicalHeight); in getLogicalMetrics()
888 logicalWidth : logicalHeight; in getNaturalWidth()
893 logicalHeight : logicalWidth; in getNaturalHeight()
951 sb.append(logicalWidth); in toString()
1074 protoOutputStream.write(LOGICAL_WIDTH, logicalWidth); in dumpDebug()
/frameworks/native/services/surfaceflinger/tests/unittests/
DTransactionProtoParserTest.cpp110 d1.info.logicalWidth = 43; in TEST()
131 EXPECT_EQ(d1.info.logicalWidth, d2.info.logicalWidth); in TEST()
/frameworks/native/libs/gui/include/gui/
DDisplayInfo.h35 int32_t logicalWidth = 0; member
/frameworks/base/core/java/com/android/internal/jank/
DDisplayResolutionTracker.java124 int smaller = Math.min(info.logicalWidth, info.logicalHeight); in getResolution()
125 int larger = Math.max(info.logicalWidth, info.logicalHeight); in getResolution()
/frameworks/native/services/surfaceflinger/FrontEnd/
DDisplayInfo.h42 debug << "DisplayInfo {displayId=" << info.displayId << " lw=" << info.logicalWidth in getDebugString()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/biometrics/data/repository/
DDisplayStateRepositoryTest.kt123 info.logicalWidth = 100 in updatesCurrentSize_whenDisplayStateChanges()
133 info.logicalWidth = 100 in updatesCurrentSize_whenDisplayStateChanges()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/navigationbar/views/
DNavigationBarButtonTest.java99 mReader = ImageReader.newInstance(displayInfo.logicalWidth, in createVirtualDisplay()
104 mVirtualDisplay = displayManager.createVirtualDisplay(displayName, displayInfo.logicalWidth, in createVirtualDisplay()

1234