Home
last modified time | relevance | path

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

/packages/apps/Car/libs/car-ui-lib/src/com/android/car/ui/recyclerview/
DCarUiSnapHelper.java68 @NonNull LayoutManager layoutManager, @NonNull View targetView) { in calculateDistanceToFinalSnap()
70 if (layoutManager.canScrollHorizontally()) { in calculateDistanceToFinalSnap()
71 out[0] = distanceToTopMargin(targetView, getHorizontalHelper(layoutManager)); in calculateDistanceToFinalSnap()
74 if (layoutManager.canScrollVertically()) { in calculateDistanceToFinalSnap()
75 out[1] = distanceToTopMargin(targetView, getVerticalHelper(layoutManager)); in calculateDistanceToFinalSnap()
85 LayoutManager layoutManager = mRecyclerView.getLayoutManager(); in smoothScrollBy() local
86 if (layoutManager == null) { in smoothScrollBy()
90 int position = findTargetSnapPosition(layoutManager, scrollDistance); in smoothScrollBy()
96 RecyclerView.SmoothScroller scroller = createScroller(layoutManager); in smoothScrollBy()
103 layoutManager.startSmoothScroll(scroller); in smoothScrollBy()
[all …]
DDefaultScrollBar.java365 private OrientationHelper getOrientationHelper(RecyclerView.LayoutManager layoutManager) { in getOrientationHelper() argument
366 if (mOrientationHelper == null || mOrientationHelper.getLayoutManager() != layoutManager) { in getOrientationHelper()
368 mOrientationHelper = OrientationHelper.createVerticalHelper(layoutManager); in getOrientationHelper()
501 RecyclerView.LayoutManager layoutManager = getRecyclerView().getLayoutManager(); in updatePaginationButtons() local
503 if ((isAtStart && isAtEnd) || layoutManager == null || layoutManager.getItemCount() == 0) { in updatePaginationButtons()
511 if (layoutManager == null) { in updatePaginationButtons()
515 if (layoutManager.canScrollVertically()) { in updatePaginationButtons()
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/widget/
DPagedSnapHelper.java54 @NonNull LayoutManager layoutManager, @NonNull View targetView) { in calculateDistanceToFinalSnap()
56 if (layoutManager.canScrollHorizontally()) { in calculateDistanceToFinalSnap()
57 out[0] = distanceToTopMargin(layoutManager, targetView, in calculateDistanceToFinalSnap()
58 getHorizontalHelper(layoutManager)); in calculateDistanceToFinalSnap()
63 if (layoutManager.canScrollVertically()) { in calculateDistanceToFinalSnap()
64 out[1] = distanceToTopMargin(layoutManager, targetView, in calculateDistanceToFinalSnap()
65 getVerticalHelper(layoutManager)); in calculateDistanceToFinalSnap()
73 public View findSnapView(LayoutManager layoutManager) { in findSnapView() argument
74 OrientationHelper orientationHelper = getOrientationHelper(layoutManager); in findSnapView()
82 if (layoutManager.canScrollVertically()) { in findSnapView()
[all …]
DCarScrollBar.java455 RecyclerView.LayoutManager layoutManager = getRecyclerView().getLayoutManager(); in updateRowsPerPage() local
456 if (layoutManager == null) { in updateRowsPerPage()
461 View firstChild = layoutManager.getChildAt(0); in updateRowsPerPage()
526 private OrientationHelper getOrientationHelper(RecyclerView.LayoutManager layoutManager) { in getOrientationHelper() argument
527 if (mOrientationHelper == null || mOrientationHelper.getLayoutManager() != layoutManager) { in getOrientationHelper()
529 mOrientationHelper = OrientationHelper.createVerticalHelper(layoutManager); in getOrientationHelper()
656 RecyclerView.LayoutManager layoutManager = getRecyclerView().getLayoutManager(); in updatePaginationButtons() local
658 if ((isAtStart && isAtEnd) || layoutManager == null || layoutManager.getItemCount() == 0) { in updatePaginationButtons()
666 if (layoutManager == null) { in updatePaginationButtons()
670 if (layoutManager.canScrollVertically()) { in updatePaginationButtons()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/system/
DMasterClearFragment.java115 RecyclerView.LayoutManager layoutManager = (recyclerView instanceof CarUiRecyclerView) in isAtEnd() local
118 if (layoutManager == null || layoutManager.getChildCount() == 0) { in isAtEnd()
122 int childCount = layoutManager.getChildCount(); in isAtEnd()
123 View lastVisibleChild = layoutManager.getChildAt(childCount - 1); in isAtEnd()
127 return layoutManager.getPosition(lastVisibleChild) == (layoutManager.getItemCount() - 1) in isAtEnd()
128 && layoutManager.getDecoratedBottom(lastVisibleChild) <= layoutManager.getHeight(); in isAtEnd()
/packages/apps/Dialer/java/com/android/dialer/contactsfragment/
DFastScroller.java35 private LinearLayoutManager layoutManager; field in FastScroller
55 void setup(ContactsAdapter adapter, LinearLayoutManager layoutManager) { in setup() argument
57 this.layoutManager = layoutManager; in setup()
97 layoutManager.scrollToPositionWithOffset(targetPos, 0); in setRecyclerViewPosition()
/packages/apps/Dialer/java/com/android/dialer/speeddial/
DSpeedDialFragment.java149 SpeedDialLayoutManager layoutManager = in onCreateView() local
155 layoutManager, in onCreateView()
165 layoutManager.setSpanSizeLookup(adapter.getSpanSizeLookup()); in onCreateView()
167 recyclerView.setLayoutManager(layoutManager); in onCreateView()
350 private final SpeedDialLayoutManager layoutManager; field in SpeedDialFragment.SpeedDialFavoritesListener
362 SpeedDialLayoutManager layoutManager, in SpeedDialFavoritesListener() argument
367 this.layoutManager = layoutManager; in SpeedDialFavoritesListener()
402 layoutManager.setScrollEnabled(false); in showContextMenu()
409 layoutManager.setScrollEnabled(true); in onTouchFinished()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/
DContextualCardsAdapter.java101 final RecyclerView.LayoutManager layoutManager = recyclerView.getLayoutManager(); in onAttachedToRecyclerView() local
102 if (layoutManager instanceof GridLayoutManager) { in onAttachedToRecyclerView()
103 final GridLayoutManager gridLayoutManager = (GridLayoutManager) layoutManager; in onAttachedToRecyclerView()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/
DContextualCardsAdapter.java101 final RecyclerView.LayoutManager layoutManager = recyclerView.getLayoutManager(); in onAttachedToRecyclerView() local
102 if (layoutManager instanceof GridLayoutManager) { in onAttachedToRecyclerView()
103 final GridLayoutManager gridLayoutManager = (GridLayoutManager) layoutManager; in onAttachedToRecyclerView()
/packages/apps/PermissionController/src/android/support/wearable/view/
DWearableListView.java593 LayoutManager layoutManager = (LayoutManager) getLayoutManager(); in smoothScrollToPosition() local
594 layoutManager.setCustomSmoothScroller(smoothScroller); in smoothScrollToPosition()
596 layoutManager.clearCustomSmoothScroller(); in smoothScrollToPosition()
796 LayoutManager layoutManager = (LayoutManager) getLayoutManager(); in notifyChildrenAboutProximity() local
797 int count = layoutManager.getChildCount(); in notifyChildrenAboutProximity()
803 int index = layoutManager.findCenterViewIndex(); in notifyChildrenAboutProximity()
805 final View view = layoutManager.getChildAt(i); in notifyChildrenAboutProximity()
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/
DGridSpacingItemDecoration.java45 GridLayoutManager layoutManager = (GridLayoutManager) parent.getLayoutManager(); in getItemOffsets() local
47 int spanCount = layoutManager.getSpanCount(); in getItemOffsets()
/packages/apps/Car/Settings/src/com/android/car/settings/users/
DUserSwitcherFragment.java54 GridLayoutManager layoutManager = new GridLayoutManager(getContext(), in onActivityCreated() local
57 mUserGridView.setLayoutManager(layoutManager); in onActivityCreated()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DWidgetsRecyclerView.java89 LinearLayoutManager layoutManager = ((LinearLayoutManager) getLayoutManager()); in scrollToPositionAtProgress() local
90 layoutManager.scrollToPositionWithOffset(0, (int) -(availableScrollHeight * touchFraction)); in scrollToPositionAtProgress()
/packages/apps/Dialer/java/com/android/dialer/rtt/
DRttTranscriptActivity.java63 LinearLayoutManager layoutManager = new LinearLayoutManager(this); in onCreate() local
64 recyclerView.setLayoutManager(layoutManager); in onCreate()
/packages/apps/Dialer/java/com/android/dialer/app/calllog/
DCallLogFragment.java116 private LinearLayoutManager layoutManager; field in CallLogFragment
260 if (layoutManager.findFirstVisibleItemPosition() > 5) { in onCallsFetched()
309 layoutManager = new LinearLayoutManager(getActivity()); in setupView()
310 recyclerView.setLayoutManager(layoutManager); in setupView()
/packages/apps/Dialer/java/com/android/incallui/rtt/impl/
DRttChatFragment.java198 LinearLayoutManager layoutManager = new LinearLayoutManager(getContext()); in onCreateView() local
199 layoutManager.setStackFromEnd(true); in onCreateView()
200 recyclerView.setLayoutManager(layoutManager); in onCreateView()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DAllAppsContainerView.java587 final LinearLayoutManager layoutManager; field in AllAppsContainerView.AdapterHolder
597 layoutManager = adapter.getLayoutManager(); in AdapterHolder()
605 recyclerView.setLayoutManager(layoutManager); in setup()
DAllAppsRecyclerView.java118 AppsGridLayoutManager layoutManager = (AppsGridLayoutManager) getLayoutManager(); in scrollToTop() local
119 if (layoutManager.findFirstCompletelyVisibleItemPosition() == 0) { in scrollToTop()
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
DConversationFragment.java626 final LinearLayoutManager layoutManager = in scrollToPosition() local
629 layoutManager.findFirstVisibleItemPosition(); in scrollToPosition()
636 final int count = layoutManager.getItemCount(); in scrollToPosition()
651 final LinearLayoutManager layoutManager = in getScrollPositionFromBottom() local
654 layoutManager.findLastVisibleItemPosition(); in getScrollPositionFromBottom()
/packages/apps/Settings/src/com/android/settings/applications/manageapplications/
DManageApplications.java1058 final LinearLayoutManager layoutManager = in onSaveInstanceState() local
1060 outState.putInt(STATE_LAST_SCROLL_INDEX, layoutManager.findFirstVisibleItemPosition()); in onSaveInstanceState()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/manageapplications/
DManageApplications.java1045 final LinearLayoutManager layoutManager = in onSaveInstanceState() local
1047 outState.putInt(STATE_LAST_SCROLL_INDEX, layoutManager.findFirstVisibleItemPosition()); in onSaveInstanceState()