Home
last modified time | relevance | path

Searched refs:layoutManager (Results 1 – 16 of 16) 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.java10752 void start(RecyclerView recyclerView, LayoutManager layoutManager) { in start() argument
10754 mLayoutManager = layoutManager; in start()
/frameworks/base/tests/UiBench/src/com/android/test/uibench/recyclerview/
DRvCompatListActivity.java35 RecyclerView.LayoutManager layoutManager; field in RvCompatListActivity.RecyclerViewFragment
44 recyclerView.setLayoutManager(layoutManager); in onCreateView()
66 fragment.layoutManager = createLayoutManager(this); in initializeRecyclerViewFragment()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/support/
DRecyclerViewUtil.java93 Object layoutManager = in setLayoutManager() local
95 if (layoutManager != null) { in setLayoutManager()
96 setProperty(recyclerView, layoutMgrClassName, layoutManager, "setLayoutManager"); in setLayoutManager()
/frameworks/base/core/tests/coretests/src/com/android/internal/view/
DRecyclerViewCaptureHelperTest.java49 LinearLayoutManager layoutManager = in createScrollableContent() local
51 recyclerView.setLayoutManager(layoutManager); in createScrollableContent()
/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/SystemUI/src/com/android/systemui/wallet/ui/
DWalletCardCarousel.java336 public View findSnapView(LayoutManager layoutManager) {
337 View view = super.findSnapView(layoutManager);
353 protected LinearSmoothScroller createScroller(LayoutManager layoutManager) {
357 int[] snapDistances = calculateDistanceToFinalSnap(layoutManager, targetView);
/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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/
DStructureAdapter.kt67 layoutManager = GridLayoutManager(recyclerView.context, spanCount).apply { in setUpRecyclerView()
DControlsProviderSelectorActivity.kt108 recyclerView.layoutManager = LinearLayoutManager(applicationContext) in <lambda>()
DControlsEditingActivity.kt227 layoutManager = object : GridLayoutManager(recyclerView.context, spanCount) { in setUpList()
/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/appselector/view/
DMediaProjectionRecentsViewController.kt97 recycler.layoutManager = in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/
DAccessibilityFloatingMenuView.java621 final LinearLayoutManager layoutManager = new LinearLayoutManager(getContext()); in initListView() local
630 mListView.setLayoutManager(layoutManager); in initListView()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DFgsManagerController.kt389 recyclerView.layoutManager = LinearLayoutManager(dialogContext) in showDialog()
/frameworks/base/core/java/com/android/internal/app/
DChooserActivity.java3202 ChooserGridLayoutManager layoutManager =
3205 layoutManager.setVerticalScrollEnabled(enabled);