/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/core/java/com/android/internal/widget/ |
D | LinearLayoutWithDefaultTouchRecepient.java | 37 private final Rect mTempRect = new Rect(); field in LinearLayoutWithDefaultTouchRecepient 63 mTempRect.set(0, 0, 0, 0); in dispatchTouchEvent() 64 offsetRectIntoDescendantCoords(mDefaultTouchRecepient, mTempRect); in dispatchTouchEvent() 65 ev.setLocation(ev.getX() + mTempRect.left, ev.getY() + mTempRect.top); in dispatchTouchEvent()
|
D | RecyclerView.java | 330 final Rect mTempRect = new Rect(); field in RecyclerView 2372 mTempRect.set(0, 0, focused.getWidth(), focused.getHeight()); in isPreferredNextFocusAbsolute() 2374 offsetDescendantRectToMyCoords(focused, mTempRect); in isPreferredNextFocusAbsolute() 2378 return (mTempRect.right > mTempRect2.right in isPreferredNextFocusAbsolute() 2379 || mTempRect.left >= mTempRect2.right) in isPreferredNextFocusAbsolute() 2380 && mTempRect.left > mTempRect2.left; in isPreferredNextFocusAbsolute() 2382 return (mTempRect.left < mTempRect2.left in isPreferredNextFocusAbsolute() 2383 || mTempRect.right <= mTempRect2.left) in isPreferredNextFocusAbsolute() 2384 && mTempRect.right < mTempRect2.right; in isPreferredNextFocusAbsolute() 2386 return (mTempRect.bottom > mTempRect2.bottom in isPreferredNextFocusAbsolute() [all …]
|
/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/java/com/android/internal/view/ |
D | ScrollCaptureViewSupport.java | 148 private final Rect mTempRect = new Rect(); field in ScrollCaptureViewSupport.ViewRenderer 230 transformToRoot(source, localSourceRect, mTempRect); in buildRootDisplayList() 231 mRootRenderNode.setPosition(0, 0, mTempRect.width(), mTempRect.height()); in buildRootDisplayList() 232 RecordingCanvas canvas = mRootRenderNode.beginRecording(mTempRect.width(), in buildRootDisplayList() 233 mTempRect.height()); in buildRootDisplayList() 234 canvas.translate(-mTempRect.left, -mTempRect.top); in buildRootDisplayList()
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | InternalSelectionView.java | 53 private Rect mTempRect = new Rect(); field in InternalSelectionView 154 mTempRect.set(rectLeft, rectTop, rectRight, rectTop + rowHeight); in onDraw() 155 canvas.drawRect(mTempRect, mPainter); in onDraw() 167 mTempRect.set(rectLeft + 2, rectTop + 2, in onDraw() 169 canvas.drawRect(mTempRect, mPainter); in onDraw() 204 getRectForRow(mTempRect, mSelectedRow); in ensureRectVisible() 205 requestRectangleOnScreen(mTempRect); in ensureRectVisible()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | LetterboxTest.java | 109 final Rect mTempRect = new Rect(); field in LetterboxTest.LetterboxLayoutVerifier 145 mTempRect.set(mTop.left, mTop.top, mTop.right, mTop.bottom + 1); in verifyPositions() 146 assertEquals(mLetterbox.notIntersectsOrFullyContains(mTempRect), in verifyPositions() 148 mTempRect.set(mLeft.left, mLeft.top, mLeft.right + 1, mLeft.bottom); in verifyPositions() 149 assertEquals(mLetterbox.notIntersectsOrFullyContains(mTempRect), in verifyPositions() 151 mTempRect.set(mRight.left - 1, mRight.top, mRight.right, mRight.bottom); in verifyPositions() 152 assertEquals(mLetterbox.notIntersectsOrFullyContains(mTempRect), in verifyPositions() 154 mTempRect.set(mBottom.left, mBottom.top - 1, mBottom.right, mBottom.bottom); in verifyPositions() 155 assertEquals(mLetterbox.notIntersectsOrFullyContains(mTempRect), in verifyPositions()
|
/frameworks/base/core/java/android/widget/ |
D | HorizontalScrollView.java | 81 private final Rect mTempRect = new Rect(); field in HorizontalScrollView 471 mTempRect.setEmpty(); in executeKeyEvent() 1104 mTempRect.left = getScrollX() + width; in pageScroll() 1108 if (mTempRect.left + width > view.getRight()) { in pageScroll() 1109 mTempRect.left = view.getRight() - width; in pageScroll() 1113 mTempRect.left = getScrollX() - width; in pageScroll() 1114 if (mTempRect.left < 0) { in pageScroll() 1115 mTempRect.left = 0; in pageScroll() 1118 mTempRect.right = mTempRect.left + width; in pageScroll() 1120 return scrollAndFocus(direction, mTempRect.left, mTempRect.right); in pageScroll() [all …]
|
D | ScrollView.java | 90 private final Rect mTempRect = new Rect(); field in ScrollView 503 mTempRect.setEmpty(); in executeKeyEvent() 1127 mTempRect.top = getScrollY() + height; in pageScroll() 1131 if (mTempRect.top + height > view.getBottom()) { in pageScroll() 1132 mTempRect.top = view.getBottom() - height; in pageScroll() 1136 mTempRect.top = getScrollY() - height; in pageScroll() 1137 if (mTempRect.top < 0) { in pageScroll() 1138 mTempRect.top = 0; in pageScroll() 1141 mTempRect.bottom = mTempRect.top + height; in pageScroll() 1143 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() 1254 background.getPadding(mTempRect); in buildDropDown() 1255 padding = mTempRect.top + mTempRect.bottom; in buildDropDown() 1260 mDropDownVerticalOffset = -mTempRect.top; in buildDropDown() 1263 mTempRect.setEmpty(); in buildDropDown() 1281 - (mTempRect.left + mTempRect.right), in buildDropDown() 1287 - (mTempRect.left + mTempRect.right), in buildDropDown()
|
D | Spinner.java | 92 private final Rect mTempRect = new Rect(); field in Spinner 881 background.getPadding(mTempRect); in measureContentWidth() 882 width += mTempRect.left + mTempRect.right; in measureContentWidth() 1229 background.getPadding(mTempRect); in computeContentWidth() 1230 hOffset = isLayoutRtl() ? mTempRect.right : -mTempRect.left; in computeContentWidth() 1232 mTempRect.left = mTempRect.right = 0; in computeContentWidth() 1243 .getDisplayMetrics().widthPixels - mTempRect.left - mTempRect.right; in computeContentWidth()
|
D | CalendarViewLegacyDelegate.java | 1170 private final Rect mTempRect = new Rect(); field in CalendarViewLegacyDelegate.WeekView 1422 mTempRect.top = mWeekSeparatorLineWidth; in drawBackground() 1423 mTempRect.bottom = mHeight; in drawBackground() 1428 mTempRect.left = 0; in drawBackground() 1429 mTempRect.right = mSelectedLeft - 2; in drawBackground() 1431 mTempRect.left = mShowWeekNumber ? mWidth / mNumCells : 0; in drawBackground() 1432 mTempRect.right = mSelectedLeft - 2; in drawBackground() 1434 canvas.drawRect(mTempRect, mDrawPaint); in drawBackground() 1437 mTempRect.left = mSelectedRight + 3; in drawBackground() 1438 mTempRect.right = mShowWeekNumber ? mWidth - mWidth / mNumCells : mWidth; in drawBackground() [all …]
|
D | Switch.java | 174 private final Rect mTempRect = new Rect(); field in Switch 919 final Rect padding = mTempRect; in onMeasure() 1009 mThumbDrawable.getPadding(mTempRect); in hitThumb() 1013 mTempRect.left + mTempRect.right + mTouchSlop; in hitThumb() 1207 final Rect trackPadding = mTempRect; in onLayout() 1258 final Rect padding = mTempRect; in draw() 1324 final Rect padding = mTempRect; in onDraw() 1427 final Rect padding = mTempRect; in getThumbScrollRange()
|
D | ListView.java | 208 private final Rect mTempRect = new Rect(); field in ListView 2623 Rect focusedRect = mTempRect; in handleHorizontalFocusWithinListItem() 3119 mTempRect.set(0, ySearchPoint, 0, ySearchPoint); in arrowScrollFocused() 3129 mTempRect.set(0, ySearchPoint, 0, ySearchPoint); in arrowScrollFocused() 3131 newFocus = FocusFinder.getInstance().findNextFocusFromRect(this, mTempRect, direction); in arrowScrollFocused() 3208 newFocus.getDrawingRect(mTempRect); 3209 offsetDescendantRectToMyCoords(newFocus, mTempRect); 3211 if (mTempRect.top < mListPadding.top) { 3212 amountToScroll = mListPadding.top - mTempRect.top; 3219 if (mTempRect.bottom > listBottom) { [all …]
|
D | SimpleMonthView.java | 1057 private final Rect mTempRect = new Rect(); field in SimpleMonthView.MonthViewTouchHelper 1087 final boolean hasBounds = getBoundsForDay(virtualViewId, mTempRect); in onPopulateNodeForVirtualView() 1091 mTempRect.setEmpty(); in onPopulateNodeForVirtualView() 1093 node.setBoundsInParent(mTempRect); in onPopulateNodeForVirtualView() 1108 node.setBoundsInParent(mTempRect); in onPopulateNodeForVirtualView()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardSecurityViewFlipper.java | 46 private Rect mTempRect = new Rect(); field in KeyguardSecurityViewFlipper 59 mTempRect.set(0, 0, 0, 0); in onTouchEvent() 63 offsetRectIntoDescendantCoords(child, mTempRect); in onTouchEvent() 64 ev.offsetLocation(mTempRect.left, mTempRect.top); in onTouchEvent() 66 ev.offsetLocation(-mTempRect.left, -mTempRect.top); in onTouchEvent()
|
D | KeyguardPatternView.java | 78 private final Rect mTempRect = new Rect(); field in KeyguardPatternView 201 mTempRect.set(0, 0, 0, 0); in onTouchEvent() 202 offsetRectIntoDescendantCoords(mLockPatternView, mTempRect); in onTouchEvent() 203 ev.offsetLocation(mTempRect.left, mTempRect.top); in onTouchEvent() 205 ev.offsetLocation(-mTempRect.left, -mTempRect.top); in onTouchEvent()
|
/frameworks/base/core/java/android/view/ |
D | WindowInsets.java | 82 @Nullable private Rect mTempRect; field in WindowInsets 289 if (mTempRect == null) { in getSystemWindowInsetsAsRect() 290 mTempRect = new Rect(); in getSystemWindowInsetsAsRect() 293 mTempRect.set(insets.left, insets.top, insets.right, insets.bottom); in getSystemWindowInsetsAsRect() 294 return mTempRect; in getSystemWindowInsetsAsRect()
|
/frameworks/base/core/java/com/android/internal/transition/ |
D | EpicenterTranslateClipReveal.java | 277 private final Rect mTempRect = new Rect(); field in EpicenterTranslateClipReveal.StateProperty 290 final Rect tempRect = mTempRect; in get() 309 final Rect tempRect = mTempRect; in set()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | NotificationShadeWindowViewController.java | 107 private RectF mTempRect = new RectF(); field in NotificationShadeWindowViewController 480 mTempRect.set(mTempLocation[0], mTempLocation[1], mTempLocation[0] + view.getWidth(), in isIntersecting() 482 return mTempRect.contains(x, y); in isIntersecting()
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | NinePatchDrawable.java | 71 private Rect mTempRect; field in NinePatchDrawable 226 if (mTempRect == null) { in draw() 227 mTempRect = new Rect(); in draw() 231 final Rect scaledBounds = mTempRect; in draw()
|
/frameworks/base/core/java/android/text/ |
D | DynamicLayout.java | 713 precomputed.getBounds(start, end, mTempRect); in contentMayProtrudeFromLineTopOrBottom() 715 paint.getTextBounds(text, start, end, mTempRect); in contentMayProtrudeFromLineTopOrBottom() 718 return mTempRect.top < fm.top || mTempRect.bottom > fm.bottom; in contentMayProtrudeFromLineTopOrBottom() 1187 private Rect mTempRect = new Rect(); field in DynamicLayout
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/ |
D | BubbleStackView.java | 357 private Rect mTempRect = new Rect(); field in BubbleStackView 1295 mTempRect.setEmpty(); in onComputeInternalInsets() 1296 getTouchableRegion(mTempRect); in onComputeInternalInsets() 1297 inoutInfo.touchableRegion.set(mTempRect); in onComputeInternalInsets() 1796 mExpandedBubble.getExpandedView().getManageButtonBoundsOnScreen(mTempRect); in maybeShowManageEducation() 1801 mManageEducationView.setManageViewPosition(0, mTempRect.top - viewHeight + inset); in maybeShowManageEducation() 2611 mExpandedBubble.getExpandedView().getManageButtonBoundsOnScreen(mTempRect); in showManageMenu() 2618 final float targetX = isLtr ? mTempRect.left : mTempRect.right - mManageMenu.getWidth(); in showManageMenu() 2619 final float targetY = mTempRect.bottom - mManageMenu.getHeight(); in showManageMenu()
|