/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 | 1153 if (layout.mRecyclerView != null) { in setLayoutManager() 1155 + " is already attached to a RecyclerView: " + layout.mRecyclerView); in setLayoutManager() 6933 RecyclerView mRecyclerView; field in RecyclerView.LayoutManager 7004 mRecyclerView = null; in setRecyclerView() 7009 mRecyclerView = recyclerView; in setRecyclerView() 7048 mRecyclerView.defaultOnMeasure(widthSpec, heightSpec); in setMeasuredDimensionFromChildren() 7058 final Rect bounds = mRecyclerView.mTempRect; in setMeasuredDimensionFromChildren() 7073 mRecyclerView.mTempRect.set(minX, minY, maxX, maxY); in setMeasuredDimensionFromChildren() 7074 setMeasuredDimension(mRecyclerView.mTempRect, widthSpec, heightSpec); in setMeasuredDimensionFromChildren() 7108 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/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/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/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 | 58 private final RecyclerView mRecyclerView; field in QSCustomizer 84 mRecyclerView = findViewById(android.R.id.list); in QSCustomizer() 88 mRecyclerView.setItemAnimator(animator); in QSCustomizer() 94 mRecyclerView.setPadding( in applyBottomNavBarToPadding() 95 /* left= */ mRecyclerView.getPaddingLeft(), in applyBottomNavBarToPadding() 96 /* top= */ mRecyclerView.getPaddingTop(), in applyBottomNavBarToPadding() 97 /* right= */ mRecyclerView.getPaddingRight(), in applyBottomNavBarToPadding() 117 mRecyclerView.getAdapter().notifyItemChanged(0); in updateResources() 155 mRecyclerView.getLayoutManager().scrollToPosition(0); in show() 174 reloadAdapterTileHeight(mRecyclerView.getAdapter()); in showImmediately() [all …]
|
D | TileAdapter.java | 117 private RecyclerView mRecyclerView; field in TileAdapter 151 mRecyclerView = recyclerView; in onAttachedToRecyclerView() 156 mRecyclerView = null; in onDetachedFromRecyclerView() 510 if (mRecyclerView != null) { 511 mRecyclerView.post(() -> { 512 final RecyclerView recyclerView = mRecyclerView;
|
/frameworks/base/tests/FlickerTests/test-apps/flickerapp/src/com/android/server/wm/flicker/testapp/ |
D | MailListFragment.java | 30 protected RecyclerView mRecyclerView; field in MailListFragment 42 mRecyclerView = rootView.findViewById(R.id.mail_recycle_view); in onCreateView() 44 mRecyclerView.setAdapter(mAdapter); in onCreateView() 46 mRecyclerView.setLayoutManager(mLayoutManager); in onCreateView()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/ |
D | BubbleOverflowContainerView.java | 69 private RecyclerView mRecyclerView; field in BubbleOverflowContainerView 147 mRecyclerView = findViewById(R.id.bubble_overflow_recycler); in onFinishInflate() 179 mRecyclerView.setLayoutManager( in updateOverflow() 181 if (mRecyclerView.getItemDecorationCount() == 0) { in updateOverflow() 182 mRecyclerView.addItemDecoration(new OverflowItemDecoration()); in updateOverflow() 187 mRecyclerView.setAdapter(mAdapter); in updateOverflow() 202 mRecyclerView.setVisibility(mOverflowBubbles.isEmpty() ? View.GONE : View.VISIBLE); in updateEmptyStateVisibility() 216 if (mRecyclerView != null) { in updateTheme() 217 mRecyclerView.invalidateItemDecorations(); in updateTheme()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/core/instrumentation/ |
D | SettingsJankMonitorTest.java | 71 private RecyclerView mRecyclerView; field in SettingsJankMonitorTest 102 when(mRecyclerView.getAdapter()).thenReturn(mPreferenceGroupAdapter); in detectSwitchPreferenceClickJank() 105 when(mRecyclerView.findViewHolderForAdapterPosition(adapterPosition)) in detectSwitchPreferenceClickJank() 110 SettingsJankMonitor.detectSwitchPreferenceClickJank(mRecyclerView, mSwitchPreference); in detectSwitchPreferenceClickJank()
|