/frameworks/base/services/core/java/com/android/server/wm/ |
D | TaskPositioner.java | 99 private Rect mTmpRect = new Rect(); field in TaskPositioner 159 mTask.getDimBounds(mTmpRect); in onInputEvent() 161 if (!mTmpRect.equals(mWindowDragBounds)) { in onInputEvent() 352 mTask.getBounds(mTmpRect); in startDragLocked() 359 mTask.getDimBounds(mTmpRect); in startDragLocked() 363 if (startX < mTmpRect.left) { in startDragLocked() 366 if (startX > mTmpRect.right) { in startDragLocked() 369 if (startY < mTmpRect.top) { in startDragLocked() 372 if (startY > mTmpRect.bottom) { in startDragLocked() 378 mWindowOriginalBounds.set(mTmpRect); in startDragLocked() [all …]
|
D | TaskTapPointerEventListener.java | 41 private final Rect mTmpRect = new Rect(); field in TaskTapPointerEventListener 97 task.getDimBounds(mTmpRect); in onPointerEvent() 98 if (!mTmpRect.isEmpty() && !mTmpRect.contains(x, y)) { in onPointerEvent() 100 if (x < mTmpRect.left) { in onPointerEvent() 102 (y < mTmpRect.top) ? TYPE_TOP_LEFT_DIAGONAL_DOUBLE_ARROW : in onPointerEvent() 103 (y > mTmpRect.bottom) ? TYPE_TOP_RIGHT_DIAGONAL_DOUBLE_ARROW : in onPointerEvent() 105 } else if (x > mTmpRect.right) { in onPointerEvent() 107 (y < mTmpRect.top) ? TYPE_TOP_RIGHT_DIAGONAL_DOUBLE_ARROW : in onPointerEvent() 108 (y > mTmpRect.bottom) ? TYPE_TOP_LEFT_DIAGONAL_DOUBLE_ARROW : in onPointerEvent() 110 } else if (y < mTmpRect.top || y > mTmpRect.bottom) { in onPointerEvent()
|
D | BoundsAnimationController.java | 101 private final Rect mTmpRect = new Rect(); field in BoundsAnimationController.BoundsAnimator 151 mTmpRect.left = (int) (mFrom.left * remains + mTo.left * value + 0.5f); in onAnimationUpdate() 152 mTmpRect.top = (int) (mFrom.top * remains + mTo.top * value + 0.5f); in onAnimationUpdate() 153 mTmpRect.right = (int) (mFrom.right * remains + mTo.right * value + 0.5f); in onAnimationUpdate() 154 mTmpRect.bottom = (int) (mFrom.bottom * remains + mTo.bottom * value + 0.5f); in onAnimationUpdate() 156 + mTmpRect + " from=" + mFrom + " mTo=" + mTo + " value=" + value in onAnimationUpdate() 159 mTmpTaskBounds.set(mTmpRect.left, mTmpRect.top, in onAnimationUpdate() 160 mTmpRect.left + mFrozenTaskWidth, mTmpRect.top + mFrozenTaskHeight); in onAnimationUpdate() 162 if (!mTarget.setPinnedStackSize(mTmpRect, mTmpTaskBounds)) { in onAnimationUpdate() 185 mTmpRect.set(mFrom.left, mFrom.top, in onAnimationStart() [all …]
|
D | DisplayContent.java | 101 private final Rect mTmpRect = new Rect(); field in DisplayContent 292 stack.getBounds(mTmpRect); in taskIdFromPoint() 293 if (!mTmpRect.contains(x, y) || stack.isAdjustedForMinimizedDockedStack()) { in taskIdFromPoint() 308 task.getDimBounds(mTmpRect); in taskIdFromPoint() 309 if (mTmpRect.contains(x, y)) { in taskIdFromPoint() 341 task.getDimBounds(mTmpRect); in findTaskForControlPoint() 342 mTmpRect.inset(-delta, -delta); in findTaskForControlPoint() 343 if (mTmpRect.contains(x, y)) { in findTaskForControlPoint() 344 mTmpRect.inset(delta, delta); in findTaskForControlPoint() 345 if (!mTmpRect.contains(x, y)) { in findTaskForControlPoint() [all …]
|
D | DockedStackDividerController.java | 106 private final Rect mTmpRect = new Rect(); field in DockedStackDividerController 164 mTmpRect.set(bounds); in getSmallestWidthDpForBounds() 165 mDisplayContent.rotateBounds(di.rotation, rotation, mTmpRect); in getSmallestWidthDpForBounds() 173 final int dockSide = TaskStack.getDockSideUnchecked(mTmpRect, mTmpRect2, orientation); in getSmallestWidthDpForBounds() 174 final int position = DockedDividerUtils.calculatePositionForBounds(mTmpRect, dockSide, in getSmallestWidthDpForBounds() 181 DockedDividerUtils.calculateBoundsForPosition(snappedPosition, dockSide, mTmpRect, in getSmallestWidthDpForBounds() 185 mService.subtractInsets(mTmpRect2, mTmpRect3, mTmpRect); in getSmallestWidthDpForBounds() 186 minWidth = Math.min(mTmpRect.width(), minWidth); in getSmallestWidthDpForBounds() 204 mService.mPolicy.getStableInsetsLw(rotation, dw, dh, mTmpRect); in initSnapAlgorithmForRotations() 216 config.orientation == ORIENTATION_PORTRAIT, mTmpRect); in initSnapAlgorithmForRotations() [all …]
|
D | AppTransition.java | 205 private final Rect mTmpRect = new Rect(); field in AppTransition 598 getDefaultNextAppTransitionStartRect(mTmpRect); in createScaleUpAnimationLocked() 603 float scaleW = mTmpRect.width() / (float) appWidth; in createScaleUpAnimationLocked() 604 float scaleH = mTmpRect.height() / (float) appHeight; in createScaleUpAnimationLocked() 606 computePivot(mTmpRect.left, scaleW), in createScaleUpAnimationLocked() 607 computePivot(mTmpRect.right, scaleH)); in createScaleUpAnimationLocked() 733 getDefaultNextAppTransitionStartRect(mTmpRect); in createClipRevealAnimationLocked() 737 t = (float) mTmpRect.top / displayFrame.height(); in createClipRevealAnimationLocked() 742 int centerX = mTmpRect.centerX(); in createClipRevealAnimationLocked() 743 int centerY = mTmpRect.centerY(); in createClipRevealAnimationLocked() [all …]
|
D | Task.java | 85 private Rect mTmpRect = new Rect(); field in Task 225 displayContent.getLogicalDisplayRect(mTmpRect); in setBounds() 229 bounds = mTmpRect; in setBounds() 383 mStack.getDimBounds(mTmpRect); in scrollLocked() 385 if (bounds.left > mTmpRect.left) { in scrollLocked() 386 bounds.left = mTmpRect.left; in scrollLocked() 387 bounds.right = mTmpRect.left + mBounds.width(); in scrollLocked() 388 } else if (bounds.right < mTmpRect.right) { in scrollLocked() 389 bounds.left = mTmpRect.right - mBounds.width(); in scrollLocked() 390 bounds.right = mTmpRect.right; in scrollLocked() [all …]
|
D | TaskStack.java | 79 private Rect mTmpRect = new Rect(); field in TaskStack 192 task.getBounds(mTmpRect); in setBounds() 193 task.scrollLocked(mTmpRect); in setBounds() 218 mDisplayContent.getLogicalDisplayRect(mTmpRect); in isFullscreenBounds() 219 return mTmpRect.equals(bounds); in isFullscreenBounds() 274 mDisplayContent.getLogicalDisplayRect(mTmpRect); in setBounds() 279 bounds = mTmpRect; in setBounds() 440 mDisplayContent.getLogicalDisplayRect(mTmpRect); in repositionDockedStackAfterRotation() 449 movement = mTmpRect.right - inOutBounds.right; in repositionDockedStackAfterRotation() 459 movement = mTmpRect.bottom - inOutBounds.bottom; in repositionDockedStackAfterRotation() [all …]
|
D | WindowState.java | 479 final private Rect mTmpRect = new Rect(); field in WindowState 755 mTmpRect.set(0, 0, mDisplayContent.getDisplayInfo().logicalWidth, in computeFrameLw() 757 subtractInsets(mDisplayFrame, layoutContainingFrame, df, mTmpRect); in computeFrameLw() 759 subtractInsets(mContainingFrame, layoutContainingFrame, pf, mTmpRect); in computeFrameLw() 760 subtractInsets(mInsetFrame, layoutContainingFrame, pf, mTmpRect); in computeFrameLw() 872 getDisplayContent().getLogicalDisplayRect(mTmpRect); in computeFrameLw() 875 boolean overrideRightInset = !fullscreenTask && mFrame.right > mTmpRect.right; in computeFrameLw() 876 boolean overrideBottomInset = !fullscreenTask && mFrame.bottom > mTmpRect.bottom; in computeFrameLw() 879 overrideRightInset ? mTmpRect.right - mContentFrame.right in computeFrameLw() 881 overrideBottomInset ? mTmpRect.bottom - mContentFrame.bottom in computeFrameLw() [all …]
|
/frameworks/support/v7/recyclerview/src/android/support/v7/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/support/v17/leanback/src/android/support/v17/leanback/widget/ |
D | HorizontalHoverCardSwitcher.java | 34 private Rect mTmpRect = new Rect(); field in HorizontalHoverCardSwitcher 71 mTmpRect.set(0, 0, childView.getWidth(), childView.getHeight()); in select() 72 parent.offsetDescendantRectToMyCoords(childView, mTmpRect); in select() 73 mCardLeft = mTmpRect.left - mTmpOffsets[0]; in select() 74 mCardRight = mTmpRect.right - mTmpOffsets[0]; in select()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
D | TaskStackView.java | 197 private Rect mTmpRect = new Rect(); field in TaskStackView 836 mTmpRect.set(mLayoutAlgorithm.mFreeformRect); in updateLayoutAlgorithm() 837 mFreeformWorkspaceBackground.setBounds(mTmpRect); in updateLayoutAlgorithm() 1194 mLayoutAlgorithm.mSystemInsets.top, 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() 1250 mTmpRect.set(mStableLayoutAlgorithm.mTaskRect); in measureTaskView() 1251 mTmpRect.union(mLayoutAlgorithm.mTaskRect); in measureTaskView() 1253 MeasureSpec.makeMeasureSpec(mTmpRect.width() + padding.left + padding.right, in measureTaskView() [all …]
|
D | TaskViewTransform.java | 40 private Rect mTmpRect = new Rect(); 49 mTmpRect.set(v.getLeft(), v.getTop(), v.getRight(), v.getBottom()); 50 return mTmpRect;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | LockscreenWallpaper.java | 215 private final Rect mTmpRect = new Rect(); field in LockscreenWallpaper.WallpaperDrawable 256 mTmpRect.set( in onBoundsChange() 262 super.onBoundsChange(mTmpRect); in onBoundsChange()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | DataUsageGraph.java | 36 private final RectF mTmpRect = new RectF(); field in DataUsageGraph 66 final RectF r = mTmpRect; in onDraw()
|
/frameworks/support/design/base/android/support/design/widget/ |
D | FloatingActionButtonImpl.java | 56 private final Rect mTmpRect = new Rect(); field in FloatingActionButtonImpl 109 Rect rect = mTmpRect; in updatePadding()
|
/frameworks/support/v4/java/android/support/v4/app/ |
D | ActionBarDrawerToggle.java | 503 private final Rect mTmpRect = new Rect(); field in ActionBarDrawerToggle.SlideDrawable 540 copyBounds(mTmpRect); in draw() 547 final int width = mTmpRect.width(); in draw()
|
/frameworks/support/design/src/android/support/design/widget/ |
D | CollapsingToolbarLayout.java | 111 private final Rect mTmpRect = new Rect(); field in CollapsingToolbarLayout 408 ViewGroupUtils.getDescendantRect(this, mDummyView, mTmpRect); in onLayout() 410 mTmpRect.left + (isRtl in onLayout() 413 bottom + mToolbar.getTitleMarginTop() - mTmpRect.height() - bottomOffset, in onLayout() 414 mTmpRect.right + (isRtl in onLayout() 422 mTmpRect.bottom + mExpandedMarginTop, in onLayout()
|
D | FloatingActionButton.java | 551 private Rect mTmpRect; 604 if (mTmpRect == null) { 605 mTmpRect = new Rect(); 609 final Rect rect = mTmpRect;
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | ClipDrawable.java | 59 private final Rect mTmpRect = new Rect(); field in ClipDrawable 180 final Rect r = mTmpRect; in draw()
|
D | ScaleDrawable.java | 67 private final Rect mTmpRect = new Rect(); field in ScaleDrawable 223 final Rect r = mTmpRect; in onBoundsChange()
|
D | InsetDrawable.java | 56 private final Rect mTmpRect = new Rect(); field in InsetDrawable 211 final Rect r = mTmpRect; in onBoundsChange()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | SlidingTab.java | 93 private final Rect mTmpRect; field in SlidingTab 457 mTmpRect = new Rect(); in SlidingTab() 525 leftHandle.getHitRect(mTmpRect); in onInterceptTouchEvent() 526 boolean leftHit = mTmpRect.contains((int) x, (int) y); in onInterceptTouchEvent() 529 rightHandle.getHitRect(mTmpRect); in onInterceptTouchEvent() 530 boolean rightHit = mTmpRect.contains((int)x, (int) y); in onInterceptTouchEvent()
|
/frameworks/support/v4/java/android/support/v4/widget/ |
D | SlidingPaneLayout.java | 194 private final Rect mTmpRect = new Rect(); field in SlidingPaneLayout 1006 canvas.getClipBounds(mTmpRect); in drawChild() 1008 mTmpRect.left = Math.max(mTmpRect.left, mSlideableView.getRight()); in drawChild() 1010 mTmpRect.right = Math.min(mTmpRect.right, mSlideableView.getLeft()); in drawChild() 1012 canvas.clipRect(mTmpRect); in drawChild() 1555 private final Rect mTmpRect = new Rect(); field in SlidingPaneLayout.AccessibilityDelegate 1613 final Rect rect = mTmpRect; in copyNodeInfoNoChildren()
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/helper/ |
D | ItemTouchHelper.java | 420 private Rect mTmpRect; field in ItemTouchHelper 718 if (mTmpRect == null) { in scrollIfNecessary() 719 mTmpRect = new Rect(); in scrollIfNecessary() 723 lm.calculateItemDecorationsForChild(mSelected.itemView, mTmpRect); in scrollIfNecessary() 726 final int leftDiff = curX - mTmpRect.left - mRecyclerView.getPaddingLeft(); in scrollIfNecessary() 731 curX + mSelected.itemView.getWidth() + mTmpRect.right in scrollIfNecessary() 740 final int topDiff = curY - mTmpRect.top - mRecyclerView.getPaddingTop(); in scrollIfNecessary() 744 final int bottomDiff = curY + mSelected.itemView.getHeight() + mTmpRect.bottom - in scrollIfNecessary()
|