Home
last modified time | relevance | path

Searched refs:MIN_ASPECT (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/core/java/com/android/server/wm/
DTaskPositioner.java97 static final float MIN_ASPECT = 1.2f; field in TaskPositioner
498 : (mStartOrientationWasLandscape ? MIN_ASPECT : (1.0f / MIN_ASPECT)); in resizeDrag()
515 if (mPreserveOrientation && ((mStartOrientationWasLandscape && aspect < MIN_ASPECT) in resizeDrag()
516 || (!mStartOrientationWasLandscape && aspect > (1.0 / MIN_ASPECT)))) { in resizeDrag()
526 height1 = Math.min(height, Math.round((float)width1 / MIN_ASPECT)); in resizeDrag()
531 Math.min(mMaxVisibleSize.x, Math.round((float)height1 * MIN_ASPECT))); in resizeDrag()
535 width2 = Math.max(width, Math.round((float)height2 * MIN_ASPECT)); in resizeDrag()
540 Math.min(mMaxVisibleSize.y, Math.round((float)width2 / MIN_ASPECT))); in resizeDrag()
545 height1 = Math.max(height, Math.round((float)width1 * MIN_ASPECT)); in resizeDrag()
550 Math.min(mMaxVisibleSize.x, Math.round((float)height1 / MIN_ASPECT))); in resizeDrag()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskPositionerTests.java24 import static com.android.server.wm.TaskPositioner.MIN_ASPECT;
279 int width = Math.round((float) (r.bottom - MOUSE_DELTA_Y) * MIN_ASPECT); in testLandscapePreservedWindowResizingDragTopLeft()
286 final int h = Math.round(w / MIN_ASPECT); in testLandscapePreservedWindowResizingDragTopLeft()
323 final int h = Math.round((float) w / MIN_ASPECT); in testLandscapePreservedWindowResizingDragLeft()
364 int w = Math.max(r.right - r.left, Math.round(h * MIN_ASPECT)); in testLandscapePreservedWindowResizingDragTop()
390 int height = Math.round((float) (r.right - MOUSE_DELTA_X) * MIN_ASPECT); in testPortraitPreservedWindowResizingDragTopLeft()
401 final int w = Math.max(mMinVisibleWidth, Math.round(mMinVisibleHeight / MIN_ASPECT)); in testPortraitPreservedWindowResizingDragTopLeft()
402 final int h = Math.max(mMinVisibleHeight, Math.round(w * MIN_ASPECT)); in testPortraitPreservedWindowResizingDragTopLeft()
424 int h = Math.round(w * MIN_ASPECT); in testPortraitPreservedWindowResizingDragLeft()
436 h = Math.max(Math.round((float) w * MIN_ASPECT), r.height()); in testPortraitPreservedWindowResizingDragLeft()
[all …]