/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/ |
D | HorizontalScrollView.java | 71 private final Rect mTempRect = new Rect(); field in HorizontalScrollView 338 mTempRect.setEmpty(); in executeKeyEvent() 938 mTempRect.left = getScrollX() + width; in pageScroll() 942 if (mTempRect.left + width > view.getRight()) { in pageScroll() 943 mTempRect.left = view.getRight() - width; in pageScroll() 947 mTempRect.left = getScrollX() - width; in pageScroll() 948 if (mTempRect.left < 0) { in pageScroll() 949 mTempRect.left = 0; in pageScroll() 952 mTempRect.right = mTempRect.left + width; in pageScroll() 954 return scrollAndFocus(direction, mTempRect.left, mTempRect.right); in pageScroll() [all …]
|
/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 799 float scale = parent.getDescendantRectRelativeToSelf(mFolderIcon, mTempRect); in centerAboutIcon() 801 int centerX = (int) (mTempRect.left + mTempRect.width() * scale / 2); in centerAboutIcon() 802 int centerY = (int) (mTempRect.top + mTempRect.height() * scale / 2); in centerAboutIcon()
|
D | BubbleTextView.java | 50 private final Rect mTempRect = new Rect(); field in BubbleTextView 168 final Rect clipRect = mTempRect; in drawWithPadding()
|
D | Workspace.java | 172 private final Rect mTempRect = new Rect(); field in Workspace 1766 final Rect clipRect = mTempRect;
|
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
D | MultiAdapterSpinner.java | 61 private Rect mTempRect = new Rect(); field in MultiAdapterSpinner 151 background.getPadding(mTempRect); in onClick() 152 bgOffset = -mTempRect.left; in onClick()
|
/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/Launcher3/src/com/android/launcher3/ |
D | Folder.java | 100 private Rect mTempRect = new Rect(); field in Folder 937 float scale = parent.getDescendantRectRelativeToSelf(mFolderIcon, mTempRect); in centerAboutIcon() 942 int centerX = (int) (mTempRect.left + mTempRect.width() * scale / 2); in centerAboutIcon() 943 int centerY = (int) (mTempRect.top + mTempRect.height() * scale / 2); in centerAboutIcon()
|
D | BubbleTextView.java | 50 private final Rect mTempRect = new Rect(); field in BubbleTextView 186 final Rect clipRect = mTempRect; in drawWithPadding()
|
D | CellLayout.java | 173 private Rect mTempRect = new Rect(); field in CellLayout 442 mTempRect.set(r); in onDraw() 443 Utilities.scaleRectAboutCenter(mTempRect, getChildrenScale()); in onDraw() 446 canvas.drawBitmap(b, null, mTempRect, paint); in onDraw()
|
D | Workspace.java | 203 private final Rect mTempRect = new Rect(); field in Workspace 2467 final Rect clipRect = mTempRect; in drawDragView()
|
/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);
|