/packages/apps/Browser/src/com/android/browser/view/ |
D | ScrollerView.java | 72 private final Rect mTempRect = new Rect(); field in ScrollerView 411 mTempRect.setEmpty(); in executeKeyEvent() 1063 mTempRect.top = getScrollY() + height; in pageScroll() 1067 if (mTempRect.top + height > view.getBottom()) { in pageScroll() 1068 mTempRect.top = view.getBottom() - height; in pageScroll() 1072 mTempRect.top = getScrollY() - height; in pageScroll() 1073 if (mTempRect.top < 0) { in pageScroll() 1074 mTempRect.top = 0; in pageScroll() 1077 mTempRect.bottom = mTempRect.top + height; in pageScroll() 1079 return scrollAndFocus(direction, mTempRect.top, mTempRect.bottom); in pageScroll() [all …]
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
D | Switch.java | 85 private final Rect mTempRect = new Rect(); field in Switch 160 mTrackDrawable.getPadding(mTempRect); in onMeasure() 164 maxTextWidth * 2 + mThumbTextPadding * 4 + mTempRect.left + mTempRect.right); in onMeasure() 204 mThumbDrawable.getPadding(mTempRect); in hitThumb() 208 mTempRect.left + mTempRect.right + mTouchSlop; in hitThumb() 387 mTrackDrawable.getPadding(mTempRect); in onDraw() 388 int switchInnerLeft = switchLeft + mTempRect.left; in onDraw() 389 int switchInnerTop = switchTop + mTempRect.top; in onDraw() 390 int switchInnerRight = switchRight - mTempRect.right; in onDraw() 391 int switchInnerBottom = switchBottom - mTempRect.bottom; in onDraw() [all …]
|
/packages/apps/Camera/src/com/android/camera/ui/ |
D | Switch.java | 92 private final Rect mTempRect = new Rect(); field in Switch 169 mTrackDrawable.getPadding(mTempRect); in onMeasure() 173 maxTextWidth * 2 + mThumbTextPadding * 4 + mTempRect.left + mTempRect.right); in onMeasure() 213 mThumbDrawable.getPadding(mTempRect); in hitThumb() 217 mTempRect.left + mTempRect.right + mTouchSlop; in hitThumb() 396 mTrackDrawable.getPadding(mTempRect); in onDraw() 397 int switchInnerLeft = switchLeft + mTempRect.left; in onDraw() 398 int switchInnerTop = switchTop + mTempRect.top; in onDraw() 399 int switchInnerRight = switchRight - mTempRect.right; in onDraw() 400 int switchInnerBottom = switchBottom - mTempRect.bottom; in onDraw() [all …]
|
/packages/apps/Music/src/com/android/music/ |
D | TouchInterceptor.java | 70 private Rect mTempRect = new Rect(); field in TouchInterceptor 99 Rect r = mTempRect; in onInterceptTouchEvent() 167 Rect frame = mTempRect; in myPointToPosition() 307 Rect r = mTempRect; in onTouchEvent()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | Folder.java | 95 private Rect mTempRect = new Rect(); field in Folder 802 float scale = parent.getDescendantRectRelativeToSelf(mFolderIcon, mTempRect); in centerAboutIcon() 804 int centerX = (int) (mTempRect.left + mTempRect.width() * scale / 2); in centerAboutIcon() 805 int centerY = (int) (mTempRect.top + mTempRect.height() * scale / 2); in centerAboutIcon()
|
D | BubbleTextView.java | 50 private final Rect mTempRect = new Rect(); field in BubbleTextView 171 final Rect clipRect = mTempRect; in drawWithPadding()
|
D | Workspace.java | 173 private final Rect mTempRect = new Rect(); field in Workspace 1767 final Rect clipRect = mTempRect;
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/ |
D | TabsAdapter.java | 48 private final Rect mTempRect = new Rect(); field in TabsAdapter 150 mTempRect.set(tab.getLeft(), tab.getTop(), tab.getRight(), tab.getBottom()); in onPageSelected() 151 widget.requestRectangleOnScreen(mTempRect, false); in onPageSelected()
|
/packages/apps/Calculator/src/com/android/calculator2/ |
D | CalculatorEditText.java | 67 private final Rect mTempRect = new Rect(); field in CalculatorEditText 183 getPaint().getTextBounds("H", 0, 1, mTempRect); in getCompoundPaddingTop() 186 final int paddingOffset = -(fontMetrics.ascent + mTempRect.height()); in getCompoundPaddingTop()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | Folder.java | 104 private Rect mTempRect = new Rect(); field in Folder 999 float scale = parent.getDescendantRectRelativeToSelf(mFolderIcon, mTempRect); in centerAboutIcon() 1004 int centerX = (int) (mTempRect.left + mTempRect.width() * scale / 2); in centerAboutIcon() 1005 int centerY = (int) (mTempRect.top + mTempRect.height() * scale / 2); in centerAboutIcon()
|
D | CellLayout.java | 168 private Rect mTempRect = new Rect(); field in CellLayout 428 mTempRect.set(r); in onDraw() 429 Utilities.scaleRectAboutCenter(mTempRect, getChildrenScale()); in onDraw() 432 canvas.drawBitmap(b, null, mTempRect, paint); in onDraw()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | SlotView.java | 89 private final Rect mTempRect = new Rect(); field in SlotView 111 Rect rect = mLayout.getSlotRect(index, mTempRect); in setCenterIndex() 119 Rect rect = mLayout.getSlotRect(index, mTempRect); in makeSlotVisible() 316 Rect rect = mLayout.getSlotRect(index, mTempRect); in renderItem()
|
/packages/apps/DeskClock/src/com/android/deskclock/widget/sgv/ |
D | StaggeredGridView.java | 154 private final Rect mTempRect = new Rect(); field in StaggeredGridView 3384 currentFocused.getDrawingRect(mTempRect); 3385 offsetDescendantRectToMyCoords(currentFocused, mTempRect); 3386 scrollBy(0, computeScrollDeltaToGetChildRectOnScreen(mTempRect)); 3398 descendant.getDrawingRect(mTempRect); 3399 offsetDescendantRectToMyCoords(descendant, mTempRect); 3401 return (mTempRect.bottom + delta) >= getScrollY() 3402 && (mTempRect.top - delta) <= (getScrollY() + height);
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/ |
D | ScrollAdapterView.java | 468 Rect mTempRect = new Rect(); // temp variable used in UI thread 1705 focused.getFocusedRect(mTempRect); 1706 offsetDescendantRectToMyCoords(focused, mTempRect); 1707 offsetRectIntoDescendantCoords(newFocus, mTempRect); 1708 return newFocus.requestFocus(direction, mTempRect);
|