Home
last modified time | relevance | path

Searched refs:destinationBounds (Results 1 – 21 of 21) sorted by relevance

/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/
DPipSurfaceTransactionHelper.java72 Rect destinationBounds) { in crop() argument
73 tx.setWindowCrop(leash, destinationBounds.width(), destinationBounds.height()) in crop()
74 .setPosition(leash, destinationBounds.left, destinationBounds.top); in crop()
83 Rect sourceBounds, Rect destinationBounds) { in scale() argument
84 mTmpDestinationRectF.set(destinationBounds); in scale()
93 Rect sourceBounds, RectF destinationBounds) { in scale() argument
94 return scale(tx, leash, sourceBounds, destinationBounds, 0 /* degrees */); in scale()
102 Rect sourceBounds, Rect destinationBounds, float degrees) { in scale() argument
103 mTmpDestinationRectF.set(destinationBounds); in scale()
112 Rect sourceBounds, RectF destinationBounds, float degrees) { in scale() argument
[all …]
DPipTaskOrganizer.java205 final Rect destinationBounds = animator.getDestinationBounds();
214 wct.scheduleFinishEnterPip(mToken, destinationBounds);
238 finishResize(tx, destinationBounds, direction, animationType);
314 SurfaceControl.Transaction tx, Rect destinationBounds, float alpha) {
316 mPipMenuController.movePipMenu(leash, tx, destinationBounds, alpha);
507 public void stopSwipePipToHome(int taskId, ComponentName componentName, Rect destinationBounds, in stopSwipePipToHome() argument
515 mPipBoundsState.setBounds(destinationBounds); in stopSwipePipToHome()
644 final Rect destinationBounds = new Rect(getExitDestinationBounds()); in exitPip() local
645 final int direction = syncWithSplitScreenBounds(destinationBounds, requestEnterSplit) in exitPip()
662 "exitPip: %s, dest=%s", mTaskInfo.topActivity, destinationBounds); in exitPip()
[all …]
DPipTransition.java152 SurfaceControl.Transaction tx, Rect destinationBounds, float alpha) {
193 @Nullable Rect destinationBounds) { in startExitTransition() argument
194 if (destinationBounds != null) { in startExitTransition()
195 mExitDestinationBounds.set(destinationBounds); in startExitTransition()
372 final Rect destinationBounds = mPipBoundsAlgorithm.getEntryDestinationBounds(); in augmentRequest() local
373 outWCT.setBounds(request.getTriggerTask().token, destinationBounds); in augmentRequest() local
402 final Rect destinationBounds = mPipBoundsAlgorithm.getEntryDestinationBounds(); in handleRotateDisplay() local
403 wct.setBounds(mRequestedEnterTask, destinationBounds); in handleRotateDisplay()
458 public void onFinishResize(TaskInfo taskInfo, Rect destinationBounds, in onFinishResize() argument
488 wct.setBounds(taskInfo.token, destinationBounds); in onFinishResize()
[all …]
DPipAnimationController.java135 Rect destinationBounds, float alphaStart, float alphaEnd) { in getAnimator() argument
138 PipTransitionAnimator.ofAlpha(taskInfo, leash, destinationBounds, alphaStart, in getAnimator()
141 && Objects.equals(destinationBounds, mCurrentAnimator.getDestinationBounds()) in getAnimator()
147 PipTransitionAnimator.ofAlpha(taskInfo, leash, destinationBounds, alphaStart, in getAnimator()
304 Rect destinationBounds, float alpha) { in handlePipTransaction() argument
337 Rect destinationBounds, T baseValue, T startValue, T endValue) { in PipTransitionAnimator() argument
341 mDestinationBounds.set(destinationBounds); in PipTransitionAnimator()
410 Rect destinationBounds, float alpha) { in handlePipTransaction() argument
413 leash, tx, destinationBounds, alpha); in handlePipTransaction()
431 void setAppIconContentOverlay(Context context, Rect appBounds, Rect destinationBounds, in setAppIconContentOverlay() argument
[all …]
DPipContentOverlay.java170 public PipAppIconOverlay(Context context, Rect appBounds, Rect destinationBounds, in PipAppIconOverlay() argument
177 final int overlaySize = getOverlaySize(appBounds, destinationBounds); in PipAppIconOverlay()
199 public static int getOverlaySize(Rect appBounds, Rect destinationBounds) { in getOverlaySize() argument
204 Math.max(destinationBounds.width(), destinationBounds.height())) + 1; in getOverlaySize()
DPipTransitionController.java114 public void onFinishResize(TaskInfo taskInfo, Rect destinationBounds, in onFinishResize() argument
123 @Nullable Rect destinationBounds) { in startExitTransition() argument
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip2/
DPipSurfaceTransactionHelper.java72 Rect destinationBounds) { in crop() argument
73 tx.setWindowCrop(leash, destinationBounds.width(), destinationBounds.height()) in crop()
74 .setPosition(leash, destinationBounds.left, destinationBounds.top); in crop()
83 Rect sourceBounds, Rect destinationBounds) { in scale() argument
84 mTmpDestinationRectF.set(destinationBounds); in scale()
93 Rect sourceBounds, RectF destinationBounds) { in scale() argument
94 return scale(tx, leash, sourceBounds, destinationBounds, 0 /* degrees */); in scale()
102 Rect sourceBounds, Rect destinationBounds, float degrees) { in scale() argument
103 mTmpDestinationRectF.set(destinationBounds); in scale()
112 Rect sourceBounds, RectF destinationBounds, float degrees) { in scale() argument
[all …]
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/pip/
DPipSurfaceTransactionHelper.java47 Rect sourceBounds, Rect destinationBounds) { in scale() argument
48 float positionX = destinationBounds.left; in scale()
49 float positionY = destinationBounds.top; in scale()
51 mTmpDestinationRectF.set(destinationBounds); in scale()
54 final float cornerRadius = getScaledCornerRadius(sourceBounds, destinationBounds); in scale()
65 Rect sourceBounds, Rect destinationBounds, in scale() argument
68 mTmpDestinationRectF.set(destinationBounds); in scale()
72 final float cornerRadius = getScaledCornerRadius(sourceBounds, destinationBounds); in scale()
83 Rect sourceRectHint, Rect sourceBounds, Rect destinationBounds, Rect insets, in scaleAndCrop() argument
92 scale = Math.max((float) destinationBounds.width() / sourceBounds.width(), in scaleAndCrop()
[all …]
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/
DPipBoundsAlgorithmTest.java269 final Rect destinationBounds = mPipBoundsAlgorithm.getEntryDestinationBounds(); in getEntryDestinationBounds_returnBoundsMatchesAspectRatio() local
270 final float actualAspectRatio = getRectAspectRatio(destinationBounds); in getEntryDestinationBounds_returnBoundsMatchesAspectRatio()
284 final Rect destinationBounds = mPipBoundsAlgorithm.getEntryDestinationBounds(); in getEntryDestinationBounds_invalidAspectRatio_returnsDefaultAspectRatio() local
286 destinationBounds.width() / (destinationBounds.height() * 1f); in getEntryDestinationBounds_invalidAspectRatio_returnsDefaultAspectRatio()
300 final Rect destinationBounds = mPipBoundsAlgorithm.getAdjustedDestinationBounds( in getAdjustedDestinationBounds_returnBoundsMatchesAspectRatio() local
304 destinationBounds.width() / (destinationBounds.height() * 1f); in getAdjustedDestinationBounds_returnBoundsMatchesAspectRatio()
326 final Rect destinationBounds = mPipBoundsAlgorithm.getEntryDestinationBounds(); in getEntryDestinationBounds_withMinSize_returnMinBounds() local
328 (destinationBounds.width() == minimalSize.getWidth() in getEntryDestinationBounds_withMinSize_returnMinBounds()
329 && destinationBounds.height() >= minimalSize.getHeight()) in getEntryDestinationBounds_withMinSize_returnMinBounds()
330 || (destinationBounds.height() == minimalSize.getHeight() in getEntryDestinationBounds_withMinSize_returnMinBounds()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/
DPipBoundsAlgorithm.java133 final Rect destinationBounds = getDefaultBounds(); in getEntryDestinationBoundsIgnoringKeepClearAreas() local
138 destinationBounds.set(getDefaultBounds(reentryState.getSnapFraction(), scaledBounds)); in getEntryDestinationBoundsIgnoringKeepClearAreas()
142 Rect aspectRatioBounds = transformBoundsToAspectRatioIfValid(destinationBounds, in getEntryDestinationBoundsIgnoringKeepClearAreas()
196 Rect destinationBounds) { in getValidSourceHintRect() argument
198 if (!isSourceRectHintValidForEnterPip(sourceRectHint, destinationBounds)) { in getValidSourceHintRect()
213 Rect destinationBounds) { in isSourceRectHintValidForEnterPip() argument
219 if (sourceRectHint.width() <= destinationBounds.width() in isSourceRectHintValidForEnterPip()
220 || sourceRectHint.height() <= destinationBounds.height()) { in isSourceRectHintValidForEnterPip()
223 + " than destination(%s)", sourceRectHint, destinationBounds); in isSourceRectHintValidForEnterPip()
226 final float reportedRatio = destinationBounds.width() / (float) destinationBounds.height(); in isSourceRectHintValidForEnterPip()
[all …]
DPipMenuController.java89 Rect destinationBounds) {} in resizePipMenu() argument
96 @Nullable SurfaceControl.Transaction t, Rect destinationBounds, float alpha) { in movePipMenu() argument
102 default void updateMenuBounds(Rect destinationBounds) {} in updateMenuBounds() argument
DIPip.aidl59 in Rect destinationBounds, in SurfaceControl overlay, in Rect appBounds, in stopSwipePipToHome() argument
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip2/phone/
DPipTransition.java144 @Nullable Rect destinationBounds) { in startExitTransition() argument
300 Rect destinationBounds = pipChange.getEndAbsBounds(); in handleSwipePipToHomeTransition() local
312 final float scale = (float) destinationBounds.width() / animationSrcRectHint.width(); in handleSwipePipToHomeTransition()
315 destinationBounds.left - animationSrcRectHint.left * scale, in handleSwipePipToHomeTransition()
316 destinationBounds.top - animationSrcRectHint.top * scale); in handleSwipePipToHomeTransition()
321 mPipTransitionState.getSwipePipToHomeAppBounds(), destinationBounds); in handleSwipePipToHomeTransition()
325 tx.setPosition(overlayLeash, (destinationBounds.width() - overlaySize) / 2f, in handleSwipePipToHomeTransition()
326 (destinationBounds.height() - overlaySize) / 2f); in handleSwipePipToHomeTransition()
389 Rect destinationBounds = pipChange.getEndAbsBounds(); in startAlphaTypeEnterAnimation() local
394 startTransaction.setPosition(pipLeash, destinationBounds.left, destinationBounds.top) in startAlphaTypeEnterAnimation()
[all …]
DPhonePipMenuController.java222 public void updateMenuBounds(Rect destinationBounds) { in updateMenuBounds() argument
224 getPipMenuLayoutParams(mContext, MENU_WINDOW_TITLE, destinationBounds.width(), in updateMenuBounds()
225 destinationBounds.height())); in updateMenuBounds()
226 updateMenuLayout(destinationBounds); in updateMenuBounds()
319 Rect destinationBounds, float alpha) { in movePipMenu() argument
320 if (destinationBounds.isEmpty()) { in movePipMenu()
340 Rect destinationBounds) { in resizePipMenu() argument
341 if (destinationBounds.isEmpty()) { in resizePipMenu()
DPipController.java288 Rect destinationBounds, SurfaceControl overlay, Rect appBounds, in onSwipePipToHomeAnimationStart() argument
413 Rect destinationBounds, SurfaceControl overlay, Rect appBounds, in stopSwipePipToHome() argument
420 taskId, componentName, destinationBounds, overlay, appBounds, in stopSwipePipToHome()
DPipMotionHelper.java724 Rect destinationBounds = extra.getParcelable(
727 destinationBounds.left, destinationBounds.top);
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/onehanded/
DOneHandedSurfaceTransactionHelper.java66 Rect destinationBounds) { in crop() argument
67 tx.setWindowCrop(leash, destinationBounds.width(), destinationBounds.height()); in crop()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/
DPhonePipMenuController.java224 public void updateMenuBounds(Rect destinationBounds) { in updateMenuBounds() argument
226 getPipMenuLayoutParams(mContext, MENU_WINDOW_TITLE, destinationBounds.width(), in updateMenuBounds()
227 destinationBounds.height())); in updateMenuBounds()
228 updateMenuLayout(destinationBounds); in updateMenuBounds()
321 Rect destinationBounds, float alpha) { in movePipMenu() argument
322 if (destinationBounds.isEmpty()) { in movePipMenu()
342 Rect destinationBounds) { in resizePipMenu() argument
343 if (destinationBounds.isEmpty()) { in resizePipMenu()
DPipController.java607 final Rect destinationBounds = in onInit()
611 Objects.requireNonNull(destinationBounds, "Missing destination bounds"); in onInit()
612 if (!destinationBounds.equals(mPipBoundsState.getBounds())) { in onInit()
613 mPipTaskOrganizer.scheduleAnimateResizePip(destinationBounds, in onInit()
1003 private void stopSwipePipToHome(int taskId, ComponentName componentName, Rect destinationBounds, in stopSwipePipToHome() argument
1005 mPipTaskOrganizer.stopSwipePipToHome(taskId, componentName, destinationBounds, overlay, in stopSwipePipToHome()
1294 Rect destinationBounds, SurfaceControl overlay, Rect appBounds, in stopSwipePipToHome() argument
1301 taskId, componentName, destinationBounds, overlay, appBounds, in stopSwipePipToHome()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/
DTvPipTransition.java154 @Nullable Rect destinationBounds) { in startExitTransition() argument
249 final Rect destinationBounds = new Rect(pipChange.getEndAbsBounds()); in startAnimation() local
251 startExitAnimation(pipTaskInfo, pipLeash, currentBounds, destinationBounds, in startAnimation()
506 Rect currentBounds, Rect destinationBounds, in startExitAnimation() argument
510 final Rect fadeInStartBounds = scaledRect(destinationBounds, ZOOM_ANIMATION_SCALE_FACTOR); in startExitAnimation()
536 .animateBounds(fadeInStartBounds, destinationBounds, destinationBounds)); in startExitAnimation()
569 wct.setBounds(taskInfo.token, destinationBounds); in startExitAnimation()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/
DDesktopTasksController.kt643 val destinationBounds = Rect() in <lambda>() constant
651 destinationBounds.set(taskBoundsBeforeMaximize) in <lambda>()
654 destinationBounds.set(calculateInitialBounds(displayLayout, taskInfo)) in <lambda>()
656 destinationBounds.set(getDefaultDesktopTaskBounds(displayLayout)) in <lambda>()
664 destinationBounds.set(stableBounds) in <lambda>()
667 val wct = WindowContainerTransaction().setBounds(taskInfo.token, destinationBounds) in <lambda>()
681 val destinationBounds = getSnapBounds(taskInfo, position) in <lambda>() constant
683 if (destinationBounds == taskInfo.configuration.windowConfiguration.bounds) return in <lambda>()
685 val wct = WindowContainerTransaction().setBounds(taskInfo.token, destinationBounds) in <lambda>()