Home
last modified time | relevance | path

Searched refs:recyclerView (Results 1 – 25 of 127) sorted by relevance

123456

/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DAllAppsContainerView.java101 public void onScrolled(@NonNull RecyclerView recyclerView, int dx, int dy) {
102 updateHeaderScroll(((AllAppsRecyclerView) recyclerView).getCurrentScrollY());
229 if (holder.recyclerView != null) { in onDeviceProfileChanged()
232 holder.recyclerView.swapAdapter(holder.recyclerView.getAdapter(), true); in onDeviceProfileChanged()
233 holder.recyclerView.getRecycledViewPool().clear(); in onDeviceProfileChanged()
333 return mAH[AdapterHolder.MAIN].recyclerView; in getActiveRecyclerView()
335 return mAH[AdapterHolder.WORK].recyclerView; in getActiveRecyclerView()
348 if (mAH[i].recyclerView != null) { in reset()
349 mAH[i].recyclerView.scrollToTop(); in reset()
453 mAllAppsStore.unregisterIconContainer(mAH[AdapterHolder.MAIN].recyclerView); in rebindAdapters()
[all …]
/packages/apps/Dialer/java/com/android/dialer/calllog/ui/
DNewCallLogFragment.java68 private RecyclerView recyclerView; field in NewCallLogFragment
116 if (recyclerView.getAdapter() != null) { in onStop()
117 ((NewCallLogAdapter) recyclerView.getAdapter()).logMetrics(getContext()); in onStop()
152 recyclerView.setVisibility(View.GONE); in onFragmentShown()
158 recyclerView.setVisibility(View.VISIBLE); in onFragmentShown()
177 if (recyclerView.getAdapter() != null) { in onFragmentShown()
178 ((NewCallLogAdapter) recyclerView.getAdapter()).clearCache(); in onFragmentShown()
179 recyclerView.getAdapter().notifyDataSetChanged(); in onFragmentShown()
221 recyclerView = view.findViewById(R.id.new_call_log_recycler_view); in onCreateView()
222 recyclerView.addOnScrollListener( in onCreateView()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/legacysuggestion/
DLegacySuggestionContextualCardRendererTest.java69 final RecyclerView recyclerView = new RecyclerView(mActivity); in bindView_shouldSetListener() local
70 recyclerView.setLayoutManager(new LinearLayoutManager(mActivity)); in bindView_shouldSetListener()
73 recyclerView, false); in bindView_shouldSetListener()
87 final RecyclerView recyclerView = new RecyclerView(mActivity); in bindView_closeButton_shouldSetListener() local
88 recyclerView.setLayoutManager(new LinearLayoutManager(mActivity)); in bindView_closeButton_shouldSetListener()
91 recyclerView, false); in bindView_closeButton_shouldSetListener()
106 final RecyclerView recyclerView = new RecyclerView(mActivity); in viewClick_shouldInvokeControllerPrimaryClick() local
107 recyclerView.setLayoutManager(new LinearLayoutManager(mActivity)); in viewClick_shouldInvokeControllerPrimaryClick()
110 recyclerView, false); in viewClick_shouldInvokeControllerPrimaryClick()
126 final RecyclerView recyclerView = new RecyclerView(mActivity); in viewClick_closeButton_shouldInvokeControllerDismissClick() local
[all …]
/packages/apps/Dialer/java/com/android/dialer/voicemail/listui/
DNewVoicemailFragment.java52 private RecyclerView recyclerView; field in NewVoicemailFragment
159 recyclerView = fragmentRootFrameLayout.findViewById(R.id.new_voicemail_call_log_recycler_view); in onCreateView()
179 showView(recyclerView); in onLoadFinished()
181 if (recyclerView.getAdapter() == null) { in onLoadFinished()
182 recyclerView.setLayoutManager(new LinearLayoutManager(getContext())); in onLoadFinished()
184 recyclerView.setAdapter( in onLoadFinished()
195 recyclerView.getAdapter()); in onLoadFinished()
196 ((NewVoicemailAdapter) recyclerView.getAdapter()).updateCursor(data); in onLoadFinished()
197 ((NewVoicemailAdapter) recyclerView.getAdapter()).checkAndPlayVoicemail(); in onLoadFinished()
215 recyclerView.setVisibility(view == recyclerView ? View.VISIBLE : View.GONE); in showView()
[all …]
/packages/apps/Dialer/java/com/android/dialer/contactsfragment/
DContactsFragment.java91 private RecyclerView recyclerView; field in ContactsFragment
183 recyclerView = view.findViewById(R.id.recycler_view); in onCreateView()
187 recyclerView.setAdapter(adapter); in onCreateView()
196 recyclerView.setOnScrollChangeListener(ContactsFragment.this); in onCreateView()
202 recyclerView.setLayoutManager(manager); in onCreateView()
214 recyclerView.setVisibility(View.GONE); in onCreateView()
250 recyclerView.setVisibility(View.GONE); in onLoadFinished()
253 recyclerView.setVisibility(View.VISIBLE); in onLoadFinished()
256 PerformanceReport.logOnScrollStateChange(recyclerView); in onLoadFinished()
263 recyclerView.setAdapter(null); in onLoaderReset()
[all …]
/packages/apps/Dialer/java/com/android/dialer/app/calllog/
DCallLogFragment.java115 private RecyclerView recyclerView; field in CallLogFragment
242 recyclerView.setPaddingRelative( in onCallsFetched()
243 recyclerView.getPaddingStart(), in onCallsFetched()
245 recyclerView.getPaddingEnd(), in onCallsFetched()
249 recyclerView.setPaddingRelative( in onCallsFetched()
250 recyclerView.getPaddingStart(), 0, recyclerView.getPaddingEnd(), 0); in onCallsFetched()
262 recyclerView.smoothScrollToPosition(0); in onCallsFetched()
273 recyclerView.smoothScrollToPosition(0); in onCallsFetched()
299 recyclerView = (RecyclerView) view.findViewById(R.id.recycler_view); in setupView()
303 recyclerView.setItemAnimator(null); in setupView()
[all …]
/packages/apps/Settings/src/com/android/settings/wifi/calling/
DWifiCallingDisclaimerFragment.java90 final RecyclerView recyclerView = (RecyclerView) view.findViewById( in onCreateView() local
92 recyclerView.setLayoutManager(new LinearLayoutManager(getActivity())); in onCreateView()
93 recyclerView.setAdapter(new DisclaimerItemListAdapter(mDisclaimerItemList)); in onCreateView()
97 recyclerView.addItemDecoration(itemDecoration); in onCreateView()
99 recyclerView.addOnScrollListener(new RecyclerView.OnScrollListener() { in onCreateView()
101 public void onScrolled(RecyclerView recyclerView, int dx, int dy) { in onCreateView()
102 super.onScrolled(recyclerView, dx, dy); in onCreateView()
103 if (!recyclerView.canScrollVertically(1 /* scrolling down */)) { in onCreateView()
106 recyclerView.removeOnScrollListener(this); in onCreateView()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/widget/
DGridMarginDecoration.java44 public static void applyTo(RecyclerView recyclerView) { in applyTo() argument
45 int horizontal = recyclerView.getPaddingLeft(); in applyTo()
46 int vertical = recyclerView.getPaddingTop(); in applyTo()
47 if (recyclerView.getPaddingRight() != 0 || recyclerView.getPaddingBottom() != 0) { in applyTo()
52 recyclerView.addItemDecoration(new GridMarginDecoration(horizontal, vertical)); in applyTo()
/packages/apps/Car/Notification/src/com/android/car/notification/
DCarNotificationItemTouchListener.java162 public boolean onInterceptTouchEvent(RecyclerView recyclerView, MotionEvent event) { in onInterceptTouchEvent() argument
178 View viewAtPoint = recyclerView.findChildViewUnder(mInitialX, mInitialY); in onInterceptTouchEvent()
186 recyclerView.findContainingViewHolder(viewAtPoint); in onInterceptTouchEvent()
259 onSwipeGestureStart(recyclerView); in onInterceptTouchEvent()
280 public void onTouchEvent(RecyclerView recyclerView, MotionEvent event) { in onTouchEvent() argument
341 onSwipeGestureEnd(recyclerView); in onTouchEvent()
346 onSwipeGestureEnd(recyclerView); in onTouchEvent()
374 private void onSwipeGestureStart(RecyclerView recyclerView) { in onSwipeGestureStart() argument
375 recyclerView.getParent().requestDisallowInterceptTouchEvent(true); in onSwipeGestureStart()
379 private void onSwipeGestureEnd(RecyclerView recyclerView) { in onSwipeGestureEnd() argument
[all …]
/packages/apps/Dialer/java/com/android/dialer/speeddial/draghelper/
DSpeedDialItemTouchHelperCallback.java60 @NonNull RecyclerView recyclerView, @NonNull ViewHolder current, @NonNull ViewHolder target) { in canDropOver()
65 public int getMovementFlags(@NonNull RecyclerView recyclerView, @NonNull ViewHolder viewHolder) { in getMovementFlags() argument
77 @NonNull RecyclerView recyclerView, in onMove()
100 @NonNull RecyclerView recyclerView, in onMoved()
109 super.onMoved(recyclerView, viewHolder, fromPos, viewHolder1, toPos, x, y); in onMoved()
115 @NonNull RecyclerView recyclerView, in onChildDraw() argument
135 super.onChildDraw(canvas, recyclerView, viewHolder, dx, dy, i, isCurrentlyActive); in onChildDraw()
/packages/apps/Settings/src/com/android/settings/core/
DInstrumentedPreferenceFragment.java72 final RecyclerView recyclerView = getListView(); in onResume() local
73 if (recyclerView != null) { in onResume()
75 recyclerView.addOnScrollListener(mOnScrollListener); in onResume()
82 final RecyclerView recyclerView = getListView(); in onPause() local
84 recyclerView.removeOnScrollListener(mOnScrollListener); in onPause()
157 public void onScrollStateChanged(RecyclerView recyclerView, int newState) { in onScrollStateChanged() argument
162 .setView(recyclerView) in onScrollStateChanged()
/packages/apps/Car/Settings/src/com/android/car/settings/system/
DFactoryResetFragment.java82 RecyclerView recyclerView = getListView(); in onActivityCreated() local
83 recyclerView.getViewTreeObserver().addOnGlobalLayoutListener( in onActivityCreated()
88 recyclerView.getViewTreeObserver().removeOnGlobalLayoutListener(this); in onActivityCreated()
91 recyclerView.setOnScrollChangeListener((v, scrollX, scrollY, oldScrollX, oldScrollY) -> { in onActivityCreated()
107 RecyclerView recyclerView = getListView(); in isAtEnd() local
108 RecyclerView.LayoutManager layoutManager = recyclerView.getLayoutManager(); in isAtEnd()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/conditional/
DConditionFooterContextualCardRendererTest.java62 final RecyclerView recyclerView = new RecyclerView(mContext); in bindView_shouldSetClickListener() local
63 recyclerView.setLayoutManager(new LinearLayoutManager(mContext)); in bindView_shouldSetClickListener()
65 final View view = LayoutInflater.from(mContext).inflate(card.getViewType(), recyclerView, in bindView_shouldSetClickListener()
80 final RecyclerView recyclerView = new RecyclerView(mContext); in bindView_clickView_shouldSetTrueToIsConditionExpanded() local
81 recyclerView.setLayoutManager(new LinearLayoutManager(mContext)); in bindView_clickView_shouldSetTrueToIsConditionExpanded()
83 final View view = LayoutInflater.from(mContext).inflate(card.getViewType(), recyclerView, in bindView_clickView_shouldSetTrueToIsConditionExpanded()
DConditionContextualCardRendererTest.java68 final RecyclerView recyclerView = new RecyclerView(mActivity); in bindView_shouldSetListener() local
69 recyclerView.setLayoutManager(new LinearLayoutManager(mActivity)); in bindView_shouldSetListener()
71 final View view = LayoutInflater.from(mActivity).inflate(card.getViewType(), recyclerView, in bindView_shouldSetListener()
87 final RecyclerView recyclerView = new RecyclerView(mActivity); in viewClick_shouldInvokeControllerPrimaryClick() local
88 recyclerView.setLayoutManager(new LinearLayoutManager(mActivity)); in viewClick_shouldInvokeControllerPrimaryClick()
90 final View view = LayoutInflater.from(mActivity).inflate(card.getViewType(), recyclerView, in viewClick_shouldInvokeControllerPrimaryClick()
DConditionHeaderContextualCardRendererTest.java70 final RecyclerView recyclerView = new RecyclerView(mActivity); in bindView_shouldSetClickListener() local
71 recyclerView.setLayoutManager(new LinearLayoutManager(mActivity)); in bindView_shouldSetClickListener()
73 final View view = LayoutInflater.from(mActivity).inflate(card.getViewType(), recyclerView, in bindView_shouldSetClickListener()
88 final RecyclerView recyclerView = new RecyclerView(mActivity); in bindView_clickView_shouldSetTrueToIsConditionExpanded() local
89 recyclerView.setLayoutManager(new LinearLayoutManager(mActivity)); in bindView_clickView_shouldSetTrueToIsConditionExpanded()
91 final View view = LayoutInflater.from(mActivity).inflate(card.getViewType(), recyclerView, in bindView_clickView_shouldSetTrueToIsConditionExpanded()
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/recyclerview/
DDelegatingContentLimitingAdapter.java211 public void onAttachedToRecyclerView(@NonNull RecyclerView recyclerView) { in onAttachedToRecyclerView() argument
212 super.onAttachedToRecyclerView(recyclerView); in onAttachedToRecyclerView()
213 mDelegate.onAttachedToRecyclerView(recyclerView); in onAttachedToRecyclerView()
217 public void onDetachedFromRecyclerView(@NonNull RecyclerView recyclerView) { in onDetachedFromRecyclerView() argument
218 super.onDetachedFromRecyclerView(recyclerView); in onDetachedFromRecyclerView()
219 mDelegate.onDetachedFromRecyclerView(recyclerView); in onDetachedFromRecyclerView()
/packages/apps/Dialer/java/com/android/incallui/rtt/impl/
DRttChatFragment.java90 private RecyclerView recyclerView; field in RttChatFragment
197 recyclerView = view.findViewById(R.id.rtt_recycler_view); in onCreateView()
200 recyclerView.setLayoutManager(layoutManager); in onCreateView()
201 recyclerView.setHasFixedSize(false); in onCreateView()
203 recyclerView.setAdapter(adapter); in onCreateView()
204 recyclerView.addOnScrollListener( in onCreateView()
207 public void onScrollStateChanged(RecyclerView recyclerView, int i) { in onCreateView()
213 shouldAutoScrolling = !recyclerView.canScrollVertically(1); in onCreateView()
218 public void onScrolled(RecyclerView recyclerView, int dx, int dy) { in onCreateView()
315 recyclerView.smoothScrollToPosition(position); in onUpdateLocalMessage()
[all …]
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/search/
DContactResultsAdapter.java129 public void onAttachedToRecyclerView(@NonNull RecyclerView recyclerView) { in onAttachedToRecyclerView() argument
130 super.onAttachedToRecyclerView(recyclerView); in onAttachedToRecyclerView()
131 mLayoutManager = (LinearLayoutManager) recyclerView.getLayoutManager(); in onAttachedToRecyclerView()
135 public void onDetachedFromRecyclerView(@NonNull RecyclerView recyclerView) { in onDetachedFromRecyclerView() argument
137 super.onDetachedFromRecyclerView(recyclerView); in onDetachedFromRecyclerView()
/packages/apps/WallpaperPicker2/tests/src/com/android/wallpaper/picker/individual/
DIndividualPickerActivityTest.java172 RecyclerView recyclerView = activity.findViewById(R.id.wallpaper_grid); in testDrawsTilesForProvidedWallpapers() local
176 assertNotNull(recyclerView.findViewHolderForAdapterPosition(0)); in testDrawsTilesForProvidedWallpapers()
177 assertNotNull(recyclerView.findViewHolderForAdapterPosition(1)); in testDrawsTilesForProvidedWallpapers()
178 assertNotNull(recyclerView.findViewHolderForAdapterPosition(2)); in testDrawsTilesForProvidedWallpapers()
179 assertNull(recyclerView.findViewHolderForAdapterPosition(3)); in testDrawsTilesForProvidedWallpapers()
391 RecyclerView recyclerView = activity.findViewById(R.id.wallpaper_grid); in testWallpaperHasContentDescriptionFromAttribution() local
393 RecyclerView.ViewHolder holder = recyclerView.findViewHolderForAdapterPosition(0); in testWallpaperHasContentDescriptionFromAttribution()
430 RecyclerView recyclerView = activity.findViewById(R.id.wallpaper_grid); in runSelectWallpaperTest() local
433 assertNotNull(recyclerView.findViewHolderForAdapterPosition(index)); in runSelectWallpaperTest()
436 recyclerView.findViewHolderForAdapterPosition(index) in runSelectWallpaperTest()
/packages/apps/Car/RotaryController/tests/unit/src/com/android/car/rotary/
DNavigatorTest.java257 RecyclerView recyclerView = activity.findViewById(R.id.scrollable); in testFindRotateTargetDoesNotSkipOffscreenNode() local
258 recyclerView.post(() -> { in testFindRotateTargetDoesNotSkipOffscreenNode()
261 recyclerView.setAdapter(adapter); in testFindRotateTargetDoesNotSkipOffscreenNode()
339 RecyclerView recyclerView = activity.findViewById(R.id.scrollable); in testFindRotateTargetReturnScrollableContainer() local
340 recyclerView.post(() -> { in testFindRotateTargetReturnScrollableContainer()
342 recyclerView.setAdapter(adapter); in testFindRotateTargetReturnScrollableContainer()
406 RecyclerView recyclerView = activity.findViewById(R.id.scrollable); in testFindRotateTargetSkipScrollableContainer2() local
407 recyclerView.post(() -> { in testFindRotateTargetSkipScrollableContainer2()
410 recyclerView.setAdapter(adapter); in testFindRotateTargetSkipScrollableContainer2()
477 RecyclerView recyclerView = activity.findViewById(R.id.scrollable); in testFindRotateTargetInScrollableContainer1() local
[all …]
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/
DSwipeDismissalDelegate.java53 public int getMovementFlags(@NonNull RecyclerView recyclerView, in getMovementFlags() argument
72 public boolean onMove(@NonNull RecyclerView recyclerView, in onMove() argument
84 public void clearView(@NonNull RecyclerView recyclerView, in clearView() argument
91 public void onChildDraw(@NonNull Canvas c, @NonNull RecyclerView recyclerView, in onChildDraw() argument
105 getDefaultUIUtil().onDraw(c, recyclerView, view, dX, dY, actionState, isCurrentlyActive); in onChildDraw()
/packages/apps/Dialer/java/com/android/dialer/performancereport/
DPerformanceReport.java41 public void onScrollStateChanged(RecyclerView recyclerView, int newState) {
45 super.onScrollStateChanged(recyclerView, newState);
113 public static void logOnScrollStateChange(RecyclerView recyclerView) { in logOnScrollStateChange() argument
115 recyclerView.removeOnScrollListener(recordOnScrollListener); in logOnScrollStateChange()
116 recyclerView.addOnScrollListener(recordOnScrollListener); in logOnScrollStateChange()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/
DContextualCardsAdapterTest.java91 final RecyclerView recyclerView = new RecyclerView(mActivity); in onCreateViewHolder_conditionalCard_shouldReturnConditionalCardHolder() local
92 recyclerView.setLayoutManager(new LinearLayoutManager(mActivity)); in onCreateViewHolder_conditionalCard_shouldReturnConditionalCardHolder()
94 final RecyclerView.ViewHolder holder = mAdapter.onCreateViewHolder(recyclerView, in onCreateViewHolder_conditionalCard_shouldReturnConditionalCardHolder()
103 final RecyclerView recyclerView = new RecyclerView(mActivity); in onBindViewHolder_conditionalCard_shouldSetTestTitle() local
104 recyclerView.setLayoutManager(new LinearLayoutManager(mActivity)); in onBindViewHolder_conditionalCard_shouldSetTestTitle()
106 .inflate(ConditionContextualCardRenderer.VIEW_TYPE_FULL_WIDTH, recyclerView, false); in onBindViewHolder_conditionalCard_shouldSetTestTitle()
/packages/apps/Settings/tests/componenttests/src/com/android/settings/notification/
DAppNotificationComponentTest.java77 View recyclerView = activity.findViewById( in test_special_app_could_not_disable_notification()
80 if (recyclerView == null) { in test_special_app_could_not_disable_notification()
89 () -> recyclerView.findViewById(CommonUtils.getResId("recycler_view")) in test_special_app_could_not_disable_notification()
92 View mainSwitchBar = recyclerView.findViewById( in test_special_app_could_not_disable_notification()
104 ViewGroup viewGroup = (ViewGroup) recyclerView; in test_special_app_could_not_disable_notification()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/contact/
DContactListAdapter.java131 public void onAttachedToRecyclerView(@NonNull RecyclerView recyclerView) { in onAttachedToRecyclerView() argument
132 super.onAttachedToRecyclerView(recyclerView); in onAttachedToRecyclerView()
133 mLinearLayoutManager = (LinearLayoutManager) recyclerView.getLayoutManager(); in onAttachedToRecyclerView()
137 public void onDetachedFromRecyclerView(@NonNull RecyclerView recyclerView) { in onDetachedFromRecyclerView() argument
139 super.onDetachedFromRecyclerView(recyclerView); in onDetachedFromRecyclerView()

123456