Home
last modified time | relevance | path

Searched refs:logicalWidth (Results 1 – 25 of 79) 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/base/services/tests/displayservicetests/src/com/android/server/display/
DLogicalDisplayTest.java124 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()
278 displayInfo.logicalWidth = DISPLAY_WIDTH; in testPillarbox_anisotropyCorrection()
315 assertEquals(DISPLAY_WIDTH, originalDisplayInfo.logicalWidth); in testNoPillarbox_anisotropyCorrectionYDpi()
342 displayInfo.logicalWidth = DISPLAY_WIDTH; in testGetDisplayPosition()
[all …]
/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/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarContentInsetsProvider.kt197 val width = point.logicalWidth(rotation) in <lambda>()
546 var logicalWidth = actualCutoutRect.logicalWidth(relativeRotation) in getStatusBarContentBounds() variable
547 if (isRtl) logicalWidth += dotWidth in getStatusBarContentBounds()
548 leftMargin = max(logicalWidth, leftMargin) in getStatusBarContentBounds()
550 var logicalWidth = actualCutoutRect.logicalWidth(relativeRotation) in getStatusBarContentBounds() variable
551 if (!isRtl) logicalWidth += dotWidth in getStatusBarContentBounds()
552 rightMargin = max(rightMargin, logicalWidth) in getStatusBarContentBounds()
688 private fun Rect.logicalWidth(@Rotation rot: Int): Int { in Rect() method
713 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/services/tests/wmtests/src/com/android/server/wm/
DDisplayPolicyTests.java374 final int w = info.logicalWidth; in testSwitchDecorInsets()
378 info.logicalWidth, info.logicalHeight).mConfigFrame); in testSwitchDecorInsets()
393 info.logicalWidth, info.logicalHeight).mConfigFrame); in testSwitchDecorInsets()
404 displayPolicy.getDecorInsetsInfo(info.rotation, info.logicalWidth, info.logicalHeight) in testSwitchDecorInsets()
411 info.logicalWidth, info.logicalHeight).mConfigFrame); in testSwitchDecorInsets()
427 di.logicalWidth, di.logicalHeight).mConfigInsets.bottom); in testUpdateDisplayConfigurationByDecor()
437 di.logicalWidth, di.logicalHeight).mConfigInsets.top); in testUpdateDisplayConfigurationByDecor()
442 di.logicalWidth, di.logicalHeight).mConfigInsets.top); in testUpdateDisplayConfigurationByDecor()
446 displayPolicy.getDecorInsetsInfo(Surface.ROTATION_90, di.logicalHeight, di.logicalWidth); in testUpdateDisplayConfigurationByDecor()
475 di.logicalHeight, di.logicalWidth).mConfigInsets.bottom); 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.java107 mInfo.logicalWidth = width; in Builder()
153 Rect boundRight = right != 0 ? new Rect(mInfo.logicalWidth - right, 0, in setCutout()
154 mInfo.logicalWidth, cutoutFillerSize) : null; in setCutout()
/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/core/java/android/view/
DDisplayInfo.java150 public int logicalWidth; field in DisplayInfo
429 && logicalWidth == other.logicalWidth in equals()
489 logicalWidth = other.logicalWidth; in copyFrom()
544 logicalWidth = source.readInt(); in readFromParcel()
616 dest.writeInt(logicalWidth); in writeToParcel()
767 getMetricsWithSize(outMetrics, compatInfo, configuration, logicalWidth, logicalHeight); in getLogicalMetrics()
784 logicalWidth : logicalHeight; in getNaturalWidth()
789 logicalHeight : logicalWidth; in getNaturalHeight()
847 sb.append(logicalWidth); in toString()
958 protoOutputStream.write(LOGICAL_WIDTH, logicalWidth); in dumpDebug()
/frameworks/base/libs/WindowManager/Jetpack/tests/unittest/src/androidx/window/util/
DExtensionHelperTest.java86 displayInfo.logicalWidth = MOCK_DISPLAY_WIDTH; in getMockDisplayInfo()
89 displayInfo.logicalWidth = MOCK_DISPLAY_HEIGHT; in getMockDisplayInfo()
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/util/
DExtensionHelper.java74 isSideRotation ? displayInfo.logicalHeight : displayInfo.logicalWidth; in rotateRectToDisplayRotation()
76 isSideRotation ? displayInfo.logicalWidth : displayInfo.logicalHeight; in rotateRectToDisplayRotation()
/frameworks/base/services/core/java/com/android/server/wm/
DSeamlessRotator.java61 final int pH = flipped ? info.logicalWidth : info.logicalHeight; in SeamlessRotator()
62 final int pW = flipped ? info.logicalHeight : info.logicalWidth; in SeamlessRotator()
DScreenRotationAnimation.java160 final int logicalWidth = displayInfo.logicalWidth; in ScreenRotationAnimation() local
163 logicalWidth > mOriginalWidth == logicalHeight > mOriginalHeight in ScreenRotationAnimation()
164 && (logicalWidth != mOriginalWidth || logicalHeight != mOriginalHeight); in ScreenRotationAnimation()
303 new Rect(0, 0, logicalWidth, logicalHeight), Surface.ROTATION_0); in ScreenRotationAnimation()
/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/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/libs/gui/include/gui/
DDisplayInfo.h35 int32_t logicalWidth = 0; member
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/navigationbar/
DNavigationBarButtonTest.java98 mReader = ImageReader.newInstance(displayInfo.logicalWidth, in createVirtualDisplay()
103 mVirtualDisplay = displayManager.createVirtualDisplay(displayName, displayInfo.logicalWidth, in createVirtualDisplay()
/frameworks/native/services/surfaceflinger/FrontEnd/
DDisplayInfo.h42 debug << "DisplayInfo {displayId=" << info.displayId << " lw=" << info.logicalWidth in getDebugString()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/data/repository/
DDisplayStateRepositoryTest.kt125 info.logicalWidth = 100 in updatesCurrentSize_whenDisplayStateChanges()
135 info.logicalWidth = 100 in updatesCurrentSize_whenDisplayStateChanges()
/frameworks/base/services/core/java/com/android/server/display/
DOverlayDisplayWindow.java244 0 : mDefaultDisplayInfo.logicalWidth; in createWindow()
252 scale = Math.min(scale, (float)mDefaultDisplayInfo.logicalWidth / mWidth); in updateWindowParams()
261 x = Math.max(0, Math.min(x, mDefaultDisplayInfo.logicalWidth - width)); in updateWindowParams()
/frameworks/base/core/java/com/android/internal/policy/
DSystemBarUtils.java72 cutout.getRotated(info.logicalWidth, info.logicalHeight, rotation, targetRot); in getStatusBarHeightForRotation()

1234