/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
D | SlowNestedRecyclerViewActivity.java | 24 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 …]
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | OrientationHelper.java | 37 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 …]
|
D | GapWorker.java | 33 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 …]
|
D | GridLayoutManager.java | 118 public int getRowCountForAccessibility(RecyclerView.Recycler recycler, in getRowCountForAccessibility() 119 RecyclerView.State state) { in getRowCountForAccessibility() 131 public int getColumnCountForAccessibility(RecyclerView.Recycler recycler, in getColumnCountForAccessibility() 132 RecyclerView.State state) { in getColumnCountForAccessibility() 144 public void onInitializeAccessibilityNodeInfoForItem(RecyclerView.Recycler recycler, in onInitializeAccessibilityNodeInfoForItem() 145 RecyclerView.State state, View host, AccessibilityNodeInfo info) { in onInitializeAccessibilityNodeInfoForItem() 165 public void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state) { in onLayoutChildren() 177 public void onLayoutCompleted(RecyclerView.State state) { in onLayoutCompleted() 198 public void onItemsAdded(RecyclerView recyclerView, int positionStart, int itemCount) { in onItemsAdded() 203 public void onItemsChanged(RecyclerView recyclerView) { in onItemsChanged() [all …]
|
D | LinearLayoutManager.java | 19 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 …]
|
D | RecyclerViewAccessibilityDelegate.java | 31 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()
|
D | LinearSmoothScroller.java | 38 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()
|
D | ScrollbarHelper.java | 30 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/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/ |
D | RecyclerViewActivity.java | 31 import com.android.internal.widget.RecyclerView; 32 import com.android.internal.widget.RecyclerView.LayoutParams; 43 RecyclerView recyclerView = new RecyclerView(this); in onCreate() 50 static final class TestViewHolder extends RecyclerView.ViewHolder { 56 static final class TestAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> { 60 public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder() 65 public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) { in onBindViewHolder()
|
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/ |
D | DividerItemDecoration.java | 26 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()
|
D | SetupWizardRecyclerLayout.java | 21 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()
|
D | GlifRecyclerLayout.java | 23 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()
|
D | GlifPreferenceLayout.java | 21 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()
|
D | SetupWizardPreferenceLayout.java | 21 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/ |
D | RvCompatListActivity.java | 29 import androidx.recyclerview.widget.RecyclerView; 35 RecyclerView.LayoutManager layoutManager; 36 RecyclerView.Adapter adapter; 42 RecyclerView recyclerView = (RecyclerView) inflater.inflate( in onCreateView() 70 protected RecyclerView.LayoutManager createLayoutManager(Context context) { in createLayoutManager() 74 protected abstract RecyclerView.Adapter createAdapter(); in createAdapter()
|
D | RvBoxAdapter.java | 20 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/base/packages/SystemUI/src/com/android/systemui/controls/management/ |
D | FavoritesModel.kt | 22 import androidx.recyclerview.widget.RecyclerView 49 private var adapter: RecyclerView.Adapter<*>? = null 78 override fun attachAdapter(adapter: RecyclerView.Adapter<*>) { in attachAdapter() 219 recyclerView: RecyclerView, in onMove() 220 viewHolder: RecyclerView.ViewHolder, in onMove() 221 target: RecyclerView.ViewHolder in onMove() 228 recyclerView: RecyclerView, in getMovementFlags() 229 viewHolder: RecyclerView.ViewHolder in getMovementFlags() 239 recyclerView: RecyclerView, in canDropOver() 240 current: RecyclerView.ViewHolder, in canDropOver() [all …]
|
D | StructureAdapter.kt | 23 import androidx.recyclerview.widget.RecyclerView 28 ) : RecyclerView.Adapter<StructureAdapter.StructureHolder>() { 43 class StructureHolder(view: View) : RecyclerView.ViewHolder(view) { 45 private val recyclerView: RecyclerView 49 recyclerView = itemView.requireViewById<RecyclerView>(R.id.listAll)
|
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/template/ |
D | RecyclerViewScrollHandlingDelegate.java | 21 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()
|
D | RecyclerMixin.java | 27 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/opt/setupwizard/library/recyclerview/test/instrumentation/src/com/android/setupwizardlib/test/ |
D | GlifRecyclerLayoutTest.java | 29 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()
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/ |
D | PrintPreviewController.java | 28 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/ |
D | ItemTouchHelper.java | 38 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 …]
|
D | ItemTouchUIUtil.java | 22 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()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/tv/notifications/ |
D | TvNotificationAdapter.java | 30 import androidx.recyclerview.widget.RecyclerView; 37 public class TvNotificationAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> { 54 public void onBindViewHolder(@NonNull RecyclerView.ViewHolder viewHolder, int position) { in onBindViewHolder() 86 private static class TvNotificationViewHolder extends RecyclerView.ViewHolder implements
|