Searched refs:MIN_ASPECT (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/services/core/java/com/android/server/wm/ |
D | TaskPositioner.java | 97 static final float MIN_ASPECT = 1.2f; field in TaskPositioner 466 : (mStartOrientationWasLandscape ? MIN_ASPECT : (1.0f / MIN_ASPECT)); in resizeDrag() 483 if (mPreserveOrientation && ((mStartOrientationWasLandscape && aspect < MIN_ASPECT) in resizeDrag() 484 || (!mStartOrientationWasLandscape && aspect > (1.0 / MIN_ASPECT)))) { in resizeDrag() 494 height1 = Math.min(height, Math.round((float)width1 / MIN_ASPECT)); in resizeDrag() 499 Math.min(mMaxVisibleSize.x, Math.round((float)height1 * MIN_ASPECT))); in resizeDrag() 503 width2 = Math.max(width, Math.round((float)height2 * MIN_ASPECT)); in resizeDrag() 508 Math.min(mMaxVisibleSize.y, Math.round((float)width2 / MIN_ASPECT))); in resizeDrag() 513 height1 = Math.max(height, Math.round((float)width1 * MIN_ASPECT)); in resizeDrag() 518 Math.min(mMaxVisibleSize.x, Math.round((float)height1 / MIN_ASPECT))); in resizeDrag() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/ |
D | TaskPositionerTests.java | 31 import static com.android.server.wm.TaskPositioner.MIN_ASPECT; 238 int width = Math.round((float) (r.bottom - MOUSE_DELTA_Y) * MIN_ASPECT); in testLandscapePreservedWindowResizingDragTopLeft() 245 final int h = Math.round(w / MIN_ASPECT); in testLandscapePreservedWindowResizingDragTopLeft() 282 final int h = Math.round((float)w / MIN_ASPECT); in testLandscapePreservedWindowResizingDragLeft() 323 int w = Math.max(r.right - r.left, Math.round(h * MIN_ASPECT)); in testLandscapePreservedWindowResizingDragTop() 349 int height = Math.round((float) (r.right - MOUSE_DELTA_X) * MIN_ASPECT); in testPortraitPreservedWindowResizingDragTopLeft() 360 final int w = Math.max(mMinVisibleWidth, Math.round(mMinVisibleHeight / MIN_ASPECT)); in testPortraitPreservedWindowResizingDragTopLeft() 361 final int h = Math.max(mMinVisibleHeight, Math.round(w * MIN_ASPECT)); in testPortraitPreservedWindowResizingDragTopLeft() 383 int h = Math.round(w * MIN_ASPECT); in testPortraitPreservedWindowResizingDragLeft() 395 h = Math.max(Math.round((float)w * MIN_ASPECT), r.height()); in testPortraitPreservedWindowResizingDragLeft() [all …]
|