/packages/apps/Launcher3/src/com/android/launcher3/allapps/ |
D | AllAppsContainerView.java | 153 if (holder.recyclerView != null) { in onDeviceProfileChanged() 156 holder.recyclerView.swapAdapter(holder.recyclerView.getAdapter(), true); in onDeviceProfileChanged() 157 holder.recyclerView.getRecycledViewPool().clear(); in onDeviceProfileChanged() 254 return mAH[AdapterHolder.MAIN].recyclerView; in getActiveRecyclerView() 256 return mAH[AdapterHolder.WORK].recyclerView; in getActiveRecyclerView() 265 if (mAH[i].recyclerView != null) { in reset() 266 mAH[i].recyclerView.scrollToTop(); in reset() 384 mAllAppsStore.unregisterIconContainer(mAH[AdapterHolder.MAIN].recyclerView); in rebindAdapters() 385 mAllAppsStore.unregisterIconContainer(mAH[AdapterHolder.WORK].recyclerView); in rebindAdapters() 393 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/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 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/Car/Settings/src/com/android/car/settings/system/ |
D | MasterClearFragment.java | 83 RecyclerView recyclerView = getListView(); in onActivityCreated() local 84 recyclerView.getViewTreeObserver().addOnGlobalLayoutListener( in onActivityCreated() 88 if (recyclerView instanceof CarUiRecyclerView) { in onActivityCreated() 89 CarUiRecyclerView pagedRecyclerView = (CarUiRecyclerView) recyclerView; in onActivityCreated() 95 recyclerView.getViewTreeObserver().removeOnGlobalLayoutListener(this); in onActivityCreated() 98 recyclerView.setOnScrollChangeListener((v, scrollX, scrollY, oldScrollX, oldScrollY) -> { in onActivityCreated() 114 RecyclerView recyclerView = getListView(); in isAtEnd() local 115 RecyclerView.LayoutManager layoutManager = (recyclerView instanceof CarUiRecyclerView) in isAtEnd() 116 ? ((CarUiRecyclerView) recyclerView).getEffectiveLayoutManager() in isAtEnd() 117 : 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); in onInterceptTouchEvent() 296 public void onTouchEvent(RecyclerView recyclerView, MotionEvent event) { in onTouchEvent() argument 357 onSwipeGestureEnd(recyclerView); in onTouchEvent() 362 onSwipeGestureEnd(recyclerView); in onTouchEvent() 390 private void onSwipeGestureStart(RecyclerView recyclerView) { in onSwipeGestureStart() argument 391 recyclerView.getParent().requestDisallowInterceptTouchEvent(true); in onSwipeGestureStart() 395 private void onSwipeGestureEnd(RecyclerView recyclerView) { in onSwipeGestureEnd() argument [all …]
|
/packages/apps/Car/libs/car-ui-lib/src/com/android/car/ui/preference/ |
D | MultiSelectListPreferenceFragment.java | 76 final CarUiRecyclerView recyclerView = view.requireViewById(R.id.list); in onViewCreated() local 79 recyclerView.setPadding(0, toolbar.getHeight(), 0, 0); in onViewCreated() 81 if (recyclerView.getPaddingTop() == newHeight) { in onViewCreated() 85 int oldHeight = recyclerView.getPaddingTop(); in onViewCreated() 86 recyclerView.setPadding(0, newHeight, 0, 0); in onViewCreated() 87 recyclerView.scrollBy(0, oldHeight - newHeight); in onViewCreated() 92 recyclerView.setClipToPadding(false); in onViewCreated() 133 recyclerView.setAdapter(adapter); in onViewCreated()
|
D | PreferenceFragment.java | 85 final RecyclerView recyclerView = view.findViewById(R.id.recycler_view); in onViewCreated() local 87 if (recyclerView == null || toolbar == null) { in onViewCreated() 91 recyclerView.setPadding(0, toolbar.getHeight(), 0, 0); in onViewCreated() 93 if (recyclerView.getPaddingTop() == newHeight) { in onViewCreated() 97 int oldHeight = recyclerView.getPaddingTop(); in onViewCreated() 98 recyclerView.setPadding(0, newHeight, 0, 0); in onViewCreated() 99 recyclerView.scrollBy(0, oldHeight - newHeight); in onViewCreated() 102 recyclerView.setClipToPadding(false); in onViewCreated()
|
/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/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/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/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/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/ |
D | SwipeDismissalDelegate.java | 53 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/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 …]
|