/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 | 6557 public void onAttachedToRecyclerView(RecyclerView recyclerView) { in onAttachedToRecyclerView() argument 6566 public void onDetachedFromRecyclerView(RecyclerView recyclerView) { in onDetachedFromRecyclerView() argument 6895 void setRecyclerView(RecyclerView recyclerView) { in setRecyclerView() argument 6896 if (recyclerView == null) { in setRecyclerView() 6902 mRecyclerView = recyclerView; in setRecyclerView() 6903 mChildHelper = recyclerView.mChildHelper; in setRecyclerView() 6904 mWidth = recyclerView.getWidth(); in setRecyclerView() 6905 mHeight = recyclerView.getHeight(); in setRecyclerView() 7589 public void smoothScrollToPosition(RecyclerView recyclerView, State state, in smoothScrollToPosition() argument 9060 public boolean onAddFocusables(RecyclerView recyclerView, ArrayList<View> views, in onAddFocusables() argument [all …]
|
D | GridLayoutManager.java | 198 public void onItemsAdded(RecyclerView recyclerView, int positionStart, int itemCount) { in onItemsAdded() argument 203 public void onItemsChanged(RecyclerView recyclerView) { in onItemsChanged() argument 208 public void onItemsRemoved(RecyclerView recyclerView, int positionStart, int itemCount) { in onItemsRemoved() argument 213 public void onItemsUpdated(RecyclerView recyclerView, int positionStart, int itemCount, in onItemsUpdated() argument 219 public void onItemsMoved(RecyclerView recyclerView, int from, int to, int itemCount) { in onItemsMoved() argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/ |
D | ControlsProviderSelectorActivity.kt | 59 private lateinit var recyclerView: RecyclerView variable 89 recyclerView = requireViewById(R.id.list) in onCreate() 90 recyclerView.layoutManager = LinearLayoutManager(applicationContext) in onCreate() 115 recyclerView.alpha = 0.0f in onStart() 116 recyclerView.adapter = AppAdapter( in onStart() 130 ControlsAnimations.enterAnimation(recyclerView).start() in onStart()
|
D | StructureAdapter.kt | 45 private val recyclerView: RecyclerView constant in com.android.systemui.controls.management.StructureAdapter 49 recyclerView = itemView.requireViewById<RecyclerView>(R.id.listAll) 64 recyclerView.apply { in setUpRecyclerView() 66 layoutManager = GridLayoutManager(recyclerView.context, 2).apply { in setUpRecyclerView()
|
D | ControlsEditingActivity.kt | 175 val recyclerView = requireViewById<RecyclerView>(R.id.list) in setUpList() constant 176 recyclerView.alpha = 0.0f in setUpList() 183 ControlsAnimations.enterAnimation(recyclerView).start() in setUpList() 193 recyclerView.apply { in setUpList() 195 layoutManager = object : GridLayoutManager(recyclerView.context, 2) { in setUpList() 213 ItemTouchHelper(model.itemTouchHelperCallback).attachToRecyclerView(recyclerView) in setUpList()
|
D | FavoritesModel.kt | 217 recyclerView: RecyclerView, in onMove() 226 recyclerView: RecyclerView, in getMovementFlags() 237 recyclerView: RecyclerView, in canDropOver()
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/recyclerview/ |
D | RvCompatListActivity.java | 42 RecyclerView recyclerView = (RecyclerView) inflater.inflate( in onCreateView() local 44 recyclerView.setLayoutManager(layoutManager); in onCreateView() 45 recyclerView.setAdapter(adapter); in onCreateView() 46 return recyclerView; in onCreateView()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | ChooserMultiProfilePagerAdapter.java | 80 return getItem(index).recyclerView; in getListViewForIndex() 113 final RecyclerView recyclerView = getItem(pageIndex).recyclerView; in setupListAdapter() local 116 GridLayoutManager glm = (GridLayoutManager) recyclerView.getLayoutManager(); in setupListAdapter() 261 private RecyclerView recyclerView; field in ChooserMultiProfilePagerAdapter.ChooserProfileDescriptor 265 recyclerView = rootView.findViewById(R.id.resolver_list); in ChooserProfileDescriptor()
|
/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 | SetupWizardPreferenceLayoutTest.java | 70 final RecyclerView recyclerView = in testOnCreateRecyclerView() local 73 assertNotNull("RecyclerView created should not be null", recyclerView); in testOnCreateRecyclerView()
|
D | GlifPreferenceLayoutTest.java | 69 final RecyclerView recyclerView = in testOnCreateRecyclerView() local 72 assertNotNull("RecyclerView created should not be null", recyclerView); in testOnCreateRecyclerView()
|
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()
|
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()
|
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/ |
D | NekoLand.java | 90 final RecyclerView recyclerView = findViewById(R.id.holder); in onCreate() local 92 recyclerView.setAdapter(mAdapter); in onCreate() 93 recyclerView.setLayoutManager(new GridLayoutManager(this, 3)); in onCreate()
|