Searched defs:aspectRatio (Results 1 - 13 of 13) sorted by relevance

/frameworks/base/core/java/android/app/
H A DPictureInPictureArgs.java50 * @param aspectRatio the new aspect ratio for the activity in picture-in-picture, must be
55 public Builder setAspectRatio(Rational aspectRatio) { argument
56 mAspectRatio = aspectRatio;
147 public PictureInPictureArgs(float aspectRatio, List<RemoteAction> actions) { argument
148 setAspectRatio(aspectRatio);
165 private PictureInPictureArgs(Rational aspectRatio, List<RemoteAction> actions, argument
167 mAspectRatio = aspectRatio;
176 public void setAspectRatio(float aspectRatio) { argument
178 mAspectRatio = new Rational((int) (aspectRatio * 1000000000), 1000000000);
H A DPictureInPictureParams.java52 * @param aspectRatio the new aspect ratio for the activity in picture-in-picture, must be
57 public Builder setAspectRatio(Rational aspectRatio) { argument
58 mAspectRatio = aspectRatio;
157 PictureInPictureParams(Rational aspectRatio, List<RemoteAction> actions, argument
159 mAspectRatio = aspectRatio;
/frameworks/base/services/core/java/com/android/server/am/
H A DPinnedActivityStack.java50 Rect getDefaultPictureInPictureBounds(float aspectRatio) { argument
51 return getWindowContainerController().getPictureInPictureBounds(aspectRatio,
74 void setPictureInPictureAspectRatio(float aspectRatio) { argument
75 getWindowContainerController().setPictureInPictureAspectRatio(aspectRatio);
H A DActivityStackSupervisor.java3310 moveActivityToPinnedStackLocked(r, null /* sourceBounds */, 0f /* aspectRatio */,
3315 void moveActivityToPinnedStackLocked(ActivityRecord r, Rect sourceHintBounds, float aspectRatio, argument
3334 final Rect destBounds = stack.getDefaultPictureInPictureBounds(aspectRatio);
/frameworks/base/services/core/java/com/android/server/wm/
H A DPinnedStackWindowController.java45 * @return the {@param currentStackBounds} transformed to the give {@param aspectRatio}. If
46 * {@param currentStackBounds} is null, then the {@param aspectRatio} is applied to the
49 public Rect getPictureInPictureBounds(float aspectRatio, Rect stackBounds) { argument
67 if (pinnedStackController.isValidPictureInPictureAspectRatio(aspectRatio)) {
68 return pinnedStackController.transformBoundsToAspectRatio(stackBounds, aspectRatio,
134 public void setPictureInPictureAspectRatio(float aspectRatio) { argument
143 if (Float.compare(aspectRatio, pinnedStackController.getAspectRatio()) != 0) {
146 getPictureInPictureBounds(aspectRatio, mTmpToBounds);
152 pinnedStackController.isValidPictureInPictureAspectRatio(aspectRatio)
153 ? aspectRatio
[all...]
H A DPinnedStackController.java231 * @return whether the given {@param aspectRatio} is valid.
233 public boolean isValidPictureInPictureAspectRatio(float aspectRatio) { argument
234 return Float.compare(mMinAspectRatio, aspectRatio) <= 0 &&
235 Float.compare(aspectRatio, mMaxAspectRatio) <= 0;
242 Rect transformBoundsToAspectRatio(Rect stackBounds, float aspectRatio, argument
249 final Size size = mSnapAlgorithm.getSizeForAspectRatio(aspectRatio, minEdgeSize,
404 void setAspectRatio(float aspectRatio) { argument
405 if (Float.compare(mAspectRatio, aspectRatio) != 0) {
406 mAspectRatio = aspectRatio;
H A DWindowManagerService.java2812 public boolean isValidPictureInPictureAspectRatio(int displayId, float aspectRatio) { argument
2815 aspectRatio);
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
H A DActivityRecordTests.java183 float aspectRatio, Rect expectedActivityBounds) {
187 mActivity.info.maxAspectRatio = aspectRatio;
182 verifyPositionWithLimitedAspectRatio(int navBarPosition, Rect taskBounds, float aspectRatio, Rect expectedActivityBounds) argument
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/
H A DIllustration.java37 * Class to draw the illustration of setup wizard. The {@code aspectRatio} attribute determines the
120 * @param aspectRatio A float value specifying the aspect ratio (= width / height). 0 to not
123 public void setAspectRatio(float aspectRatio) { argument
124 mAspectRatio = aspectRatio;
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/
H A DSetupWizardLayout.java268 * @param aspectRatio The aspect ratio
271 public void setIllustrationAspectRatio(float aspectRatio) { argument
275 illustration.setAspectRatio(aspectRatio);
/frameworks/support/percent/src/main/java/androidx/percentlayout/widget/
H A DPercentLayoutHelper.java290 info.aspectRatio = value;
431 public float aspectRatio; field in class:PercentLayoutHelper.PercentLayoutInfo
477 if (aspectRatio >= 0) {
479 params.width = Math.round(params.height * aspectRatio);
484 params.height = Math.round(params.width / aspectRatio);
/frameworks/base/core/java/com/android/internal/policy/
H A DPipSnapAlgorithm.java339 * @return the size of the PiP at the given {@param aspectRatio}, ensuring that the minimum edge
342 public Size getSizeForAspectRatio(float aspectRatio, float minEdgeSize, int displayWidth, argument
349 if (aspectRatio <= mMinAspectRatioForMinSize || aspectRatio > mMaxAspectRatioForMinSize) {
351 if (aspectRatio <= 1) {
354 height = Math.round(width / aspectRatio);
358 width = Math.round(height * aspectRatio);
366 (aspectRatio * aspectRatio + 1)));
367 width = Math.round(height * aspectRatio);
[all...]
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
H A DBaseWrapContentWithAspectRatioTest.java107 public AspectRatioMeasureBehavior aspectRatio(int control, float ratio) { method in class:BaseWrapContentWithAspectRatioTest.AspectRatioMeasureBehavior

Completed in 57 milliseconds