Home
last modified time | relevance | path

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

12

/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitCarUiProxy/plugin/src/main/java/com/chassis/car/ui/plugin/recyclerview/
DRecyclerViewAdapterProxyV1.java51 private CarUiRecyclerViewImpl mRecyclerView; field in RecyclerViewAdapterProxyV1
56 mRecyclerView = recyclerView; in RecyclerViewAdapterProxyV1()
124 mRecyclerView.setAdapter(null); in setAdapter()
126 mRecyclerView.setAdapter(new RVAdapterWrapper(adapterOEMV1)); in setAdapter()
133 mRecyclerView.addOnScrollListener(mOnScrollListener); in addOnScrollListener()
142 mRecyclerView.removeOnScrollListener(mOnScrollListener); in removeOnScrollListener()
150 mRecyclerView.clearOnScrollListeners(); in clearOnScrollListeners()
156 mRecyclerView.scrollToPosition(i); in scrollToPosition()
161 mRecyclerView.smoothScrollBy(i, i1); in smoothScrollBy()
166 mRecyclerView.smoothScrollToPosition(i); in smoothScrollToPosition()
[all …]
DRecyclerViewAdapterProxyV2.java50 private CarUiRecyclerViewImpl mRecyclerView; field in RecyclerViewAdapterProxyV2
55 mRecyclerView = recyclerView; in RecyclerViewAdapterProxyV2()
123 mRecyclerView.setAdapter(null); in setAdapter()
125 mRecyclerView.setAdapter(new RVAdapterWrapper(adapterOEMV1)); in setAdapter()
132 mRecyclerView.addOnScrollListener(mOnScrollListener); in addOnScrollListener()
141 mRecyclerView.removeOnScrollListener(mOnScrollListener); in removeOnScrollListener()
149 mRecyclerView.clearOnScrollListeners(); in clearOnScrollListeners()
155 mRecyclerView.scrollToPosition(i); in scrollToPosition()
160 mRecyclerView.smoothScrollBy(i, i1); in smoothScrollBy()
165 mRecyclerView.smoothScrollToPosition(i); in smoothScrollToPosition()
[all …]
/packages/apps/Car/Launcher/app/tests/src/com/android/car/carlauncher/recents/
DRecentsUtilsTest.java33 private RecyclerView mRecyclerView; field in RecentsUtilsTest
40 when(mRecyclerView.getLayoutManager()).thenReturn(mLinearLayoutManager); in setup()
46 when(mRecyclerView.isLayoutRtl()).thenReturn(true); in areItemsRightToLeft_returnsFalse_RTL_reversedLayout()
48 assertFalse(RecentsUtils.areItemsRightToLeft(mRecyclerView)); in areItemsRightToLeft_returnsFalse_RTL_reversedLayout()
54 when(mRecyclerView.isLayoutRtl()).thenReturn(true); in areItemsRightToLeft_returnsTrue_RTL_noReversedLayout()
56 assertTrue(RecentsUtils.areItemsRightToLeft(mRecyclerView)); in areItemsRightToLeft_returnsTrue_RTL_noReversedLayout()
62 when(mRecyclerView.isLayoutRtl()).thenReturn(false); in areItemsRightToLeft_returnsTrue_LTR_reversedLayout()
64 assertTrue(RecentsUtils.areItemsRightToLeft(mRecyclerView)); in areItemsRightToLeft_returnsTrue_LTR_reversedLayout()
70 when(mRecyclerView.isLayoutRtl()).thenReturn(false); in areItemsRightToLeft_returnsFalse_LTR_noReversedLayout()
72 assertFalse(RecentsUtils.areItemsRightToLeft(mRecyclerView)); in areItemsRightToLeft_returnsFalse_LTR_noReversedLayout()
/packages/apps/Car/Launcher/libs/appgrid/lib/src/com/android/car/carlauncher/
DAppGridPageSnapper.java41 private RecyclerView mRecyclerView; field in AppGridPageSnapper
81 if (mRecyclerView == null) { in findSnapView()
106 RecyclerView.ViewHolder holder = mRecyclerView.findContainingViewHolder(view); in findAdapterPosition()
122 mRecyclerView.smoothScrollToPosition(posToReturn); in handleScrollToPos()
129 RecyclerView.ViewHolder childToReturn = mRecyclerView.findViewHolderForAdapterPosition( in handleScrollToPos()
136 mRecyclerView.smoothScrollBy(viewStart - start, 0); in handleScrollToPos()
138 mRecyclerView.smoothScrollBy(0, viewStart - start); in handleScrollToPos()
212 for (int i = 0; i < mRecyclerView.getLayoutManager().getChildCount(); i++) { in getFirstMostVisibleChild()
213 View child = mRecyclerView.getLayoutManager().getChildAt(i); in getFirstMostVisibleChild()
229 mRecyclerView = recyclerView; in attachToRecyclerView()
[all …]
DAppGridActivity.java110 private AppGridRecyclerView mRecyclerView; field in AppGridActivity
179 mRecyclerView.cancelDragAndDrop(); in handleDistractionOptimization()
232 mRecyclerView = requireViewById(R.id.apps_grid); in onCreate()
233 mRecyclerView.setFocusable(false); in onCreate()
235 mRecyclerView.setLayoutManager(mLayoutManager); in onCreate()
242 pageSnapper.attachToRecyclerView(mRecyclerView); in onCreate()
244 mRecyclerView.setItemAnimator(new AppGridItemAnimator()); in onCreate()
247 mRecyclerView.setVerticalScrollBarEnabled(false); in onCreate()
248 mRecyclerView.setHorizontalScrollBarEnabled(false); in onCreate()
249 mRecyclerView.addOnScrollListener(new AppGridOnScrollListener()); in onCreate()
[all …]
/packages/services/Car/tests/DiagnosticTools/src/com/google/android/car/diagnostictools/
DECUListActivity.java37 private RecyclerView mRecyclerView; field in ECUListActivity
50 mRecyclerView = findViewById(R.id.my_recycler_view); in onCreate()
52 mRecyclerView.setHasFixedSize(true); in onCreate()
55 mRecyclerView.setLayoutManager(mLayoutManager); in onCreate()
61 mRecyclerView.setAdapter(mAdapter); in onCreate()
62 mRecyclerView.addItemDecoration( in onCreate()
64 mRecyclerView.getContext(), DividerItemDecoration.VERTICAL)); in onCreate()
DLiveDataActivity.java48 private RecyclerView mRecyclerView; field in LiveDataActivity
135 mRecyclerView = findViewById(R.id.live_data_list); in onCreate()
137 mRecyclerView.setHasFixedSize(false); in onCreate()
140 mRecyclerView.setLayoutManager(mLayoutManager); in onCreate()
142 mRecyclerView.setAdapter(mAdapter); in onCreate()
143 mRecyclerView.addItemDecoration( in onCreate()
145 mRecyclerView.getContext(), DividerItemDecoration.VERTICAL)); in onCreate()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DActivityAllAppsContainerView.java475 if (i != SEARCH && mAH.get(i).mRecyclerView != null) { in reset()
476 mAH.get(i).mRecyclerView.scrollToTop(); in reset()
563 if (mAH.get(currentActivePage).mRecyclerView != null) { in onActivePageChanged()
564 mAH.get(currentActivePage).mRecyclerView.bindFastScrollbar(mFastScroller); in onActivePageChanged()
595 mAllAppsStore.unregisterIconContainer(mAH.get(AdapterHolder.MAIN).mRecyclerView); in rebindAdapters()
596 mAllAppsStore.unregisterIconContainer(mAH.get(AdapterHolder.WORK).mRecyclerView); in rebindAdapters()
597 mAllAppsStore.unregisterIconContainer(mAH.get(AdapterHolder.SEARCH).mRecyclerView); in rebindAdapters()
609 mAH.get(AdapterHolder.WORK).mRecyclerView.addOnScrollListener( in rebindAdapters()
635 mAH.get(AdapterHolder.WORK).mRecyclerView = null; in rebindAdapters()
652 mAllAppsStore.registerIconContainer(mAH.get(AdapterHolder.MAIN).mRecyclerView); in rebindAdapters()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/
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.kt53 private var mRecyclerView: RecyclerView? = null variable in com.android.deskclock.DropShadowController
89 mRecyclerView = recyclerView
90 mRecyclerView?.addOnScrollListener(mScrollChangeWatcher)
100 mRecyclerView != null -> mRecyclerView?.removeOnScrollListener(mScrollChangeWatcher) in stop()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/
DHighlightableAdapter.java49 private final CarUiRecyclerView mRecyclerView; field in HighlightableAdapter
63 mRecyclerView = recyclerView; in HighlightableAdapter()
117 if (mRecyclerView == null) { in requestHighlight()
124 mRecyclerView.getView().post(() -> notifyItemChanged(mHighlightPosition)); in requestHighlight()
129 mRecyclerView.getView().post(() -> { in requestHighlight()
132 mRecyclerView.scrollToPosition(newPosition); in requestHighlight()
174 mRecyclerView.getView().post(() -> mRecyclerView.scrollToPosition(mHighlightPosition)); in onSearchEnded()
181 mRecyclerView.scrollToPosition(to); in afterFavClicked()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/
DSwipeDismissalDelegateTest.java55 private RecyclerView mRecyclerView; field in SwipeDismissalDelegateTest
66 mRecyclerView = new RecyclerView(mActivity); in setUp()
67 mRecyclerView.setLayoutManager(new LinearLayoutManager(mActivity)); in setUp()
74 assertThat(mDismissalDelegate.getMovementFlags(mRecyclerView, getConditionalViewHolder())) in getMovementFlags_conditionalViewHolder_shouldDisableSwipe()
84 assertThat(mDismissalDelegate.getMovementFlags(mRecyclerView, holder)).isEqualTo(0); in getMovementFlags_dismissalView_shouldDisableSwipe()
93 assertThat(mDismissalDelegate.getMovementFlags(mRecyclerView, getSliceViewHolder())) in getMovementFlags_SliceViewHolder_shouldEnableSwipe()
107 .inflate(SliceContextualCardRenderer.VIEW_TYPE_FULL_WIDTH, mRecyclerView, false); in getSliceViewHolder()
117 .inflate(ConditionContextualCardRenderer.VIEW_TYPE_FULL_WIDTH, mRecyclerView, in getConditionalViewHolder()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/calling/
DWifiCallingDisclaimerFragmentTest.java77 private RecyclerView mRecyclerView; field in WifiCallingDisclaimerFragmentTest
100 when(mView.findViewById(R.id.disclaimer_item_list)).thenReturn(mRecyclerView); in setUp()
104 doNothing().when(mRecyclerView).addOnScrollListener(mOnScrollListenerCaptor.capture()); in setUp()
135 when(mRecyclerView.canScrollVertically(1)).thenReturn(false); in onScrolled_canNotScroll_shouldEnableAgreeButton()
140 mOnScrollListenerCaptor.getValue().onScrolled(mRecyclerView, 0, 0); in onScrolled_canNotScroll_shouldEnableAgreeButton()
145 verify(mRecyclerView).removeOnScrollListener(any()); in onScrolled_canNotScroll_shouldEnableAgreeButton()
152 when(mRecyclerView.canScrollVertically(1)).thenReturn(true); in onScrolled_canScroll_shouldNotEnableAgreeButton()
157 mOnScrollListenerCaptor.getValue().onScrolled(mRecyclerView, 0, 0); in onScrolled_canScroll_shouldNotEnableAgreeButton()
163 verify(mRecyclerView, never()).removeOnScrollListener(any()); in onScrolled_canScroll_shouldNotEnableAgreeButton()
/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 …]
/packages/apps/Settings/src/com/android/settings/datetime/timezone/
DBaseTimeZonePicker.java68 private RecyclerView mRecyclerView; field in BaseTimeZonePicker
96 mRecyclerView = view.findViewById(R.id.recycler_view); in onCreateView()
97 mRecyclerView.setLayoutManager(new LinearLayoutManager(getContext(), in onCreateView()
99 mRecyclerView.setAdapter(mAdapter); in onCreateView()
114 if (mRecyclerView != null) { in onTimeZoneDataReady()
115 mRecyclerView.setAdapter(mAdapter); in onTimeZoneDataReady()
169 ViewCompat.setNestedScrollingEnabled(mRecyclerView, false); in onMenuItemActionExpand()
177 ViewCompat.setNestedScrollingEnabled(mRecyclerView, true); in onMenuItemActionCollapse()
/packages/apps/Settings/src/com/android/settings/security/
DRequestManageCredentials.java84 private RecyclerView mRecyclerView; field in RequestManageCredentials
205 mRecyclerView = findViewById(R.id.apps_list); in loadRecyclerView()
206 mRecyclerView.setLayoutManager(mLayoutManager); in loadRecyclerView()
211 mRecyclerView.setAdapter(recyclerViewAdapter); in loadRecyclerView()
236 mRecyclerView.scrollToPosition(position); in loadExtendedFloatingActionButton()
288 mRecyclerView.addOnScrollListener(new RecyclerView.OnScrollListener() { in addOnScrollListener()
313 mRecyclerView.setPadding(0, 0, 0, padding_in_px); in showButtonPanel()
319 mRecyclerView.setPadding(0, 0, 0, 0); in hideButtonPanel()
324 if (mLayoutManager == null || mRecyclerView.getAdapter() == null) { in isRecyclerScrollable()
328 < mRecyclerView.getAdapter().getItemCount() - 1; in isRecyclerScrollable()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/modes/
DZenModeIconPickerListPreferenceControllerTest.java58 private RecyclerView mRecyclerView; field in ZenModeIconPickerListPreferenceControllerTest
70 mRecyclerView = new RecyclerView(context); in setUp()
71 mRecyclerView.setId(R.id.icon_list); in setUp()
72 LayoutPreference layoutPreference = new LayoutPreference(context, mRecyclerView); in setUp()
81 assertThat(mRecyclerView.getAdapter()).isNotNull(); in displayPreference_loadsIcons()
82 assertThat(mRecyclerView.getAdapter().getItemCount()).isEqualTo(3); in displayPreference_loadsIcons()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/hotword/
DCarMultiConcurrentHotwordTestFragment.java46 private RecyclerView mRecyclerView; field in CarMultiConcurrentHotwordTestFragment
57 mRecyclerView = view.findViewById(services_recycler_view); in onCreateView()
58 mRecyclerView.setLayoutManager(new LinearLayoutManager(getActivity())); in onCreateView()
59 mRecyclerView.scrollToPosition(0); in onCreateView()
60 mRecyclerView.setAdapter(mHotwordServiceAdapter); in onCreateView()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/ui/
DPhotosTabFragment.java183 mRecyclerView.addOnScrollListener(preloader); in onViewCreated()
230 mRecyclerView.setColumnWidth(photoSize + spacing); in onViewCreated()
231 mRecyclerView.setMinimumSpanCount(MINIMUM_SPAN_COUNT); in onViewCreated()
234 mRecyclerView.setAdapter(adapter); in onViewCreated()
235 mRecyclerView.addItemDecoration(itemDecoration); in onViewCreated()
237 mRecyclerView.addRecyclerListener( in onViewCreated()
252 mRecyclerView.setItemViewCacheSize(10); in onViewCreated()
308 mRecyclerView.addOnScrollListener( in setOnScrollListenerForRecyclerView()
319 (LinearLayoutManager) mRecyclerView.getLayoutManager(); in setOnScrollListenerForRecyclerView()
404 (LinearLayoutManager) mRecyclerView.getLayoutManager(); in onResume()
[all …]
/packages/apps/Settings/src/com/android/settings/widget/
DHighlightableTopLevelPreferenceAdapter.java63 private final RecyclerView mRecyclerView; field in HighlightableTopLevelPreferenceAdapter
75 mRecyclerView = recyclerView; in HighlightableTopLevelPreferenceAdapter()
119 if (mRecyclerView == null) { in requestHighlight()
204 final View view = mRecyclerView.getChildAt(mScrollPosition); in scroll()
206 mRecyclerView.postDelayed(() -> scroll(), DELAY_HIGHLIGHT_DURATION_MILLIS); in scroll()
213 mRecyclerView.nestedScrollBy(0, -mRecyclerView.getHeight()); in scroll()
217 mRecyclerView.nestedScrollBy(0, scrollY); in scroll()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/
DAudioPlayersFragment.java41 private RecyclerView mRecyclerView; field in AudioPlayersFragment
51 mRecyclerView = view.findViewById(R.id.players_view); in onCreateView()
53 mRecyclerView.setLayoutManager(new LinearLayoutManager(getActivity())); in onCreateView()
56 mRecyclerView.setAdapter(mSystemPlayerAdapter); in onCreateView()
57 mRecyclerView.scrollToPosition(0); in onCreateView()
/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()
/packages/apps/Car/SettingsIntelligence/src/com/android/settings/intelligence/search/car/
DCarSearchFragment.java73 private CarUiRecyclerView mRecyclerView; field in CarSearchFragment
149 mRecyclerView = getCarUiRecyclerView(); in onActivityCreated()
150 if (mRecyclerView != null) { in onActivityCreated()
151 mRecyclerView.setAdapter(mSearchAdapter); in onActivityCreated()
152 mRecyclerView.addOnScrollListener(mScrollListener); in onActivityCreated()
255 mRecyclerView.scrollToPosition(0); in onLoadFinished()
346 if (mRecyclerView != null && !mRecyclerView.getView().hasFocus()) { in hideKeyboard()
347 mRecyclerView.getView().requestFocus(); in hideKeyboard()
/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 …]

12