Home
last modified time | relevance | path

Searched refs:RecyclerView (Results 1 – 25 of 54) sorted by relevance

123

/frameworks/base/tests/UiBench/src/com/android/test/uibench/
DSlowNestedRecyclerViewActivity.java24 import androidx.recyclerview.widget.RecyclerView;
67 protected RecyclerView.LayoutManager createLayoutManager(Context context) { in createLayoutManager()
72 protected RecyclerView.Adapter createAdapter() { in createAdapter()
76 private class InnerAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {
78 public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder()
101 RecyclerView.ViewHolder holder = new RecyclerView.ViewHolder(view) {}; in onCreateViewHolder()
108 public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) { in onBindViewHolder()
117 private class OuterAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {
122 RecyclerView.RecycledViewPool mSharedPool = new RecyclerView.RecycledViewPool();
131 public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder()
[all …]
DSlowBindRecyclerViewActivity.java21 import androidx.recyclerview.widget.RecyclerView;
38 protected RecyclerView.LayoutManager createLayoutManager(Context context) { in createLayoutManager()
43 protected RecyclerView.Adapter createAdapter() { in createAdapter()
/frameworks/base/core/java/com/android/internal/widget/
DOrientationHelper.java37 protected final RecyclerView.LayoutManager mLayoutManager;
47 private OrientationHelper(RecyclerView.LayoutManager layoutManager) { in OrientationHelper()
233 RecyclerView.LayoutManager layoutManager, int orientation) { in createOrientationHelper()
250 RecyclerView.LayoutManager layoutManager) { in createHorizontalHelper()
274 final RecyclerView.LayoutParams params = (RecyclerView.LayoutParams) in createHorizontalHelper()
282 final RecyclerView.LayoutParams params = (RecyclerView.LayoutParams) in createHorizontalHelper()
290 final RecyclerView.LayoutParams params = (RecyclerView.LayoutParams) in createHorizontalHelper()
297 final RecyclerView.LayoutParams params = (RecyclerView.LayoutParams) in createHorizontalHelper()
348 public static OrientationHelper createVerticalHelper(RecyclerView.LayoutManager layoutManager) {
372 final RecyclerView.LayoutParams params = (RecyclerView.LayoutParams)
[all …]
DGapWorker.java33 ArrayList<RecyclerView> mRecyclerViews = new ArrayList<>();
41 public RecyclerView view;
64 implements RecyclerView.LayoutManager.LayoutPrefetchRegistry {
76 void collectPrefetchPositionsFromView(RecyclerView view, boolean nested) { in collectPrefetchPositionsFromView()
82 final RecyclerView.LayoutManager layout = view.mLayout; in collectPrefetchPositionsFromView()
152 public void add(RecyclerView recyclerView) { in add()
153 if (RecyclerView.DEBUG && mRecyclerViews.contains(recyclerView)) { in add()
159 public void remove(RecyclerView recyclerView) { in remove()
161 if (RecyclerView.DEBUG && !removeSuccess) { in remove()
169 void postFromTraversal(RecyclerView recyclerView, int prefetchDx, int prefetchDy) { in postFromTraversal()
[all …]
DLinearLayoutManager.java19 import static com.android.internal.widget.RecyclerView.NO_POSITION;
31 import com.android.internal.widget.RecyclerView.LayoutParams;
40 public class LinearLayoutManager extends RecyclerView.LayoutManager implements
41 ItemTouchHelper.ViewDropHandler, RecyclerView.SmoothScroller.ScrollVectorProvider {
219 public void onDetachedFromWindow(RecyclerView view, RecyclerView.Recycler recycler) { in onDetachedFromWindow()
425 protected int getExtraLayoutSpace(RecyclerView.State state) { in getExtraLayoutSpace()
434 public void smoothScrollToPosition(RecyclerView recyclerView, RecyclerView.State state, in smoothScrollToPosition()
460 public void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state) {
642 public void onLayoutCompleted(RecyclerView.State state) { in onLayoutCompleted()
659 void onAnchorReady(RecyclerView.Recycler recycler, RecyclerView.State state, in onAnchorReady()
[all …]
DRecyclerViewAccessibilityDelegate.java31 final RecyclerView mRecyclerView;
34 public RecyclerViewAccessibilityDelegate(RecyclerView recyclerView) { in RecyclerViewAccessibilityDelegate()
57 info.setClassName(RecyclerView.class.getName()); in onInitializeAccessibilityNodeInfo()
66 event.setClassName(RecyclerView.class.getName()); in onInitializeAccessibilityEvent()
67 if (host instanceof RecyclerView && !shouldIgnore()) { in onInitializeAccessibilityEvent()
68 RecyclerView rv = (RecyclerView) host; in onInitializeAccessibilityEvent()
DLinearSmoothScroller.java38 public class LinearSmoothScroller extends RecyclerView.SmoothScroller {
111 protected void onTargetFound(View targetView, RecyclerView.State state, Action action) { in onTargetFound()
125 protected void onSeekTargetStep(int dx, int dy, RecyclerView.State state, Action action) { in onSeekTargetStep()
302 final RecyclerView.LayoutManager layoutManager = getLayoutManager(); in calculateDyToMakeVisible()
306 final RecyclerView.LayoutParams params = (RecyclerView.LayoutParams) in calculateDyToMakeVisible()
327 final RecyclerView.LayoutManager layoutManager = getLayoutManager(); in calculateDxToMakeVisible()
331 final RecyclerView.LayoutParams params = (RecyclerView.LayoutParams) in calculateDxToMakeVisible()
352 RecyclerView.LayoutManager layoutManager = getLayoutManager(); in computeScrollVectorForPosition()
DScrollbarHelper.java30 static int computeScrollOffset(RecyclerView.State state, OrientationHelper orientation, in computeScrollOffset()
31 View startChild, View endChild, RecyclerView.LayoutManager lm, in computeScrollOffset()
61 static int computeScrollExtent(RecyclerView.State state, OrientationHelper orientation, in computeScrollExtent()
62 View startChild, View endChild, RecyclerView.LayoutManager lm, in computeScrollExtent()
80 static int computeScrollRange(RecyclerView.State state, OrientationHelper orientation, in computeScrollRange()
81 View startChild, View endChild, RecyclerView.LayoutManager lm, in computeScrollRange()
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/
DDividerItemDecoration.java26 import androidx.recyclerview.widget.RecyclerView;
40 public class DividerItemDecoration extends RecyclerView.ItemDecoration {
103 public void onDraw(Canvas c, RecyclerView parent, RecyclerView.State state) { in onDraw()
122 Rect outRect, View view, RecyclerView parent, RecyclerView.State state) { in getItemOffsets()
128 private boolean shouldDrawDividerBelow(View view, RecyclerView parent) { in shouldDrawDividerBelow()
129 final RecyclerView.ViewHolder holder = parent.getChildViewHolder(view); in shouldDrawDividerBelow()
147 final RecyclerView.ViewHolder nextHolder = parent.findViewHolderForLayoutPosition(index + 1); in shouldDrawDividerBelow()
165 protected boolean isDividerAllowedAbove(RecyclerView.ViewHolder viewHolder) { in isDividerAllowedAbove()
179 protected boolean isDividerAllowedBelow(RecyclerView.ViewHolder viewHolder) { in isDividerAllowedBelow()
DSetupWizardRecyclerLayout.java21 import androidx.recyclerview.widget.RecyclerView;
22 import androidx.recyclerview.widget.RecyclerView.Adapter;
23 import androidx.recyclerview.widget.RecyclerView.ViewHolder;
88 public RecyclerView getRecyclerView() { in getRecyclerView()
111 if (recyclerView instanceof RecyclerView) { in onTemplateInflated()
112 mRecyclerMixin = new RecyclerMixin(this, (RecyclerView) recyclerView); in onTemplateInflated()
DGlifRecyclerLayout.java23 import androidx.recyclerview.widget.RecyclerView;
24 import androidx.recyclerview.widget.RecyclerView.Adapter;
25 import androidx.recyclerview.widget.RecyclerView.ViewHolder;
92 if (recyclerView instanceof RecyclerView) { in onTemplateInflated()
93 mRecyclerMixin = new RecyclerMixin(this, (RecyclerView) recyclerView); in onTemplateInflated()
128 public RecyclerView getRecyclerView() { in getRecyclerView()
DGlifPreferenceLayout.java21 import androidx.recyclerview.widget.RecyclerView;
93 public RecyclerView onCreateRecyclerView( in onCreateRecyclerView()
111 RecyclerView recyclerView = in onTemplateInflated()
112 (RecyclerView) inflater.inflate(R.layout.suw_glif_preference_recycler_view, this, false); in onTemplateInflated()
DSetupWizardPreferenceLayout.java21 import androidx.recyclerview.widget.RecyclerView;
92 public RecyclerView onCreateRecyclerView( in onCreateRecyclerView()
110 RecyclerView recyclerView = in onTemplateInflated()
111 (RecyclerView) inflater.inflate(R.layout.suw_preference_recycler_view, this, false); in onTemplateInflated()
/frameworks/base/tests/UiBench/src/com/android/test/uibench/recyclerview/
DRvCompatListActivity.java25 import androidx.recyclerview.widget.RecyclerView;
34 RecyclerView.LayoutManager layoutManager;
35 RecyclerView.Adapter adapter;
41 RecyclerView recyclerView = (RecyclerView) inflater.inflate( in onCreateView()
62 protected RecyclerView.LayoutManager createLayoutManager(Context context) { in createLayoutManager()
66 protected abstract RecyclerView.Adapter createAdapter(); in createAdapter()
DRvBoxAdapter.java20 import androidx.recyclerview.widget.RecyclerView;
29 public class RvBoxAdapter extends RecyclerView.Adapter<RvBoxAdapter.ViewHolder> {
35 public static class ViewHolder extends RecyclerView.ViewHolder {
67 RecyclerView.LayoutParams lp = new RecyclerView.LayoutParams( in onCreateViewHolder()
/frameworks/opt/setupwizard/library/recyclerview/test/instrumentation/src/com/android/setupwizardlib/test/
DGlifRecyclerLayoutTest.java29 import androidx.recyclerview.widget.RecyclerView;
30 import androidx.recyclerview.widget.RecyclerView.Adapter;
82 final RecyclerView.Adapter adapter = createTestAdapter(1); in testAdapter()
85 final RecyclerView.Adapter gotAdapter = layout.getAdapter(); in testAdapter()
148 "@id/suw_recycler_view should be a RecyclerView", recyclerView instanceof RecyclerView); in assertRecyclerTemplateInflated()
156 return new RecyclerView.Adapter() { in createTestAdapter()
158 public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int position) { in createTestAdapter()
159 return new RecyclerView.ViewHolder(new View(parent.getContext())) {}; in createTestAdapter()
163 public void onBindViewHolder(RecyclerView.ViewHolder viewHolder, int position) {} in createTestAdapter()
DHeaderRecyclerViewTest.java22 import androidx.recyclerview.widget.RecyclerView;
43 @Mock private RecyclerView.AdapterDataObserver mObserver;
146 public static class TestAdapter extends RecyclerView.Adapter {
149 public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) { in onCreateViewHolder()
154 public void onBindViewHolder(RecyclerView.ViewHolder viewHolder, int i) {} in onBindViewHolder()
DDividerItemDecorationTest.java32 import androidx.recyclerview.widget.RecyclerView;
153 RecyclerView testRecyclerView = new RecyclerView(context); in drawDecoration()
158 new RecyclerView.Adapter() { in drawDecoration()
160 public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) { in drawDecoration()
168 public void onBindViewHolder(RecyclerView.ViewHolder viewHolder, int i) {} in drawDecoration()
194 private static class ViewHolder extends RecyclerView.ViewHolder
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/template/
DRecyclerViewScrollHandlingDelegate.java21 import androidx.recyclerview.widget.RecyclerView;
33 @Nullable private final RecyclerView recyclerView;
38 @NonNull RequireScrollMixin requireScrollMixin, @Nullable RecyclerView recyclerView) { in RecyclerViewScrollHandlingDelegate()
58 new RecyclerView.OnScrollListener() { in startListening()
60 public void onScrolled(RecyclerView recyclerView, int dx, int dy) { in startListening()
DRecyclerMixin.java27 import androidx.recyclerview.widget.RecyclerView;
28 import androidx.recyclerview.widget.RecyclerView.Adapter;
29 import androidx.recyclerview.widget.RecyclerView.ViewHolder;
54 @NonNull private final RecyclerView recyclerView;
74 public RecyclerMixin(@NonNull TemplateLayout layout, @NonNull RecyclerView recyclerView) { in RecyclerMixin()
132 public RecyclerView getRecyclerView() { in getRecyclerView()
166 final RecyclerView.Adapter<? extends ViewHolder> adapter = recyclerView.getAdapter(); in getAdapter()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DPrintPreviewController.java28 import android.support.v7.widget.RecyclerView;
29 import android.support.v7.widget.RecyclerView.ViewHolder;
30 import android.support.v7.widget.RecyclerView.LayoutManager;
56 private final RecyclerView mRecyclerView;
77 mRecyclerView = (RecyclerView) activity.findViewById(R.id.preview_content); in PrintPreviewController()
316 private final class PreloadController extends RecyclerView.OnScrollListener {
324 public void onScrollStateChanged(RecyclerView recyclerView, int state) { in onScrollStateChanged()
326 case RecyclerView.SCROLL_STATE_SETTLING: { in onScrollStateChanged()
327 if (state == RecyclerView.SCROLL_STATE_IDLE in onScrollStateChanged()
328 || state == RecyclerView.SCROLL_STATE_DRAGGING){ in onScrollStateChanged()
[all …]
/frameworks/base/core/java/com/android/internal/widget/helper/
DItemTouchHelper.java38 import com.android.internal.widget.RecyclerView;
39 import com.android.internal.widget.RecyclerView.OnItemTouchListener;
40 import com.android.internal.widget.RecyclerView.ViewHolder;
71 public class ItemTouchHelper extends RecyclerView.ItemDecoration
72 implements RecyclerView.OnChildAttachStateChangeListener {
243 RecyclerView mRecyclerView;
276 private RecyclerView.ChildDrawingOrderCallback mChildDrawingOrderCallback = null;
299 public boolean onInterceptTouchEvent(RecyclerView recyclerView, MotionEvent event) {
344 public void onTouchEvent(RecyclerView recyclerView, MotionEvent event) {
449 public void attachToRecyclerView(@Nullable RecyclerView recyclerView) { in attachToRecyclerView()
[all …]
DItemTouchUIUtil.java22 import com.android.internal.widget.RecyclerView;
43 void onDraw(Canvas c, RecyclerView recyclerView, View view, in onDraw()
50 void onDrawOver(Canvas c, RecyclerView recyclerView, View view, in onDrawOver()
DItemTouchUIUtilImpl.java23 import com.android.internal.widget.RecyclerView;
31 public void onDraw(Canvas c, RecyclerView recyclerView, View view, in onDraw()
48 private float findMaxElevation(RecyclerView recyclerView, View itemView) { in findMaxElevation()
81 public void onDrawOver(Canvas c, RecyclerView recyclerView, in onDrawOver()
/frameworks/opt/setupwizard/library/recyclerview/test/robotest/src/com/android/setupwizardlib/template/
DRecyclerViewScrollHandlingDelegateTest.java27 import androidx.recyclerview.widget.RecyclerView;
28 import androidx.recyclerview.widget.RecyclerView.OnScrollListener;
44 private RecyclerView mRecyclerView;
52 mRecyclerView = spy(new RecyclerView(application)); in setUp()

123