Home
last modified time | relevance | path

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

/aosp14/frameworks/base/core/java/com/android/internal/widget/
H A DLinearSmoothScroller.java302 final RecyclerView.LayoutManager layoutManager = getLayoutManager(); in calculateDyToMakeVisible() local
303 if (layoutManager == null || !layoutManager.canScrollVertically()) { 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()
335 final int start = layoutManager.getPaddingLeft(); in calculateDxToMakeVisible()
336 final int end = layoutManager.getWidth() - layoutManager.getPaddingRight(); in calculateDxToMakeVisible()
352 RecyclerView.LayoutManager layoutManager = getLayoutManager(); in computeScrollVectorForPosition() local
353 if (layoutManager instanceof ScrollVectorProvider) { in computeScrollVectorForPosition()
[all …]
H A 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) {
H A DRecyclerView.java10752 void start(RecyclerView recyclerView, LayoutManager layoutManager) { in start() argument
10754 mLayoutManager = layoutManager; in start()
/aosp14/frameworks/base/tests/UiBench/src/com/android/test/uibench/recyclerview/
H A DRvCompatListActivity.java35 RecyclerView.LayoutManager layoutManager; field in RvCompatListActivity.RecyclerViewFragment
44 recyclerView.setLayoutManager(layoutManager); in onCreateView()
66 fragment.layoutManager = createLayoutManager(this); in initializeRecyclerViewFragment()
/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/view/
H A DRecyclerViewCaptureHelperTest.java49 LinearLayoutManager layoutManager = in createScrollableContent() local
51 recyclerView.setLayoutManager(layoutManager); in createScrollableContent()
/aosp14/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
H A 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()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/wallet/ui/
H A 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);
/aosp14/frameworks/base/core/java/com/android/internal/widget/helper/
H A 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()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/
H A DStructureAdapter.kt70 layoutManager = GridLayoutManager(recyclerView.context, spanCount).apply {
H A DControlsProviderSelectorActivity.kt108 recyclerView.layoutManager = LinearLayoutManager(applicationContext)
H A DControlsEditingActivity.kt267 layoutManager = object : GridLayoutManager(recyclerView.context, spanCount) {
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/appselector/view/
H A DMediaProjectionRecentsViewController.kt105 recycler.layoutManager =
/aosp14/frameworks/base/packages/CompanionDeviceManager/src/com/android/companiondevicemanager/
H A DCompanionDeviceActivity.java706 LinearLayoutManager layoutManager = in setupPermissionList()
710 layoutManager.findLastCompletelyVisibleItemPosition(); in setupPermissionList()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A DFgsManagerController.kt385 recyclerView.layoutManager = LinearLayoutManager(dialogContext)
/aosp14/frameworks/base/core/java/com/android/internal/app/
H A DChooserActivity.java3242 ChooserGridLayoutManager layoutManager =
3245 layoutManager.setVerticalScrollEnabled(enabled);