/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/ |
D | PipBoundsAlgorithmTest.java | 296 final Rect currentBounds = new Rect(0, 0, 0, 100); in getAdjustedDestinationBounds_returnBoundsMatchesAspectRatio() local 297 currentBounds.right = (int) (currentBounds.height() * aspectRatio) + currentBounds.left; in getAdjustedDestinationBounds_returnBoundsMatchesAspectRatio() 301 currentBounds, aspectRatio); in getAdjustedDestinationBounds_returnBoundsMatchesAspectRatio() 342 final Rect currentBounds = new Rect(0, 0, 0, 100); in getAdjustedDestinationBounds_ignoreMinBounds() local 343 currentBounds.right = (int) (currentBounds.height() * aspectRatio) + currentBounds.left; in getAdjustedDestinationBounds_ignoreMinBounds() 344 final Size minSize = new Size(currentBounds.width() / 2, currentBounds.height() / 2); in getAdjustedDestinationBounds_ignoreMinBounds() 349 currentBounds, aspectRatio); in getAdjustedDestinationBounds_ignoreMinBounds()
|
D | PipBoundsStateTest.java | 225 final Rect currentBounds = new Rect(10, 10, 20, 15); in testSetBounds_updatesPipExclusionBounds() local 227 mPipBoundsState.setBounds(currentBounds); in testSetBounds_updatesPipExclusionBounds() 231 verify(callback).accept(currentBounds); in testSetBounds_updatesPipExclusionBounds()
|
/frameworks/base/libs/hwui/ |
D | DamageAccumulator.cpp | 250 SkRect currentBounds = pretransformResult; in computeClipAndTransform() local 256 if (props.getClipDamageToBounds() && !currentBounds.isEmpty()) { in computeClipAndTransform() 257 if (!currentBounds.intersect( in computeClipAndTransform() 259 currentBounds.setEmpty(); in computeClipAndTransform() 264 mapRect(props, currentBounds, &pretransformResult); in computeClipAndTransform() 268 mapRect(frame->matrix4, currentBounds, &pretransformResult); in computeClipAndTransform() 272 pretransformResult = currentBounds; in computeClipAndTransform()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/controller/ |
D | MediaHierarchyManager.kt | 146 private var currentBounds = Rect() variable 194 result = currentBounds in <lambda>() 197 applyState(currentBounds, currentAlpha, clipBounds = currentClipping) in <lambda>() 360 return targetBounds.top - startHost.currentBounds.top in getGuidedTransformationTranslationY() 789 animationStartBounds.set(currentBounds) in performTransitionToNewLocation() 794 animationStartBounds.set(previousHost.currentBounds) in performTransitionToNewLocation() 957 val newBounds = endHost.currentBounds in updateTargetState() 958 val previousBounds = starthost.currentBounds in updateTargetState() 962 val bounds = endHost.currentBounds in updateTargetState() 1072 applyState(it.currentBounds, alpha = 1.0f, immediately = true) in cancelAnimationAndApplyDesiredState() [all …]
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | WindowMetricsTest.java | 88 Rect currentBounds = currentMetrics.getBounds(); in verifyMetricsValidity() local 91 assertTrue(maxBounds.width() >= currentBounds.width()); in verifyMetricsValidity() 92 assertTrue(maxBounds.height() >= currentBounds.height()); in verifyMetricsValidity()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/ |
D | PipContentOverlay.java | 68 Rect currentBounds, float fraction); in onAnimationUpdate() argument 97 Rect currentBounds, float fraction) { in onAnimationUpdate() argument 150 Rect currentBounds, float fraction) { in onAnimationUpdate() argument 219 Rect currentBounds, float fraction) { in onAnimationUpdate() argument 230 (float) mAppBounds.width() / currentBounds.width(), in onAnimationUpdate() 231 (float) mAppBounds.height() / currentBounds.height()); in onAnimationUpdate()
|
D | PipTransition.java | 699 final Rect currentBounds = mPipBoundsState.getBounds(); in startExitAnimation() local 700 currentBounds.offset(-offset.x, -offset.y); in startExitAnimation() 701 startTransaction.setPosition(pipLeash, currentBounds.left, currentBounds.top); in startExitAnimation() 785 startExpandAnimation(taskInfo, pipLeash, currentBounds, currentBounds, destinationBounds, in startExitAnimation() 1004 final Rect currentBounds = pipChange.getStartAbsBounds(); in startEnterAnimation() local 1010 taskInfo.pictureInPictureParams, currentBounds, destinationBounds); in startEnterAnimation() 1043 animator = mPipAnimationController.getAnimator(taskInfo, leash, currentBounds, in startEnterAnimation() 1044 currentBounds, destinationBounds, sourceHintRect, TRANSITION_DIRECTION_TO_PIP, in startEnterAnimation() 1055 mContext, currentBounds, destinationBounds, taskInfo.topActivityInfo, in startEnterAnimation() 1091 mPipOrganizer.setContentOverlay(animator.getContentOverlayLeash(), currentBounds); in startEnterAnimation() local
|
D | PipTaskOrganizer.java | 884 final Rect currentBounds = mTaskInfo.configuration.windowConfiguration.getBounds(); in onTaskAppeared() local 891 info.pictureInPictureParams, currentBounds); in onTaskAppeared() 892 scheduleAnimateResizePip(currentBounds, destinationBounds, 0 /* startingAngle */, in onTaskAppeared() 918 final Rect currentBounds = mTaskInfo.configuration.windowConfiguration.getBounds(); in onTaskAppearedWithFixedRotation() local 920 mPictureInPictureParams, currentBounds); in onTaskAppearedWithFixedRotation() 922 animateResizePip(currentBounds, destinationBounds, sourceHintRect, in onTaskAppearedWithFixedRotation() 1476 Rect currentBounds, Rect destinationBounds, float startingAngle, Rect sourceHintRect, in scheduleAnimateResizePip() argument 1487 currentBounds, destinationBounds, sourceHintRect, direction, durationMs, in scheduleAnimateResizePip() 1797 Rect currentBounds, Rect destinationBounds, Rect sourceHintRect, in animateResizePip() argument 1819 ? mPipBoundsState.getBounds() : currentBounds; in animateResizePip() [all …]
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/ |
D | MagnificationThumbnail.java | 102 public void setThumbnailBounds(Rect currentBounds, float scale, float centerX, float centerY) { in setThumbnailBounds() argument 104 Log.d(LOG_TAG, "setThumbnailBounds " + currentBounds); in setThumbnailBounds() 107 refreshBackgroundBounds(currentBounds); in setThumbnailBounds() 115 private void refreshBackgroundBounds(Rect currentBounds) { in refreshBackgroundBounds() argument 116 mWindowBounds = currentBounds; in refreshBackgroundBounds()
|
/frameworks/base/core/java/android/window/ |
D | ConfigurationHelper.java | 111 final Rect currentBounds = currentConfig.windowConfiguration.getBounds(); in shouldUpdateWindowMetricsBounds() local 117 return !currentBounds.equals(newBounds) || !currentMaxBounds.equals(newMaxBounds); in shouldUpdateWindowMetricsBounds()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/ |
D | TvPipTransition.java | 248 final Rect currentBounds = mPipBoundsState.getBounds(); in startAnimation() local 251 startExitAnimation(pipTaskInfo, pipLeash, currentBounds, destinationBounds, in startAnimation() 426 final Rect currentBounds = pipChange.getStartAbsBounds(); in startEnterAnimation() local 427 final Rect fadeOutCurrentBounds = scaledRect(currentBounds, ZOOM_ANIMATION_SCALE_FACTOR); in startEnterAnimation() 435 .animateBounds(currentBounds, fadeOutCurrentBounds, currentBounds)); in startEnterAnimation() 506 Rect currentBounds, Rect destinationBounds, in startExitAnimation() argument 519 .atBounds(currentBounds)); in startExitAnimation()
|
D | TvPipBoundsAlgorithm.java | 130 public Rect getAdjustedDestinationBounds(Rect currentBounds, float newAspectRatio) { in getAdjustedDestinationBounds() argument
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | SizeCompatTests.java | 510 final Rect currentBounds = mActivity.getWindowConfiguration().getBounds(); in testFixedScreenBoundsWhenDisplaySizeChanged() local 515 assertEquals(origBounds.width(), currentBounds.width()); in testFixedScreenBoundsWhenDisplaySizeChanged() 516 assertEquals(origBounds.height(), currentBounds.height()); in testFixedScreenBoundsWhenDisplaySizeChanged() 520 final float scale = (float) display.mBaseDisplayHeight / currentBounds.height(); in testFixedScreenBoundsWhenDisplaySizeChanged() 526 assertEquals(screenX, (int) (currentBounds.left * scale + 0.5f)); in testFixedScreenBoundsWhenDisplaySizeChanged() 533 assertEquals(origBounds.width(), currentBounds.width()); in testFixedScreenBoundsWhenDisplaySizeChanged() 534 assertEquals(origBounds.height(), currentBounds.height()); in testFixedScreenBoundsWhenDisplaySizeChanged() 554 assertEquals(origBounds.width(), currentBounds.width()); in testFixedScreenBoundsWhenDisplaySizeChanged() 555 assertEquals(origBounds.height(), currentBounds.height()); in testFixedScreenBoundsWhenDisplaySizeChanged() 682 final Rect currentBounds = mActivity.getWindowConfiguration().getBounds(); in testMoveToDifferentOrientationDisplay() local [all …]
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/ |
D | PipBoundsAlgorithm.java | 149 public Rect getAdjustedDestinationBounds(Rect currentBounds, float newAspectRatio) { in getAdjustedDestinationBounds() argument 150 return transformBoundsToAspectRatioIfValid(currentBounds, newAspectRatio, in getAdjustedDestinationBounds()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | ScreenRotationAnimation.java | 143 final Rect currentBounds = displayContent.getBounds(); in ScreenRotationAnimation() local 144 final int width = currentBounds.width(); in ScreenRotationAnimation() 145 final int height = currentBounds.height(); in ScreenRotationAnimation()
|
D | Task.java | 2015 final Rect currentBounds = getRequestedOverrideBounds(); in onConfigurationChangedInner() local 2016 if (!currentBounds.isEmpty()) { in onConfigurationChangedInner() 2017 setLastNonFullscreenBounds(currentBounds); in onConfigurationChangedInner()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/ |
D | DesktopModeVisualIndicator.java | 452 final Rect currentBounds = mRectEvaluator.evaluate(fraction, mStartBounds, mEndBounds); in updateBounds() local 453 view.getBackground().setBounds(currentBounds); in updateBounds()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/ |
D | PipTouchHandler.java | 1057 final Rect currentBounds = mPipBoundsState.getBounds(); 1058 return currentBounds.width() < estimatedMinMenuSize.getWidth() 1059 || currentBounds.height() < estimatedMinMenuSize.getHeight();
|
D | PipController.java | 269 Rect currentBounds = mPipTaskOrganizer.getCurrentOrAnimatingBounds(); 271 final boolean changed = onDisplayRotationChanged(mContext, outBounds, currentBounds,
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip2/phone/ |
D | PipTouchHandler.java | 1067 final Rect currentBounds = mPipBoundsState.getBounds(); 1068 return currentBounds.width() < estimatedMinMenuSize.getWidth() 1069 || currentBounds.height() < estimatedMinMenuSize.getHeight();
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/view/ |
D | MediaHost.kt | 57 val currentBounds: Rect = Rect() in <lambda>() constant
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/ui/controller/ |
D | MediaHierarchyManagerTest.kt | 185 whenever(host.currentBounds).thenReturn(Rect(0, top, 0, top)) in setupHost()
|