/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitCarUiProxy/plugin/src/main/java/com/chassis/car/ui/plugin/recyclerview/ |
D | RecyclerViewAdapterProxyV1.java | 51 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 …]
|
D | RecyclerViewAdapterProxyV2.java | 50 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/ |
D | RecentsUtilsTest.java | 33 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/ |
D | AppGridPageSnapper.java | 41 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 …]
|
D | AppGridActivity.java | 110 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/ |
D | ECUListActivity.java | 37 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()
|
D | LiveDataActivity.java | 48 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/ |
D | ActivityAllAppsContainerView.java | 475 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/ |
D | AlarmClockFragment.kt | 66 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 …]
|
D | DropShadowController.kt | 53 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/ |
D | HighlightableAdapter.java | 49 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/ |
D | SwipeDismissalDelegateTest.java | 55 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/ |
D | WifiCallingDisclaimerFragmentTest.java | 77 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/ |
D | ConversationListFragment.java | 92 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/ |
D | BaseTimeZonePicker.java | 68 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/ |
D | RequestManageCredentials.java | 84 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/ |
D | ZenModeIconPickerListPreferenceControllerTest.java | 58 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/ |
D | CarMultiConcurrentHotwordTestFragment.java | 46 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/ |
D | PhotosTabFragment.java | 183 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/ |
D | HighlightableTopLevelPreferenceAdapter.java | 63 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/ |
D | AudioPlayersFragment.java | 41 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/ |
D | SeriesFragment.java | 49 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()
|
D | MovieFragment.java | 50 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/ |
D | CarSearchFragment.java | 73 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/ |
D | ConversationFragment.java | 144 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 …]
|