/development/samples/devbytes/animation/ToonGame/src/com/example/android/toongame/ |
SkewableTextView.java | 34 RectF mTempRect = new RectF(); 77 mTempRect.set(0, 0, getRight(), getBottom()); 78 matrix.mapRect(mTempRect); 79 mTempRect.offset(getLeft() + getTranslationX(), getTop() + getTranslationY()); 80 ((View) getParent()).invalidate((int) mTempRect.left, (int) mTempRect.top, 81 (int) (mTempRect.right +.5f), (int) (mTempRect.bottom + .5f));
|
/frameworks/base/core/java/com/android/internal/widget/ |
LinearLayoutWithDefaultTouchRecepient.java | 36 private final Rect mTempRect = new Rect(); 60 mTempRect.set(0, 0, 0, 0); 61 offsetRectIntoDescendantCoords(mDefaultTouchRecepient, mTempRect); 62 ev.setLocation(ev.getX() + mTempRect.left, ev.getY() + mTempRect.top);
|
/frameworks/base/core/tests/coretests/src/android/widget/scroll/arrowscroll/ |
ButtonsWithTallTextViewInBetweenTest.java | 52 private Rect mTempRect = new Rect(); 55 descendant.getDrawingRect(mTempRect); 56 mScrollView.offsetDescendantRectToMyCoords(descendant, mTempRect); 57 return mTempRect.top; 61 descendant.getDrawingRect(mTempRect); 62 mScrollView.offsetDescendantRectToMyCoords(descendant, mTempRect); 63 return mTempRect.bottom;
|
ShortButtonsTest.java | 101 private Rect mTempRect = new Rect(); 103 b.getDrawingRect(mTempRect); 104 mScrollView.offsetDescendantRectToMyCoords(b, mTempRect); 105 return mTempRect.bottom >= mScrollView.getScrollY() 106 && mTempRect.top <= (mScrollView.getScrollY() + mScrollView.getHeight());
|
/frameworks/base/core/tests/coretests/src/android/widget/focus/ |
ScrollingThroughListOfFocusablesTest.java | 34 Rect mTempRect = new Rect(); 143 view.getRectForRow(mTempRect, mNumRowsPerItem - 1); 144 mListView.offsetDescendantRectToMyCoords(view, mTempRect); 148 mListView.getBottom() - mListView.getVerticalFadingEdgeLength() < mTempRect.bottom); 192 view.getDrawingRect(mTempRect); 193 mListView.offsetDescendantRectToMyCoords(view, mTempRect); 219 internalFocused.getRectForRow(mTempRect, row); 220 mListView.offsetDescendantRectToMyCoords(internalFocused, mTempRect); 223 mTempRect.top >= 0); 225 mTempRect.bottom < mActivity.getScreenHeight()) [all...] |
/frameworks/support/design/src/android/support/design/internal/ |
ScrimInsetsFrameLayout.java | 45 private Rect mTempRect = new Rect(); 96 mTempRect.set(0, 0, width, mInsets.top); 97 mInsetForeground.setBounds(mTempRect); 101 mTempRect.set(0, height - mInsets.bottom, width, height); 102 mInsetForeground.setBounds(mTempRect); 106 mTempRect.set(0, mInsets.top, mInsets.left, height - mInsets.bottom); 107 mInsetForeground.setBounds(mTempRect); 111 mTempRect.set(width - mInsets.right, mInsets.top, width, height - mInsets.bottom); 112 mInsetForeground.setBounds(mTempRect);
|
/development/samples/devbytes/animation/Anticipation/src/com/example/android/anticipation/ |
AnticiButton.java | 52 RectF mTempRect = new RectF(); 223 mTempRect.set(0, 0, getRight(), getBottom()); 224 matrix.mapRect(mTempRect); 225 mTempRect.offset(getLeft() + getTranslationX(), getTop() + getTranslationY()); 226 ((View) getParent()).invalidate((int) mTempRect.left, (int) mTempRect.top, 227 (int) (mTempRect.right +.5f), (int) (mTempRect.bottom + .5f));
|
/packages/apps/ExactCalculator/src/com/android/calculator2/ |
AlignedTextView.java | 33 private final Rect mTempRect = new Rect(); 58 paint.getTextBounds(LATIN_CAPITAL_LETTER, 0, 1, mTempRect); 61 (int) Math.ceil(mTempRect.top - paint.ascent()));
|
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/ |
WorkspaceAccessibilityHelper.java | 40 private final Rect mTempRect = new Rect(); 148 node.getBoundsInParent(mTempRect); 149 mTempRect.left = mTempCords[0] + (int) (mTempRect.left * scale); 150 mTempRect.right = mTempCords[0] + (int) (mTempRect.right * scale); 151 mTempRect.top = mTempCords[1] + (int) (mTempRect.top * scale); 152 mTempRect.bottom = mTempCords[1] + (int) (mTempRect.bottom * scale) [all...] |
DragAndDropAccessibilityDelegate.java | 47 private final Rect mTempRect = new Rect(); 133 mView.cellToRect(cellX, cellY, dragInfo.info.spanX, dragInfo.info.spanY, mTempRect); 134 return mTempRect;
|
/packages/apps/Launcher3/src/com/android/launcher3/folder/ |
PreviewImageView.java | 36 private final Rect mTempRect = new Rect(); 65 float scale = mParent.getDescendantRectRelativeToSelf(view, mTempRect); 67 lp.x = mTempRect.left; 68 lp.y = mTempRect.top;
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
HorizontalGridView.java | 64 private Rect mTempRect = new Rect(); 335 mTempRect.top = 0; 336 mTempRect.bottom = getHeight(); 351 mTempRect.left = 0; 352 mTempRect.right = mLowFadeShaderLength; 354 canvas.drawBitmap(tempBitmap, mTempRect, mTempRect, null); 371 mTempRect.left = 0; 372 mTempRect.right = mHighFadeShaderLength; 374 canvas.drawBitmap(tempBitmap, mTempRect, mTempRect, null) [all...] |
/frameworks/base/core/java/android/widget/ |
AccessibilityIterators.java | 121 private final Rect mTempRect = new Rect(); 144 if (!mView.getGlobalVisibleRect(mTempRect)) { 152 final int pageHeight = mTempRect.height() - mView.getTotalPaddingTop() 173 if (!mView.getGlobalVisibleRect(mTempRect)) { 181 final int pageHeight = mTempRect.height() - mView.getTotalPaddingTop()
|
HorizontalScrollView.java | 78 private final Rect mTempRect = new Rect(); 374 mTempRect.setEmpty(); [all...] |
ScrollView.java | 86 private final Rect mTempRect = new Rect(); 401 mTempRect.setEmpty(); [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
InternalSelectionView.java | 48 private Rect mTempRect = new Rect(); 151 mTempRect.set(rectLeft, rectTop, rectRight, rectTop + rowHeight); 152 canvas.drawRect(mTempRect, mPainter); 164 mTempRect.set(rectLeft + 2, rectTop + 2, 166 canvas.drawRect(mTempRect, mPainter); 194 getRectForRow(mTempRect, mSelectedRow); 195 requestRectangleOnScreen(mTempRect);
|
/frameworks/base/core/tests/coretests/src/android/util/ |
InternalSelectionView.java | 56 private Rect mTempRect = new Rect(); 157 mTempRect.set(rectLeft, rectTop, rectRight, rectTop + rowHeight); 158 canvas.drawRect(mTempRect, mPainter); 170 mTempRect.set(rectLeft + 2, rectTop + 2, 172 canvas.drawRect(mTempRect, mPainter); 207 getRectForRow(mTempRect, mSelectedRow); 208 requestRectangleOnScreen(mTempRect);
|
/frameworks/support/core-ui/java/android/support/v4/widget/ |
NestedScrollView.java | 97 private final Rect mTempRect = new Rect(); 556 mTempRect.setEmpty(); [all...] |
/frameworks/base/core/java/android/view/ |
WindowInsets.java | 37 private Rect mTempRect; 108 if (mTempRect == null) { 109 mTempRect = new Rect(); 112 mTempRect.set(mSystemWindowInsets); 115 mTempRect.setEmpty(); 117 return mTempRect;
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
KeyguardSecurityViewFlipper.java | 47 private Rect mTempRect = new Rect(); 60 mTempRect.set(0, 0, 0, 0); 64 offsetRectIntoDescendantCoords(child, mTempRect); 65 ev.offsetLocation(mTempRect.left, mTempRect.top); 67 ev.offsetLocation(-mTempRect.left, -mTempRect.top);
|
KeyguardPatternView.java | 92 private Rect mTempRect = new Rect(); 175 mTempRect.set(0, 0, 0, 0); 176 offsetRectIntoDescendantCoords(mLockPatternView, mTempRect); 177 ev.offsetLocation(mTempRect.left, mTempRect.top); 179 ev.offsetLocation(-mTempRect.left, -mTempRect.top);
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/ |
TabsAdapter.java | 48 private final Rect mTempRect = new Rect(); 142 mTempRect.set(tab.getLeft(), tab.getTop(), tab.getRight(), tab.getBottom()); 143 widget.requestRectangleOnScreen(mTempRect, false);
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
AppCompatSpinner.java | 97 private final Rect mTempRect = new Rect(); 578 background.getPadding(mTempRect); 579 width += mTempRect.left + mTempRect.right; 760 background.getPadding(mTempRect); 761 hOffset = ViewUtils.isLayoutRtl(AppCompatSpinner.this) ? mTempRect.right 762 : -mTempRect.left; 764 mTempRect.left = mTempRect.right = 0; 774 .getDisplayMetrics().widthPixels - mTempRect.left - mTempRect.right [all...] |
/frameworks/opt/setupwizard/library/gingerbread/src/com/android/setupwizardlib/util/ |
LinkAccessibilityHelper.java | 72 private final Rect mTempRect = new Rect(); 246 getBoundsForSpan(span, mTempRect); 247 if (mTempRect.isEmpty()) { 249 mTempRect.set(0, 0, 1, 1); 251 info.setBoundsInParent(mTempRect);
|
/packages/apps/TV/src/com/android/tv/guide/ |
ProgramGrid.java | 90 private final Rect mTempRect = new Rect(); 274 nextFocusedProgram.getGlobalVisibleRect(mTempRect); 297 Rect focusedRect = mTempRect; 328 if (!getGlobalVisibleRect(mTempRect)) { 331 return mTempRect.right - GuideUtils.convertMillisToPixel(FOCUS_AREA_RIGHT_MARGIN_MILLIS);
|