/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/activityembedding/ |
D | ActivityEmbeddingAnimationSpec.java | 95 @NonNull Rect parentBounds) { in createChangeBoundsOpenAnimation() argument 100 if (parentBounds.top == bounds.top && parentBounds.bottom == bounds.bottom) { in createChangeBoundsOpenAnimation() 103 startLeft = parentBounds.left == bounds.left ? -bounds.width() : bounds.width(); in createChangeBoundsOpenAnimation() 106 startTop = parentBounds.top == bounds.top ? -bounds.height() : bounds.height(); in createChangeBoundsOpenAnimation() 123 @NonNull Rect parentBounds) { in createChangeBoundsCloseAnimation() argument 128 if (parentBounds.top == bounds.top && parentBounds.bottom == bounds.bottom) { in createChangeBoundsCloseAnimation() 131 endLeft = parentBounds.left == bounds.left ? -bounds.width() : bounds.width(); in createChangeBoundsCloseAnimation() 134 endTop = parentBounds.top == bounds.top ? -bounds.height() : bounds.height(); in createChangeBoundsCloseAnimation() 155 @NonNull Rect parentBounds) { in createChangeBoundsChangeAnimations() argument 195 endSet.initialize(startBounds.width(), startBounds.height(), parentBounds.width(), in createChangeBoundsChangeAnimations() [all …]
|
D | ActivityEmbeddingAnimationRunner.java | 401 Rect parentBounds = new Rect(); in createChangeAnimationAdapters() local 426 parentBounds.union(boundsAnimationChange.getStartAbsBounds()); in createChangeAnimationAdapters() 427 parentBounds.union(boundsAnimationChange.getEndAbsBounds()); in createChangeAnimationAdapters() 432 parentBounds.union(change.getStartAbsBounds()); in createChangeAnimationAdapters() 438 parentBounds); in createChangeAnimationAdapters() 462 if (parentBounds.isEmpty()) { in createChangeAnimationAdapters() 485 animation = mAnimationSpec.createChangeBoundsCloseAnimation(change, parentBounds); in createChangeAnimationAdapters() 488 animation = mAnimationSpec.createChangeBoundsOpenAnimation(change, parentBounds); in createChangeAnimationAdapters()
|
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/extensions/embedding/ |
D | TaskFragmentAnimationSpec.java | 89 final Rect parentBounds = target.taskInfo.configuration.windowConfiguration.getBounds(); in createChangeBoundsOpenAnimation() local 93 if (parentBounds.top == bounds.top && parentBounds.bottom == bounds.bottom) { in createChangeBoundsOpenAnimation() 96 startLeft = parentBounds.left == bounds.left ? -bounds.width() : bounds.width(); in createChangeBoundsOpenAnimation() 99 startTop = parentBounds.top == bounds.top ? -bounds.height() : bounds.height(); in createChangeBoundsOpenAnimation() 116 final Rect parentBounds = target.taskInfo.configuration.windowConfiguration.getBounds(); in createChangeBoundsCloseAnimation() local 121 if (parentBounds.top == bounds.top && parentBounds.bottom == bounds.bottom) { in createChangeBoundsCloseAnimation() 124 endLeft = parentBounds.left == bounds.left ? -bounds.width() : bounds.width(); in createChangeBoundsCloseAnimation() 127 endTop = parentBounds.top == bounds.top ? -bounds.height() : bounds.height(); in createChangeBoundsCloseAnimation() 151 final Rect parentBounds = target.taskInfo.configuration.windowConfiguration.getBounds(); in createChangeBoundsChangeAnimations() local 196 endSet.initialize(startBounds.width(), startBounds.height(), parentBounds.width(), in createChangeBoundsChangeAnimations() [all …]
|
D | SplitPresenter.java | 1036 final Rect parentBounds = taskConfiguration.windowConfiguration.getBounds(); in getRightContainerBounds() local 1037 return new Rect(left, parentBounds.top, parentBounds.right, parentBounds.bottom); in getRightContainerBounds() 1047 final Rect parentBounds = taskConfiguration.windowConfiguration.getBounds(); in getTopContainerBounds() local 1048 return new Rect(parentBounds.left, parentBounds.top, parentBounds.right, bottom); in getTopContainerBounds() 1058 final Rect parentBounds = taskConfiguration.windowConfiguration.getBounds(); in getBottomContainerBounds() local 1059 return new Rect(parentBounds.left, top, parentBounds.right, parentBounds.bottom); in getBottomContainerBounds() 1084 final Rect parentBounds = taskConfiguration.windowConfiguration.getBounds(); in computeBoundaryBetweenContainers() local 1086 ? parentBounds.top in computeBoundaryBetweenContainers() 1087 : parentBounds.left; in computeBoundaryBetweenContainers() 1089 ? parentBounds.height() in computeBoundaryBetweenContainers() [all …]
|
/frameworks/base/core/java/android/util/ |
D | RotationUtils.java | 88 public static void rotateBounds(Rect inOutBounds, Rect parentBounds, @Rotation int oldRotation, in rotateBounds() argument 90 rotateBounds(inOutBounds, parentBounds, deltaRotation(oldRotation, newRotation)); in rotateBounds() 135 public static void rotateBounds(Rect inOutBounds, Rect parentBounds, @Rotation int rotation) { in rotateBounds() argument 136 rotateBounds(inOutBounds, parentBounds.right, parentBounds.bottom, rotation); in rotateBounds()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | TransparentPolicy.java | 271 final Rect parentBounds = parent.getWindowConfiguration().getBounds(); in start() 278 bounds.set(parentBounds.left, parentBounds.top, in start() 279 parentBounds.left + letterboxBounds.width(), in start() 280 parentBounds.top + letterboxBounds.height()); in start()
|
D | WindowContainer.java | 3030 final Rect parentBounds = getParent().getBounds(); in initializeChangeTransition() local 3031 mTmpPoint.set(startBounds.left - parentBounds.left, startBounds.top - parentBounds.top); in initializeChangeTransition() 3430 final Rect parentBounds = parentWindowContainer.getBounds(); in transformFrameToSurfacePosition() local 3431 outPoint.offset(-parentBounds.left, -parentBounds.top); in transformFrameToSurfacePosition() 3700 final Rect parentBounds = getParent().getBounds(); in updateSurfaceRotation() local 3703 flipped ? parentBounds.height() : parentBounds.width(), in updateSurfaceRotation() 3704 flipped ? parentBounds.width() : parentBounds.height()); in updateSurfaceRotation() 3744 final Rect parentBounds = parent.getBounds(); in getRelativePosition() local 3745 outPos.offset(-parentBounds.left, -parentBounds.top); in getRelativePosition()
|
D | TaskFragment.java | 2342 final Rect parentBounds = parentConfig.windowConfiguration.getBounds(); in computeConfigResourceOverrides() local 2345 mTmpFullBounds.set(parentBounds); in computeConfigResourceOverrides() 2349 insideParentBounds = parentBounds.contains(resolvedBounds); in computeConfigResourceOverrides() 2446 && !mTmpFullBounds.isEmpty() && mTmpFullBounds.equals(parentBounds); in computeConfigResourceOverrides() 2453 && insideParentBounds && !resolvedBounds.equals(parentBounds)) { in computeConfigResourceOverrides() 2673 @NonNull Rect parentBounds) { in translateRelativeBoundsToAbsoluteBounds() argument 2680 mTmpAbsBounds.offset(parentBounds.left, parentBounds.top); in translateRelativeBoundsToAbsoluteBounds() 2682 if (!isAllowedToBeEmbeddedInTrustedMode() && !parentBounds.contains(mTmpAbsBounds)) { in translateRelativeBoundsToAbsoluteBounds() 2691 if (!mTmpAbsBounds.intersect(parentBounds)) { in translateRelativeBoundsToAbsoluteBounds()
|
D | ActivityRecord.java | 8774 final Rect parentBounds = newParentConfiguration.windowConfiguration.getBounds(); in updateResolvedBoundsPosition() local 8777 final boolean isImmersiveMode = isImmersiveMode(parentBounds); in updateResolvedBoundsPosition() 8782 parentBounds, in updateResolvedBoundsPosition() 8790 if (parentBounds.width() != screenResolvedBoundsWidth) { in updateResolvedBoundsPosition() 8807 final float parentBoundsHeight = parentBounds.height(); in updateResolvedBoundsPosition() 8840 resolvedConfig.windowConfiguration.getBounds().top = parentBounds.top; in updateResolvedBoundsPosition() 8842 mSizeCompatBounds.top = parentBounds.top; in updateResolvedBoundsPosition() 8862 boolean isImmersiveMode(@NonNull Rect parentBounds) { in isImmersiveMode() argument 8872 parentBounds, in isImmersiveMode() 8966 private boolean orientationRespectedWithInsets(Rect parentBounds, Rect outStableBounds, in orientationRespectedWithInsets() argument [all …]
|
D | WindowState.java | 1324 final Rect parentBounds = parent.getBounds(); in setFrames() local 1325 parentLeft = parentBounds.left; in setFrames() 1326 parentTop = parentBounds.top; in setFrames() 5076 final Rect parentBounds = parent.getBounds(); in getTransformationMatrix() local 5077 x += parentBounds.left; in getTransformationMatrix() 5078 y += parentBounds.top; in getTransformationMatrix() 5378 final Rect parentBounds = isStartingWindowAssociatedToTask() in transformFrameToSurfacePosition() local 5381 outPoint.offset(-parentBounds.left, -parentBounds.top); in transformFrameToSurfacePosition()
|
D | Task.java | 2164 final Rect parentBounds = parentConfig.windowConfiguration.getBounds(); in adjustForMinimalTaskDimensions() local 2165 if (parentBounds.width() >= minWidth && parentBounds.height() >= minHeight) { in adjustForMinimalTaskDimensions() 2168 bounds.set(parentBounds); in adjustForMinimalTaskDimensions() 2202 final Rect parentBounds = in computeFreeformBounds() local 2211 parentBounds.intersect(stableBounds); in computeFreeformBounds() 2214 fitWithinBounds(outBounds, parentBounds, in computeFreeformBounds() 2219 final int offsetTop = parentBounds.top - outBounds.top; in computeFreeformBounds()
|
D | Transition.java | 2828 final Rect parentBounds = parent.getBounds(); in calculateTransitionInfo() local 2829 change.setEndRelOffset(bounds.left - parentBounds.left, in calculateTransitionInfo() 2830 bounds.top - parentBounds.top); in calculateTransitionInfo() 2836 change.setEndAbsBounds(parentBounds); in calculateTransitionInfo()
|
D | WindowOrganizerController.java | 965 final Rect parentBounds = taskFragment.getParent().getBounds(); in applyTaskFragmentChanges() local 968 parentBounds); in applyTaskFragmentChanges()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | DisplayAreaTest.java | 401 final Rect parentBounds = new Rect(0, 0, 100, 100); in testSetMaxBounds() local 402 final Rect childBounds1 = new Rect(parentBounds.left, parentBounds.top, in testSetMaxBounds() 403 parentBounds.right / 2, parentBounds.bottom); in testSetMaxBounds() 404 final Rect childBounds2 = new Rect(parentBounds.right / 2, parentBounds.top, in testSetMaxBounds() 405 parentBounds.right, parentBounds.bottom); in testSetMaxBounds() 406 TestDisplayArea parentDa = new TestDisplayArea(mWm, parentBounds, "Parent"); in testSetMaxBounds() 412 assertEquals(parentBounds, parentDa.getMaxBounds()); in testSetMaxBounds()
|
D | TaskTests.java | 543 final Rect parentBounds = new Rect(10, 10, 200, 200); in testFitWithinBounds() local 549 parentConfig.windowConfiguration.setBounds(parentBounds); in testFitWithinBounds() 556 assertTrue(task.getBounds().right > parentBounds.left); in testFitWithinBounds() 557 assertTrue(task.getBounds().bottom > parentBounds.top); in testFitWithinBounds() 559 assertTrue(task.getBounds().left <= parentBounds.left); in testFitWithinBounds() 560 assertTrue(task.getBounds().top <= parentBounds.top); in testFitWithinBounds() 569 assertTrue(task.getBounds().left < parentBounds.right); in testFitWithinBounds() 570 assertTrue(task.getBounds().top < parentBounds.bottom); in testFitWithinBounds() 572 assertTrue(task.getBounds().right >= parentBounds.right); in testFitWithinBounds() 573 assertTrue(task.getBounds().bottom >= parentBounds.bottom); in testFitWithinBounds() [all …]
|
D | TaskFragmentTest.java | 127 final Rect parentBounds = parentConfig.windowConfiguration.getBounds(); in testOnConfigurationChanged() local 130 final Rect bounds = new Rect(parentBounds); in testOnConfigurationChanged() 140 mTaskFragment.setBounds(parentBounds); in testOnConfigurationChanged()
|
D | SizeCompatTests.java | 3721 private void assertLetterboxSurfacesDrawnBetweenActivityAndParentBounds(Rect parentBounds) { 3724 assertTrue(parentBounds.contains(letterboxedBounds)); 3725 assertEquals(new Rect(letterboxedBounds.left - parentBounds.left, 3726 letterboxedBounds.top - parentBounds.top, 3727 parentBounds.right - letterboxedBounds.right, 3728 parentBounds.bottom - letterboxedBounds.bottom),
|
/frameworks/base/libs/hwui/ |
D | DamageAccumulator.h | 77 const SkRect parentBounds; member
|
D | DamageAccumulator.cpp | 321 .parentBounds = SkRect::MakeLTRB(stretchRect.left, stretchRect.top, in findNearestStretchEffect()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/ |
D | ResizeVeil.kt | 364 private fun calculateAppIconPosition(parentBounds: Rect): PointF { in calculateAppIconPosition() 365 return PointF(parentBounds.width().toFloat() / 2 - iconSize.toFloat() / 2, in calculateAppIconPosition() 366 parentBounds.height().toFloat() / 2 - iconSize.toFloat() / 2) in calculateAppIconPosition()
|
/frameworks/base/libs/hwui/jni/ |
D | android_graphics_RenderNode.cpp | 717 auto& parentBounds = result.parentBounds; in android_view_RenderNode_requestPositionUpdates() local 718 auto parentWidth = parentBounds.width(); in android_view_RenderNode_requestPositionUpdates() 719 auto parentHeight = parentBounds.height(); in android_view_RenderNode_requestPositionUpdates()
|
/frameworks/native/services/surfaceflinger/FrontEnd/ |
D | LayerSnapshotBuilder.cpp | 999 FloatRect parentBounds = parentSnapshot.geomLayerBounds; in updateLayerBounds() local 1000 parentBounds = snapshot.localTransform.inverse().transform(parentBounds); in updateLayerBounds() 1002 (requested.externalTexture) ? snapshot.bufferSize.toFloatRect() : parentBounds; in updateLayerBounds() 1006 snapshot.geomLayerBounds = snapshot.geomLayerBounds.intersect(parentBounds); in updateLayerBounds()
|
/frameworks/native/services/surfaceflinger/ |
D | Layer.h | 505 FloatRect computeSourceBounds(const FloatRect& parentBounds) const; 613 void computeBounds(FloatRect parentBounds, ui::Transform parentTransform, float shadowRadius);
|
D | Layer.cpp | 493 void Layer::computeBounds(FloatRect parentBounds, ui::Transform parentTransform, in computeBounds() argument 507 parentBounds = getActiveTransform(s).inverse().transform(parentBounds); in computeBounds() 510 mSourceBounds = computeSourceBounds(parentBounds); in computeBounds() 518 bounds = bounds.intersect(parentBounds); in computeBounds() 3488 FloatRect Layer::computeSourceBounds(const FloatRect& parentBounds) const { in computeSourceBounds() 3490 return parentBounds; in computeSourceBounds()
|