Home
last modified time | relevance | path

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

12

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DWindowFrameTests.java176 final int logicalWidth = displayInfo.logicalWidth; in testLayoutNonfullscreenTask() local
180 logicalWidth / 4, logicalHeight / 4, logicalWidth / 4 * 3, logicalHeight / 4 * 3); in testLayoutNonfullscreenTask()
191 final Rect pf = new Rect(0, 0, logicalWidth, logicalHeight); in testLayoutNonfullscreenTask()
201 pf.set(0, 0, logicalWidth, logicalHeight); in testLayoutNonfullscreenTask()
203 final int cfRight = logicalWidth / 2; in testLayoutNonfullscreenTask()
218 final int logicalWidth = displayInfo.logicalWidth; in testLayoutLetterboxedWindow() local
221 final int taskLeft = logicalWidth / 5; in testLayoutLetterboxedWindow()
223 final int taskRight = logicalWidth / 4 * 3; in testLayoutLetterboxedWindow()
233 final Rect pf = new Rect(0, 0, logicalWidth, logicalHeight); in testLayoutLetterboxedWindow()
242 final int xInset = logicalWidth / 10; in testLayoutLetterboxedWindow()
[all …]
DDisplayPolicyInsetsTests.java163 equalTo(di.logicalWidth - insets.left - insets.right)); in verifyConsistency()
170 mDisplayPolicy.getStableInsetsLw(di.rotation, di.logicalWidth, di.logicalHeight, in getStableInsetsLw()
177 mDisplayPolicy.getNonDecorInsetsLw(di.rotation, di.logicalWidth, di.logicalHeight, in getNonDecorInsetsLw()
183 return mDisplayPolicy.getNonDecorDisplayWidth(di.logicalWidth, di.logicalHeight, in getNonDecorDisplayWidth()
188 return mDisplayPolicy.getNonDecorDisplayHeight(di.logicalWidth, di.logicalHeight, in getNonDecorDisplayHeight()
193 return mDisplayPolicy.getConfigDisplayWidth(di.logicalWidth, di.logicalHeight, in getConfigDisplayWidth()
198 return mDisplayPolicy.getConfigDisplayHeight(di.logicalWidth, di.logicalHeight, in getConfigDisplayHeight()
DDisplayPolicyTestsBase.java123 info.logicalWidth = flippedDimensions ? DISPLAY_HEIGHT : DISPLAY_WIDTH; in displayInfoAndCutoutForRotation()
128 displayCutoutForRotation(rotation, isLongEdgeCutout), info.logicalWidth, in displayInfoAndCutoutForRotation()
DTestDisplayContent.java85 mInfo.logicalWidth = width; in Builder()
/frameworks/base/core/java/android/view/
DDisplayInfo.java143 public int logicalWidth; field in DisplayInfo
359 && logicalWidth == other.logicalWidth in equals()
408 logicalWidth = other.logicalWidth; in copyFrom()
452 logicalWidth = source.readInt(); in readFromParcel()
509 dest.writeInt(logicalWidth); in writeToParcel()
643 getMetricsWithSize(outMetrics, compatInfo, configuration, logicalWidth, logicalHeight); in getLogicalMetrics()
660 logicalWidth : logicalHeight; in getNaturalWidth()
665 logicalHeight : logicalWidth; in getNaturalHeight()
723 sb.append(logicalWidth); in toString()
812 protoOutputStream.write(LOGICAL_WIDTH, logicalWidth); in dumpDebug()
DDisplay.java849 return Math.max(mDisplayInfo.logicalWidth, mDisplayInfo.logicalHeight); in getMaximumSizeDimension()
945 mDisplayInfo.logicalWidth, in getRoundedCorner()
1374 outSize.x = mDisplayInfo.logicalWidth; in getRealSize()
/frameworks/base/services/core/java/com/android/server/display/
DLogicalDisplay.java226 info.logicalWidth = mOverrideDisplayInfo.logicalWidth; in getDisplayInfoLocked()
390 mBaseDisplayInfo.logicalWidth = maskedWidth; in updateLocked()
537 mTempLayerStackRect.set(0, 0, displayInfo.logicalWidth, displayInfo.logicalHeight); in configureDisplayLocked()
575 displayRectWidth = displayInfo.logicalWidth; in configureDisplayLocked()
578 < physHeight * displayInfo.logicalWidth) { in configureDisplayLocked()
581 displayRectHeight = displayInfo.logicalHeight * physWidth / displayInfo.logicalWidth; in configureDisplayLocked()
584 displayRectWidth = displayInfo.logicalWidth * physHeight / displayInfo.logicalHeight; in configureDisplayLocked()
DOverlayDisplayWindow.java241 0 : mDefaultDisplayInfo.logicalWidth; in createWindow()
249 scale = Math.min(scale, (float)mDefaultDisplayInfo.logicalWidth / mWidth); in updateWindowParams()
258 x = Math.max(0, Math.min(x, mDefaultDisplayInfo.logicalWidth - width)); in updateWindowParams()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarContentInsetsProvider.kt336 val l = max(minLeft, cutoutRect.logicalWidth(relativeRotation)) in getStatusBarLeftRight()
339 val logicalWidth = cutoutRect.logicalWidth(relativeRotation) in getStatusBarLeftRight() constant
340 rightMargin = max(minRight, logicalWidth) in getStatusBarLeftRight()
425 private fun Rect.logicalWidth(@Rotation rot: Int): Int { in Rect() method
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/util/
DExtensionHelper.java52 int displayWidth = isSideRotation ? displayInfo.logicalHeight : displayInfo.logicalWidth; in rotateRectToDisplayRotation()
53 int displayHeight = isSideRotation ? displayInfo.logicalWidth : displayInfo.logicalHeight; in rotateRectToDisplayRotation()
/frameworks/base/services/core/java/com/android/server/wm/
DSeamlessRotator.java62 final int pH = flipped ? info.logicalWidth : info.logicalHeight; in SeamlessRotator()
63 final int pW = flipped ? info.logicalHeight : info.logicalWidth; in SeamlessRotator()
DDisplayFrames.java86 if (mDisplayWidth == info.logicalWidth && mDisplayHeight == info.logicalHeight in onDisplayInfoUpdated()
92 mDisplayWidth = info.logicalWidth; in onDisplayInfoUpdated()
DSystemGesturesPointerEventListener.java84 screenWidth = info.logicalWidth; in onDisplayInfoChanged()
94 mSwipeStartThreshold = mTmpDisplayInfo.logicalWidth > mTmpDisplayInfo.logicalHeight in onConfigurationChanged()
DShellRoot.java127 anim.initialize(displayInfo.logicalWidth, displayInfo.logicalHeight, in startAnimation()
/frameworks/base/services/core/java/com/android/server/wm/utils/
DCoordinateTransforms.java109 final int h = flipped ? info.logicalWidth : info.logicalHeight; in transformToRotation()
110 final int w = flipped ? info.logicalHeight : info.logicalWidth; in transformToRotation()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/navigationbar/
DNavigationBarButtonTest.java95 mReader = ImageReader.newInstance(displayInfo.logicalWidth, in createVirtualDisplay()
100 mVirtualDisplay = displayManager.createVirtualDisplay(displayName, displayInfo.logicalWidth, in createVirtualDisplay()
/frameworks/base/libs/hwui/renderthread/
DVulkanSurface.h74 int logicalWidth() const { return mWindowInfo.size.width(); } in logicalWidth() function
/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DLogicalDisplayTest.java99 displayInfo.logicalWidth = DISPLAY_HEIGHT; in testGetDisplayPosition()
/frameworks/base/core/tests/mockingcoretests/src/android/view/
DDisplayTest.java503 displayInfo.logicalWidth = LOGICAL_HEIGHT; in setDisplayInfoLandscape()
509 displayInfo.logicalWidth = LOGICAL_WIDTH; in setDisplayInfoPortrait()
527 assertThat(actual.logicalWidth).isEqualTo(LOGICAL_WIDTH); in verifyDisplayInfo()
/frameworks/layoutlib/bridge/src/android/view/
DWindowManagerImpl.java48 info.logicalWidth = mMetrics.widthPixels; in WindowManagerImpl()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/common/
DDisplayLayoutTest.java119 info.logicalWidth = width; in createDisplayInfo()
/frameworks/base/services/core/java/com/android/server/policy/
DDisplayFoldController.java110 final int dx = (mNonOverrideDisplayInfo.logicalWidth - foldedArea.width()) / 2 in setDeviceFolded()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DImageWallpaperTest.java91 displayInfo.logicalWidth = DISPLAY_WIDTH; in setUp()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/
DPipBoundsAlgorithmTest.java95 mDefaultDisplayInfo.logicalWidth = 1000; in initializeMockResources()
123 DEFAULT_MIN_EDGE_SIZE, mDefaultDisplayInfo.logicalWidth, in getDefaultBounds_noOverrideMinSize_matchesDefaultSizeAndAspectRatio()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/draganddrop/
DDragAndDropPolicyTest.java122 info.logicalWidth = 200; in setUp()
126 info.logicalWidth = 100; in setUp()

12