Home
last modified time | relevance | path

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

/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/
DPipTaskOrganizerTest.java174 final Rational newAspectRatio = new Rational(1, 2); in onTaskInfoChanged_notInPip_deferUpdatesAspectRatio() local
180 createPipParams(newAspectRatio))); in onTaskInfoChanged_notInPip_deferUpdatesAspectRatio()
185 assertEquals(newAspectRatio.floatValue(), mPipBoundsState.getAspectRatio(), 0.01f); in onTaskInfoChanged_notInPip_deferUpdatesAspectRatio()
191 final Rational newAspectRatio = new Rational(1, 2); in onTaskInfoChanged_inPip_updatesAspectRatioIfChanged() local
197 createPipParams(newAspectRatio))); in onTaskInfoChanged_inPip_updatesAspectRatioIfChanged()
199 assertEquals(newAspectRatio.floatValue(), mPipBoundsState.getAspectRatio(), 0.01f); in onTaskInfoChanged_inPip_updatesAspectRatioIfChanged()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/
DPipBoundsAlgorithm.java146 public Rect getAdjustedDestinationBounds(Rect currentBounds, float newAspectRatio) { in getAdjustedDestinationBounds() argument
147 return transformBoundsToAspectRatioIfValid(currentBounds, newAspectRatio, in getAdjustedDestinationBounds()