Home
last modified time | relevance | path

Searched refs:outRect (Results 1 – 25 of 44) 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.java55 public void viewToRect(View v, Rect outRect) { in viewToRect() argument
56 outRect.set(v.getLeft(), v.getTop(), v.getRight(), v.getBottom()); in viewToRect()
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/recyclerview/decorations/linear/
DLinearOffsetItemDecoration.java94 @NonNull Rect outRect, @NonNull View view, @NonNull RecyclerView parent, in getItemOffsets()
96 super.getItemOffsets(outRect, view, parent, state); in getItemOffsets()
113 outRect.left = mOffsetPx; in getItemOffsets()
115 outRect.right = mOffsetPx; in getItemOffsets()
119 outRect.left = mOffsetDrawable.getIntrinsicWidth(); in getItemOffsets()
121 outRect.right = mOffsetDrawable.getIntrinsicWidth(); in getItemOffsets()
127 outRect.top = mOffsetPx; in getItemOffsets()
129 outRect.bottom = mOffsetPx; in getItemOffsets()
133 outRect.top = mOffsetDrawable.getIntrinsicHeight(); in getItemOffsets()
135 outRect.bottom = mOffsetDrawable.getIntrinsicHeight(); in getItemOffsets()
DLinearDividerItemDecoration.java75 @NonNull Rect outRect, @NonNull View view, @NonNull RecyclerView parent, in getItemOffsets()
77 super.getItemOffsets(outRect, view, parent, state); in getItemOffsets()
86 outRect.left = mDivider.getIntrinsicWidth(); in getItemOffsets()
88 outRect.top = mDivider.getIntrinsicHeight(); in getItemOffsets()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DBaseActivityInterface.java111 DeviceProfile dp, Context context, Rect outRect, in getSwipeUpDestinationAndLength() argument
209 public final void calculateTaskSize(Context context, DeviceProfile dp, Rect outRect, in calculateTaskSize() argument
227 Gravity.apply(gravity, outWidth, outHeight, gridRect, outRect); in calculateTaskSize()
244 outRect); in calculateTaskSize()
250 Rect outRect) { in calculateTaskSizeInternal() argument
268 Gravity.apply(Gravity.CENTER, outWidth, outHeight, potentialTaskRect, outRect); in calculateTaskSizeInternal()
302 public final void calculateGridSize(Context context, DeviceProfile dp, Rect outRect) { in calculateGridSize() argument
309 outRect.set(0, 0, dp.widthPx, dp.heightPx); in calculateGridSize()
310 outRect.inset(Math.max(insets.left, sideMargin), Math.max(insets.top, topMargin), in calculateGridSize()
317 public final void calculateGridTaskSize(Context context, DeviceProfile dp, Rect outRect, in calculateGridTaskSize() argument
[all …]
DFallbackActivityInterface.java58 public int getSwipeUpDestinationAndLength(DeviceProfile dp, Context context, Rect outRect, in getSwipeUpDestinationAndLength() argument
60 calculateTaskSize(context, dp, outRect, orientationHandler); in getSwipeUpDestinationAndLength()
63 return dp.isSeascape() ? outRect.left : (dp.widthPx - outRect.right); in getSwipeUpDestinationAndLength()
65 return dp.heightPx - outRect.bottom; in getSwipeUpDestinationAndLength()
DLauncherActivityInterface.java72 public int getSwipeUpDestinationAndLength(DeviceProfile dp, Context context, Rect outRect, in getSwipeUpDestinationAndLength() argument
74 calculateTaskSize(context, dp, outRect, orientationHandler); in getSwipeUpDestinationAndLength()
76 return dp.isSeascape() ? outRect.left : (dp.widthPx - outRect.right); in getSwipeUpDestinationAndLength()
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/recyclerview/decorations/grid/
DGridOffsetItemDecoration.java95 @NonNull Rect outRect, @NonNull View view, @NonNull RecyclerView parent, in getItemOffsets()
97 super.getItemOffsets(outRect, view, parent, state); in getItemOffsets()
103 outRect.top = mOffsetPx; in getItemOffsets()
105 outRect.top = mOffsetDrawable.getIntrinsicHeight(); in getItemOffsets()
118 outRect.bottom = mOffsetPx; in getItemOffsets()
120 outRect.bottom = mOffsetDrawable.getIntrinsicHeight(); in getItemOffsets()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DRoundedCornerEnforcement.java89 @NonNull Rect outRect) { in computeRoundedRectangle() argument
90 outRect.left = 0; in computeRoundedRectangle()
91 outRect.right = background.getWidth(); in computeRoundedRectangle()
92 outRect.top = 0; in computeRoundedRectangle()
93 outRect.bottom = background.getHeight(); in computeRoundedRectangle()
95 outRect.offset(background.getLeft(), background.getTop()); in computeRoundedRectangle()
/packages/apps/Car/Notification/src/com/android/car/notification/
DCarNotificationView.java207 public void getItemOffsets(Rect outRect, View view, RecyclerView parent, in getItemOffsets() argument
209 super.getItemOffsets(outRect, view, parent, state); in getItemOffsets()
213 outRect.top = mTopAndBottomOffset; in getItemOffsets()
216 outRect.bottom = mTopAndBottomOffset; in getItemOffsets()
378 public void getItemOffsets(Rect outRect, View view, RecyclerView parent, in getItemOffsets() argument
380 super.getItemOffsets(outRect, view, parent, state); in getItemOffsets()
388 outRect.bottom = mItemSpacing; in getItemOffsets()
/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/
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()
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()
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/Launcher3/src/com/android/launcher3/
DButtonDropTarget.java248 public void getHitRectRelativeToDragLayer(android.graphics.Rect outRect) { in getHitRectRelativeToDragLayer() argument
249 super.getHitRect(outRect); in getHitRectRelativeToDragLayer()
250 outRect.bottom += mLauncher.getDeviceProfile().dropTargetDragPaddingPx; in getHitRectRelativeToDragLayer()
254 outRect.offsetTo(sTempCords[0], sTempCords[1]); in getHitRectRelativeToDragLayer()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/favorite/
DFavoriteFragment.java118 public void getItemOffsets(@NonNull Rect outRect, @NonNull View view, in getItemOffsets() argument
120 super.getItemOffsets(outRect, view, parent, state); in getItemOffsets()
132 outRect.set(leftPadding, verticalPadding, 0, verticalPadding); in getItemOffsets()
/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/WallpaperPicker2/src/com/android/wallpaper/picker/
DCategorySelectorFragment.java560 public void getItemOffsets(Rect outRect, View view, RecyclerView parent, in getItemOffsets() argument
564 outRect.left = mPadding; in getItemOffsets()
565 outRect.right = mPadding; in getItemOffsets()
571 outRect.bottom = getResources().getDimensionPixelSize( in getItemOffsets()
574 outRect.bottom = getResources().getDimensionPixelSize( in getItemOffsets()
/packages/apps/ThemePicker/src/com/android/customization/widget/
DHorizontalSpacerItemDecoration.java25 public void getItemOffsets(@NonNull Rect outRect, @NonNull View view, in getItemOffsets() argument
30 outRect.set(left, 0, right, 0); in getItemOffsets()
DDynamicAdaptiveIconDrawable.java244 final Rect outRect = mTmpOutRect; in updateLayerBoundsInternal() local
245 outRect.set(cX - insetWidth, cY - insetHeight, cX + insetWidth, cY + insetHeight); in updateLayerBoundsInternal()
247 d.setBounds(outRect); in updateLayerBoundsInternal()
494 public void getHotspotBounds(Rect outRect) { in getHotspotBounds() argument
496 outRect.set(mHotspotBounds); in getHotspotBounds()
498 super.getHotspotBounds(outRect); in getHotspotBounds()
/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/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()

12