/packages/apps/Launcher3/src/com/android/launcher3/allapps/ |
D | AllAppsContainerView.java | 155 if (holder.recyclerView != null) { in onDeviceProfileChanged() 158 holder.recyclerView.swapAdapter(holder.recyclerView.getAdapter(), true); in onDeviceProfileChanged() 159 holder.recyclerView.getRecycledViewPool().clear(); in onDeviceProfileChanged() 243 return mAH[AdapterHolder.MAIN].recyclerView; in getActiveRecyclerView() 245 return mAH[AdapterHolder.WORK].recyclerView; in getActiveRecyclerView() 254 if (mAH[i].recyclerView != null) { in reset() 255 mAH[i].recyclerView.scrollToTop(); in reset() 368 mAllAppsStore.unregisterIconContainer(mAH[AdapterHolder.MAIN].recyclerView); in rebindAdapters() 369 mAllAppsStore.unregisterIconContainer(mAH[AdapterHolder.WORK].recyclerView); in rebindAdapters() 377 mAH[AdapterHolder.WORK].recyclerView = null; in rebindAdapters() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/calllog/ui/ |
D | NewCallLogFragment.java | 68 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 …]
|
D | NewCallLogAdapter.java | 171 public void onAttachedToRecyclerView(RecyclerView recyclerView) { in onAttachedToRecyclerView() argument 172 super.onAttachedToRecyclerView(recyclerView); in onAttachedToRecyclerView() 176 recyclerView.addOnScrollListener( in onAttachedToRecyclerView() 308 public void onScrollStateChanged(RecyclerView recyclerView, int newState) { in onScrollStateChanged() argument 314 recyclerView.removeOnScrollListener(this); in onScrollStateChanged() 317 super.onScrollStateChanged(recyclerView, newState); in onScrollStateChanged()
|
/packages/apps/Car/Settings/src/com/android/car/settings/system/ |
D | MasterClearFragment.java | 73 RecyclerView recyclerView = getListView(); in onActivityCreated() local 74 recyclerView.getViewTreeObserver().addOnGlobalLayoutListener( in onActivityCreated() 78 if (recyclerView instanceof PagedRecyclerView) { in onActivityCreated() 79 PagedRecyclerView pagedRecyclerView = (PagedRecyclerView) recyclerView; in onActivityCreated() 85 recyclerView.getViewTreeObserver().removeOnGlobalLayoutListener(this); in onActivityCreated() 88 recyclerView.setOnScrollChangeListener((v, scrollX, scrollY, oldScrollX, oldScrollY) -> { in onActivityCreated() 104 RecyclerView recyclerView = getListView(); in isAtEnd() local 105 RecyclerView.LayoutManager layoutManager = (recyclerView instanceof PagedRecyclerView) in isAtEnd() 106 ? ((PagedRecyclerView) recyclerView).getEffectiveLayoutManager() in isAtEnd() 107 : recyclerView.getLayoutManager(); in isAtEnd()
|
/packages/apps/Dialer/java/com/android/dialer/voicemail/listui/ |
D | NewVoicemailFragment.java | 52 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/ |
D | ContactsFragment.java | 91 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/ |
D | CallLogFragment.java | 115 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/calling/ |
D | WifiCallingDisclaimerFragment.java | 90 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/Settings/src/com/android/settings/wifi/calling/ |
D | WifiCallingDisclaimerFragment.java | 90 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/Car/Notification/src/com/android/car/notification/ |
D | CarNotificationItemTouchListener.java | 180 public boolean onInterceptTouchEvent(RecyclerView recyclerView, MotionEvent event) { in onInterceptTouchEvent() argument 196 View viewAtPoint = recyclerView.findChildViewUnder(mInitialX, mInitialY); in onInterceptTouchEvent() 204 recyclerView.findContainingViewHolder(viewAtPoint); in onInterceptTouchEvent() 275 onSwipeGestureStart(recyclerView, mViewHolder); in onInterceptTouchEvent() 296 public void onTouchEvent(RecyclerView recyclerView, MotionEvent event) { in onTouchEvent() argument 361 onSwipeGestureEnd(recyclerView, mViewHolder); in onTouchEvent() 366 onSwipeGestureEnd(recyclerView, mViewHolder); in onTouchEvent() 395 RecyclerView recyclerView, CarNotificationBaseViewHolder viewHolder) { in onSwipeGestureStart() argument 396 recyclerView.getParent().requestDisallowInterceptTouchEvent(true); in onSwipeGestureStart() 401 private void onSwipeGestureEnd(RecyclerView recyclerView, in onSwipeGestureEnd() argument [all …]
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/widget/ |
D | GridMarginDecoration.java | 44 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/Dialer/java/com/android/dialer/speeddial/draghelper/ |
D | SpeedDialItemTouchHelperCallback.java | 60 @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/tests/robotests/src/com/android/settings/homepage/contextualcards/conditional/ |
D | ConditionFooterContextualCardRendererTest.java | 62 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()
|
D | ConditionContextualCardRendererTest.java | 68 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()
|
D | ConditionHeaderContextualCardRendererTest.java | 70 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/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/legacysuggestion/ |
D | LegacySuggestionContextualCardRendererTest.java | 69 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 viewClick_shouldInvokeControllerPrimaryClick() local 88 recyclerView.setLayoutManager(new LinearLayoutManager(mActivity)); in viewClick_shouldInvokeControllerPrimaryClick() 91 recyclerView, false); in viewClick_shouldInvokeControllerPrimaryClick()
|
/packages/apps/Launcher3/go/quickstep/src/com/android/quickstep/ |
D | TaskSwipeCallback.java | 44 public boolean onMove(RecyclerView recyclerView, ViewHolder viewHolder, in onMove() argument 57 public void onChildDraw(@NonNull Canvas c, @NonNull RecyclerView recyclerView, in onChildDraw() argument 64 super.onChildDraw(c, recyclerView, viewHolder, dX, dY, in onChildDraw() 69 public int getSwipeDirs(@NonNull RecyclerView recyclerView, in getSwipeDirs() argument 75 return super.getSwipeDirs(recyclerView, viewHolder); in getSwipeDirs()
|
/packages/apps/Dialer/java/com/android/incallui/rtt/impl/ |
D | RttChatFragment.java | 90 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/Settings/src/com/android/settings/homepage/contextualcards/slices/ |
D | SwipeDismissalDelegate.java | 53 public int getMovementFlags(@NonNull RecyclerView recyclerView, in getMovementFlags() argument 73 public boolean onMove(@NonNull RecyclerView recyclerView, in onMove() argument 85 public void clearView(@NonNull RecyclerView recyclerView, in clearView() argument 92 public void onChildDraw(@NonNull Canvas c, @NonNull RecyclerView recyclerView, in onChildDraw() argument 106 getDefaultUIUtil().onDraw(c, recyclerView, view, dX, dY, actionState, isCurrentlyActive); in onChildDraw()
|
/packages/apps/Dialer/java/com/android/dialer/performancereport/ |
D | PerformanceReport.java | 41 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/slices/ |
D | SwipeDismissalDelegate.java | 53 public int getMovementFlags(@NonNull RecyclerView recyclerView, in getMovementFlags() argument 73 public boolean onMove(@NonNull RecyclerView recyclerView, in onMove() argument 85 public void clearView(@NonNull RecyclerView recyclerView, in clearView() argument 92 public void onChildDraw(@NonNull Canvas c, @NonNull RecyclerView recyclerView, in onChildDraw() argument 106 getDefaultUIUtil().onDraw(c, recyclerView, view, dX, dY, actionState, isCurrentlyActive); in onChildDraw()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/ |
D | ContextualCardsAdapterTest.java | 95 final RecyclerView recyclerView = new RecyclerView(mActivity); in onCreateViewHolder_conditionalCard_shouldReturnConditionalCardHolder() local 96 recyclerView.setLayoutManager(new LinearLayoutManager(mActivity)); in onCreateViewHolder_conditionalCard_shouldReturnConditionalCardHolder() 98 final RecyclerView.ViewHolder holder = mAdapter.onCreateViewHolder(recyclerView, in onCreateViewHolder_conditionalCard_shouldReturnConditionalCardHolder() 107 final RecyclerView recyclerView = new RecyclerView(mActivity); in onBindViewHolder_conditionalCard_shouldSetTestTitle() local 108 recyclerView.setLayoutManager(new LinearLayoutManager(mActivity)); in onBindViewHolder_conditionalCard_shouldSetTestTitle() 110 .inflate(ConditionContextualCardRenderer.VIEW_TYPE_FULL_WIDTH, recyclerView, false); in onBindViewHolder_conditionalCard_shouldSetTestTitle()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/manageapplications/ |
D | ManageApplicationsTest.java | 255 final RecyclerView recyclerView = mock(RecyclerView.class); in onRebuildComplete_shouldHideLoadingView() local 257 ReflectionHelpers.setField(mFragment, "mRecyclerView", recyclerView); in onRebuildComplete_shouldHideLoadingView() 295 final RecyclerView recyclerView = mock(RecyclerView.class); in onRebuildComplete_hasSearchQuery_shouldFilterSearch() local 297 ReflectionHelpers.setField(mFragment, "mRecyclerView", recyclerView); in onRebuildComplete_hasSearchQuery_shouldFilterSearch() 322 final RecyclerView recyclerView = mock(RecyclerView.class); in notifyItemChange_recyclerViewIdle_shouldNotify() local 327 adapter.onAttachedToRecyclerView(recyclerView); in notifyItemChange_recyclerViewIdle_shouldNotify() 328 adapter.mOnScrollListener.onScrollStateChanged(recyclerView, SCROLL_STATE_IDLE); in notifyItemChange_recyclerViewIdle_shouldNotify() 336 final RecyclerView recyclerView = mock(RecyclerView.class); in notifyItemChange_recyclerViewScrolling_shouldNotifyWhenIdle() local 341 adapter.onAttachedToRecyclerView(recyclerView); in notifyItemChange_recyclerViewScrolling_shouldNotifyWhenIdle() 342 adapter.mOnScrollListener.onScrollStateChanged(recyclerView, SCROLL_STATE_DRAGGING); in notifyItemChange_recyclerViewScrolling_shouldNotifyWhenIdle() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/ |
D | SliceContextualCardRendererTest.java | 252 final RecyclerView recyclerView = new RecyclerView(mActivity); in getSliceViewHolder() local 253 recyclerView.setLayoutManager(new LinearLayoutManager(mActivity)); in getSliceViewHolder() 254 final View view = LayoutInflater.from(mActivity).inflate(VIEW_TYPE_FULL_WIDTH, recyclerView, in getSliceViewHolder() 261 final RecyclerView recyclerView = new RecyclerView(mActivity); in getDeferredSetupViewHolder() local 262 recyclerView.setLayoutManager(new LinearLayoutManager(mActivity)); in getDeferredSetupViewHolder() 264 .inflate(VIEW_TYPE_DEFERRED_SETUP, recyclerView, false); in getDeferredSetupViewHolder()
|
/packages/apps/Dialer/java/com/android/dialer/rtt/ |
D | RttTranscriptActivity.java | 62 RecyclerView recyclerView = findViewById(R.id.rtt_recycler_view); in onCreate() local 64 recyclerView.setLayoutManager(layoutManager); in onCreate() 65 recyclerView.setHasFixedSize(true); in onCreate() 67 recyclerView.setAdapter(adapter); in onCreate()
|