Home
last modified time | relevance | path

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

/packages/apps/Launcher3/src/com/android/launcher3/accessibility/
DDragAndDropAccessibilityDelegate.java45 protected final Rect mTempRect = new Rect(); field in DragAndDropAccessibilityDelegate
132 mTempRect.left = mTempCords[0] + (int) (itemBounds.left * scale); in onPopulateNodeForVirtualView()
133 mTempRect.right = mTempCords[0] + (int) (itemBounds.right * scale); in onPopulateNodeForVirtualView()
134 mTempRect.top = mTempCords[1] + (int) (itemBounds.top * scale); in onPopulateNodeForVirtualView()
135 mTempRect.bottom = mTempCords[1] + (int) (itemBounds.bottom * scale); in onPopulateNodeForVirtualView()
136 node.setBoundsInScreen(mTempRect); in onPopulateNodeForVirtualView()
163 mView.cellToRect(cellX, cellY, dragInfo.info.spanX, dragInfo.info.spanY, mTempRect); in getItemBounds()
164 return mTempRect; in getItemBounds()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DNavigableAppWidgetHostView.java57 private final Rect mTempRect = new Rect(); field in NavigableAppWidgetHostView
234 getWidgetInset(mActivity.getDeviceProfile(), mTempRect); in getWorkspaceVisualDragBounds() local
235 bounds.set(mTempRect.left, mTempRect.top, width - mTempRect.right, in getWorkspaceVisualDragBounds()
236 height - mTempRect.bottom); in getWorkspaceVisualDragBounds()
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DDragPreviewProvider.java51 private final Rect mTempRect = new Rect(); field in DragPreviewProvider
84 dv.getSourceVisualDragBounds(mTempRect); in drawDragView()
85 destCanvas.translate(blurSizeOutline / 2 - mTempRect.left, in drawDragView()
86 blurSizeOutline / 2 - mTempRect.top); in drawDragView()
107 ((DraggableView) mView).getSourceVisualDragBounds(mTempRect); in createDrawable()
108 width = mTempRect.width(); in createDrawable()
109 height = mTempRect.height(); in createDrawable()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherRootView.java22 private final Rect mTempRect = new Rect(); field in LauncherRootView
48 mTempRect.set(insets); in handleSystemWindowInsets()
49 insets = mTempRect; in handleSystemWindowInsets()
64 mTempRect.set(insets.getSystemWindowInsetLeft(), insets.getSystemWindowInsetTop(), in onApplyWindowInsets()
66 handleSystemWindowInsets(mTempRect); in onApplyWindowInsets()
DShortcutAndWidgetContainer.java43 private final Rect mTempRect = new Rect(); field in ShortcutAndWidgetContainer
109 ((LauncherAppWidgetHostView) child).getWidgetInset(profile, mTempRect); in setupLp()
111 profile.appWidgetScale.x, profile.appWidgetScale.y, mBorderSpacing, mTempRect); in setupLp()
133 ((LauncherAppWidgetHostView) child).getWidgetInset(dp, mTempRect); in measureChild()
135 dp.appWidgetScale.x, dp.appWidgetScale.y, mBorderSpacing, mTempRect); in measureChild()
DCellLayout.java196 private final Rect mTempRect = new Rect(); field in CellLayout
803 cellToRect(cellX, cellY, 1, 1, mTempRect); in cellToPoint()
804 result[0] = mTempRect.left; in cellToPoint()
805 result[1] = mTempRect.top; in cellToPoint()
829 cellToRect(cellX, cellY, spanX, spanY, mTempRect); in regionToCenterPoint()
830 result[0] = mTempRect.centerX(); in regionToCenterPoint()
831 result[1] = mTempRect.centerY(); in regionToCenterPoint()
907 mBackground.getPadding(mTempRect); in onLayout()
909 left - mTempRect.left - getPaddingLeft(), in onLayout()
910 top - mTempRect.top - getPaddingTop(), in onLayout()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/touch/
DWorkspaceTouchListener.java63 private final Rect mTempRect = new Rect(); field in WorkspaceTouchListener
97 mTempRect.set(insets.left, insets.top, dl.getWidth() - insets.right, in onTouch()
99 mTempRect.inset(dp.edgeMarginPx, dp.edgeMarginPx); in onTouch()
100 handleLongPress = mTempRect.contains((int) ev.getX(), (int) ev.getY()); in onTouch()
/packages/apps/TV/src/com/android/tv/guide/
DProgramGrid.java86 private final Rect mTempRect = new Rect(); field in ProgramGrid
282 nextFocusedProgram.getGlobalVisibleRect(mTempRect); in focusFind()
305 Rect focusedRect = mTempRect; in updateUpDownFocusState()
337 if (!getGlobalVisibleRect(mTempRect)) { in getRightMostFocusablePosition()
340 return mTempRect.right - GuideUtils.convertMillisToPixel(FOCUS_AREA_RIGHT_MARGIN_MILLIS); in getRightMostFocusablePosition()
/packages/apps/Launcher3/src/com/android/launcher3/popup/
DArrowPopup.java100 private final Rect mTempRect = new Rect(); field in ArrowPopup
570 getTargetObjectLocation(mTempRect); in orientAboutObject()
575 int leftAlignedX = mTempRect.left; in orientAboutObject()
576 int rightAlignedX = mTempRect.right - width; in orientAboutObject()
581 int iconWidth = mTempRect.width(); in orientAboutObject()
604 int iconHeight = mTempRect.height(); in orientAboutObject()
605 int y = mTempRect.top - height; in orientAboutObject()
608 y = mTempRect.top + iconHeight + extraVerticalSpace; in orientAboutObject()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/
DTaskbarIconController.java41 private final Rect mTempRect = new Rect(); field in TaskbarIconController
126 mTaskbarView.mSystemButtonContainer, mTempRect); in updateInsetsTouchability()
127 insetsInfo.touchableRegion.set(mTempRect); in updateInsetsTouchability()
/packages/apps/Launcher3/src/com/android/launcher3/keyboard/
DKeyboardDragAndDropView.java70 private final Rect mTempRect = new Rect(); field in KeyboardDragAndDropView
231 mCurrentSelection.populate(mTempNodeInfo).getBoundsInScreen(mTempRect); in getNextSelection()
239 int majorAxisWeight = majorAxis.applyAsInt(mTempRect, mTempRect2); in getNextSelection()
244 - minorAxis.applyAsInt(mTempRect); in getNextSelection()
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DLauncherDelegate.java54 private final Rect mTempRect = new Rect(); field in LauncherDelegate
88 mTempRect.set(lp.x, lp.y, lp.x + lp.width, lp.y + lp.height); in addRectForColorExtraction()
90 mLauncher.getWorkspace().getCurrentPage(), mTempRect, mTempRectF); in addRectForColorExtraction()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/
DRecentsView.java367 protected final Rect mTempRect = new Rect(); field in RecentsView
1331 getTaskSize(mTempRect); in updateSizeAndPadding()
1332 mTaskWidth = mTempRect.width(); in updateSizeAndPadding()
1333 mTaskHeight = mTempRect.height(); in updateSizeAndPadding()
1335 mTempRect.top -= dp.overviewTaskThumbnailTopMarginPx; in updateSizeAndPadding()
1336 setPadding(mTempRect.left - mInsets.left, mTempRect.top - mInsets.top, in updateSizeAndPadding()
1337 dp.widthPx - mInsets.right - mTempRect.right, in updateSizeAndPadding()
1338 dp.heightPx - mInsets.bottom - mTempRect.bottom); in updateSizeAndPadding()
1408 mSizeStrategy.calculateTaskSize(mActivity, mActivity.getDeviceProfile(), mTempRect, in getSelectedTaskSize()
1410 int taskWidth = mTempRect.width(); in getSelectedTaskSize()
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DFallbackSwipeHandler.java183 private final Rect mTempRect = new Rect(); field in FallbackSwipeHandler.FallbackHomeAnimationFactory
310 currentRect.roundOut(mTempRect); in update()
313 t.setGeometry(mSurfaceControl, null, mTempRect, Surface.ROTATION_0); in update()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DSlotView.java89 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/TvSettings/Settings/src/com/android/tv/settings/widget/
DScrollAdapterView.java458 final Rect mTempRect = new Rect(); // temp variable used in UI thread
1666 focused.getFocusedRect(mTempRect);
1667 offsetDescendantRectToMyCoords(focused, mTempRect);
1668 offsetRectIntoDescendantCoords(newFocus, mTempRect);
1669 return newFocus.requestFocus(direction, mTempRect);