/frameworks/base/services/core/java/com/android/server/wm/ |
D | TaskTapPointerEventListener.java | 42 private final Rect mTmpRect = new Rect(); field in TaskTapPointerEventListener 73 task.getDimBounds(mTmpRect); in onPointerEvent() 74 if (!mTmpRect.isEmpty() && !mTmpRect.contains(x, y)) { in onPointerEvent() 75 if (x < mTmpRect.left) { in onPointerEvent() 77 (y < mTmpRect.top) ? TYPE_TOP_LEFT_DIAGONAL_DOUBLE_ARROW : in onPointerEvent() 78 (y > mTmpRect.bottom) ? TYPE_TOP_RIGHT_DIAGONAL_DOUBLE_ARROW : in onPointerEvent() 80 } else if (x > mTmpRect.right) { in onPointerEvent() 82 (y < mTmpRect.top) ? TYPE_TOP_RIGHT_DIAGONAL_DOUBLE_ARROW : in onPointerEvent() 83 (y > mTmpRect.bottom) ? TYPE_TOP_LEFT_DIAGONAL_DOUBLE_ARROW : in onPointerEvent() 85 } else if (y < mTmpRect.top || y > mTmpRect.bottom) { in onPointerEvent()
|
D | DockedStackDividerController.java | 113 private final Rect mTmpRect = new Rect(); field in DockedStackDividerController 167 mTmpRect.set(bounds); in getSmallestWidthDpForBounds() 168 mDisplayContent.rotateBounds(di.rotation, rotation, mTmpRect); in getSmallestWidthDpForBounds() 176 final int dockSide = getDockSide(mTmpRect, mTmpRect2, orientation, rotation); in getSmallestWidthDpForBounds() 177 final int position = DockedDividerUtils.calculatePositionForBounds(mTmpRect, dockSide, in getSmallestWidthDpForBounds() 187 DockedDividerUtils.calculateBoundsForPosition(snappedPosition, dockSide, mTmpRect, in getSmallestWidthDpForBounds() 191 mService.intersectDisplayInsetBounds(mTmpRect2, mTmpRect3, mTmpRect); in getSmallestWidthDpForBounds() 192 minWidth = Math.min(mTmpRect.width(), minWidth); in getSmallestWidthDpForBounds() 238 displayCutout, mTmpRect); in getHomeStackBoundsInDockedMode() local 243 outBounds.set(0, mTaskHeightInMinimizedMode + dividerSize + mTmpRect.top, in getHomeStackBoundsInDockedMode() [all …]
|
D | BoundsAnimationController.java | 154 private final Rect mTmpRect = new Rect(); field in BoundsAnimationController.BoundsAnimator 225 mTmpRect.set(mFrom.left, mFrom.top, mFrom.left + mFrozenTaskWidth, in onAnimationStart() 272 mTarget.setPinnedStackSize(mFrom, mTmpRect); in onAnimationStart() 310 mTmpRect.left = (int) (mFrom.left * remains + mTo.left * value + 0.5f); in onAnimationUpdate() 311 mTmpRect.top = (int) (mFrom.top * remains + mTo.top * value + 0.5f); in onAnimationUpdate() 312 mTmpRect.right = (int) (mFrom.right * remains + mTo.right * value + 0.5f); in onAnimationUpdate() 313 mTmpRect.bottom = (int) (mFrom.bottom * remains + mTo.bottom * value + 0.5f); in onAnimationUpdate() 315 + mTmpRect + " from=" + mFrom + " mTo=" + mTo + " value=" + value in onAnimationUpdate() 318 mTmpTaskBounds.set(mTmpRect.left, mTmpRect.top, in onAnimationUpdate() 319 mTmpRect.left + mFrozenTaskWidth, mTmpRect.top + mFrozenTaskHeight); in onAnimationUpdate() [all …]
|
D | TaskPositioner.java | 103 private Rect mTmpRect = new Rect(); field in TaskPositioner 169 mTask.getDimBounds(mTmpRect); in onInputEvent() 171 if (!mTmpRect.equals(mWindowDragBounds)) { in onInputEvent() 202 mTask.getDimBounds(mTmpRect); in onInputEvent() 205 if (wasResizing && !mTmpRect.equals(mWindowDragBounds)) { in onInputEvent() 374 mTask.getBounds(mTmpRect); in startDrag() 375 startDrag(resize, preserveOrientation, startX, startY, mTmpRect); in startDrag() 452 mTask.mStack.getDimBounds(mTmpRect); in notifyMoveLocked() 457 mTmpRect.intersect(stableBounds); in notifyMoveLocked() 461 if (!mTmpRect.contains(nX, nY)) { in notifyMoveLocked() [all …]
|
D | AppTransition.java | 231 private final Rect mTmpRect = new Rect(); field in AppTransition 726 getDefaultNextAppTransitionStartRect(mTmpRect); in createScaleUpAnimationLocked() 731 float scaleW = mTmpRect.width() / (float) appWidth; in createScaleUpAnimationLocked() 732 float scaleH = mTmpRect.height() / (float) appHeight; in createScaleUpAnimationLocked() 734 computePivot(mTmpRect.left, scaleW), in createScaleUpAnimationLocked() 735 computePivot(mTmpRect.top, scaleH)); in createScaleUpAnimationLocked() 861 getDefaultNextAppTransitionStartRect(mTmpRect); in createClipRevealAnimationLocked() 865 t = (float) mTmpRect.top / displayFrame.height(); in createClipRevealAnimationLocked() 870 int centerX = mTmpRect.centerX(); in createClipRevealAnimationLocked() 871 int centerY = mTmpRect.centerY(); in createClipRevealAnimationLocked() [all …]
|
D | WindowFrames.java | 191 private final Rect mTmpRect = new Rect(); field in WindowFrames 259 mTmpRect.set(mDisplayFrame); in calculateDockedDividerInsets() 260 mTmpRect.inset(cutoutInsets); in calculateDockedDividerInsets() 261 mTmpRect.intersectUnchecked(mStableFrame); in calculateDockedDividerInsets() 262 InsetUtils.insetsBetweenFrames(mDisplayFrame, mTmpRect, mStableInsets); in calculateDockedDividerInsets() 289 mTmpRect.set(mFrame.left, mFrame.top, in calculateInsets() 293 InsetUtils.insetsBetweenFrames(mTmpRect, mContentFrame, mContentInsets); in calculateInsets() 294 InsetUtils.insetsBetweenFrames(mTmpRect, mVisibleFrame, mVisibleInsets); in calculateInsets() 295 InsetUtils.insetsBetweenFrames(mTmpRect, mStableFrame, mStableInsets); in calculateInsets()
|
D | WindowChangeAnimationSpec.java | 51 private final Rect mTmpRect = new Rect(); field in WindowChangeAnimationSpec 163 mTmpRect.left = (int) (clipRect.left * tmp.mVecs[0] + 0.5f); in apply() 164 mTmpRect.right = (int) (clipRect.right * tmp.mVecs[0] + 0.5f); in apply() 165 mTmpRect.top = (int) (clipRect.top * tmp.mVecs[3] + 0.5f); in apply() 166 mTmpRect.bottom = (int) (clipRect.bottom * tmp.mVecs[3] + 0.5f); in apply() 167 t.setWindowCrop(leash, mTmpRect); in apply()
|
D | InsetsSourceProvider.java | 50 private final Rect mTmpRect = new Rect(); field in InsetsSourceProvider 131 mTmpRect.set(mWin.getFrameLw()); in onPostLayout() 133 mFrameProvider.accept(mWin.getDisplayContent().mDisplayFrames, mWin, mTmpRect); in onPostLayout() local 135 mTmpRect.inset(mWin.mGivenContentInsets); in onPostLayout() 137 mSource.setFrame(mTmpRect); in onPostLayout()
|
D | TaskStack.java | 97 private Rect mTmpRect = new Rect(); field in TaskStack 237 getRawBounds(mTmpRect); in updateAnimationBackgroundBounds() 240 .setWindowCrop(mAnimationBackgroundSurface, mTmpRect.width(), mTmpRect.height()) in updateAnimationBackgroundBounds() 241 .setPosition(mAnimationBackgroundSurface, mTmpRect.left - stackBounds.left, in updateAnimationBackgroundBounds() 242 mTmpRect.top - stackBounds.top); in updateAnimationBackgroundBounds() 1186 final Rect displayStableRect = mTmpRect; in adjustForIME() 1257 mWmService.getStableInsetsLocked(DEFAULT_DISPLAY, mTmpRect); in adjustForMinimizedDockedStack() 1258 int topInset = mTmpRect.top; in adjustForMinimizedDockedStack() 1293 mWmService.getStableInsetsLocked(DEFAULT_DISPLAY, mTmpRect); in getMinimizeDistance() 1294 int topInset = mTmpRect.top; in getMinimizeDistance() [all …]
|
D | WindowAnimationSpec.java | 53 private final Rect mTmpRect = new Rect(); field in WindowAnimationSpec 109 mTmpRect.set(mStackBounds); in apply() 111 mTmpRect.intersect(tmp.transformation.getClipRect()); in apply() 113 t.setWindowCrop(leash, mTmpRect); in apply()
|
D | RemoteAnimationController.java | 61 private final Rect mTmpRect = new Rect(); field in RemoteAnimationController 323 mTmpRect.set(startBounds); in RemoteAnimationRecord() 324 mTmpRect.offsetTo(0, 0); in RemoteAnimationRecord() 327 new RemoteAnimationAdapterWrapper(this, new Point(0, 0), mTmpRect); in RemoteAnimationRecord() 399 mTmpRect.set(mStackBounds); in startAnimation() 400 mTmpRect.offsetTo(0, 0); in startAnimation() 401 t.setWindowCrop(animationLeash, mTmpRect); in startAnimation()
|
D | PinnedStackController.java | 120 private final Rect mTmpRect = new Rect(); field in PinnedStackController 343 mTmpRect.set(targetBounds); in onTaskStackBoundsChanged() 344 final Rect postChangeStackBounds = mTmpRect; in onTaskStackBoundsChanged() 600 mService.getStackBounds(WINDOWING_MODE_PINNED, ACTIVITY_TYPE_STANDARD, mTmpRect); in dump() 601 pw.print(prefix + " movementBounds="); getMovementBounds(mTmpRect).printShortString(pw); in dump() 629 mService.getStackBounds(WINDOWING_MODE_PINNED, ACTIVITY_TYPE_STANDARD, mTmpRect); in writeToProto() 630 getMovementBounds(mTmpRect).writeToProto(proto, MOVEMENT_BOUNDS); in writeToProto()
|
D | InputMonitor.java | 72 private final Rect mTmpRect = new Rect(); field in InputMonitor 431 mTmpRect.setEmpty(); in updateInputWindows() 491 w.getBounds(mTmpRect); in accept() 492 pipInputConsumer.layout(mInputTransaction, mTmpRect); in accept() 495 mTmpRect.offsetTo(0, 0); in accept() 496 pipInputConsumer.mWindowHandle.touchableRegion.set(mTmpRect); in accept()
|
D | InputConsumerImpl.java | 47 private final Rect mTmpRect = new Rect(); field in InputConsumerImpl 119 mTmpRect.set(0, 0, dw, dh); in layout() 120 layout(t, mTmpRect); in layout()
|
D | RecentsAnimationController.java | 122 private final Rect mTmpRect = new Rect(); field in RecentsAnimationController 455 mService.getStableInsets(mDisplayId, mTmpRect); in startAnimation() 456 contentInsets = mTmpRect; in startAnimation() 675 targetAppMainWindow.getBounds(mTmpRect); in updateInputConsumerForApp() 677 inputWindowHandle.touchableRegion.set(mTmpRect); in updateInputConsumerForApp() 772 mTmpRect.set(mBounds); in startAnimation() 773 mTmpRect.offsetTo(0, 0); in startAnimation() 774 t.setWindowCrop(animationLeash, mTmpRect); in startAnimation()
|
D | WindowState.java | 538 private final Rect mTmpRect = new Rect(); field in WindowState 970 mTmpRect.set(0, 0, dc.getDisplayInfo().logicalWidth, dc.getDisplayInfo().logicalHeight); in computeFrameLw() 972 mTmpRect); in computeFrameLw() 975 mWindowFrames.mParentFrame, mTmpRect); in computeFrameLw() 977 mTmpRect); in computeFrameLw() 1055 getDisplayContent().getBounds(mTmpRect); in computeFrameLw() 1057 windowsAreFloating, isFullscreenAndFillsDisplay, mTmpRect); in computeFrameLw() 1382 mTmpRect.setEmpty(); in getVisibleBounds() 1386 stack.getDimBounds(mTmpRect); in getVisibleBounds() 1394 bounds.intersect(mTmpRect); in getVisibleBounds() [all …]
|
/frameworks/base/tests/WindowManagerStressTest/src/test/windowmanagerstresstest/ |
D | MainActivity.java | 50 private final Rect mTmpRect = new Rect(); field in MainActivity 107 window.mSeq, mLayoutParams, -1, -1, View.VISIBLE, 0, -1, mTmpRect, in slamWm() 108 mTmpRect, mTmpRect, mTmpRect, mTmpRect, mTmpRect, mTmpRect, in slamWm()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | OrientationHelper.java | 45 final Rect mTmpRect = new Rect(); field in OrientationHelper 304 mLayoutManager.getTransformedBoundingBox(view, true, mTmpRect); in createHorizontalHelper() 305 return mTmpRect.right; in createHorizontalHelper() 310 mLayoutManager.getTransformedBoundingBox(view, true, mTmpRect); in createHorizontalHelper() 311 return mTmpRect.left; in createHorizontalHelper() 402 mLayoutManager.getTransformedBoundingBox(view, true, mTmpRect); 403 return mTmpRect.bottom; 408 mLayoutManager.getTransformedBoundingBox(view, true, mTmpRect); 409 return mTmpRect.top;
|
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/views/ |
D | DockState.java | 94 getMappedRect(expandedTouchDockArea, width, height, mTmpRect); in acceptsDrop() 95 return mTmpRect.contains(x, y); in acceptsDrop() 97 getMappedRect(touchArea, width, height, mTmpRect); in acceptsDrop() 98 updateBoundsWithSystemInsets(mTmpRect, insets); in acceptsDrop() 99 return mTmpRect.contains(x, y); in acceptsDrop() 130 private Rect mTmpRect = new Rect(); field in DockState.ViewState 153 mHintTextPaint.getTextBounds(mHintText, 0, mHintText.length(), mTmpRect); in update() 154 mHintTextBounds.set((int) mHintTextPaint.measureText(mHintText), mTmpRect.height()); in update() 246 private static final Rect mTmpRect = new Rect(); field in DockState 279 getMappedRect(dockArea, width, height, mTmpRect); in getPreDockedBounds() [all …]
|
D | TaskViewTransform.java | 40 private Rect mTmpRect = new Rect(); 49 mTmpRect.set(v.getLeft(), v.getTop(), v.getRight(), v.getBottom()); 50 return mTmpRect;
|
D | TaskStackView.java | 202 private Rect mTmpRect = new Rect(); field in TaskStackView 1194 mLayoutAlgorithm.mSystemInsets.right, mTmpRect); in onMeasure() 1195 if (!mTmpRect.equals(mStableStackBounds)) { in onMeasure() 1196 mStableStackBounds.set(mTmpRect); in onMeasure() 1197 mStackBounds.set(mTmpRect); in onMeasure() 1257 mTmpRect.set(mStableLayoutAlgorithm.getTaskRect()); in measureTaskView() 1258 mTmpRect.union(mLayoutAlgorithm.getTaskRect()); in measureTaskView() 1260 MeasureSpec.makeMeasureSpec(mTmpRect.width() + padding.left + padding.right, in measureTaskView() 1262 MeasureSpec.makeMeasureSpec(mTmpRect.height() + padding.top + padding.bottom, in measureTaskView() 1311 mTmpRect.set(mStableLayoutAlgorithm.getTaskRect()); in layoutTaskView() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/ |
D | SectionHeaderView.java | 45 private final RectF mTmpRect = new RectF(); field in SectionHeaderView 102 mTmpRect.set( in disallowSingleClick() 107 return mTmpRect.contains(event.getX(), event.getY()); in disallowSingleClick()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/ |
D | NotificationTemplateViewWrapper.java | 61 private Rect mTmpRect = new Rect(); field in NotificationTemplateViewWrapper 276 searchView.getHitRect(mTmpRect); in isOnView() 277 x -= mTmpRect.left; in isOnView() 278 y -= mTmpRect.top; in isOnView() 281 view.getHitRect(mTmpRect); in isOnView() 282 return mTmpRect.contains((int) x,(int) y); in isOnView()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | DataUsageGraph.java | 37 private final RectF mTmpRect = new RectF(); field in DataUsageGraph 69 final RectF r = mTmpRect; in onDraw()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | LockscreenWallpaper.java | 233 private final Rect mTmpRect = new Rect(); field in LockscreenWallpaper.WallpaperDrawable 280 mTmpRect.set( in onBoundsChange() 286 super.onBoundsChange(mTmpRect); in onBoundsChange()
|