Searched refs:newAspectRatio (Results 1 – 2 of 2) sorted by relevance
174 final Rational newAspectRatio = new Rational(1, 2); in onTaskInfoChanged_notInPip_deferUpdatesAspectRatio() local180 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() local197 createPipParams(newAspectRatio))); in onTaskInfoChanged_inPip_updatesAspectRatioIfChanged()199 assertEquals(newAspectRatio.floatValue(), mPipBoundsState.getAspectRatio(), 0.01f); in onTaskInfoChanged_inPip_updatesAspectRatioIfChanged()
146 public Rect getAdjustedDestinationBounds(Rect currentBounds, float newAspectRatio) { in getAdjustedDestinationBounds() argument147 return transformBoundsToAspectRatioIfValid(currentBounds, newAspectRatio, in getAdjustedDestinationBounds()