/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/ |
D | AutoFitRecyclerViewTest.java | 40 AutoFitRecyclerView recyclerView = new AutoFitRecyclerView(context); in testMeasure_spanCountIsRounded() local 46 recyclerView.setLayoutManager(gridLayoutManager); in testMeasure_spanCountIsRounded() 47 recyclerView.setColumnWidth(columnWidth); in testMeasure_spanCountIsRounded() 49 recyclerView.onMeasure(measureSpec, measureSpec); in testMeasure_spanCountIsRounded() 63 AutoFitRecyclerView recyclerView = new AutoFitRecyclerView(context); in testSetMinimumSpanCount_resultSmallerThanMinSpanCount() local 69 recyclerView.setLayoutManager(gridLayoutManager); in testSetMinimumSpanCount_resultSmallerThanMinSpanCount() 70 recyclerView.setMinimumSpanCount(minSpanCount); in testSetMinimumSpanCount_resultSmallerThanMinSpanCount() 71 recyclerView.setColumnWidth(columnWidth); in testSetMinimumSpanCount_resultSmallerThanMinSpanCount() 73 recyclerView.onMeasure(measureSpec, measureSpec); in testSetMinimumSpanCount_resultSmallerThanMinSpanCount() 89 AutoFitRecyclerView recyclerView = new AutoFitRecyclerView(context); in testSetMinimumSpanCount_resultLargerThanMinSpanCount() local [all …]
|
/packages/modules/IntentResolver/java/src/com/android/intentresolver/ |
D | ChooserRecyclerViewAccessibilityDelegate.java | 32 public ChooserRecyclerViewAccessibilityDelegate(RecyclerView recyclerView) { in ChooserRecyclerViewAccessibilityDelegate() argument 33 super(recyclerView); in ChooserRecyclerViewAccessibilityDelegate() 58 private void ensureViewOnScreenVisibility(RecyclerView recyclerView, View view) { in ensureViewOnScreenVisibility() argument 59 View child = recyclerView.findContainingItemView(view); in ensureViewOnScreenVisibility() 63 recyclerView.getBoundsOnScreen(mTempRect, true); in ensureViewOnScreenVisibility() 78 nestedVerticalScrollBy(recyclerView, dy); in ensureViewOnScreenVisibility() 81 private void nestedVerticalScrollBy(RecyclerView recyclerView, int dy) { in nestedVerticalScrollBy() argument 85 recyclerView.startNestedScroll(View.SCROLL_AXIS_VERTICAL); in nestedVerticalScrollBy() 86 if (recyclerView.dispatchNestedPreScroll(0, dy, mConsumed, null)) { in nestedVerticalScrollBy() 89 recyclerView.scrollBy(0, dy); in nestedVerticalScrollBy() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/system/ |
D | FactoryResetFragment.java | 85 CarUiRecyclerView recyclerView = view.findViewById(R.id.settings_recycler_view); in onViewCreated() local 86 if (recyclerView != null) { in onViewCreated() 87 recyclerView.getViewTreeObserver().addOnGlobalLayoutListener( in onViewCreated() 91 mFactoryResetButton.setEnabled(isAtEnd(recyclerView)); in onViewCreated() 92 recyclerView.getViewTreeObserver().removeOnGlobalLayoutListener(this); in onViewCreated() 95 recyclerView.addOnScrollListener( in onViewCreated() 98 public void onScrolled(CarUiRecyclerView recyclerView, int dx, int dy) { in onViewCreated() 99 if (isAtEnd(recyclerView)) { in onViewCreated() 105 public void onScrollStateChanged(CarUiRecyclerView recyclerView, in onViewCreated() 124 private boolean isAtEnd(CarUiRecyclerView recyclerView) { in isAtEnd() argument [all …]
|
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/instrumentation/ |
D | InstrumentedPreferenceFragment.java | 37 final RecyclerView recyclerView = getListView(); in onResume() local 38 if (recyclerView != null) { in onResume() 40 recyclerView.addOnScrollListener(mOnScrollListener); in onResume() 47 final RecyclerView recyclerView = getListView(); in onPause() local 48 if (recyclerView != null && mOnScrollListener != null) { in onPause() 49 recyclerView.removeOnScrollListener(mOnScrollListener); in onPause() 64 public void onScrollStateChanged(RecyclerView recyclerView, int newState) { in onScrollStateChanged() argument 68 Configuration.Builder.withView(CUJ_SETTINGS_PAGE_SCROLL, recyclerView) 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/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 …]
|
/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/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/Launcher3/src/com/android/launcher3/util/ |
D | ScrollableLayoutManager.java | 171 public void onItemsAdded(RecyclerView recyclerView, int positionStart, int itemCount) { in onItemsAdded() argument 172 super.onItemsAdded(recyclerView, positionStart, itemCount); in onItemsAdded() 177 public void onItemsChanged(RecyclerView recyclerView) { in onItemsChanged() argument 178 super.onItemsChanged(recyclerView); in onItemsChanged() 183 public void onItemsRemoved(RecyclerView recyclerView, int positionStart, int itemCount) { in onItemsRemoved() argument 184 super.onItemsRemoved(recyclerView, positionStart, itemCount); in onItemsRemoved() 189 public void onItemsMoved(RecyclerView recyclerView, int from, int to, int itemCount) { in onItemsMoved() argument 190 super.onItemsMoved(recyclerView, from, to, itemCount); in onItemsMoved() 195 public void onItemsUpdated(RecyclerView recyclerView, int positionStart, int itemCount, in onItemsUpdated() argument 197 super.onItemsUpdated(recyclerView, positionStart, itemCount, payload); in onItemsUpdated()
|
/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/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/Settings/src/com/android/settings/widget/ |
D | HighlightablePreferenceGroupAdapter.java | 143 public void requestHighlight(View root, RecyclerView recyclerView, AppBarLayout appBarLayout) { in requestHighlight() argument 144 if (mHighlightRequested || recyclerView == null || TextUtils.isEmpty(mHighlightKey)) { in requestHighlight() 162 recyclerView.setItemAnimator(null); in requestHighlight() 166 recyclerView.smoothScrollToPosition(mHighlightPosition); in requestHighlight() 167 highlightAndFocusTargetItem(recyclerView, mHighlightPosition); in requestHighlight() 173 private void highlightAndFocusTargetItem(RecyclerView recyclerView, int highlightPosition) { in highlightAndFocusTargetItem() argument 174 ViewHolder target = recyclerView.findViewHolderForAdapterPosition(highlightPosition); in highlightAndFocusTargetItem() 179 recyclerView.addOnScrollListener(new RecyclerView.OnScrollListener() { in highlightAndFocusTargetItem() 181 public void onScrollStateChanged(@NonNull RecyclerView recyclerView, int newState) { in highlightAndFocusTargetItem() 184 ViewHolder target = recyclerView in highlightAndFocusTargetItem() [all …]
|
/packages/apps/Car/Launcher/app/src/com/android/car/carlauncher/recents/view/ |
D | TaskTouchHelperCallback.java | 44 public boolean onMove(@NonNull RecyclerView recyclerView, in onMove() argument 64 public void onChildDraw(@NonNull Canvas c, @NonNull RecyclerView recyclerView, in onChildDraw() argument 67 super.onChildDraw(c, recyclerView, viewHolder, dX, dY, actionState, in onChildDraw() 71 float threshold = recyclerView.getHeight() * getSwipeThreshold(viewHolder); in onChildDraw() 78 public void clearView(@NonNull RecyclerView recyclerView, in clearView() argument 80 super.clearView(recyclerView, viewHolder); in clearView()
|
/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/modules/Bluetooth/android/leaudio/app/src/main/java/com/android/bluetooth/leaudio/ |
D | BroadcastScanActivity.java | 52 RecyclerView recyclerView = findViewById(R.id.broadcast_recycler_view); in onCreate() local 53 recyclerView.setLayoutManager(new LinearLayoutManager(this)); in onCreate() 54 recyclerView.setHasFixedSize(true); in onCreate() 72 recyclerView.getContext(), in onCreate() 134 recyclerView.getContext(), in onCreate() 142 recyclerView.getContext(), in onCreate() 154 recyclerView.getContext(), in onCreate() 212 recyclerView.getContext(), in onCreate() 224 recyclerView.setAdapter(adapter); in onCreate()
|
/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/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissiontypes/prioritylist/ |
D | PriorityListItemMoveCallback.kt | 30 recyclerView: RecyclerView, in isLongPressDragEnabled() 38 recyclerView: RecyclerView, in onMove() 49 recyclerView: RecyclerView, in onChildDraw() 60 if (topY > 0 && bottomY < recyclerView.height) { in onChildDraw() 61 super.onChildDraw(c, recyclerView, viewHolder, dX, dY, actionState, isCurrentlyActive) in onChildDraw()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/datasources/appsources/ |
D | AppSourcesItemMoveCallback.kt | 28 recyclerView: RecyclerView, in isLongPressDragEnabled() 36 recyclerView: RecyclerView, in onMove() 47 recyclerView: RecyclerView, in onChildDraw() 58 if (topY > 0 && bottomY < recyclerView.height) { in onChildDraw() 59 super.onChildDraw(c, recyclerView, viewHolder, dX, dY, actionState, isCurrentlyActive) in onChildDraw()
|
/packages/apps/Settings/src/com/android/settings/core/ |
D | InstrumentedPreferenceFragment.java | 86 final RecyclerView recyclerView = getListView(); in onResume() local 87 if (recyclerView != null) { in onResume() 89 recyclerView.addOnScrollListener(mOnScrollListener); in onResume() 96 final RecyclerView recyclerView = getListView(); in onPause() local 98 recyclerView.removeOnScrollListener(mOnScrollListener); in onPause() 171 public void onScrollStateChanged(RecyclerView recyclerView, int newState) { in onScrollStateChanged() argument 175 Configuration.Builder.withView(CUJ_SETTINGS_PAGE_SCROLL, recyclerView) in onScrollStateChanged()
|
/packages/apps/Car/Launcher/app/src/com/android/car/carlauncher/recents/ |
D | RecentsUtils.java | 33 public static boolean areItemsRightToLeft(@NonNull RecyclerView recyclerView) { in areItemsRightToLeft() argument 35 if (recyclerView.getLayoutManager() instanceof LinearLayoutManager) { in areItemsRightToLeft() 36 isLayoutReversed = ((LinearLayoutManager) recyclerView.getLayoutManager()) in areItemsRightToLeft() 39 return recyclerView.isLayoutRtl() ^ isLayoutReversed; in areItemsRightToLeft()
|
/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()
|
/packages/apps/Car/Notification/src/com/android/car/notification/ |
D | CarNotificationItemTouchListener.java | 169 public boolean onInterceptTouchEvent(RecyclerView recyclerView, MotionEvent event) { in onInterceptTouchEvent() argument 185 View viewAtPoint = recyclerView.findChildViewUnder(mInitialX, mInitialY); in onInterceptTouchEvent() 193 recyclerView.findContainingViewHolder(viewAtPoint); in onInterceptTouchEvent() 263 onSwipeGestureStart(recyclerView); in onInterceptTouchEvent() 314 public void onTouchEvent(RecyclerView recyclerView, MotionEvent event) { in onTouchEvent() argument 373 onSwipeGestureEnd(recyclerView); in onTouchEvent() 378 onSwipeGestureEnd(recyclerView); in onTouchEvent() 406 private void onSwipeGestureStart(RecyclerView recyclerView) { in onSwipeGestureStart() argument 407 recyclerView.getParent().requestDisallowInterceptTouchEvent(true); in onSwipeGestureStart() 411 private void onSwipeGestureEnd(RecyclerView recyclerView) { in onSwipeGestureEnd() argument [all …]
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/terms/ |
D | TermsActivityBridgeImpl.java | 80 final RecyclerView recyclerView = activity.findViewById(R.id.terms_container); in setupRecyclerView() local 81 if (recyclerView.getItemDecorationCount() > 0) { in setupRecyclerView() 82 recyclerView.removeItemDecorationAt(/* index= */ 0); in setupRecyclerView() 99 RecyclerView recyclerView = activity.findViewById(R.id.terms_container); in setupTermsListForHandhelds() local 100 recyclerView.setLayoutManager(new LinearLayoutManager(/* context= */ activity)); in setupTermsListForHandhelds() 101 recyclerView.setAdapter(new TermsListAdapter( in setupTermsListForHandhelds()
|
/packages/apps/Car/Launcher/docklib/src/com/android/car/docklib/view/ |
D | DockView.kt | 34 private val recyclerView: RecyclerView constant 38 recyclerView = requireViewById(R.id.recycler_view) 41 fun getAdapter() = recyclerView.adapter as DockAdapter in getAdapter() 44 recyclerView.adapter = adapter in getAdapter()
|