Home
last modified time | relevance | path

Searched refs:outRect (Results 1 – 25 of 40) sorted by relevance

12

/packages/apps/Launcher3/src/com/android/launcher3/keyboard/
DViewGroupFocusHelper.java37 public void viewToRect(View v, Rect outRect) { in viewToRect() argument
38 outRect.left = 0; in viewToRect()
39 outRect.top = 0; in viewToRect()
41 computeLocationRelativeToContainer(v, outRect); in viewToRect()
45 outRect.left += (1 - v.getScaleX()) * v.getWidth() / 2; in viewToRect()
46 outRect.top += (1 - v.getScaleY()) * v.getHeight() / 2; in viewToRect()
48 outRect.right = outRect.left + (int) (v.getScaleX() * v.getWidth()); in viewToRect()
49 outRect.bottom = outRect.top + (int) (v.getScaleY() * v.getHeight()); in viewToRect()
52 private void computeLocationRelativeToContainer(View child, Rect outRect) { in computeLocationRelativeToContainer() argument
54 outRect.left += child.getX(); in computeLocationRelativeToContainer()
[all …]
DFocusIndicatorHelper.java212 public abstract void viewToRect(View v, Rect outRect); in viewToRect() argument
250 public void viewToRect(View v, Rect outRect) { in viewToRect() argument
251 outRect.set(v.getLeft(), v.getTop(), v.getRight(), v.getBottom()); in viewToRect()
/packages/apps/Car/libs/car-ui-lib/src/com/android/car/ui/recyclerview/decorations/linear/
DLinearOffsetItemDecoration.java91 Rect outRect, View view, RecyclerView parent, RecyclerView.State state) { in getItemOffsets() argument
92 super.getItemOffsets(outRect, view, parent, state); in getItemOffsets()
108 outRect.left = mOffsetPx; in getItemOffsets()
110 outRect.right = mOffsetPx; in getItemOffsets()
114 outRect.left = mOffsetDrawable.getIntrinsicWidth(); in getItemOffsets()
116 outRect.right = mOffsetDrawable.getIntrinsicWidth(); in getItemOffsets()
122 outRect.top = mOffsetPx; in getItemOffsets()
124 outRect.bottom = mOffsetPx; in getItemOffsets()
128 outRect.top = mOffsetDrawable.getIntrinsicHeight(); in getItemOffsets()
130 outRect.bottom = mOffsetDrawable.getIntrinsicHeight(); in getItemOffsets()
DLinearDividerItemDecoration.java71 Rect outRect, View view, RecyclerView parent, RecyclerView.State state) { in getItemOffsets() argument
72 super.getItemOffsets(outRect, view, parent, state); in getItemOffsets()
80 outRect.left = mDivider.getIntrinsicWidth(); in getItemOffsets()
82 outRect.top = mDivider.getIntrinsicHeight(); in getItemOffsets()
/packages/apps/Car/Notification/src/com/android/car/notification/
DCarNotificationView.java133 public void getItemOffsets(Rect outRect, View view, RecyclerView parent, in getItemOffsets() argument
135 super.getItemOffsets(outRect, view, parent, state); in getItemOffsets()
139 outRect.top = mTopAndBottomOffset; in getItemOffsets()
142 outRect.bottom = mTopAndBottomOffset; in getItemOffsets()
159 public void getItemOffsets(Rect outRect, View view, RecyclerView parent, in getItemOffsets() argument
161 super.getItemOffsets(outRect, view, parent, state); in getItemOffsets()
169 outRect.bottom = mItemSpacing; in getItemOffsets()
/packages/apps/Car/libs/car-ui-lib/src/com/android/car/ui/recyclerview/decorations/grid/
DGridOffsetItemDecoration.java93 Rect outRect, View view, RecyclerView parent, RecyclerView.State state) { in getItemOffsets() argument
94 super.getItemOffsets(outRect, view, parent, state); in getItemOffsets()
100 outRect.top = mOffsetPx; in getItemOffsets()
102 outRect.top = mOffsetDrawable.getIntrinsicHeight(); in getItemOffsets()
115 outRect.bottom = mOffsetPx; in getItemOffsets()
117 outRect.bottom = mOffsetDrawable.getIntrinsicHeight(); in getItemOffsets()
DGridDividerItemDecoration.java76 Rect outRect, View view, RecyclerView parent, RecyclerView.State state) { in getItemOffsets() argument
77 outRect.set( in getItemOffsets()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DLayoutUtils.java53 public static void calculateLauncherTaskSize(Context context, DeviceProfile dp, Rect outRect) { in calculateLauncherTaskSize() argument
64 calculateTaskSize(context, dp, extraSpace, MULTI_WINDOW_STRATEGY_HALF_SCREEN, outRect); in calculateLauncherTaskSize()
67 public static void calculateFallbackTaskSize(Context context, DeviceProfile dp, Rect outRect) { in calculateFallbackTaskSize() argument
68 calculateTaskSize(context, dp, 0, MULTI_WINDOW_STRATEGY_DEVICE_PROFILE, outRect); in calculateFallbackTaskSize()
73 float extraVerticalSpace, @MultiWindowStrategy int multiWindowStrategy, Rect outRect) { in calculateTaskSize() argument
127 outRect.set(Math.round(x), Math.round(y), in calculateTaskSize()
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/
DGridSpacingItemDecoration.java42 public void getItemOffsets(Rect outRect, View view, RecyclerView parent, in getItemOffsets() argument
48 outRect.left = column * mSpacing / spanCount; in getItemOffsets()
49 outRect.right = mSpacing - (column + 1) * mSpacing / spanCount; in getItemOffsets()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/fragment/
DSeriesFragment.java176 …public void getItemOffsets(@NonNull Rect outRect, @NonNull View view, @NonNull RecyclerView parent… in getItemOffsets() argument
179 outRect.left = outRect.right = (int) Math.ceil(mXOffset * displayMetrics.density); in getItemOffsets()
181 outRect.bottom = (int) Math.ceil(mYOffset * displayMetrics.density); in getItemOffsets()
DGenreFragment.java172 …public void getItemOffsets(@NonNull Rect outRect, @NonNull View view, @NonNull RecyclerView parent… in getItemOffsets() argument
175 outRect.left = outRect.right = (int) Math.ceil(mXOffset * displayMetrics.density); in getItemOffsets()
177 outRect.bottom = (int) Math.ceil(mYOffset * displayMetrics.density); in getItemOffsets()
DMovieFragment.java181 …public void getItemOffsets(@NonNull Rect outRect, @NonNull View view, @NonNull RecyclerView parent… in getItemOffsets() argument
184 outRect.left = outRect.right = (int) Math.ceil(mXOffset * displayMetrics.density); in getItemOffsets()
186 outRect.bottom = (int) Math.ceil(mYOffset * displayMetrics.density); in getItemOffsets()
DAlbumFragment.java176 …public void getItemOffsets(@NonNull Rect outRect, @NonNull View view, @NonNull RecyclerView parent… in getItemOffsets() argument
179 outRect.left = outRect.right = (int) Math.ceil(mXOffset * displayMetrics.density); in getItemOffsets()
181 outRect.bottom = (int) Math.ceil(mYOffset * displayMetrics.density); in getItemOffsets()
DArtistFragment.java187 …public void getItemOffsets(@NonNull Rect outRect, @NonNull View view, @NonNull RecyclerView parent… in getItemOffsets() argument
190 outRect.left = outRect.right = (int) Math.ceil(mXOffset * displayMetrics.density); in getItemOffsets()
192 outRect.bottom = (int) Math.ceil(mYOffset * displayMetrics.density); in getItemOffsets()
DPlaylistFragment.java232 …public void getItemOffsets(@NonNull Rect outRect, @NonNull View view, @NonNull RecyclerView parent… in getItemOffsets() argument
235 outRect.left = outRect.right = (int) Math.ceil(mXOffset * displayMetrics.density); in getItemOffsets()
237 outRect.bottom = (int) Math.ceil(mYOffset * displayMetrics.density); in getItemOffsets()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/favorite/
DFavoriteFragment.java97 public void getItemOffsets(@NonNull Rect outRect, @NonNull View view, in getItemOffsets() argument
99 super.getItemOffsets(outRect, view, parent, state); in getItemOffsets()
111 outRect.set(leftPadding, verticalPadding, 0, verticalPadding); in getItemOffsets()
/packages/apps/Launcher3/src/com/android/launcher3/
DButtonDropTarget.java316 public void getHitRectRelativeToDragLayer(android.graphics.Rect outRect) { in getHitRectRelativeToDragLayer() argument
317 super.getHitRect(outRect); in getHitRectRelativeToDragLayer()
318 outRect.bottom += mBottomDragPadding; in getHitRectRelativeToDragLayer()
322 outRect.offsetTo(sTempCords[0], sTempCords[1]); in getHitRectRelativeToDragLayer()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DImageStraighten.java185 public static void getUntranslatedStraightenCropBounds(RectF outRect, float straightenAngle) { in getUntranslatedStraightenCropBounds() argument
193 double rw = outRect.width(); in getUntranslatedStraightenCropBounds()
194 double rh = outRect.height(); in getUntranslatedStraightenCropBounds()
203 outRect.set(left, top, right, bottom); in getUntranslatedStraightenCropBounds()
/packages/apps/ThemePicker/src/com/android/customization/widget/
DDynamicAdaptiveIconDrawable.java247 final Rect outRect = mTmpOutRect; in updateLayerBoundsInternal() local
248 outRect.set(cX - insetWidth, cY - insetHeight, cX + insetWidth, cY + insetHeight); in updateLayerBoundsInternal()
250 d.setBounds(outRect); in updateLayerBoundsInternal()
497 public void getHotspotBounds(Rect outRect) { in getHotspotBounds() argument
499 outRect.set(mHotspotBounds); in getHotspotBounds()
501 super.getHotspotBounds(outRect); in getHotspotBounds()
DHorizontalSpacerItemDecoration.java25 public void getItemOffsets(@NonNull Rect outRect, @NonNull View view, in getItemOffsets() argument
30 outRect.set(left, 0, right, 0); in getItemOffsets()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/
DFallbackActivityControllerHelper.java62 public int getSwipeUpDestinationAndLength(DeviceProfile dp, Context context, Rect outRect) { in getSwipeUpDestinationAndLength() argument
63 LayoutUtils.calculateFallbackTaskSize(context, dp, outRect); in getSwipeUpDestinationAndLength()
70 return dp.heightPx - outRect.bottom; in getSwipeUpDestinationAndLength()
/packages/apps/Messaging/src/com/android/messaging/ui/animation/
DPopupTransitionAnimation.java297 private static boolean getViewScreenMeasureRect(final View view, final Rect outRect) { in getViewScreenMeasureRect() argument
298 outRect.set(UiUtils.getMeasuredBoundsOnScreen(view)); in getViewScreenMeasureRect()
299 return !outRect.isEmpty(); in getViewScreenMeasureRect()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/widget/
DGridMarginDecoration.java56 public void getItemOffsets(Rect outRect, View view, RecyclerView parent, in getItemOffsets() argument
58 outRect.set(0, 0, horizontalMargin, verticalMargin); in getItemOffsets()
/packages/apps/Car/Settings/src/com/android/car/settings/users/
DUserGridRecyclerView.java444 public void getItemOffsets(Rect outRect, View view, RecyclerView parent, in getItemOffsets() argument
446 super.getItemOffsets(outRect, view, parent, state); in getItemOffsets()
455 outRect.bottom = mItemSpacing; in getItemOffsets()
/packages/apps/Launcher3/go/quickstep/src/com/android/quickstep/views/
DIconRecentsView.java229 public void getItemOffsets(@NonNull Rect outRect, @NonNull View view, in onFinishInflate()
237 outRect.top = (int) res.getDimension( in onFinishInflate()
239 outRect.bottom = (int) res.getDimension( in onFinishInflate()
249 outRect.top = desiredTopMargin - mInsets.bottom; in onFinishInflate()
253 outRect.top = desiredTopMargin; in onFinishInflate()

12