Home
last modified time | relevance | path

Searched refs:recyclerView (Results 1 – 22 of 22) sorted by relevance

/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/template/
DRecyclerViewScrollHandlingDelegate.java33 @Nullable private final RecyclerView recyclerView; field in RecyclerViewScrollHandlingDelegate
38 @NonNull RequireScrollMixin requireScrollMixin, @Nullable RecyclerView recyclerView) { in RecyclerViewScrollHandlingDelegate() argument
40 this.recyclerView = recyclerView; in RecyclerViewScrollHandlingDelegate()
44 if (recyclerView != null) { in canScrollDown()
46 final int offset = recyclerView.computeVerticalScrollOffset(); in canScrollDown()
48 recyclerView.computeVerticalScrollRange() - recyclerView.computeVerticalScrollExtent(); in canScrollDown()
56 if (this.recyclerView != null) { in startListening()
57 this.recyclerView.addOnScrollListener( in startListening()
60 public void onScrolled(RecyclerView recyclerView, int dx, int dy) { in startListening()
75 if (recyclerView != null) { in pageScrollDown()
[all …]
DRecyclerMixin.java54 @NonNull private final RecyclerView recyclerView; field in RecyclerMixin
74 public RecyclerMixin(@NonNull TemplateLayout layout, @NonNull RecyclerView recyclerView) { in RecyclerMixin() argument
80 this.recyclerView = recyclerView; in RecyclerMixin()
81 this.recyclerView.setLayoutManager(new LinearLayoutManager(templateLayout.getContext())); in RecyclerMixin()
83 if (recyclerView instanceof HeaderRecyclerView) { in RecyclerMixin()
84 header = ((HeaderRecyclerView) recyclerView).getHeader(); in RecyclerMixin()
87 this.recyclerView.addItemDecoration(dividerDecoration); in RecyclerMixin()
133 return recyclerView; in getRecyclerView()
166 final RecyclerView.Adapter<? extends ViewHolder> adapter = recyclerView.getAdapter(); in getAdapter()
175 recyclerView.setAdapter(adapter); in setAdapter()
[all …]
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/support/
DRecyclerViewUtil.java55 public static void setAdapter(@NonNull View recyclerView, @NonNull BridgeContext context, in setAdapter() argument
58 ReflectionUtils.getParentClass(recyclerView, RecyclerViewUtil.CN_RECYCLER_VIEW); in setAdapter()
63 setLayoutManager(recyclerView, layoutMgrClassName, context, layoutlibCallback); in setAdapter()
66 setProperty(recyclerView, adapterClassName, adapter, "setAdapter"); in setAdapter()
80 private static void setLayoutManager(@NonNull View recyclerView, in setLayoutManager() argument
83 if (getLayoutManager(recyclerView) == null) { in setLayoutManager()
85 recyclerView.getClass().getPackage().getName() + ".LinearLayoutManager"; in setLayoutManager()
90 setProperty(recyclerView, layoutMgrClassName, layoutManager, "setLayoutManager"); in setLayoutManager()
109 private static Object getLayoutManager(View recyclerView) throws ReflectionException { in getLayoutManager() argument
110 return invoke(getMethod(recyclerView.getClass(), "getLayoutManager"), recyclerView); in getLayoutManager()
/frameworks/base/core/java/com/android/internal/widget/helper/
DItemTouchUIUtilImpl.java31 public void onDraw(Canvas c, RecyclerView recyclerView, View view, in onDraw() argument
38 float newElevation = 1f + findMaxElevation(recyclerView, view); in onDraw()
48 private float findMaxElevation(RecyclerView recyclerView, View itemView) { in findMaxElevation() argument
49 final int childCount = recyclerView.getChildCount(); in findMaxElevation()
52 final View child = recyclerView.getChildAt(i); in findMaxElevation()
81 public void onDrawOver(Canvas c, RecyclerView recyclerView, in onDrawOver() argument
DItemTouchHelper.java299 public boolean onInterceptTouchEvent(RecyclerView recyclerView, MotionEvent event) {
344 public void onTouchEvent(RecyclerView recyclerView, MotionEvent event) {
449 public void attachToRecyclerView(@Nullable RecyclerView recyclerView) { in attachToRecyclerView() argument
450 if (mRecyclerView == recyclerView) { in attachToRecyclerView()
456 mRecyclerView = recyclerView; in attachToRecyclerView()
458 final Resources resources = recyclerView.getResources(); in attachToRecyclerView()
1515 public abstract int getMovementFlags(RecyclerView recyclerView, in getMovementFlags() argument
1546 final int getAbsoluteMovementFlags(RecyclerView recyclerView, in getAbsoluteMovementFlags() argument
1548 final int flags = getMovementFlags(recyclerView, viewHolder); in getAbsoluteMovementFlags()
1549 return convertToAbsoluteDirection(flags, recyclerView.getLayoutDirection()); in getAbsoluteMovementFlags()
[all …]
DItemTouchUIUtil.java43 void onDraw(Canvas c, RecyclerView recyclerView, View view, in onDraw() argument
50 void onDrawOver(Canvas c, RecyclerView recyclerView, View view, in onDrawOver() argument
/frameworks/base/core/java/com/android/internal/widget/
DGapWorker.java152 public void add(RecyclerView recyclerView) { in add() argument
153 if (RecyclerView.DEBUG && mRecyclerViews.contains(recyclerView)) { in add()
156 mRecyclerViews.add(recyclerView); in add()
159 public void remove(RecyclerView recyclerView) { in remove() argument
160 boolean removeSuccess = mRecyclerViews.remove(recyclerView); in remove()
169 void postFromTraversal(RecyclerView recyclerView, int prefetchDx, int prefetchDy) { in postFromTraversal() argument
170 if (recyclerView.isAttachedToWindow()) { in postFromTraversal()
171 if (RecyclerView.DEBUG && !mRecyclerViews.contains(recyclerView)) { in postFromTraversal()
175 mPostTimeNs = recyclerView.getNanoTime(); in postFromTraversal()
176 recyclerView.post(this); in postFromTraversal()
[all …]
DRecyclerViewAccessibilityDelegate.java34 public RecyclerViewAccessibilityDelegate(RecyclerView recyclerView) { in RecyclerViewAccessibilityDelegate() argument
35 mRecyclerView = recyclerView; in RecyclerViewAccessibilityDelegate()
DRecyclerView.java6543 public void onAttachedToRecyclerView(RecyclerView recyclerView) { in onAttachedToRecyclerView() argument
6552 public void onDetachedFromRecyclerView(RecyclerView recyclerView) { in onDetachedFromRecyclerView() argument
6881 void setRecyclerView(RecyclerView recyclerView) { in setRecyclerView() argument
6882 if (recyclerView == null) { in setRecyclerView()
6888 mRecyclerView = recyclerView; in setRecyclerView()
6889 mChildHelper = recyclerView.mChildHelper; in setRecyclerView()
6890 mWidth = recyclerView.getWidth(); in setRecyclerView()
6891 mHeight = recyclerView.getHeight(); in setRecyclerView()
7575 public void smoothScrollToPosition(RecyclerView recyclerView, State state, in smoothScrollToPosition() argument
9046 public boolean onAddFocusables(RecyclerView recyclerView, ArrayList<View> views, in onAddFocusables() argument
[all …]
DLinearLayoutManager.java434 public void smoothScrollToPosition(RecyclerView recyclerView, RecyclerView.State state, in smoothScrollToPosition() argument
437 new LinearSmoothScroller(recyclerView.getContext()); in smoothScrollToPosition()
/frameworks/base/tests/UiBench/src/com/android/test/uibench/recyclerview/
DRvCompatListActivity.java41 RecyclerView recyclerView = (RecyclerView) inflater.inflate( in onCreateView() local
43 recyclerView.setLayoutManager(layoutManager); in onCreateView()
44 recyclerView.setAdapter(adapter); in onCreateView()
45 return recyclerView; in onCreateView()
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/
DSetupWizardRecyclerLayout.java110 final View recyclerView = findViewById(R.id.suw_recycler_view); in onTemplateInflated() local
111 if (recyclerView instanceof RecyclerView) { in onTemplateInflated()
112 mRecyclerMixin = new RecyclerMixin(this, (RecyclerView) recyclerView); in onTemplateInflated()
DGlifRecyclerLayout.java91 final View recyclerView = findViewById(R.id.suw_recycler_view); in onTemplateInflated() local
92 if (recyclerView instanceof RecyclerView) { in onTemplateInflated()
93 mRecyclerMixin = new RecyclerMixin(this, (RecyclerView) recyclerView); in onTemplateInflated()
DGlifPreferenceLayout.java111 RecyclerView recyclerView = in onTemplateInflated() local
113 mRecyclerMixin = new RecyclerMixin(this, recyclerView); in onTemplateInflated()
DSetupWizardPreferenceLayout.java110 RecyclerView recyclerView = in onTemplateInflated() local
112 mRecyclerMixin = new RecyclerMixin(this, recyclerView); in onTemplateInflated()
/frameworks/opt/setupwizard/library/recyclerview/test/instrumentation/src/com/android/setupwizardlib/test/
DGlifPreferenceLayoutTest.java69 final RecyclerView recyclerView = in testOnCreateRecyclerView() local
72 assertNotNull("RecyclerView created should not be null", recyclerView); in testOnCreateRecyclerView()
DSetupWizardPreferenceLayoutTest.java70 final RecyclerView recyclerView = in testOnCreateRecyclerView() local
73 assertNotNull("RecyclerView created should not be null", recyclerView); in testOnCreateRecyclerView()
DSetupWizardRecyclerLayoutTest.java148 View recyclerView = layout.findViewById(R.id.suw_recycler_view); in assertRecyclerTemplateInflated() local
150 "@id/suw_recycler_view should be a RecyclerView", recyclerView instanceof RecyclerView); in assertRecyclerTemplateInflated()
DGlifRecyclerLayoutTest.java146 View recyclerView = layout.findViewById(R.id.suw_recycler_view); in assertRecyclerTemplateInflated() local
148 "@id/suw_recycler_view should be a RecyclerView", recyclerView instanceof RecyclerView); in assertRecyclerTemplateInflated()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/
DTileAdapter.java598 public boolean canDropOver(RecyclerView recyclerView, ViewHolder current,
611 public int getMovementFlags(RecyclerView recyclerView, ViewHolder viewHolder) {
626 public boolean onMove(RecyclerView recyclerView, ViewHolder viewHolder, ViewHolder target) {
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DPrintPreviewController.java324 public void onScrollStateChanged(RecyclerView recyclerView, int state) { in onScrollStateChanged() argument
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/statusbar/car/
DCarStatusBar.java507 public void onScrolled(@NonNull RecyclerView recyclerView, int dx, int dy) { in connectNotificationsUI()
508 super.onScrolled(recyclerView, dx, dy); in connectNotificationsUI()