/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/template/ |
D | RecyclerViewScrollHandlingDelegate.java | 33 @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 …]
|
D | RecyclerMixin.java | 54 @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/ |
D | RecyclerViewUtil.java | 55 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/ |
D | ItemTouchUIUtilImpl.java | 31 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
|
D | ItemTouchHelper.java | 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() 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 …]
|
D | ItemTouchUIUtil.java | 43 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/ |
D | GapWorker.java | 152 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 …]
|
D | RecyclerViewAccessibilityDelegate.java | 34 public RecyclerViewAccessibilityDelegate(RecyclerView recyclerView) { in RecyclerViewAccessibilityDelegate() argument 35 mRecyclerView = recyclerView; in RecyclerViewAccessibilityDelegate()
|
D | RecyclerView.java | 6543 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 …]
|
D | LinearLayoutManager.java | 434 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/ |
D | RvCompatListActivity.java | 41 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/ |
D | SetupWizardRecyclerLayout.java | 110 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()
|
D | GlifRecyclerLayout.java | 91 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()
|
D | GlifPreferenceLayout.java | 111 RecyclerView recyclerView = in onTemplateInflated() local 113 mRecyclerMixin = new RecyclerMixin(this, recyclerView); in onTemplateInflated()
|
D | SetupWizardPreferenceLayout.java | 110 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/ |
D | GlifPreferenceLayoutTest.java | 69 final RecyclerView recyclerView = in testOnCreateRecyclerView() local 72 assertNotNull("RecyclerView created should not be null", recyclerView); in testOnCreateRecyclerView()
|
D | SetupWizardPreferenceLayoutTest.java | 70 final RecyclerView recyclerView = in testOnCreateRecyclerView() local 73 assertNotNull("RecyclerView created should not be null", recyclerView); in testOnCreateRecyclerView()
|
D | SetupWizardRecyclerLayoutTest.java | 148 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()
|
D | GlifRecyclerLayoutTest.java | 146 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/ |
D | TileAdapter.java | 598 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/ |
D | PrintPreviewController.java | 324 public void onScrollStateChanged(RecyclerView recyclerView, int state) { in onScrollStateChanged() argument
|
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/statusbar/car/ |
D | CarStatusBar.java | 507 public void onScrolled(@NonNull RecyclerView recyclerView, int dx, int dy) { in connectNotificationsUI() 508 super.onScrolled(recyclerView, dx, dy); in connectNotificationsUI()
|