/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/pip/ |
D | PipSurfaceTransactionHelper.java | 83 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/ |
D | PipBoundsAlgorithm.java | 197 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 …]
|
D | IPip.aidl | 60 in Rect sourceRectHint) = 2; in stopSwipePipToHome() argument
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip2/ |
D | PipSurfaceTransactionHelper.java | 130 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/ |
D | PipSurfaceTransactionHelper.java | 130 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()
|
D | PipAnimationController.java | 426 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()
|
D | PipContentOverlay.java | 123 public PipSnapshotOverlay(TaskSnapshot snapshot, Rect sourceRectHint) { in PipSnapshotOverlay() argument 125 mSourceRectHint = new Rect(sourceRectHint); in PipSnapshotOverlay()
|
D | PipTaskOrganizer.java | 508 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/ |
D | PipController.java | 289 Rect sourceRectHint) { in onSwipePipToHomeAnimationStart() argument 414 Rect sourceRectHint) { in stopSwipePipToHome() argument 421 sourceRectHint)); in stopSwipePipToHome()
|
/frameworks/base/core/java/android/app/ |
D | PictureInPictureParams.java | 380 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/ |
D | PipController.java | 1004 SurfaceControl overlay, Rect appBounds, Rect sourceRectHint) { in stopSwipePipToHome() argument 1006 appBounds, sourceRectHint); in stopSwipePipToHome() 1295 Rect sourceRectHint) { in stopSwipePipToHome() argument 1302 sourceRectHint)); in stopSwipePipToHome()
|