/frameworks/base/core/java/com/android/internal/app/ |
D | ChooserRecyclerViewAccessibilityDelegate.java | 29 private final Rect mTempRect = new Rect(); field in ChooserRecyclerViewAccessibilityDelegate 63 recyclerView.getBoundsOnScreen(mTempRect, true); in ensureViewOnScreenVisibility() 64 int recyclerOnScreenTop = mTempRect.top; in ensureViewOnScreenVisibility() 65 int recyclerOnScreenBottom = mTempRect.bottom; in ensureViewOnScreenVisibility() 66 child.getBoundsOnScreen(mTempRect); in ensureViewOnScreenVisibility() 71 if (mTempRect.top < recyclerOnScreenTop) { in ensureViewOnScreenVisibility() 73 dy = mTempRect.bottom - recyclerOnScreenBottom; in ensureViewOnScreenVisibility() 74 } else if (mTempRect.bottom > recyclerOnScreenBottom) { in ensureViewOnScreenVisibility() 76 dy = mTempRect.top - recyclerOnScreenTop; in ensureViewOnScreenVisibility()
|
/frameworks/base/core/tests/coretests/src/android/widget/focus/ |
D | ScrollingThroughListOfFocusablesTest.java | 34 Rect mTempRect = new Rect(); field in ScrollingThroughListOfFocusablesTest 147 view.getRectForRow(mTempRect, mNumRowsPerItem - 1); in testNoFadingEdgeAtBottomOfLastItem() 148 mListView.offsetDescendantRectToMyCoords(view, mTempRect); in testNoFadingEdgeAtBottomOfLastItem() 152 mListView.getBottom() - mListView.getVerticalFadingEdgeLength() < mTempRect.bottom); in testNoFadingEdgeAtBottomOfLastItem() 196 view.getDrawingRect(mTempRect); in testNavigatingUpThroughInternalSelection() 197 mListView.offsetDescendantRectToMyCoords(view, mTempRect); in testNavigatingUpThroughInternalSelection() 223 internalFocused.getRectForRow(mTempRect, row); in assertInternallySelectedRowOnScreen() 224 mListView.offsetDescendantRectToMyCoords(internalFocused, mTempRect); in assertInternallySelectedRowOnScreen() 227 mTempRect.top >= 0); in assertInternallySelectedRowOnScreen() 229 mTempRect.bottom < mActivity.getScreenHeight()); in assertInternallySelectedRowOnScreen()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/split/ |
D | SplitLayout.java | 98 private final Rect mTempRect = new Rect(); field in SplitLayout 334 mTempRect.set(mRootBounds); in updateConfiguration() 344 initDividerPosition(mTempRect, wasLeftRightSplit); in updateConfiguration() 366 mTempRect.set(mRootBounds); in rotateTo() 371 initDividerPosition(mTempRect, wasLeftRightSplit); in rotateTo() 754 mTempRect.set(0, 0, width, height); in moveSurface() 755 mTempRect.offsetTo(-diffOffsetX, -diffOffsetY); in moveSurface() 756 t.setCrop(leash, mTempRect); in moveSurface() 790 getRefDividerBounds(mTempRect); in applySurfaceChanges() 791 t.setPosition(dividerLeash, mTempRect.left, mTempRect.top); in applySurfaceChanges() [all …]
|
D | DividerView.java | 96 private final Rect mTempRect = new Rect(); field in DividerView 235 mSplitLayout.getDividerBounds(mTempRect); in onInsetsChanged() 246 mTempRect.inset(source.calculateVisibleInsets(mTempRect)); in onInsetsChanged() 251 if (!mTempRect.equals(mDividerBounds)) { in onInsetsChanged() 254 DIVIDER_HEIGHT_PROPERTY, mDividerBounds.height(), mTempRect.height()); in onInsetsChanged() 260 DIVIDER_HEIGHT_PROPERTY.set(this, mTempRect.height()); in onInsetsChanged() 263 mDividerBounds.set(mTempRect); in onInsetsChanged() 292 mTempRect.set(startX, startY, startX + mHandleRegionWidth, in onLayout() 294 mSplitWindowManager.setTouchRegion(mTempRect); in onLayout()
|
D | SplitDecorManager.java | 92 private final Rect mTempRect = new Rect(); field in SplitDecorManager 377 mTempRect.set(mOldMainBounds); in screenshotIfNeeded() 378 mTempRect.offsetTo(0, 0); in screenshotIfNeeded() 379 mScreenshot = ScreenshotUtils.takeScreenshot(t, mHostLeash, mTempRect, in screenshotIfNeeded()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | LinearLayoutWithDefaultTouchRecepient.java | 38 private final Rect mTempRect = new Rect(); field in LinearLayoutWithDefaultTouchRecepient 64 mTempRect.set(0, 0, 0, 0); in dispatchTouchEvent() 65 offsetRectIntoDescendantCoords(mDefaultTouchRecepient, mTempRect); in dispatchTouchEvent() 66 ev.setLocation(ev.getX() + mTempRect.left, ev.getY() + mTempRect.top); in dispatchTouchEvent()
|
/frameworks/base/core/tests/coretests/src/android/widget/scroll/arrowscroll/ |
D | ButtonsWithTallTextViewInBetweenTest.java | 52 private Rect mTempRect = new Rect(); field in ButtonsWithTallTextViewInBetweenTest 55 descendant.getDrawingRect(mTempRect); in getTopWithinScrollView() 56 mScrollView.offsetDescendantRectToMyCoords(descendant, mTempRect); in getTopWithinScrollView() 57 return mTempRect.top; in getTopWithinScrollView() 61 descendant.getDrawingRect(mTempRect); in getBottomWithinScrollView() 62 mScrollView.offsetDescendantRectToMyCoords(descendant, mTempRect); in getBottomWithinScrollView() 63 return mTempRect.bottom; in getBottomWithinScrollView()
|
D | ShortButtonsTest.java | 101 private Rect mTempRect = new Rect(); field in ShortButtonsTest 103 b.getDrawingRect(mTempRect); in isButtonOnScreen() 104 mScrollView.offsetDescendantRectToMyCoords(b, mTempRect); in isButtonOnScreen() 105 return mTempRect.bottom >= mScrollView.getScrollY() in isButtonOnScreen() 106 && mTempRect.top <= (mScrollView.getScrollY() + mScrollView.getHeight()); in isButtonOnScreen()
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | InternalSelectionView.java | 54 private Rect mTempRect = new Rect(); field in InternalSelectionView 155 mTempRect.set(rectLeft, rectTop, rectRight, rectTop + rowHeight); in onDraw() 156 canvas.drawRect(mTempRect, mPainter); in onDraw() 168 mTempRect.set(rectLeft + 2, rectTop + 2, in onDraw() 170 canvas.drawRect(mTempRect, mPainter); in onDraw() 205 getRectForRow(mTempRect, mSelectedRow); in ensureRectVisible() 206 requestRectangleOnScreen(mTempRect); in ensureRectVisible()
|
/frameworks/base/core/java/android/widget/ |
D | HorizontalScrollView.java | 92 private final Rect mTempRect = new Rect(); field in HorizontalScrollView 488 mTempRect.setEmpty(); in executeKeyEvent() 1164 mTempRect.left = getScrollX() + width; in pageScroll() 1168 if (mTempRect.left + width > view.getRight()) { in pageScroll() 1169 mTempRect.left = view.getRight() - width; in pageScroll() 1173 mTempRect.left = getScrollX() - width; in pageScroll() 1174 if (mTempRect.left < 0) { in pageScroll() 1175 mTempRect.left = 0; in pageScroll() 1178 mTempRect.right = mTempRect.left + width; in pageScroll() 1180 return scrollAndFocus(direction, mTempRect.left, mTempRect.right); in pageScroll() [all …]
|
D | ScrollView.java | 103 private final Rect mTempRect = new Rect(); field in ScrollView 525 mTempRect.setEmpty(); in executeKeyEvent() 1248 mTempRect.top = getScrollY() + height; in pageScroll() 1252 if (mTempRect.top + height > view.getBottom()) { in pageScroll() 1253 mTempRect.top = view.getBottom() - height; in pageScroll() 1257 mTempRect.top = getScrollY() - height; in pageScroll() 1258 if (mTempRect.top < 0) { in pageScroll() 1259 mTempRect.top = 0; in pageScroll() 1262 mTempRect.bottom = mTempRect.top + height; in pageScroll() 1264 return scrollAndFocus(direction, mTempRect.top, mTempRect.bottom); in pageScroll() [all …]
|
D | AccessibilityIterators.java | 121 private final Rect mTempRect = new Rect(); field in AccessibilityIterators.PageTextSegmentIterator 144 if (!mView.getGlobalVisibleRect(mTempRect)) { in following() 152 final int pageHeight = mTempRect.height() - mView.getTotalPaddingTop() in following() 173 if (!mView.getGlobalVisibleRect(mTempRect)) { in preceding() 181 final int pageHeight = mTempRect.height() - mView.getTotalPaddingTop() in preceding()
|
D | ListPopupWindow.java | 113 private final Rect mTempRect = new Rect(); field in ListPopupWindow 537 popupBackground.getPadding(mTempRect); in setContentWidth() 538 mDropDownWidth = mTempRect.left + mTempRect.right + width; in setContentWidth() 1255 background.getPadding(mTempRect); in buildDropDown() 1256 padding = mTempRect.top + mTempRect.bottom; in buildDropDown() 1261 mDropDownVerticalOffset = -mTempRect.top; in buildDropDown() 1264 mTempRect.setEmpty(); in buildDropDown() 1282 - (mTempRect.left + mTempRect.right), in buildDropDown() 1288 - (mTempRect.left + mTempRect.right), in buildDropDown()
|
D | Spinner.java | 97 private final Rect mTempRect = new Rect(); field in Spinner 901 background.getPadding(mTempRect); in measureContentWidth() 902 width += mTempRect.left + mTempRect.right; in measureContentWidth() 1254 background.getPadding(mTempRect); in computeContentWidth() 1255 hOffset = isLayoutRtl() ? mTempRect.right : -mTempRect.left; in computeContentWidth() 1257 mTempRect.left = mTempRect.right = 0; in computeContentWidth() 1268 .getDisplayMetrics().widthPixels - mTempRect.left - mTempRect.right; in computeContentWidth()
|
D | CalendarViewLegacyDelegate.java | 1168 private final Rect mTempRect = new Rect(); field in CalendarViewLegacyDelegate.WeekView 1420 mTempRect.top = mWeekSeparatorLineWidth; in drawBackground() 1421 mTempRect.bottom = mHeight; in drawBackground() 1426 mTempRect.left = 0; in drawBackground() 1427 mTempRect.right = mSelectedLeft - 2; in drawBackground() 1429 mTempRect.left = mShowWeekNumber ? mWidth / mNumCells : 0; in drawBackground() 1430 mTempRect.right = mSelectedLeft - 2; in drawBackground() 1432 canvas.drawRect(mTempRect, mDrawPaint); in drawBackground() 1435 mTempRect.left = mSelectedRight + 3; in drawBackground() 1436 mTempRect.right = mShowWeekNumber ? mWidth - mWidth / mNumCells : mWidth; in drawBackground() [all …]
|
D | Switch.java | 189 private final Rect mTempRect = new Rect(); field in Switch 994 final Rect padding = mTempRect; in onMeasure() 1084 mThumbDrawable.getPadding(mTempRect); in hitThumb() 1088 mTempRect.left + mTempRect.right + mTouchSlop; in hitThumb() 1282 final Rect trackPadding = mTempRect; in onLayout() 1333 final Rect padding = mTempRect; in draw() 1399 final Rect padding = mTempRect; in onDraw() 1502 final Rect padding = mTempRect; in getThumbScrollRange()
|
D | ListView.java | 206 private final Rect mTempRect = new Rect(); field in ListView 2621 Rect focusedRect = mTempRect; in handleHorizontalFocusWithinListItem() 3117 mTempRect.set(0, ySearchPoint, 0, ySearchPoint); in arrowScrollFocused() 3127 mTempRect.set(0, ySearchPoint, 0, ySearchPoint); in arrowScrollFocused() 3129 newFocus = FocusFinder.getInstance().findNextFocusFromRect(this, mTempRect, direction); in arrowScrollFocused() 3206 newFocus.getDrawingRect(mTempRect); 3207 offsetDescendantRectToMyCoords(newFocus, mTempRect); 3209 if (mTempRect.top < mListPadding.top) { 3210 amountToScroll = mListPadding.top - mTempRect.top; 3217 if (mTempRect.bottom > listBottom) { [all …]
|
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/ |
D | RoundDrawableWrapper.java | 31 private final RectF mTempRect = new RectF(); field in RoundDrawableWrapper 42 mTempRect.set(getBounds()); in onBoundsChange() 44 mClipPath.addRoundRect(mTempRect, mRoundedCornersRadius, in onBoundsChange()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardSecurityViewFlipper.java | 44 private Rect mTempRect = new Rect(); field in KeyguardSecurityViewFlipper 57 mTempRect.set(0, 0, 0, 0); in onTouchEvent() 61 offsetRectIntoDescendantCoords(child, mTempRect); in onTouchEvent() 62 ev.offsetLocation(mTempRect.left, mTempRect.top); in onTouchEvent() 64 ev.offsetLocation(-mTempRect.left, -mTempRect.top); in onTouchEvent()
|
D | KeyguardPatternView.java | 69 private final Rect mTempRect = new Rect(); field in KeyguardPatternView 249 mTempRect.set(0, 0, 0, 0); in onTouchEvent() 250 offsetRectIntoDescendantCoords(mLockPatternView, mTempRect); in onTouchEvent() 251 ev.offsetLocation(mTempRect.left, mTempRect.top); in onTouchEvent() 253 ev.offsetLocation(-mTempRect.left, -mTempRect.top); in onTouchEvent()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/bar/ |
D | BubbleBarLayerView.java | 90 private final Rect mTempRect = new Rect(); field in BubbleBarLayerView 371 isOverflowExpanded, mTempRect); in updateExpandedView() local 373 lp.width = mTempRect.width(); in updateExpandedView() 374 lp.height = mTempRect.height(); in updateExpandedView() 376 mExpandedView.setX(mTempRect.left); in updateExpandedView() 377 mExpandedView.setY(mTempRect.top); in updateExpandedView() 400 mTempRect.setEmpty(); in getTouchableRegion() 402 getBoundsOnScreen(mTempRect); in getTouchableRegion() 403 outRegion.op(mTempRect, Region.Op.UNION); in getTouchableRegion()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | LetterboxTest.java | 121 final Rect mTempRect = new Rect(); field in LetterboxTest.LetterboxLayoutVerifier 157 mTempRect.set(mTop.left, mTop.top, mTop.right, mTop.bottom + 1); in verifyPositions() 158 assertEquals(mLetterbox.notIntersectsOrFullyContains(mTempRect), in verifyPositions() 160 mTempRect.set(mLeft.left, mLeft.top, mLeft.right + 1, mLeft.bottom); in verifyPositions() 161 assertEquals(mLetterbox.notIntersectsOrFullyContains(mTempRect), in verifyPositions() 163 mTempRect.set(mRight.left - 1, mRight.top, mRight.right, mRight.bottom); in verifyPositions() 164 assertEquals(mLetterbox.notIntersectsOrFullyContains(mTempRect), in verifyPositions() 166 mTempRect.set(mBottom.left, mBottom.top - 1, mBottom.right, mBottom.bottom); in verifyPositions() 167 assertEquals(mLetterbox.notIntersectsOrFullyContains(mTempRect), in verifyPositions()
|
/frameworks/base/core/java/android/inputmethodservice/ |
D | NavigationBarController.java | 180 private final Rect mTempRect = new Rect(); field in NavigationBarController.Impl 324 mTempRect.set(mTempPos[0], mTempPos[1], in updateTouchableInsets() 327 touchableRegion = new Region(mTempRect); in updateTouchableInsets() 333 mTempRect.set(mTempPos[0], originalInsets.contentTopInsets, in updateTouchableInsets() 336 touchableRegion = new Region(mTempRect); in updateTouchableInsets() 342 mTempRect.set(mTempPos[0], originalInsets.visibleTopInsets, in updateTouchableInsets() 345 touchableRegion = new Region(mTempRect); in updateTouchableInsets() 354 mTempRect.set(decor.getLeft(), decor.getBottom() - systemInsets.bottom, in updateTouchableInsets() 357 touchableRegion = new Region(mTempRect); in updateTouchableInsets() 359 touchableRegion.union(mTempRect); in updateTouchableInsets()
|
/frameworks/base/core/java/com/android/internal/view/ |
D | ScrollCaptureViewSupport.java | 328 private final Rect mTempRect = new Rect(); field in ScrollCaptureViewSupport.ViewRenderer 381 transformToRoot(source, localSourceRect, mTempRect); in updateRootNode() 383 mCaptureRenderNode.setPosition(0, 0, mTempRect.width(), mTempRect.height()); in updateRootNode() 386 canvas.translate(-mTempRect.left, -mTempRect.top); in updateRootNode()
|
/frameworks/base/core/java/android/view/ |
D | WindowLayout.java | 63 private final Rect mTempRect = new Rect(); field in WindowLayout 159 mTempRect.set(outParentFrame); in computeFrames() 161 frames.isParentFrameClippedByDisplayCutout = !mTempRect.equals(outParentFrame); in computeFrames() 270 mTempRect); in computeFrames()
|