/frameworks/base/core/java/com/android/internal/widget/ |
D | RecyclerViewAccessibilityDelegate.java | 31 final RecyclerView mRecyclerView; field in RecyclerViewAccessibilityDelegate 35 mRecyclerView = recyclerView; in RecyclerViewAccessibilityDelegate() 39 return mRecyclerView.hasPendingAdapterUpdates(); in shouldIgnore() 47 if (!shouldIgnore() && mRecyclerView.getLayoutManager() != null) { in performAccessibilityAction() 48 return mRecyclerView.getLayoutManager().performAccessibilityAction(action, args); in performAccessibilityAction() 58 if (!shouldIgnore() && mRecyclerView.getLayoutManager() != null) { in onInitializeAccessibilityNodeInfo() 59 mRecyclerView.getLayoutManager().onInitializeAccessibilityNodeInfo(info); in onInitializeAccessibilityNodeInfo() 88 if (!shouldIgnore() && mRecyclerView.getLayoutManager() != null) { 89 mRecyclerView.getLayoutManager() 99 if (!shouldIgnore() && mRecyclerView.getLayoutManager() != null) { [all …]
|
D | RecyclerView.java | 1149 if (layout.mRecyclerView != null) { in setLayoutManager() 1151 + " is already attached to a RecyclerView: " + layout.mRecyclerView); in setLayoutManager() 6812 RecyclerView mRecyclerView; field in RecyclerView.LayoutManager 6883 mRecyclerView = null; in setRecyclerView() 6888 mRecyclerView = recyclerView; in setRecyclerView() 6927 mRecyclerView.defaultOnMeasure(widthSpec, heightSpec); in setMeasuredDimensionFromChildren() 6937 final Rect bounds = mRecyclerView.mTempRect; in setMeasuredDimensionFromChildren() 6952 mRecyclerView.mTempRect.set(minX, minY, maxX, maxY); in setMeasuredDimensionFromChildren() 6953 setMeasuredDimension(mRecyclerView.mTempRect, widthSpec, heightSpec); in setMeasuredDimensionFromChildren() 6987 if (mRecyclerView != null) { in requestLayout() [all …]
|
/frameworks/opt/setupwizard/library/recyclerview/test/robotest/src/com/android/setupwizardlib/template/ |
D | RecyclerViewScrollHandlingDelegateTest.java | 44 private RecyclerView mRecyclerView; field in RecyclerViewScrollHandlingDelegateTest 52 mRecyclerView = spy(new RecyclerView(application)); in setUp() 53 doReturn(20).when(mRecyclerView).computeVerticalScrollRange(); in setUp() 54 doReturn(0).when(mRecyclerView).computeVerticalScrollExtent(); in setUp() 55 doReturn(0).when(mRecyclerView).computeVerticalScrollOffset(); in setUp() 57 doNothing().when(mRecyclerView).addOnScrollListener(mListenerCaptor.capture()); in setUp() 59 mDelegate = new RecyclerViewScrollHandlingDelegate(mRequireScrollMixin, mRecyclerView); in setUp() 60 mRecyclerView.layout(0, 0, 50, 50); in setUp() 74 doReturn(20).when(mRecyclerView).computeVerticalScrollOffset(); in testScrolledToBottom() 75 mListenerCaptor.getValue().onScrolled(mRecyclerView, 0, 20); in testScrolledToBottom() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/ |
D | ActionBarShadowControllerTest.java | 51 private RecyclerView mRecyclerView; field in ActionBarShadowControllerTest 73 when(mRecyclerView.canScrollVertically(-1)).thenReturn(false); in attachToView_shouldAddScrollWatcherAndUpdateActionBar() 75 ActionBarShadowController.attachToView(mActivity, mLifecycle, mRecyclerView); in attachToView_shouldAddScrollWatcherAndUpdateActionBar() 93 when(mRecyclerView.canScrollVertically(-1)).thenReturn(false); in attachToView_customViewAsActionBar_shouldUpdateElevationOnScroll() 95 ActionBarShadowController.attachToView(mView, mLifecycle, mRecyclerView); in attachToView_customViewAsActionBar_shouldUpdateElevationOnScroll() 99 when(mRecyclerView.canScrollVertically(-1)).thenReturn(true); in attachToView_customViewAsActionBar_shouldUpdateElevationOnScroll() 100 controller.mScrollChangeWatcher.onScrollChange(mRecyclerView, 10, 10, 0, 0); in attachToView_customViewAsActionBar_shouldUpdateElevationOnScroll() 106 ActionBarShadowController.attachToView(mActivity, mLifecycle, mRecyclerView); in attachToView_lifecycleChange_shouldAttachDetach() 108 verify(mRecyclerView).setOnScrollChangeListener(any()); in attachToView_lifecycleChange_shouldAttachDetach() 112 verify(mRecyclerView).setOnScrollChangeListener(isNull()); in attachToView_lifecycleChange_shouldAttachDetach() [all …]
|
/frameworks/base/core/java/com/android/internal/widget/helper/ |
D | ItemTouchHelper.java | 243 RecyclerView mRecyclerView; field in ItemTouchHelper 256 mRecyclerView.removeCallbacks(mScrollRunnable); 257 mRecyclerView.postOnAnimation(this); 317 mCallback.clearView(mRecyclerView, animation.mViewHolder); 371 mRecyclerView.removeCallbacks(mScrollRunnable); 373 mRecyclerView.invalidate(); 450 if (mRecyclerView == recyclerView) { in attachToRecyclerView() 453 if (mRecyclerView != null) { in attachToRecyclerView() 456 mRecyclerView = recyclerView; in attachToRecyclerView() 457 if (mRecyclerView != null) { in attachToRecyclerView() [all …]
|
/frameworks/opt/setupwizard/library/recyclerview/test/instrumentation/src/com/android/setupwizardlib/template/ |
D | RecyclerMixinTest.java | 54 private RecyclerView mRecyclerView; field in RecyclerMixinTest 66 mRecyclerView = mock(RecyclerView.class, delegatesTo(new RecyclerView(mContext))); in setUp() 73 RecyclerMixin mixin = new RecyclerMixin(mTemplateLayout, mRecyclerView); in testGetRecyclerView() 74 assertSame(mRecyclerView, mixin.getRecyclerView()); in testGetRecyclerView() 79 mRecyclerView.setAdapter(mAdapter); in testGetAdapter() 81 RecyclerMixin mixin = new RecyclerMixin(mTemplateLayout, mRecyclerView); in testGetAdapter() 87 assertNull(mRecyclerView.getAdapter()); in testSetAdapter() 89 RecyclerMixin mixin = new RecyclerMixin(mTemplateLayout, mRecyclerView); in testSetAdapter() 92 assertSame(mAdapter, mRecyclerView.getAdapter()); in testSetAdapter() 97 RecyclerMixin mixin = new RecyclerMixin(mTemplateLayout, mRecyclerView); in testDividerLegacyInset() [all …]
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/ |
D | PrintPreviewController.java | 56 private final RecyclerView mRecyclerView; field in PrintPreviewController 77 mRecyclerView = (RecyclerView) activity.findViewById(R.id.preview_content); in PrintPreviewController() 78 mRecyclerView.setLayoutManager(mLayoutManger); in PrintPreviewController() 79 mRecyclerView.setAdapter(mPageAdapter); in PrintPreviewController() 80 mRecyclerView.setItemViewCacheSize(0); in PrintPreviewController() 82 mRecyclerView.addOnScrollListener(mPreloadController); in PrintPreviewController() 105 mRecyclerView.setVisibility(View.VISIBLE); in setUiShown() 107 mRecyclerView.setVisibility(View.GONE); in setUiShown() 197 mRecyclerView.setAdapter(null); in destroy() 218 mRecyclerView.setPadding(left, top, right, bottom); in setPadding() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/ |
D | QSCustomizer.java | 74 private RecyclerView mRecyclerView; field in QSCustomizer 105 mRecyclerView = findViewById(android.R.id.list); in QSCustomizer() 109 mRecyclerView.setAdapter(mTileAdapter); in QSCustomizer() 110 mTileAdapter.getItemTouchHelper().attachToRecyclerView(mRecyclerView); in QSCustomizer() 113 mRecyclerView.setLayoutManager(layout); in QSCustomizer() 114 mRecyclerView.addItemDecoration(mTileAdapter.getItemDecoration()); in QSCustomizer() 117 mRecyclerView.setItemAnimator(animator); in QSCustomizer() 259 mRecyclerView.setAdapter(mTileAdapter); in setTileSpecs() 330 mRecyclerView.setAdapter(mTileAdapter);
|