Home
last modified time | relevance | path

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

123

/packages/apps/Launcher3/src/com/android/launcher3/keyboard/
DViewGroupFocusHelper.java61 public void viewToRect(View v, Rect outRect) { in viewToRect() argument
66 outRect.left = sTempRect.left; in viewToRect()
67 outRect.top = sTempRect.top; in viewToRect()
69 computeLocationRelativeToContainer(v, outRect); 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()
80 private void computeLocationRelativeToContainer(View child, Rect outRect) { in computeLocationRelativeToContainer() argument
85 outRect.left += child.getX(); in computeLocationRelativeToContainer()
[all …]
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/widget/
DGridPaddingDecorationCreativeCategory.java47 public void getItemOffsets(Rect outRect, View view, RecyclerView parent, in getItemOffsets() argument
56 outRect.bottom = mPaddingBottom; in getItemOffsets()
77 outRect.right = mEdgePadding; in getItemOffsets()
78 outRect.left = padding; in getItemOffsets()
80 outRect.left = mEdgePadding; in getItemOffsets()
81 outRect.right = padding; in getItemOffsets()
87 outRect.right = padding; in getItemOffsets()
88 outRect.left = mEdgePadding; in getItemOffsets()
90 outRect.left = padding; in getItemOffsets()
91 outRect.right = mEdgePadding; in getItemOffsets()
[all …]
DGridPaddingDecoration.java39 public void getItemOffsets(Rect outRect, View view, RecyclerView parent, in getItemOffsets() argument
43 outRect.left = mPaddingHorizontal; in getItemOffsets()
44 outRect.right = mPaddingHorizontal; in getItemOffsets()
45 outRect.bottom = mPaddingBottom; in getItemOffsets()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DBaseContainerInterface.java88 DeviceProfile dp, Context context, Rect outRect, in getSwipeUpDestinationAndLength() argument
208 public final void calculateTaskSize(Context context, DeviceProfile dp, Rect outRect, in calculateTaskSize() argument
212 calculateGridTaskSize(context, dp, outRect, orientationHandler); in calculateTaskSize()
214 calculateFocusTaskSize(context, dp, outRect); in calculateTaskSize()
231 outRect, in calculateTaskSize()
239 public final void calculateCarouselTaskSize(Context context, DeviceProfile dp, Rect outRect, in calculateCarouselTaskSize() argument
247 outRect); in calculateCarouselTaskSize()
249 calculateTaskSize(context, dp, outRect, orientationHandler); in calculateCarouselTaskSize()
253 private void calculateFocusTaskSize(Context context, DeviceProfile dp, Rect outRect) { in calculateFocusTaskSize() argument
258 calculateTaskSizeInternal(context, dp, gridRect, maxScale, Gravity.CENTER, outRect); in calculateFocusTaskSize()
[all …]
DFallbackActivityInterface.java62 public int getSwipeUpDestinationAndLength(DeviceProfile dp, Context context, Rect outRect, in getSwipeUpDestinationAndLength() argument
64 calculateTaskSize(context, dp, outRect, orientationHandler); in getSwipeUpDestinationAndLength()
66 return dp.isSeascape() ? outRect.left : (dp.widthPx - outRect.right); in getSwipeUpDestinationAndLength()
68 return dp.heightPx - outRect.bottom; in getSwipeUpDestinationAndLength()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/ui/
DAlbumsTabItemDecoration.java47 public void getItemOffsets(Rect outRect, View view, RecyclerView parent, in getItemOffsets() argument
51 outRect.setEmpty(); in getItemOffsets()
59 outRect.setEmpty(); in getItemOffsets()
81 outRect.top = mSpacing; in getItemOffsets()
83 outRect.top = mTopSpacing; in getItemOffsets()
91 outRect.left = end; in getItemOffsets()
92 outRect.right = start; in getItemOffsets()
94 outRect.left = start; in getItemOffsets()
95 outRect.right = end; in getItemOffsets()
DPhotosTabItemDecoration.java45 public void getItemOffsets(Rect outRect, View view, RecyclerView parent, in getItemOffsets() argument
49 outRect.setEmpty(); in getItemOffsets()
57 outRect.set(0, 0, 0, 0); in getItemOffsets()
72 outRect.top = mSpacing; in getItemOffsets()
82 outRect.left = end; in getItemOffsets()
83 outRect.right = start; in getItemOffsets()
85 outRect.left = start; in getItemOffsets()
86 outRect.right = end; in getItemOffsets()
/packages/apps/Car/Launcher/libs/appgrid/lib/src/com/android/car/carlauncher/recyclerview/
DPageMarginDecoration.java45 public void getItemOffsets(@NonNull Rect outRect, @NonNull View view, in getItemOffsets() argument
47 outRect.set(0, 0, 0, 0); in getItemOffsets()
50 outRect.left = mMarginHorizontalPx; in getItemOffsets()
53 outRect.right = mMarginHorizontalPx; in getItemOffsets()
56 outRect.top = mMarginVerticalPx; in getItemOffsets()
59 outRect.bottom = mMarginVerticalPx; in getItemOffsets()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/category/ui/view/decoration/
DCategoriesGridPaddingDecoration.kt30 outRect: Rect, in getItemOffsets()
36 outRect.left = padding in getItemOffsets()
37 outRect.right = padding in getItemOffsets()
42 outRect.bottom = in getItemOffsets()
47 outRect.bottom = in getItemOffsets()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/userpicker/
DUserPickerItemSpacingDecoration.java38 public void getItemOffsets(Rect outRect, View view, RecyclerView parent, in getItemOffsets() argument
40 super.getItemOffsets(outRect, view, parent, state); in getItemOffsets()
49 outRect.bottom = mVerticalSpacing; in getItemOffsets()
57 outRect.left = col * splitHorizontalSpacing; in getItemOffsets()
58 outRect.right = (mNumCols - (col + 1)) * splitHorizontalSpacing; in getItemOffsets()
/packages/apps/ThemePicker/src/com/android/customization/picker/common/ui/view/
DItemSpacing.kt26 override fun getItemOffsets(outRect: Rect, itemPosition: Int, parent: RecyclerView) { in getItemOffsets()
33 outRect.left = if (addSpacingToStart) halfItemSpacingPx else 0 in getItemOffsets()
34 outRect.right = if (addSpacingToEnd) halfItemSpacingPx else 0 in getItemOffsets()
36 outRect.left = if (addSpacingToEnd) halfItemSpacingPx else 0 in getItemOffsets()
37 outRect.right = if (addSpacingToStart) halfItemSpacingPx else 0 in getItemOffsets()
/packages/apps/Launcher3/src/com/android/launcher3/widget/picker/
DWidgetPagedView.java44 public void getDrawingRect(Rect outRect) { in getDrawingRect() argument
45 super.getDrawingRect(outRect); in getDrawingRect()
46 outRect.left += getPaddingLeft(); in getDrawingRect()
47 outRect.right -= getPaddingRight(); in getDrawingRect()
/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/Settings/src/com/android/settings/dream/
DGridSpacingItemDecoration.java42 public void getItemOffsets(Rect outRect, View view, RecyclerView parent, in getItemOffsets() argument
57 outRect.left = mRtl ? endPadding : startPadding; in getItemOffsets()
58 outRect.right = mRtl ? startPadding : endPadding; in getItemOffsets()
60 outRect.top = mSpacing; in getItemOffsets()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/widget/
DScrollableActionRow.kt130 override fun getItemOffsets(outRect: Rect, view: View, parent: RecyclerView, state: State) { in <lambda>()
136 outRect.right = startMargin in <lambda>()
137 outRect.left = endMargin in <lambda>()
139 outRect.left = startMargin in <lambda>()
140 outRect.right = endMargin in <lambda>()
/packages/apps/Launcher3/src/com/android/launcher3/celllayout/
DItemConfiguration.kt53 fun getBoundingRectForViews(views: ArrayList<View>, outRect: Rect) { in <lambda>()
57 if (i == 0) outRect.set(c.cellX, c.cellY, c.cellX + c.spanX, c.cellY + c.spanY) in <lambda>()
58 else outRect.union(c.cellX, c.cellY, c.cellX + c.spanX, c.cellY + c.spanY) in <lambda>()
/packages/apps/Car/Notification/src/com/android/car/notification/
DCarNotificationView.java287 public void getItemOffsets(Rect outRect, View view, RecyclerView parent, in getItemOffsets() argument
289 super.getItemOffsets(outRect, view, parent, state); in getItemOffsets()
293 outRect.top = mTopAndBottomOffset; in getItemOffsets()
296 outRect.bottom = mTopAndBottomOffset; in getItemOffsets()
442 public void getItemOffsets(Rect outRect, View view, RecyclerView parent, in getItemOffsets() argument
444 super.getItemOffsets(outRect, view, parent, state); in getItemOffsets()
452 outRect.bottom = mItemSpacing; 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()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/individual/
DMarginItemDecoration.kt29 outRect: Rect, in getItemOffsets()
34 with(outRect) { in getItemOffsets()
/packages/services/Car/tests/CustomizationTool/src/com/android/car/customization/tool/ui/menu/
DHorizontalMarginItemDecoration.kt31 outRect: Rect, in getItemOffsets()
36 with(outRect) { in getItemOffsets()
/packages/services/Car/car-builtin-lib/src/android/car/builtin/view/
DViewHelper.java34 public static void getBoundsOnScreen(@NonNull View v, @NonNull Rect outRect) { in getBoundsOnScreen() argument
35 v.getBoundsOnScreen(outRect); in getBoundsOnScreen()

123