/frameworks/base/core/java/android/app/ |
H A D | PictureInPictureArgs.java | 50 * @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 D | PictureInPictureParams.java | 52 * @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 D | PinnedActivityStack.java | 50 Rect getDefaultPictureInPictureBounds(float aspectRatio) { argument 51 return getWindowContainerController().getPictureInPictureBounds(aspectRatio, 74 void setPictureInPictureAspectRatio(float aspectRatio) { argument 75 getWindowContainerController().setPictureInPictureAspectRatio(aspectRatio);
|
H A D | ActivityStackSupervisor.java | 3310 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 D | PinnedStackWindowController.java | 45 * @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 D | PinnedStackController.java | 231 * @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 D | WindowManagerService.java | 2812 public boolean isValidPictureInPictureAspectRatio(int displayId, float aspectRatio) { argument 2815 aspectRatio);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
H A D | ActivityRecordTests.java | 183 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 D | Illustration.java | 37 * 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 D | SetupWizardLayout.java | 268 * @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 D | PercentLayoutHelper.java | 290 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 D | PipSnapAlgorithm.java | 339 * @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 D | BaseWrapContentWithAspectRatioTest.java | 107 public AspectRatioMeasureBehavior aspectRatio(int control, float ratio) { method in class:BaseWrapContentWithAspectRatioTest.AspectRatioMeasureBehavior
|