Home
last modified time | relevance | path

Searched refs:sourceRectHint (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/pip/
DPipSurfaceTransactionHelper.java83 Rect sourceRectHint, Rect sourceBounds, Rect destinationBounds, Rect insets, in scaleAndCrop() argument
91 if (sourceRectHint.isEmpty() || sourceRectHint.width() == sourceBounds.width()) { in scaleAndCrop()
101 final float endScale = sourceRectHint.width() <= sourceRectHint.height() in scaleAndCrop()
102 ? (float) destinationBounds.width() / sourceRectHint.width() in scaleAndCrop()
103 : (float) destinationBounds.height() / sourceRectHint.height(); in scaleAndCrop()
104 final float startScale = sourceRectHint.width() <= sourceRectHint.height() in scaleAndCrop()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/
DPipBoundsAlgorithm.java197 Rect sourceRectHint = getValidSourceHintRect(params, sourceBounds); in getValidSourceHintRect() local
198 if (!isSourceRectHintValidForEnterPip(sourceRectHint, destinationBounds)) { in getValidSourceHintRect()
199 sourceRectHint = null; in getValidSourceHintRect()
201 return sourceRectHint; in getValidSourceHintRect()
212 public static boolean isSourceRectHintValidForEnterPip(Rect sourceRectHint, in isSourceRectHintValidForEnterPip() argument
214 if (sourceRectHint == null || sourceRectHint.isEmpty()) { in isSourceRectHintValidForEnterPip()
219 if (sourceRectHint.width() <= destinationBounds.width() in isSourceRectHintValidForEnterPip()
220 || sourceRectHint.height() <= destinationBounds.height()) { in isSourceRectHintValidForEnterPip()
223 + " than destination(%s)", sourceRectHint, destinationBounds); in isSourceRectHintValidForEnterPip()
227 final float inferredRatio = sourceRectHint.width() / (float) sourceRectHint.height(); in isSourceRectHintValidForEnterPip()
[all …]
DIPip.aidl60 in Rect sourceRectHint) = 2; in stopSwipePipToHome() argument
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip2/
DPipSurfaceTransactionHelper.java130 SurfaceControl leash, Rect sourceRectHint, in scaleAndCrop() argument
142 && sourceRectHint != null && sourceRectHint.width() < sourceBounds.width()) { in scaleAndCrop()
145 ? (float) destinationBounds.width() / sourceRectHint.width() in scaleAndCrop()
146 : (float) destinationBounds.height() / sourceRectHint.height(); in scaleAndCrop()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/
DPipSurfaceTransactionHelper.java130 SurfaceControl leash, Rect sourceRectHint, in scaleAndCrop() argument
142 && sourceRectHint != null && sourceRectHint.width() < sourceBounds.width()) { in scaleAndCrop()
145 ? (float) destinationBounds.width() / sourceRectHint.width() in scaleAndCrop()
146 : (float) destinationBounds.height() / sourceRectHint.height(); in scaleAndCrop()
DPipAnimationController.java426 void setSnapshotContentOverlay(TaskSnapshot snapshot, Rect sourceRectHint) { in setSnapshotContentOverlay() argument
428 new PipContentOverlay.PipSnapshotOverlay(snapshot, sourceRectHint)); in setSnapshotContentOverlay()
587 Rect baseValue, Rect startValue, Rect endValue, Rect sourceRectHint, in ofBounds() argument
618 if (sourceRectHint == null || sourceRectHint.isEmpty()) { in ofBounds()
627 adjustedSourceRectHint.set(sourceRectHint); in ofBounds()
DPipContentOverlay.java123 public PipSnapshotOverlay(TaskSnapshot snapshot, Rect sourceRectHint) { in PipSnapshotOverlay() argument
125 mSourceRectHint = new Rect(sourceRectHint); in PipSnapshotOverlay()
DPipTaskOrganizer.java508 SurfaceControl overlay, Rect appBounds, Rect sourceRectHint) { in stopSwipePipToHome() argument
517 mSwipeSourceRectHint = sourceRectHint; in stopSwipePipToHome()
540 final Rect sourceRectHint = mSwipeSourceRectHint; in takeSwipeSourceRectHint() local
541 if (sourceRectHint == null || sourceRectHint.isEmpty()) { in takeSwipeSourceRectHint()
545 return mPipTransitionState.getInSwipePipToHomeTransition() ? sourceRectHint : null; in takeSwipeSourceRectHint()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip2/phone/
DPipController.java289 Rect sourceRectHint) { in onSwipePipToHomeAnimationStart() argument
414 Rect sourceRectHint) { in stopSwipePipToHome() argument
421 sourceRectHint)); in stopSwipePipToHome()
/frameworks/base/core/java/android/app/
DPictureInPictureParams.java380 List<RemoteAction> actions, RemoteAction closeAction, Rect sourceRectHint, in PictureInPictureParams() argument
387 mSourceRectHint = sourceRectHint; in PictureInPictureParams()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/
DPipController.java1004 SurfaceControl overlay, Rect appBounds, Rect sourceRectHint) { in stopSwipePipToHome() argument
1006 appBounds, sourceRectHint); in stopSwipePipToHome()
1295 Rect sourceRectHint) { in stopSwipePipToHome() argument
1302 sourceRectHint)); in stopSwipePipToHome()