Home
last modified time | relevance | path

Searched refs:sTempRect (Results 1 – 7 of 7) sorted by relevance

/packages/apps/Launcher3/src/com/android/launcher3/keyboard/
DViewGroupFocusHelper.java31 private static final Rect sTempRect = new Rect(); field in ViewGroupFocusHelper
65 v.getFocusedRect(sTempRect); in viewToRect()
66 outRect.left = sTempRect.left; in viewToRect()
67 outRect.top = sTempRect.top; in viewToRect()
73 outRect.left = (int) (outRect.left + (1 - v.getScaleX()) * sTempRect.width() / 2); in viewToRect()
74 outRect.top = (int) (outRect.top + (1 - v.getScaleY()) * sTempRect.height() / 2); in viewToRect()
76 outRect.right = outRect.left + (int) (v.getScaleX() * sTempRect.width()); in viewToRect()
77 outRect.bottom = outRect.top + (int) (v.getScaleY() * sTempRect.height()); in viewToRect()
/packages/apps/Launcher3/src/com/android/launcher3/pageindicators/
DPageIndicatorDots.java80 private static final RectF sTempRect = new RectF(); field in PageIndicatorDots
455 sTempRect.top = (getHeight() * 0.5f) - mDotRadius;
456 sTempRect.bottom = (getHeight() * 0.5f) + mDotRadius;
457 sTempRect.left = startX + (startCircle * mCircleGap);
458 sTempRect.right = sTempRect.left + diameter;
462 sTempRect.right += delta * mCircleGap * 2;
465 sTempRect.right += mCircleGap;
468 sTempRect.left += delta * mCircleGap * 2;
472 float rectWidth = sTempRect.width();
473 sTempRect.right = getWidth() - sTempRect.left;
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/states/
DOverviewState.java47 protected static final Rect sTempRect = new Rect(); field in OverviewState
81 recentsView.getTaskSize(sTempRect); in getWorkspaceScaleAndTranslation()
88 scale = (float) sTempRect.height() / deviceProfile.getCellLayoutHeight(); in getWorkspaceScaleAndTranslation()
90 scale = (float) sTempRect.width() / deviceProfile.getCellLayoutWidth(); in getWorkspaceScaleAndTranslation()
/packages/apps/Launcher3/src/com/android/launcher3/views/
DRecyclerViewFastScroller.java66 private static final Rect sTempRect = new Rect(); field in RecyclerViewFastScroller
454 getHitRect(sTempRect); in isHitInParent()
455 sTempRect.top += mRv.getScrollBarTop(); in isHitInParent()
457 outOffset.set(sTempRect.left, sTempRect.top); in isHitInParent()
459 return sTempRect.contains((int) x, (int) y); in isHitInParent()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DTransformingTouchDelegate.java32 private static final Rect sTempRect = new Rect(); field in TransformingTouchDelegate
44 super(sTempRect, delegateView); in TransformingTouchDelegate()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/
DTaskMenuView.java64 private static final Rect sTempRect = new Rect(); field in TaskMenuView
241 sTempRect);
262 float thumbnailAlignedX = sTempRect.left - insets.left;
263 float thumbnailAlignedY = sTempRect.top - insets.top;
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DFolder.java167 private static final Rect sTempRect = new Rect(); field in Folder
1149 parent.getDescendantRectRelativeToSelf(mFolderIcon, sTempRect); in centerAboutIcon()
1150 int centerX = sTempRect.centerX(); in centerAboutIcon()
1151 int centerY = sTempRect.centerY(); in centerAboutIcon()
1155 sTempRect.set(mActivityContext.getFolderBoundingBox()); in centerAboutIcon()
1156 int left = Utilities.boundToRange(centeredLeft, sTempRect.left, sTempRect.right - width); in centerAboutIcon()
1157 int top = Utilities.boundToRange(centeredTop, sTempRect.top, sTempRect.bottom - height); in centerAboutIcon()
1159 mActivityContext.updateOpenFolderPosition(inOutPosition, sTempRect, width, height); in centerAboutIcon()