Home
last modified time | relevance | path

Searched refs:sourceHintRect (Results 1 – 5 of 5) sorted by relevance

/aosp14/frameworks/base/services/core/java/com/android/server/wm/
H A DPinnedTaskController.java284 final Rect sourceHintRect = params != null && params.hasSourceBoundsHint() in startSeamlessRotationIfNeeded() local
287 Slog.i(TAG, "Seamless rotation PiP bounds=" + bounds + " hintRect=" + sourceHintRect); in startSeamlessRotationIfNeeded()
290 if (sourceHintRect != null && rotationDelta == Surface.ROTATION_270) { in startSeamlessRotationIfNeeded()
295 sourceHintRect.offset(displayCutoutInsets.left, displayCutoutInsets.top); in startSeamlessRotationIfNeeded()
298 final Rect contentBounds = sourceHintRect != null && areaBounds.contains(sourceHintRect) in startSeamlessRotationIfNeeded()
299 ? sourceHintRect : areaBounds; in startSeamlessRotationIfNeeded()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/
H A DPipAnimationController.java173 Rect baseBounds, Rect startBounds, Rect endBounds, Rect sourceHintRect, in getAnimator() argument
179 endBounds, sourceHintRect, direction, 0 /* startingAngle */, in getAnimator()
196 endBounds, sourceHintRect, direction, startingAngle, rotationDelta)); in getAnimator()
586 Rect baseValue, Rect startValue, Rect endValue, Rect sourceHintRect, in ofBounds() argument
617 if (sourceHintRect == null) { in ofBounds()
620 sourceHintRectInsets = new Rect(sourceHintRect.left - initialContainerRect.left, in ofBounds()
621 sourceHintRect.top - initialContainerRect.top, in ofBounds()
622 initialContainerRect.right - sourceHintRect.right, in ofBounds()
623 initialContainerRect.bottom - sourceHintRect.bottom); in ofBounds()
651 if (inScaleTransition() || sourceHintRect == null) { in ofBounds()
[all …]
H A DPipTaskOrganizer.java620 final Rect sourceHintRect = PipBoundsAlgorithm.getValidSourceHintRect( in exitPip()
790 final Rect sourceHintRect = PipBoundsAlgorithm.getValidSourceHintRect( in onTaskAppeared() local
819 final Rect sourceHintRect = PipBoundsAlgorithm.getValidSourceHintRect( in onTaskAppearedWithFixedRotation() local
822 animateResizePip(currentBounds, destinationBounds, sourceHintRect, in onTaskAppearedWithFixedRotation()
1700 Rect currentBounds, Rect destinationBounds, Rect sourceHintRect, in animateResizePip() argument
1712 sourceHintRect = null; in animateResizePip()
1719 sourceHintRect); in animateResizePip()
1737 if (sourceHintRect == null) { in animateResizePip()
1778 Rect outDestinationBounds, Rect sourceHintRect) { in computeRotatedBounds() argument
1790 sourceHintRect.offset(mTaskInfo.displayCutoutInsets.left, in computeRotatedBounds()
[all …]
H A DPipTransition.java737 final Rect sourceHintRect = PipBoundsAlgorithm.getValidSourceHintRect( in startExpandAnimation() local
741 endBounds, sourceHintRect, TRANSITION_DIRECTION_LEAVE_PIP, in startExpandAnimation()
878 Rect sourceHintRect = PipBoundsAlgorithm.getValidSourceHintRect( in startEnterAnimation() local
883 destinationBounds, sourceHintRect); in startEnterAnimation()
894 sourceHintRect, destinationBounds, taskInfo); in startEnterAnimation()
910 currentBounds, destinationBounds, sourceHintRect, TRANSITION_DIRECTION_TO_PIP, in startEnterAnimation()
912 if (sourceHintRect == null) { in startEnterAnimation()
932 animator.setSnapshotContentOverlay(snapshot, sourceHintRect); in startEnterAnimation()
983 @NonNull SurfaceControl leash, @Nullable Rect sourceHintRect, in handleSwipePipToHomeTransition() argument
1007 destinationBounds, sourceHintRect, TRANSITION_DIRECTION_TO_PIP, in handleSwipePipToHomeTransition()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/
H A DPipBoundsAlgorithm.java171 final Rect sourceHintRect = params != null && params.hasSourceBoundsHint() in getValidSourceHintRect() local
174 if (sourceHintRect != null && sourceBounds.contains(sourceHintRect)) { in getValidSourceHintRect()
175 return sourceHintRect; in getValidSourceHintRect()