Home
last modified time | relevance | path

Searched refs:originalBounds (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/regionsampling/
DRegionSampler.kt182 fun convertBounds(originalBounds: RectF): RectF { in convertBounds()
195 newBounds.left = ((originalBounds.left / screenWidth) + wallpaperPageNum) / numScreens in convertBounds()
196 newBounds.right = ((originalBounds.right / screenWidth) + wallpaperPageNum) / numScreens in convertBounds()
198 newBounds.top = originalBounds.top / screenHeight in convertBounds()
199 newBounds.bottom = originalBounds.bottom / screenHeight in convertBounds()
/frameworks/base/core/java/com/android/internal/policy/
DTaskResizingAlgorithm.java74 Rect originalBounds, int ctrlType, int minVisibleWidth, int minVisibleHeight, in resizeDrag() argument
83 int left = originalBounds.left; in resizeDrag()
84 int top = originalBounds.top; in resizeDrag()
85 int right = originalBounds.right; in resizeDrag()
86 int bottom = originalBounds.bottom; in resizeDrag()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/drawable/
DDrawableSize.kt99 val originalBounds = drawable.bounds in downscaleToSize() constant
102 drawable.bounds = originalBounds in downscaleToSize()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DSizeCompatTests.java662 final Rect originalBounds = new Rect(mActivity.getBounds()); in testFixedScreenConfigurationWhenMovingToDisplay() local
668 assertEquals(originalBounds.width(), mActivity.getBounds().width()); in testFixedScreenConfigurationWhenMovingToDisplay()
669 assertEquals(originalBounds.height(), mActivity.getBounds().height()); in testFixedScreenConfigurationWhenMovingToDisplay()
828 final Rect originalBounds = new Rect(mActivity.getWindowConfiguration().getBounds()); in testMoveToDifferentOrientationDisplay() local
837 assertEquals(originalBounds.width(), currentBounds.width()); in testMoveToDifferentOrientationDisplay()
838 assertEquals(originalBounds.height(), currentBounds.height()); in testMoveToDifferentOrientationDisplay()
846 (int) ((float) mActivity.getBounds().width() * originalBounds.height() in testMoveToDifferentOrientationDisplay()
847 / originalBounds.width())); in testMoveToDifferentOrientationDisplay()
917 final Rect originalBounds = new Rect(mActivity.getBounds()); in testFixedAspectRatioOrientationChangeOrientation() local
920 assertEquals((int) (originalBounds.width() * maxAspect), originalBounds.height()); in testFixedAspectRatioOrientationChangeOrientation()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/
DPipMotionHelper.java534 void animateToOffset(Rect originalBounds, int offset) {
538 + " callers=\n%s", TAG, originalBounds, offset,
542 mPipTaskOrganizer.scheduleOffsetPip(originalBounds, offset, SHIFT_DURATION,
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/
DPipTaskOrganizer.java1424 public void scheduleOffsetPip(Rect originalBounds, int offset, int duration, in scheduleOffsetPip() argument
1435 offsetPip(originalBounds, 0 /* xOffset */, offset, duration); in scheduleOffsetPip()
1436 Rect toBounds = new Rect(originalBounds); in scheduleOffsetPip()
1443 private void offsetPip(Rect originalBounds, int xOffset, int yOffset, int durationMs) { in offsetPip() argument
1449 final Rect destinationBounds = new Rect(originalBounds); in offsetPip()
1451 animateResizePip(originalBounds, destinationBounds, null /* sourceHintRect */, in offsetPip()
/frameworks/base/core/java/android/widget/
DMagnifier.java1392 final Rect originalBounds = new Rect(0, 0, mBitmap.getWidth(), mBitmap.getHeight()); in updateCurrentContentForTesting() local
1393 canvas.drawBitmap(mBitmap, originalBounds, bounds, null); in updateCurrentContentForTesting()