Home
last modified time | relevance | path

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

12

/frameworks/support/design/src/android/support/design/internal/
DScrimInsetsFrameLayout.java41 private Rect mTempRect = new Rect(); field in ScrimInsetsFrameLayout
92 mTempRect.set(0, 0, width, mInsets.top); in draw()
93 mInsetForeground.setBounds(mTempRect); in draw()
97 mTempRect.set(0, height - mInsets.bottom, width, height); in draw()
98 mInsetForeground.setBounds(mTempRect); in draw()
102 mTempRect.set(0, mInsets.top, mInsets.left, height - mInsets.bottom); in draw()
103 mInsetForeground.setBounds(mTempRect); in draw()
107 mTempRect.set(width - mInsets.right, mInsets.top, width, height - mInsets.bottom); in draw()
108 mInsetForeground.setBounds(mTempRect); in draw()
/frameworks/base/core/tests/coretests/src/android/widget/focus/
DScrollingThroughListOfFocusablesTest.java34 Rect mTempRect = new Rect(); field in ScrollingThroughListOfFocusablesTest
143 view.getRectForRow(mTempRect, mNumRowsPerItem - 1); in testNoFadingEdgeAtBottomOfLastItem()
144 mListView.offsetDescendantRectToMyCoords(view, mTempRect); in testNoFadingEdgeAtBottomOfLastItem()
148 mListView.getBottom() - mListView.getVerticalFadingEdgeLength() < mTempRect.bottom); in testNoFadingEdgeAtBottomOfLastItem()
192 view.getDrawingRect(mTempRect); in testNavigatingUpThroughInternalSelection()
193 mListView.offsetDescendantRectToMyCoords(view, mTempRect); in testNavigatingUpThroughInternalSelection()
219 internalFocused.getRectForRow(mTempRect, row); in assertInternallySelectedRowOnScreen()
220 mListView.offsetDescendantRectToMyCoords(internalFocused, mTempRect); in assertInternallySelectedRowOnScreen()
223 mTempRect.top >= 0); in assertInternallySelectedRowOnScreen()
225 mTempRect.bottom < mActivity.getScreenHeight()); in assertInternallySelectedRowOnScreen()
/frameworks/base/core/java/com/android/internal/widget/
DLinearLayoutWithDefaultTouchRecepient.java36 private final Rect mTempRect = new Rect(); field in LinearLayoutWithDefaultTouchRecepient
60 mTempRect.set(0, 0, 0, 0); in dispatchTouchEvent()
61 offsetRectIntoDescendantCoords(mDefaultTouchRecepient, mTempRect); in dispatchTouchEvent()
62 ev.setLocation(ev.getX() + mTempRect.left, ev.getY() + mTempRect.top); in dispatchTouchEvent()
/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/support/v17/leanback/src/android/support/v17/leanback/widget/
DHorizontalGridView.java64 private Rect mTempRect = new Rect(); field in HorizontalGridView
336 mTempRect.top = 0; in draw()
337 mTempRect.bottom = getHeight(); in draw()
352 mTempRect.left = 0; in draw()
353 mTempRect.right = mLowFadeShaderLength; in draw()
355 canvas.drawBitmap(tempBitmap, mTempRect, mTempRect, null); in draw()
372 mTempRect.left = 0; in draw()
373 mTempRect.right = mHighFadeShaderLength; in draw()
375 canvas.drawBitmap(tempBitmap, mTempRect, mTempRect, null); in draw()
/frameworks/base/core/java/android/widget/
DHorizontalScrollView.java77 private final Rect mTempRect = new Rect(); field in HorizontalScrollView
366 mTempRect.setEmpty(); in executeKeyEvent()
995 mTempRect.left = getScrollX() + width; in pageScroll()
999 if (mTempRect.left + width > view.getRight()) { in pageScroll()
1000 mTempRect.left = view.getRight() - width; in pageScroll()
1004 mTempRect.left = getScrollX() - width; in pageScroll()
1005 if (mTempRect.left < 0) { in pageScroll()
1006 mTempRect.left = 0; in pageScroll()
1009 mTempRect.right = mTempRect.left + width; in pageScroll()
1011 return scrollAndFocus(direction, mTempRect.left, mTempRect.right); in pageScroll()
[all …]
DScrollView.java83 private final Rect mTempRect = new Rect(); field in ScrollView
391 mTempRect.setEmpty(); in executeKeyEvent()
1008 mTempRect.top = getScrollY() + height; in pageScroll()
1012 if (mTempRect.top + height > view.getBottom()) { in pageScroll()
1013 mTempRect.top = view.getBottom() - height; in pageScroll()
1017 mTempRect.top = getScrollY() - height; in pageScroll()
1018 if (mTempRect.top < 0) { in pageScroll()
1019 mTempRect.top = 0; in pageScroll()
1022 mTempRect.bottom = mTempRect.top + height; in pageScroll()
1024 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.java105 private final Rect mTempRect = new Rect(); field in ListPopupWindow
508 popupBackground.getPadding(mTempRect); in setContentWidth()
509 mDropDownWidth = mTempRect.left + mTempRect.right + width; in setContentWidth()
1190 background.getPadding(mTempRect); in buildDropDown()
1191 padding = mTempRect.top + mTempRect.bottom; in buildDropDown()
1196 mDropDownVerticalOffset = -mTempRect.top; in buildDropDown()
1199 mTempRect.setEmpty(); in buildDropDown()
1217 - (mTempRect.left + mTempRect.right), in buildDropDown()
1223 - (mTempRect.left + mTempRect.right), in buildDropDown()
DSpinner.java88 private final Rect mTempRect = new Rect(); field in Spinner
857 background.getPadding(mTempRect); in measureContentWidth()
858 width += mTempRect.left + mTempRect.right; in measureContentWidth()
1195 background.getPadding(mTempRect); in computeContentWidth()
1196 hOffset = isLayoutRtl() ? mTempRect.right : -mTempRect.left; in computeContentWidth()
1198 mTempRect.left = mTempRect.right = 0; in computeContentWidth()
1209 .getDisplayMetrics().widthPixels - mTempRect.left - mTempRect.right; in computeContentWidth()
DCalendarViewLegacyDelegate.java1146 private final Rect mTempRect = new Rect(); field in CalendarViewLegacyDelegate.WeekView
1370 mTempRect.top = mWeekSeperatorLineWidth; in drawBackground()
1371 mTempRect.bottom = mHeight; in drawBackground()
1376 mTempRect.left = 0; in drawBackground()
1377 mTempRect.right = mSelectedLeft - 2; in drawBackground()
1379 mTempRect.left = mShowWeekNumber ? mWidth / mNumCells : 0; in drawBackground()
1380 mTempRect.right = mSelectedLeft - 2; in drawBackground()
1382 canvas.drawRect(mTempRect, mDrawPaint); in drawBackground()
1385 mTempRect.left = mSelectedRight + 3; in drawBackground()
1386 mTempRect.right = mShowWeekNumber ? mWidth - mWidth / mNumCells : mWidth; in drawBackground()
[all …]
DSwitch.java159 private final Rect mTempRect = new Rect(); field in Switch
820 final Rect padding = mTempRect; in onMeasure()
908 mThumbDrawable.getPadding(mTempRect); in hitThumb()
912 mTempRect.left + mTempRect.right + mTouchSlop; in hitThumb()
1093 final Rect trackPadding = mTempRect; in onLayout()
1144 final Rect padding = mTempRect; in draw()
1210 final Rect padding = mTempRect; in onDraw()
1313 final Rect padding = mTempRect; in getThumbScrollRange()
DListView.java135 private final Rect mTempRect = new Rect(); field in ListView
2524 Rect focusedRect = mTempRect; in handleHorizontalFocusWithinListItem()
3019 mTempRect.set(0, ySearchPoint, 0, ySearchPoint); in arrowScrollFocused()
3029 mTempRect.set(0, ySearchPoint, 0, ySearchPoint); in arrowScrollFocused()
3031 newFocus = FocusFinder.getInstance().findNextFocusFromRect(this, mTempRect, direction); in arrowScrollFocused()
3108 newFocus.getDrawingRect(mTempRect);
3109 offsetDescendantRectToMyCoords(newFocus, mTempRect);
3111 if (mTempRect.top < mListPadding.top) {
3112 amountToScroll = mListPadding.top - mTempRect.top;
3119 if (mTempRect.bottom > listBottom) {
[all …]
/frameworks/base/core/tests/coretests/src/android/util/
DInternalSelectionView.java56 private Rect mTempRect = new Rect(); field in InternalSelectionView
157 mTempRect.set(rectLeft, rectTop, rectRight, rectTop + rowHeight); in onDraw()
158 canvas.drawRect(mTempRect, mPainter); in onDraw()
170 mTempRect.set(rectLeft + 2, rectTop + 2, in onDraw()
172 canvas.drawRect(mTempRect, mPainter); in onDraw()
207 getRectForRow(mTempRect, mSelectedRow); in ensureRectVisible()
208 requestRectangleOnScreen(mTempRect); in ensureRectVisible()
/frameworks/support/core-ui/java/android/support/v4/widget/
DNestedScrollView.java95 private final Rect mTempRect = new Rect(); field in NestedScrollView
523 mTempRect.setEmpty(); in executeKeyEvent()
1109 mTempRect.top = getScrollY() + height; in pageScroll()
1113 if (mTempRect.top + height > view.getBottom()) { in pageScroll()
1114 mTempRect.top = view.getBottom() - height; in pageScroll()
1118 mTempRect.top = getScrollY() - height; in pageScroll()
1119 if (mTempRect.top < 0) { in pageScroll()
1120 mTempRect.top = 0; in pageScroll()
1123 mTempRect.bottom = mTempRect.top + height; in pageScroll()
1125 return scrollAndFocus(direction, mTempRect.top, mTempRect.bottom); in pageScroll()
[all …]
/frameworks/base/core/java/android/view/
DWindowInsets.java37 private Rect mTempRect; field in WindowInsets
108 if (mTempRect == null) { in getSystemWindowInsets()
109 mTempRect = new Rect(); in getSystemWindowInsets()
112 mTempRect.set(mSystemWindowInsets); in getSystemWindowInsets()
115 mTempRect.setEmpty(); in getSystemWindowInsets()
117 return mTempRect; in getSystemWindowInsets()
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
DKeyguardSecurityViewFlipper.java47 private Rect mTempRect = new Rect(); field in KeyguardSecurityViewFlipper
60 mTempRect.set(0, 0, 0, 0); in onTouchEvent()
64 offsetRectIntoDescendantCoords(child, mTempRect); in onTouchEvent()
65 ev.offsetLocation(mTempRect.left, mTempRect.top); in onTouchEvent()
67 ev.offsetLocation(-mTempRect.left, -mTempRect.top); in onTouchEvent()
DKeyguardPatternView.java89 private Rect mTempRect = new Rect(); field in KeyguardPatternView
172 mTempRect.set(0, 0, 0, 0); in onTouchEvent()
173 offsetRectIntoDescendantCoords(mLockPatternView, mTempRect); in onTouchEvent()
174 ev.offsetLocation(mTempRect.left, mTempRect.top); in onTouchEvent()
176 ev.offsetLocation(-mTempRect.left, -mTempRect.top); in onTouchEvent()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DAppCompatSpinner.java97 private final Rect mTempRect = new Rect(); field in AppCompatSpinner
570 background.getPadding(mTempRect); in compatMeasureContentWidth()
571 width += mTempRect.left + mTempRect.right; in compatMeasureContentWidth()
738 background.getPadding(mTempRect); in computeContentWidth()
739 hOffset = ViewUtils.isLayoutRtl(AppCompatSpinner.this) ? mTempRect.right in computeContentWidth()
740 : -mTempRect.left; in computeContentWidth()
742 mTempRect.left = mTempRect.right = 0; in computeContentWidth()
752 .getDisplayMetrics().widthPixels - mTempRect.left - mTempRect.right; in computeContentWidth()
DListPopupWindow.java140 private final Rect mTempRect = new Rect(); field in ListPopupWindow
547 popupBackground.getPadding(mTempRect); in setContentWidth()
548 mDropDownWidth = mTempRect.left + mTempRect.right + width; in setContentWidth()
1239 background.getPadding(mTempRect); in buildDropDown()
1240 padding = mTempRect.top + mTempRect.bottom; in buildDropDown()
1245 mDropDownVerticalOffset = -mTempRect.top; in buildDropDown()
1248 mTempRect.setEmpty(); in buildDropDown()
1266 - (mTempRect.left + mTempRect.right), in buildDropDown()
1272 - (mTempRect.left + mTempRect.right), in buildDropDown()
DSwitchCompat.java166 private final Rect mTempRect = new Rect(); field in SwitchCompat
790 final Rect padding = mTempRect; in onMeasure()
878 mThumbDrawable.getPadding(mTempRect); in hitThumb()
882 mTempRect.left + mTempRect.right + mTouchSlop; in hitThumb()
1083 final Rect trackPadding = mTempRect; in onLayout()
1134 final Rect padding = mTempRect; in draw()
1201 final Rect padding = mTempRect; in onDraw()
1304 final Rect padding = mTempRect; in getThumbScrollRange()
/frameworks/opt/setupwizard/library/eclair-mr1/src/com/android/setupwizardlib/util/
DLinkAccessibilityHelper.java62 private final Rect mTempRect = new Rect(); field in LinkAccessibilityHelper
120 getBoundsForSpan(span, mTempRect); in onPopulateNodeForVirtualView()
121 if (mTempRect.isEmpty()) { in onPopulateNodeForVirtualView()
123 mTempRect.set(0, 0, 1, 1); in onPopulateNodeForVirtualView()
125 info.setBoundsInParent(mTempRect); in onPopulateNodeForVirtualView()
/frameworks/support/core-ui/java/android/support/v4/view/
DPagerTabStrip.java65 private final Rect mTempRect = new Rect(); field in PagerTabStrip
281 final Rect r = mTempRect; in updateTextPositions()
/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()

12