/packages/apps/Launcher3/src/com/android/launcher3/keyboard/ |
D | ViewGroupFocusHelper.java | 37 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 …]
|
D | FocusIndicatorHelper.java | 212 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/ |
D | LinearOffsetItemDecoration.java | 91 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()
|
D | LinearDividerItemDecoration.java | 71 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/ |
D | CarNotificationView.java | 133 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/ |
D | GridOffsetItemDecoration.java | 93 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()
|
D | GridDividerItemDecoration.java | 76 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/ |
D | LayoutUtils.java | 53 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/ |
D | GridSpacingItemDecoration.java | 42 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/ |
D | SeriesFragment.java | 176 …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()
|
D | GenreFragment.java | 172 …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()
|
D | MovieFragment.java | 181 …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()
|
D | AlbumFragment.java | 176 …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()
|
D | ArtistFragment.java | 187 …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()
|
D | PlaylistFragment.java | 232 …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/ |
D | FavoriteFragment.java | 97 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/ |
D | ButtonDropTarget.java | 316 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/ |
D | ImageStraighten.java | 185 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/ |
D | DynamicAdaptiveIconDrawable.java | 247 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()
|
D | HorizontalSpacerItemDecoration.java | 25 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/ |
D | FallbackActivityControllerHelper.java | 62 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/ |
D | PopupTransitionAnimation.java | 297 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/ |
D | GridMarginDecoration.java | 56 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/ |
D | UserGridRecyclerView.java | 444 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/ |
D | IconRecentsView.java | 229 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()
|