Home
last modified time | relevance | path

Searched refs:mRecyclerView (Results 1 – 25 of 40) sorted by relevance

12

/packages/apps/Car/libs/car-ui-lib/tests/robotests/src/com/android/car/ui/recyclerview/
DDefaultScrollBarTest.java54 private RecyclerView mRecyclerView; field in DefaultScrollBarTest
71 when(mRecyclerView.getContext()).thenReturn(mContext); in initialize_shouldInitializeScrollListener()
72 when(mRecyclerView.getParent()).thenReturn(mParent); in initialize_shouldInitializeScrollListener()
73 when(mRecyclerView.getRecycledViewPool()).thenReturn(mRecycledViewPool); in initialize_shouldInitializeScrollListener()
78 mScrollBar.initialize(mRecyclerView, scrollView); in initialize_shouldInitializeScrollListener()
82 verify(mRecyclerView, times(2)).addOnScrollListener( in initialize_shouldInitializeScrollListener()
88 when(mRecyclerView.getContext()).thenReturn(mContext); in initialize_shouldSetMaxRecyclerViews()
89 when(mRecyclerView.getParent()).thenReturn(mParent); in initialize_shouldSetMaxRecyclerViews()
90 when(mRecyclerView.getRecycledViewPool()).thenReturn(mRecycledViewPool); in initialize_shouldSetMaxRecyclerViews()
95 mScrollBar.initialize(mRecyclerView, scrollView); in initialize_shouldSetMaxRecyclerViews()
[all …]
DCarUiSnapHelperTest.java45 private RecyclerView mRecyclerView; field in CarUiSnapHelperTest
62 when(mRecyclerView.getContext()).thenReturn(mContext); in setUp()
63 mCarUiSnapHelper.attachToRecyclerView(mRecyclerView); in setUp()
68 when(mRecyclerView.getLayoutManager()).thenReturn(mLayoutManager); in calculateDistanceToFinalSnap_shouldReturnTopMarginDifference()
83 when(mRecyclerView.getLayoutManager()).thenReturn(mLayoutManager); in calculateScrollDistance_shouldScrollHeightOfView()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DWidgetsFullSheet.java57 private WidgetsRecyclerView mRecyclerView; field in WidgetsFullSheet
77 mRecyclerView = findViewById(R.id.widgets_list_view); in onFinishInflate()
78 mRecyclerView.setAdapter(mAdapter); in onFinishInflate()
79 mAdapter.setApplyBitmapDeferred(true, mRecyclerView); in onFinishInflate()
83 mRecyclerView.setEdgeEffectFactory(springLayout.createEdgeEffectFactory()); in onFinishInflate()
89 return Pair.create(mRecyclerView, getContext().getString( in getAccessibilityTarget()
110 mRecyclerView.setPadding( in setInsets()
111 mRecyclerView.getPaddingLeft(), mRecyclerView.getPaddingTop(), in setInsets()
112 mRecyclerView.getPaddingRight(), insets.bottom); in setInsets()
180 mRecyclerView.setLayoutFrozen(false); in open()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/
DAlarmClockFragment.java80 private RecyclerView mRecyclerView; field in AlarmClockFragment
117 mRecyclerView = (RecyclerView) v.findViewById(R.id.alarms_recycler_view); in onCreateView()
128 mRecyclerView.setLayoutManager(mLayoutManager); in onCreateView()
134 mEmptyViewController = new EmptyViewController(mMainLayout, mRecyclerView, emptyView); in onCreateView()
157 mRecyclerView.findViewHolderForItemId(mExpandedAlarmId); in onCreateView()
174 mRecyclerView.addOnLayoutChangeListener(scrollPositionWatcher); in onCreateView()
175 mRecyclerView.addOnScrollListener(scrollPositionWatcher); in onCreateView()
176 mRecyclerView.setAdapter(mItemAdapter); in onCreateView()
180 mRecyclerView.setItemAnimator(itemAnimator); in onCreateView()
302 if (mRecyclerView.getItemAnimator().isRunning()) { in setAdapterItems()
[all …]
DAlarmClockFragment.kt66 private lateinit var mRecyclerView: RecyclerView variable in com.android.deskclock.AlarmClockFragment
98 mRecyclerView = v.findViewById<View>(R.id.alarms_recycler_view) as RecyclerView in onCreateView()
107 mRecyclerView.setLayoutManager(mLayoutManager) in onCreateView()
113 mEmptyViewController = EmptyViewController(mMainLayout, mRecyclerView, emptyView) in onCreateView()
132 mRecyclerView.findViewHolderForItemId(mExpandedAlarmId) in onCreateView()
148 mRecyclerView.addOnLayoutChangeListener(scrollPositionWatcher) in onCreateView()
149 mRecyclerView.addOnScrollListener(scrollPositionWatcher) in onCreateView()
150 mRecyclerView.setAdapter(mItemAdapter) in onCreateView()
154 mRecyclerView.setItemAnimator(itemAnimator) in onCreateView()
269 if (mRecyclerView.getItemAnimator()!!.isRunning()) { in setAdapterItems()
[all …]
DDropShadowController.java55 private RecyclerView mRecyclerView; field in DropShadowController
90 mRecyclerView = recyclerView; in DropShadowController()
91 mRecyclerView.addOnScrollListener(mScrollChangeWatcher); in DropShadowController()
106 if (mRecyclerView != null) { in stop()
107 mRecyclerView.removeOnScrollListener(mScrollChangeWatcher); in stop()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/
DSwipeDismissalDelegateTest.java57 private RecyclerView mRecyclerView; field in SwipeDismissalDelegateTest
68 mRecyclerView = new RecyclerView(mActivity); in setUp()
69 mRecyclerView.setLayoutManager(new LinearLayoutManager(mActivity)); in setUp()
75 assertThat(mDismissalDelegate.getMovementFlags(mRecyclerView, getConditionalViewHolder())) in getMovementFlags_conditionalViewHolder_shouldDisableSwipe()
81 assertThat(mDismissalDelegate.getMovementFlags(mRecyclerView, getDeferredSetupViewHolder())) in getMovementFlags_deferredSetupViewHolder_shouldDisableSwipe()
90 assertThat(mDismissalDelegate.getMovementFlags(mRecyclerView, holder)).isEqualTo(0); in getMovementFlags_dismissalView_shouldDisableSwipe()
98 assertThat(mDismissalDelegate.getMovementFlags(mRecyclerView, getSliceViewHolder())) in getMovementFlags_SliceViewHolder_shouldEnableSwipe()
111 .inflate(SliceContextualCardRenderer.VIEW_TYPE_FULL_WIDTH, mRecyclerView, false); in getSliceViewHolder()
121 .inflate(ConditionContextualCardRenderer.VIEW_TYPE_FULL_WIDTH, mRecyclerView, in getConditionalViewHolder()
132 .inflate(VIEW_TYPE_DEFERRED_SETUP, mRecyclerView, false); in getDeferredSetupViewHolder()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/common/
DDialerListBaseFragment.java42 private CarUiRecyclerView mRecyclerView; field in DialerListBaseFragment
49 mRecyclerView = view.findViewById(R.id.list_view); in onCreateView()
50 mRecyclerView.setLayoutManager(createLayoutManager()); in onCreateView()
76 return mRecyclerView; in getRecyclerView()
116 mRecyclerView.setPaddingRelative( in onToolbarHeightChange()
117 mRecyclerView.getPaddingStart(), in onToolbarHeightChange()
119 mRecyclerView.getPaddingEnd(), in onToolbarHeightChange()
120 mRecyclerView.getPaddingBottom()); in onToolbarHeightChange()
/packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/
DConversationListFragment.java92 private RecyclerView mRecyclerView; field in ConversationListFragment
152 int firstItemPosition = ((LinearLayoutManager) mRecyclerView.getLayoutManager()) in isScrolledToFirstConversation()
175 mRecyclerView = (RecyclerView) rootView.findViewById(android.R.id.list); in onCreateView()
190 mRecyclerView.setLayoutManager(manager); in onCreateView()
191 mRecyclerView.setHasFixedSize(true); in onCreateView()
192 mRecyclerView.setAdapter(mAdapter); in onCreateView()
193 mRecyclerView.setOnScrollListener(new RecyclerView.OnScrollListener() { in onCreateView()
200 ImeUtil.get().hideImeKeyboard(getActivity(), mRecyclerView); in onCreateView()
215 mRecyclerView.addOnItemTouchListener(new ConversationListSwipeHelper(mRecyclerView)); in onCreateView()
272 mListState = mRecyclerView.getLayoutManager().onSaveInstanceState(); in onPause()
[all …]
DConversationListSwipeHelper.java51 private final RecyclerView mRecyclerView; field in ConversationListSwipeHelper
67 mRecyclerView = recyclerView; in ConversationListSwipeHelper()
69 final Context context = mRecyclerView.getContext(); in ConversationListSwipeHelper()
102 final View viewAtPoint = mRecyclerView.findChildViewUnder(mInitialX, mInitialY); in onInterceptTouchEvent()
261 mRecyclerView.getParent().requestDisallowInterceptTouchEvent(true); in onSwipeGestureStart()
340 mRecyclerView.getWidth() : -mRecyclerView.getWidth(); in animateDismiss()
441 return hasGestureSwipeTarget() && mListItemView.getParent() == mRecyclerView; in hasValidGestureSwipeTarget()
DShareIntentFragment.java55 private RecyclerView mRecyclerView; field in ShareIntentFragment
84 mRecyclerView = (RecyclerView) view.findViewById(android.R.id.list); in onCreateDialog()
85 mRecyclerView.setLayoutManager(manager); in onCreateDialog()
86 mRecyclerView.setHasFixedSize(true); in onCreateDialog()
87 mRecyclerView.setAdapter(mAdapter); in onCreateDialog()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/calling/
DWifiCallingDisclaimerFragmentTest.java78 private RecyclerView mRecyclerView; field in WifiCallingDisclaimerFragmentTest
101 when(mView.findViewById(R.id.disclaimer_item_list)).thenReturn(mRecyclerView); in setUp()
105 doNothing().when(mRecyclerView).addOnScrollListener(mOnScrollListenerCaptor.capture()); in setUp()
136 when(mRecyclerView.canScrollVertically(1)).thenReturn(false); in onScrolled_canNotScroll_shouldEnableAgreeButton()
141 mOnScrollListenerCaptor.getValue().onScrolled(mRecyclerView, 0, 0); in onScrolled_canNotScroll_shouldEnableAgreeButton()
146 verify(mRecyclerView).removeOnScrollListener(any()); in onScrolled_canNotScroll_shouldEnableAgreeButton()
153 when(mRecyclerView.canScrollVertically(1)).thenReturn(true); in onScrolled_canScroll_shouldNotEnableAgreeButton()
158 mOnScrollListenerCaptor.getValue().onScrolled(mRecyclerView, 0, 0); in onScrolled_canScroll_shouldNotEnableAgreeButton()
164 verify(mRecyclerView, never()).removeOnScrollListener(any()); in onScrolled_canScroll_shouldNotEnableAgreeButton()
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
DConversationFragment.java144 private RecyclerView mRecyclerView; field in ConversationFragment
211 if (mRecyclerView.getChildCount() == 0) { in isScrolledToBottom()
214 final View lastView = mRecyclerView.getChildAt(mRecyclerView.getChildCount() - 1); in isScrolledToBottom()
215 int lastVisibleItem = ((LinearLayoutManager) mRecyclerView in isScrolledToBottom()
220 final long id = mRecyclerView.getChildItemId(lastView); in isScrolledToBottom()
221 final RecyclerView.ViewHolder holder = mRecyclerView.findViewHolderForItemId(id); in isScrolledToBottom()
226 final int totalItemCount = mRecyclerView.getAdapter().getItemCount(); in isScrolledToBottom()
228 return isAtBottom && lastView.getBottom() <= mRecyclerView.getHeight(); in isScrolledToBottom()
254 mRecyclerView.getItemAnimator().endAnimations();
450 mRecyclerView.setVisibility(View.INVISIBLE); in onActivityCreated()
[all …]
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/widget/
DPagedSnapHelper.java42 private RecyclerView mRecyclerView; field in PagedSnapHelper
76 if (mRecyclerView.computeVerticalScrollRange() - mRecyclerView.computeVerticalScrollOffset() in findSnapView()
78 + mRecyclerView.getPaddingTop() + mRecyclerView.getPaddingBottom()) { in findSnapView()
172 mRecyclerView = recyclerView; in attachToRecyclerView()
203 if (mRecyclerView == null) { in calculateScrollDistance()
207 RecyclerView.LayoutManager layoutManager = mRecyclerView.getLayoutManager(); in calculateScrollDistance()
/packages/apps/Car/libs/car-ui-lib/src/com/android/car/ui/recyclerview/
DCarUiSnapHelper.java54 private RecyclerView mRecyclerView; field in CarUiSnapHelper
85 LayoutManager layoutManager = mRecyclerView.getLayoutManager(); in smoothScrollBy()
92 mRecyclerView.smoothScrollBy(0, scrollDistance); in smoothScrollBy()
211 if (mRecyclerView == null) { in findSnapView()
219 View firstChild = mRecyclerView.getChildAt(0); in findSnapView()
220 if (firstChild.getHeight() > mRecyclerView.getHeight() in findSnapView()
225 mRecyclerView.getHeight() * LONG_ITEM_END_VISIBLE_THRESHOLD)) { in findSnapView()
381 mRecyclerView = recyclerView; in attachToRecyclerView()
410 if (mRecyclerView == null) { in calculateScrollDistance()
414 LayoutManager layoutManager = mRecyclerView.getLayoutManager(); in calculateScrollDistance()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/fragment/
DSeriesFragment.java49 private RecyclerView mRecyclerView; field in SeriesFragment
59 mRecyclerView = view.findViewById(R.id.fragment_series_recycler_view); in onCreateView()
60 mRecyclerView.setHasFixedSize(true); in onCreateView()
61 mRecyclerView.setAdapter(new SeriesAdapter(requireContext())); in onCreateView()
62 mRecyclerView.addItemDecoration(new SpaceItemDecoration(4, 16)); in onCreateView()
64 GridLayoutManager gridLayoutManager = (GridLayoutManager) mRecyclerView.getLayoutManager(); in onCreateView()
68 ((SimpleItemAnimator) mRecyclerView.getItemAnimator()).setSupportsChangeAnimations(false); in onCreateView()
DMovieFragment.java50 private RecyclerView mRecyclerView; field in MovieFragment
60 mRecyclerView = view.findViewById(R.id.fragment_movie_recycler_view); in onCreateView()
61 mRecyclerView.setHasFixedSize(true); in onCreateView()
62 mRecyclerView.setAdapter(new MovieAdapter(requireContext())); in onCreateView()
63 mRecyclerView.addItemDecoration(new SpaceItemDecoration(4, 16)); in onCreateView()
65 GridLayoutManager gridLayoutManager = (GridLayoutManager) mRecyclerView.getLayoutManager(); in onCreateView()
69 ((SimpleItemAnimator) mRecyclerView.getItemAnimator()).setSupportsChangeAnimations(false); in onCreateView()
DGenreFragment.java47 private RecyclerView mRecyclerView; field in GenreFragment
57 mRecyclerView = view.findViewById(R.id.fragment_genre_recycler_view); in onCreateView()
58 mRecyclerView.setHasFixedSize(true); in onCreateView()
59 mRecyclerView.setAdapter(new GenreAdapter(requireContext())); in onCreateView()
60 mRecyclerView.addItemDecoration(new SpaceItemDecoration(4, 16)); in onCreateView()
62 GridLayoutManager gridLayoutManager = (GridLayoutManager) mRecyclerView.getLayoutManager(); in onCreateView()
DAlbumFragment.java48 private RecyclerView mRecyclerView; field in AlbumFragment
58 mRecyclerView = view.findViewById(R.id.fragment_album_recycler_view); in onCreateView()
59 mRecyclerView.setHasFixedSize(true); in onCreateView()
60 mRecyclerView.setAdapter(new AlbumAdapter(requireContext())); in onCreateView()
61 mRecyclerView.addItemDecoration(new SpaceItemDecoration(4, 16)); in onCreateView()
63 GridLayoutManager gridLayoutManager = (GridLayoutManager) mRecyclerView.getLayoutManager(); in onCreateView()
DArtistFragment.java49 private RecyclerView mRecyclerView; field in ArtistFragment
59 mRecyclerView = view.findViewById(R.id.fragment_artist_recycler_view); in onCreateView()
60 mRecyclerView.setHasFixedSize(true); in onCreateView()
61 mRecyclerView.setAdapter(new ArtistAdapter(requireContext())); in onCreateView()
62 mRecyclerView.addItemDecoration(new SpaceItemDecoration(4, 16)); in onCreateView()
64 GridLayoutManager gridLayoutManager = (GridLayoutManager) mRecyclerView.getLayoutManager(); in onCreateView()
DOtherFragment.java53 private RecyclerView mRecyclerView; field in OtherFragment
63 mRecyclerView = view.findViewById(R.id.fragment_other_recycler_view); in onCreateView()
64 mRecyclerView.setHasFixedSize(true); in onCreateView()
67 mRecyclerView.setAdapter(otherAdapter); in onCreateView()
69 GridLayoutManager gridLayoutManager = (GridLayoutManager) mRecyclerView.getLayoutManager(); in onCreateView()
76 mRecyclerView.setItemAnimator(null); // TODO Re-enable add/remove animations in onCreateView()
DPlaylistFragment.java55 private RecyclerView mRecyclerView; field in PlaylistFragment
65 mRecyclerView = view.findViewById(R.id.fragment_playlist_recycler_view); in onCreateView()
66 mRecyclerView.setHasFixedSize(true); in onCreateView()
67 mRecyclerView.setAdapter(new PlaylistAdapter(requireContext())); in onCreateView()
68 mRecyclerView.addItemDecoration(new SpaceItemDecoration(4, 16)); in onCreateView()
70 GridLayoutManager gridLayoutManager = (GridLayoutManager) mRecyclerView.getLayoutManager(); in onCreateView()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datetime/timezone/
DBaseTimeZonePicker.java59 private RecyclerView mRecyclerView; field in BaseTimeZonePicker
87 mRecyclerView = view.findViewById(R.id.recycler_view); in onCreateView()
88 mRecyclerView.setLayoutManager(new LinearLayoutManager(getContext(), in onCreateView()
90 mRecyclerView.setAdapter(mAdapter); in onCreateView()
103 if (mRecyclerView != null) { in onTimeZoneDataReady()
104 mRecyclerView.setAdapter(mAdapter); in onTimeZoneDataReady()
/packages/apps/Settings/src/com/android/settings/datetime/timezone/
DBaseTimeZonePicker.java59 private RecyclerView mRecyclerView; field in BaseTimeZonePicker
87 mRecyclerView = view.findViewById(R.id.recycler_view); in onCreateView()
88 mRecyclerView.setLayoutManager(new LinearLayoutManager(getContext(), in onCreateView()
90 mRecyclerView.setAdapter(mAdapter); in onCreateView()
103 if (mRecyclerView != null) { in onTimeZoneDataReady()
104 mRecyclerView.setAdapter(mAdapter); in onTimeZoneDataReady()
/packages/services/Car/tests/BugReportApp/src/com/google/android/car/bugreport/
DBugReportInfoActivity.java70 private RecyclerView mRecyclerView; field in BugReportInfoActivity
89 mRecyclerView = findViewById(R.id.rv_bug_report_info); in onCreate()
90 mRecyclerView.setHasFixedSize(true); in onCreate()
93 mRecyclerView.setLayoutManager(mLayoutManager); in onCreate()
94 mRecyclerView.addItemDecoration(new DividerItemDecoration(mRecyclerView.getContext(), in onCreate()
101 mRecyclerView.setAdapter(mBugInfoAdapter); in onCreate()

12