Home
last modified time | relevance | path

Searched refs:mTempRect (Results 1 – 25 of 43) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/android/widget/focus/
DScrollingThroughListOfFocusablesTest.java34 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/
DLinearLayoutWithDefaultTouchRecepient.java37 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()
DRecyclerView.java330 final Rect mTempRect = new Rect(); field in RecyclerView
2358 mTempRect.set(0, 0, focused.getWidth(), focused.getHeight()); in isPreferredNextFocusAbsolute()
2360 offsetDescendantRectToMyCoords(focused, mTempRect); in isPreferredNextFocusAbsolute()
2364 return (mTempRect.right > mTempRect2.right in isPreferredNextFocusAbsolute()
2365 || mTempRect.left >= mTempRect2.right) in isPreferredNextFocusAbsolute()
2366 && mTempRect.left > mTempRect2.left; in isPreferredNextFocusAbsolute()
2368 return (mTempRect.left < mTempRect2.left in isPreferredNextFocusAbsolute()
2369 || mTempRect.right <= mTempRect2.left) in isPreferredNextFocusAbsolute()
2370 && mTempRect.right < mTempRect2.right; in isPreferredNextFocusAbsolute()
2372 return (mTempRect.bottom > mTempRect2.bottom in isPreferredNextFocusAbsolute()
[all …]
DResolverDrawerLayout.java116 private final Rect mTempRect = new Rect(); field in ResolverDrawerLayout
648 mTempRect.set(0, 0, child.getWidth(), child.getHeight());
649 offsetDescendantRectToMyCoords(child, mTempRect);
674 return mTempRect.bottom > clipEdge;
DViewPager.java117 private final Rect mTempRect = new Rect(); field in ViewPager
1083 focusRect = mTempRect;
1084 currentFocused.getFocusedRect(mTempRect);
1085 offsetDescendantRectToMyCoords(currentFocused, mTempRect);
1086 offsetRectIntoDescendantCoords(child, mTempRect);
2506 final int nextLeft = getChildRectInPagerCoordinates(mTempRect, nextFocused).left;
2507 final int currLeft = getChildRectInPagerCoordinates(mTempRect, currentFocused).left;
2516 final int nextLeft = getChildRectInPagerCoordinates(mTempRect, nextFocused).left;
2517 final int currLeft = getChildRectInPagerCoordinates(mTempRect, currentFocused).left;
/frameworks/base/core/tests/coretests/src/android/widget/scroll/arrowscroll/
DButtonsWithTallTextViewInBetweenTest.java52 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()
DShortButtonsTest.java101 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/util/
DInternalSelectionView.java53 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/core/java/android/widget/
DHorizontalScrollView.java81 private final Rect mTempRect = new Rect(); field in HorizontalScrollView
471 mTempRect.setEmpty(); in executeKeyEvent()
1106 mTempRect.left = getScrollX() + width; in pageScroll()
1110 if (mTempRect.left + width > view.getRight()) { in pageScroll()
1111 mTempRect.left = view.getRight() - width; in pageScroll()
1115 mTempRect.left = getScrollX() - width; in pageScroll()
1116 if (mTempRect.left < 0) { in pageScroll()
1117 mTempRect.left = 0; in pageScroll()
1120 mTempRect.right = mTempRect.left + width; in pageScroll()
1122 return scrollAndFocus(direction, mTempRect.left, mTempRect.right); in pageScroll()
[all …]
DScrollView.java90 private final Rect mTempRect = new Rect(); field in ScrollView
503 mTempRect.setEmpty(); in executeKeyEvent()
1129 mTempRect.top = getScrollY() + height; in pageScroll()
1133 if (mTempRect.top + height > view.getBottom()) { in pageScroll()
1134 mTempRect.top = view.getBottom() - height; in pageScroll()
1138 mTempRect.top = getScrollY() - height; in pageScroll()
1139 if (mTempRect.top < 0) { in pageScroll()
1140 mTempRect.top = 0; in pageScroll()
1143 mTempRect.bottom = mTempRect.top + height; in pageScroll()
1145 return scrollAndFocus(direction, mTempRect.top, mTempRect.bottom); in pageScroll()
[all …]
DAccessibilityIterators.java121 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()
DListPopupWindow.java110 private final Rect mTempRect = new Rect(); field in ListPopupWindow
530 popupBackground.getPadding(mTempRect); in setContentWidth()
531 mDropDownWidth = mTempRect.left + mTempRect.right + width; in setContentWidth()
1237 background.getPadding(mTempRect); in buildDropDown()
1238 padding = mTempRect.top + mTempRect.bottom; in buildDropDown()
1243 mDropDownVerticalOffset = -mTempRect.top; in buildDropDown()
1246 mTempRect.setEmpty(); in buildDropDown()
1264 - (mTempRect.left + mTempRect.right), in buildDropDown()
1270 - (mTempRect.left + mTempRect.right), in buildDropDown()
DSpinner.java92 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()
DCalendarViewLegacyDelegate.java1168 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 …]
DSwitch.java175 private final Rect mTempRect = new Rect(); field in Switch
911 final Rect padding = mTempRect; in onMeasure()
1001 mThumbDrawable.getPadding(mTempRect); in hitThumb()
1005 mTempRect.left + mTempRect.right + mTouchSlop; in hitThumb()
1188 final Rect trackPadding = mTempRect; in onLayout()
1239 final Rect padding = mTempRect; in draw()
1305 final Rect padding = mTempRect; in onDraw()
1408 final Rect padding = mTempRect; in getThumbScrollRange()
DListView.java208 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 …]
DSimpleMonthView.java1055 private final Rect mTempRect = new Rect(); field in SimpleMonthView.MonthViewTouchHelper
1085 final boolean hasBounds = getBoundsForDay(virtualViewId, mTempRect); in onPopulateNodeForVirtualView()
1089 mTempRect.setEmpty(); in onPopulateNodeForVirtualView()
1091 node.setBoundsInParent(mTempRect); in onPopulateNodeForVirtualView()
1098 node.setBoundsInParent(mTempRect); in onPopulateNodeForVirtualView()
DZoomButtonsController.java133 private final Rect mTempRect = new Rect(); field in ZoomButtonsController
619 Rect frame = mTempRect; in findViewForTouch()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardSecurityViewFlipper.java46 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()
DKeyguardPatternView.java76 private final Rect mTempRect = new Rect(); field in KeyguardPatternView
199 mTempRect.set(0, 0, 0, 0); in onTouchEvent()
200 offsetRectIntoDescendantCoords(mLockPatternView, mTempRect); in onTouchEvent()
201 ev.offsetLocation(mTempRect.left, mTempRect.top); in onTouchEvent()
203 ev.offsetLocation(-mTempRect.left, -mTempRect.top); in onTouchEvent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/
DBubbleExpandedView.java98 private Rect mTempRect = new Rect(); field in BubbleExpandedView
467 mTempRect.setEmpty(); in intersectingTouchableContent()
470 mTempRect.set(mTempLoc[0] - mExpandedViewTouchSlop, in intersectingTouchableContent()
475 if (mTempRect.contains(rawX, rawY)) { in intersectingTouchableContent()
479 mTempRect.set(mTempLoc[0], in intersectingTouchableContent()
483 if (mTempRect.contains(rawX, rawY)) { in intersectingTouchableContent()
/frameworks/base/core/java/android/view/
DWindowInsets.java75 @Nullable private Rect mTempRect; field in WindowInsets
263 if (mTempRect == null) { in getSystemWindowInsetsAsRect()
264 mTempRect = new Rect(); in getSystemWindowInsetsAsRect()
267 mTempRect.set(insets.left, insets.top, insets.right, insets.bottom); in getSystemWindowInsetsAsRect()
268 return mTempRect; in getSystemWindowInsetsAsRect()
/frameworks/base/core/java/com/android/internal/transition/
DEpicenterTranslateClipReveal.java277 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/graphics/java/android/graphics/drawable/
DNinePatchDrawable.java71 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/
DDynamicLayout.java713 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

12