Home
last modified time | relevance | path

Searched refs:layoutManager (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/core/java/com/android/internal/widget/
DLinearSmoothScroller.java302 final RecyclerView.LayoutManager layoutManager = getLayoutManager(); in calculateDyToMakeVisible() local
303 if (layoutManager == null || !layoutManager.canScrollVertically()) { in calculateDyToMakeVisible()
308 final int top = layoutManager.getDecoratedTop(view) - params.topMargin; in calculateDyToMakeVisible()
309 final int bottom = layoutManager.getDecoratedBottom(view) + params.bottomMargin; in calculateDyToMakeVisible()
310 final int start = layoutManager.getPaddingTop(); in calculateDyToMakeVisible()
311 final int end = layoutManager.getHeight() - layoutManager.getPaddingBottom(); in calculateDyToMakeVisible()
327 final RecyclerView.LayoutManager layoutManager = getLayoutManager(); in calculateDxToMakeVisible() local
328 if (layoutManager == null || !layoutManager.canScrollHorizontally()) { in calculateDxToMakeVisible()
333 final int left = layoutManager.getDecoratedLeft(view) - params.leftMargin; in calculateDxToMakeVisible()
334 final int right = layoutManager.getDecoratedRight(view) + params.rightMargin; in calculateDxToMakeVisible()
[all …]
DOrientationHelper.java47 private OrientationHelper(RecyclerView.LayoutManager layoutManager) { in OrientationHelper() argument
48 mLayoutManager = layoutManager; in OrientationHelper()
233 RecyclerView.LayoutManager layoutManager, int orientation) { in createOrientationHelper() argument
236 return createHorizontalHelper(layoutManager); in createOrientationHelper()
238 return createVerticalHelper(layoutManager); in createOrientationHelper()
250 RecyclerView.LayoutManager layoutManager) { in createHorizontalHelper() argument
251 return new OrientationHelper(layoutManager) { in createHorizontalHelper()
348 public static OrientationHelper createVerticalHelper(RecyclerView.LayoutManager layoutManager) {
349 return new OrientationHelper(layoutManager) {
DRecyclerView.java10631 void start(RecyclerView recyclerView, LayoutManager layoutManager) { in start() argument
10633 mLayoutManager = layoutManager; in start()
/frameworks/base/tests/UiBench/src/com/android/test/uibench/recyclerview/
DRvCompatListActivity.java34 RecyclerView.LayoutManager layoutManager; field in RvCompatListActivity.RecyclerViewFragment
43 recyclerView.setLayoutManager(layoutManager); in onCreateView()
56 fragment.layoutManager = createLayoutManager(this); in onCreate()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/support/
DRecyclerViewUtil.java87 Object layoutManager = in setLayoutManager() local
89 if (layoutManager != null) { in setLayoutManager()
90 setProperty(recyclerView, layoutMgrClassName, layoutManager, "setLayoutManager"); in setLayoutManager()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DPrintPreviewController.java363 LayoutManager layoutManager = mRecyclerView.getLayoutManager(); in computeShownPages() local
365 View firstChild = layoutManager.getChildAt(0); in computeShownPages()
368 View lastChild = layoutManager.getChildAt(layoutManager.getChildCount() - 1); in computeShownPages()
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/statusbar/car/
DFullscreenUserSwitcher.java79 GridLayoutManager layoutManager = new GridLayoutManager(context, in FullscreenUserSwitcher() local
81 mUserGridView.setLayoutManager(layoutManager); in FullscreenUserSwitcher()
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/qs/car/
DCarQSFragment.java80 GridLayoutManager layoutManager = new GridLayoutManager(context, in onViewCreated() local
82 mUserGridView.setLayoutManager(layoutManager); in onViewCreated()
/frameworks/base/core/java/com/android/internal/widget/helper/
DItemTouchHelper.java1892 final RecyclerView.LayoutManager layoutManager = recyclerView.getLayoutManager(); in onMoved() local
1893 if (layoutManager instanceof ViewDropHandler) { in onMoved()
1894 ((ViewDropHandler) layoutManager).prepareForDrop(viewHolder.itemView, in onMoved()
1900 if (layoutManager.canScrollHorizontally()) { in onMoved()
1901 final int minLeft = layoutManager.getDecoratedLeft(target.itemView); in onMoved()
1905 final int maxRight = layoutManager.getDecoratedRight(target.itemView); in onMoved()
1911 if (layoutManager.canScrollVertically()) { in onMoved()
1912 final int minTop = layoutManager.getDecoratedTop(target.itemView); in onMoved()
1916 final int maxBottom = layoutManager.getDecoratedBottom(target.itemView); in onMoved()