Searched refs:MIN_ASPECT (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/core/java/com/android/internal/policy/ |
D | TaskResizingAlgorithm.java | 55 public static final float MIN_ASPECT = 1.2f; field in TaskResizingAlgorithm 104 if (preserveOrientation && ((startOrientationWasLandscape && aspect < MIN_ASPECT) in resizeDrag() 105 || (!startOrientationWasLandscape && aspect > (1.0 / MIN_ASPECT)))) { in resizeDrag() 115 height1 = Math.min(height, Math.round((float) width1 / MIN_ASPECT)); in resizeDrag() 120 Math.min(maxVisibleSize.x, Math.round((float) height1 * MIN_ASPECT))); in resizeDrag() 124 width2 = Math.max(width, Math.round((float) height2 * MIN_ASPECT)); in resizeDrag() 129 Math.min(maxVisibleSize.y, Math.round((float) width2 / MIN_ASPECT))); in resizeDrag() 134 height1 = Math.max(height, Math.round((float) width1 * MIN_ASPECT)); in resizeDrag() 139 Math.min(maxVisibleSize.x, Math.round((float) height1 / MIN_ASPECT))); in resizeDrag() 143 width2 = Math.min(width, Math.round((float) height2 / MIN_ASPECT)); in resizeDrag() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | TaskPositionerTests.java | 23 import static com.android.internal.policy.TaskResizingAlgorithm.MIN_ASPECT; 297 int width = Math.round((float) (r.bottom - MOUSE_DELTA_Y) * MIN_ASPECT); in testLandscapePreservedWindowResizingDragTopLeft() 304 final int h = Math.round(w / MIN_ASPECT); in testLandscapePreservedWindowResizingDragTopLeft() 341 final int h = Math.round((float) w / MIN_ASPECT); in testLandscapePreservedWindowResizingDragLeft() 382 int w = Math.max(r.right - r.left, Math.round(h * MIN_ASPECT)); in testLandscapePreservedWindowResizingDragTop() 408 int height = Math.round((float) (r.right - MOUSE_DELTA_X) * MIN_ASPECT); in testPortraitPreservedWindowResizingDragTopLeft() 419 final int w = Math.max(mMinVisibleWidth, Math.round(mMinVisibleHeight / MIN_ASPECT)); in testPortraitPreservedWindowResizingDragTopLeft() 420 final int h = Math.max(mMinVisibleHeight, Math.round(w * MIN_ASPECT)); in testPortraitPreservedWindowResizingDragTopLeft() 442 int h = Math.round(w * MIN_ASPECT); in testPortraitPreservedWindowResizingDragLeft() 454 h = Math.max(Math.round((float) w * MIN_ASPECT), r.height()); in testPortraitPreservedWindowResizingDragLeft() [all …]
|