Home
last modified time | relevance | path

Searched refs:ViewHolder (Results 1 – 25 of 241) sorted by relevance

12345678910

/packages/apps/Car/Notification/tests/robotests/src/com/android/car/notification/
DCarNotificationViewAdapterTest.java133 RecyclerView.ViewHolder vh = mCarNotificationViewAdapter.onCreateViewHolder(null, in onCreateViewHolder_carWarningType_shouldReturnObjectOfBasicNotificationViewHolder()
142 RecyclerView.ViewHolder vh = mCarNotificationViewAdapter.onCreateViewHolder(null, in onCreateViewHolder_groupExpandedType_shouldReturnObjectOfGroupNotificationViewHolder()
151 RecyclerView.ViewHolder vh = mCarNotificationViewAdapter.onCreateViewHolder(null, in onCreateViewHolder_groupCollapsed_shouldReturnObjectOfGroupNotificationViewHolder()
160 RecyclerView.ViewHolder vh = mCarNotificationViewAdapter.onCreateViewHolder(null, in onCreateViewHolder_groupSummaryType_shouldReturnObjectOfGroupSummaryNotificationViewHolder()
169 RecyclerView.ViewHolder vh = mCarNotificationViewAdapter.onCreateViewHolder(null, in onCreateViewHolder_carInformation_shouldReturnObjectOfBasicNotificationViewHolder()
178 RecyclerView.ViewHolder vh = mCarNotificationViewAdapter.onCreateViewHolder(null, in onCreateViewHolder_carInfoInGroup_shouldReturnObjectOfBasicNotificationViewHolder()
187 RecyclerView.ViewHolder vh = mCarNotificationViewAdapter.onCreateViewHolder(null, in onCreateViewHolder_shouldReturnObjectOfMessageNotificationViewHolder()
196 RecyclerView.ViewHolder vh = mCarNotificationViewAdapter.onCreateViewHolder(null, in onCreateViewHolder_message_shouldReturnObjectOfMessageNotificationViewHolder()
205 RecyclerView.ViewHolder vh = mCarNotificationViewAdapter.onCreateViewHolder(null, in onCreateViewHolder_progressInGroupType_shouldReturnObjectOfProgressNotificationViewHolder()
214 RecyclerView.ViewHolder vh = mCarNotificationViewAdapter.onCreateViewHolder(null, in onCreateViewHolder_progressInGroup_shouldReturnObjectOfProgressNotificationViewHolder()
[all …]
/packages/apps/Dialer/java/com/android/dialer/speeddial/draghelper/
DSpeedDialItemTouchHelperCallback.java24 import android.support.v7.widget.RecyclerView.ViewHolder;
60 @NonNull RecyclerView recyclerView, @NonNull ViewHolder current, @NonNull ViewHolder target) { in canDropOver()
65 public int getMovementFlags(@NonNull RecyclerView recyclerView, @NonNull ViewHolder viewHolder) { in getMovementFlags()
78 @NonNull ViewHolder viewHolder, in onMove()
79 @NonNull ViewHolder target) { in onMove()
101 @NonNull ViewHolder viewHolder, in onMoved()
103 @NonNull ViewHolder viewHolder1, in onMoved()
116 @NonNull ViewHolder viewHolder, in onChildDraw()
139 public void onSelectedChanged(@Nullable ViewHolder viewHolder, int actionState) { in onSelectedChanged()
145 public void onSwiped(@NonNull ViewHolder viewHolder, int direction) { in onSwiped()
[all …]
/packages/apps/Launcher3/go/quickstep/src/com/android/quickstep/
DContentFillItemAnimator.java29 import androidx.recyclerview.widget.RecyclerView.ViewHolder;
46 ViewHolder viewHolder;
49 PendingAnimation(ViewHolder vh, int type) { in PendingAnimation()
97 public boolean animateRemove(ViewHolder holder) { in animateRemove()
103 private void animateRemoveImpl(ViewHolder holder, long startDelay) { in animateRemoveImpl()
136 public boolean animateAdd(ViewHolder holder) { in animateAdd()
142 public boolean animateMove(ViewHolder holder, int fromX, int fromY, int toX, in animateMove()
149 public boolean animateChange(ViewHolder oldHolder, in animateChange()
150 ViewHolder newHolder, int fromLeft, int fromTop, int toLeft, int toTop) { in animateChange()
162 private void animateChangeImpl(ViewHolder viewHolder, long startDelay) { in animateChangeImpl()
[all …]
DTaskSwipeCallback.java27 import androidx.recyclerview.widget.RecyclerView.ViewHolder;
44 public boolean onMove(RecyclerView recyclerView, ViewHolder viewHolder, in onMove()
45 ViewHolder target) { in onMove()
50 public void onSwiped(ViewHolder viewHolder, int direction) { in onSwiped()
58 @NonNull ViewHolder viewHolder, float dX, float dY, int actionState, in onChildDraw()
70 @NonNull ViewHolder viewHolder) { in getSwipeDirs()
DTaskAdapter.java26 import androidx.recyclerview.widget.RecyclerView.ViewHolder;
40 public final class TaskAdapter extends Adapter<ViewHolder> {
80 public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder()
102 public void onBindViewHolder(ViewHolder holder, int position) { in onBindViewHolder()
107 public void onBindViewHolder(@NonNull ViewHolder holder, int position, in onBindViewHolder()
123 private void onBindViewHolderInternal(@NonNull ViewHolder holder, int position, in onBindViewHolderInternal()
/packages/apps/TvSettings/QuickSettings/src/com/android/tv/quicksettings/
DDialogAdapter.java25 public class DialogAdapter extends RecyclerView.Adapter<DialogAdapter.ViewHolder> {
44 public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder()
47 final ViewHolder vh = new ViewHolder(v); in onCreateViewHolder()
76 public void onBindViewHolder(ViewHolder holder, int position) { in onBindViewHolder()
83 public void onViewRecycled(ViewHolder holder) { in onViewRecycled()
92 public static class ViewHolder extends RecyclerView.ViewHolder { class in DialogAdapter
96 public ViewHolder(View itemView) { in ViewHolder() method in DialogAdapter.ViewHolder
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/
DSliceContextualCardRendererTest.java86 RecyclerView.ViewHolder viewHolder = getSliceViewHolder(); in bindView_invalidScheme_sliceShouldBeNull()
120 final RecyclerView.ViewHolder viewHolder = getSliceViewHolder(); in bindView_isPendingDismiss_shouldShowDismissalView()
132 final RecyclerView.ViewHolder viewHolder = getSliceViewHolder(); in bindView_isPendingDismiss_shouldAddViewHolderToSet()
143 final RecyclerView.ViewHolder viewHolder = getSliceViewHolder(); in bindView_beforeSuccessfulSliceBinding_shouldHideSwipeBackground()
154 final RecyclerView.ViewHolder viewHolder = getSliceViewHolder(); in bindView_reuseViewHolder_shouldHideSwipeBackgroundBeforeSliceBinding()
167 final RecyclerView.ViewHolder viewHolder = getDeferredSetupViewHolder(); in bindView_deferredSetupCard_shouldNotCrash()
176 final RecyclerView.ViewHolder viewHolder = getSliceViewHolder(); in viewClick_keepCard_shouldShowSlice()
192 final RecyclerView.ViewHolder viewHolder = getSliceViewHolder(); in viewClick_keepCard_shouldRemoveViewHolderFromSet()
206 final RecyclerView.ViewHolder viewHolder = getSliceViewHolder(); in viewClick_removeCard_shouldRemoveViewHolderFromSet()
222 final RecyclerView.ViewHolder viewHolder = getSliceViewHolder(); in viewClick_removeCard_sliceLiveDataShouldRemoveObservers()
[all …]
DSwipeDismissalDelegateTest.java87 final RecyclerView.ViewHolder holder = getSliceViewHolder(); in getMovementFlags_dismissalView_shouldDisableSwipe()
95 final RecyclerView.ViewHolder holder = getSliceViewHolder(); in getMovementFlags_SliceViewHolder_shouldEnableSwipe()
109 private RecyclerView.ViewHolder getSliceViewHolder() { in getSliceViewHolder()
112 final RecyclerView.ViewHolder viewHolder = spy(new SliceViewHolder(view)); in getSliceViewHolder()
119 private RecyclerView.ViewHolder getConditionalViewHolder() { in getConditionalViewHolder()
123 final RecyclerView.ViewHolder viewHolder = spy(new ConditionalCardHolder(view)); in getConditionalViewHolder()
130 private RecyclerView.ViewHolder getDeferredSetupViewHolder() { in getDeferredSetupViewHolder()
133 final RecyclerView.ViewHolder viewHolder = spy(new DeferredSetupCardViewHolder(view)); in getDeferredSetupViewHolder()
/packages/apps/DeskClock/src/com/android/deskclock/
DItemAnimator.java27 import androidx.recyclerview.widget.RecyclerView.ViewHolder;
45 private final Map<ViewHolder, Animator> mAnimators = new ArrayMap<>();
48 public boolean animateRemove(final ViewHolder holder) { in animateRemove()
75 public boolean animateAdd(final ViewHolder holder) { in animateAdd()
103 public boolean animateMove(final ViewHolder holder, int fromX, int fromY, int toX, int toY) { in animateMove()
158 public boolean animateChange(@NonNull final ViewHolder oldHolder, in animateChange()
159 @NonNull final ViewHolder newHolder, @NonNull ItemHolderInfo preInfo, in animateChange()
248 public boolean animateChange(ViewHolder oldHolder, in animateChange()
249 ViewHolder newHolder, int fromLeft, int fromTop, int toLeft, int toTop) { in animateChange()
292 public void endAnimation(ViewHolder holder) { in endAnimation()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DAllAppsGridAdapter.java51 public class AllAppsGridAdapter extends RecyclerView.Adapter<AllAppsGridAdapter.ViewHolder> {
75 void onBindView(ViewHolder holder); in onBindView()
81 public static class ViewHolder extends RecyclerView.ViewHolder { class in AllAppsGridAdapter
83 public ViewHolder(View v) { in ViewHolder() method in AllAppsGridAdapter.ViewHolder
252 public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder()
264 return new ViewHolder(icon); in onCreateViewHolder()
266 return new ViewHolder(mLayoutInflater.inflate(R.layout.all_apps_empty_search, in onCreateViewHolder()
273 return new ViewHolder(searchMarketView); in onCreateViewHolder()
275 return new ViewHolder(mLayoutInflater.inflate( in onCreateViewHolder()
279 return new ViewHolder(footer); in onCreateViewHolder()
[all …]
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/terms/adapters/
DTermsListAdapterCar.java36 public class TermsListAdapterCar extends RecyclerView.Adapter<TermsListAdapterCar.ViewHolder> {
50 public TermsListAdapterCar.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder()
53 return new ViewHolder(view); in onCreateViewHolder()
57 public void onBindViewHolder(TermsListAdapterCar.ViewHolder holder, int position) { in onBindViewHolder()
77 public static class ViewHolder extends RecyclerView.ViewHolder { class in TermsListAdapterCar
81 public ViewHolder(View itemView) { in ViewHolder() method in TermsListAdapterCar.ViewHolder
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/
DHighUsageAdapter.java40 public class HighUsageAdapter extends RecyclerView.Adapter<HighUsageAdapter.ViewHolder> {
46 public static class ViewHolder extends RecyclerView.ViewHolder { class in HighUsageAdapter
52 public ViewHolder(View v) { in ViewHolder() method in HighUsageAdapter.ViewHolder
69 public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder()
72 return new ViewHolder(view); in onCreateViewHolder()
76 public void onBindViewHolder(ViewHolder holder, int position) { in onBindViewHolder()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/
DHighUsageAdapter.java40 public class HighUsageAdapter extends RecyclerView.Adapter<HighUsageAdapter.ViewHolder> {
46 public static class ViewHolder extends RecyclerView.ViewHolder { class in HighUsageAdapter
52 public ViewHolder(View v) { in ViewHolder() method in HighUsageAdapter.ViewHolder
69 public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder()
72 return new ViewHolder(view); in onCreateViewHolder()
76 public void onBindViewHolder(ViewHolder holder, int position) { in onBindViewHolder()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/slices/
DSwipeDismissalDelegate.java54 @NonNull RecyclerView.ViewHolder viewHolder) { in getMovementFlags()
74 @NonNull RecyclerView.ViewHolder viewHolder, in onMove()
75 @NonNull RecyclerView.ViewHolder target) { in onMove()
80 public void onSwiped(@NonNull RecyclerView.ViewHolder viewHolder, int direction) { in onSwiped()
86 @NonNull RecyclerView.ViewHolder viewHolder) { in clearView()
93 @NonNull RecyclerView.ViewHolder viewHolder, float dX, float dY, int actionState, in onChildDraw()
116 private View getSwipeableView(RecyclerView.ViewHolder viewHolder) { in getSwipeableView()
DSliceContextualCardRenderer.java61 final Set<RecyclerView.ViewHolder> mFlippedCardSet;
84 public RecyclerView.ViewHolder createViewHolder(View view, @LayoutRes int viewType) { in createViewHolder()
96 public void bindView(RecyclerView.ViewHolder holder, ContextualCard card) { in bindView()
149 private void initDismissalActions(RecyclerView.ViewHolder holder, ContextualCard card) { in initDismissalActions()
171 private void resetCardView(RecyclerView.ViewHolder holder) { in resetCardView()
176 private void showDismissalView(RecyclerView.ViewHolder holder) { in showDismissalView()
181 private View getInitialView(RecyclerView.ViewHolder viewHolder) { in getInitialView()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/
DSwipeDismissalDelegate.java54 @NonNull RecyclerView.ViewHolder viewHolder) { in getMovementFlags()
73 @NonNull RecyclerView.ViewHolder viewHolder, in onMove()
74 @NonNull RecyclerView.ViewHolder target) { in onMove()
79 public void onSwiped(@NonNull RecyclerView.ViewHolder viewHolder, int direction) { in onSwiped()
85 @NonNull RecyclerView.ViewHolder viewHolder) { in clearView()
92 @NonNull RecyclerView.ViewHolder viewHolder, float dX, float dY, int actionState, in onChildDraw()
115 private View getSwipeableView(RecyclerView.ViewHolder viewHolder) { in getSwipeableView()
DSliceContextualCardRenderer.java63 final Set<RecyclerView.ViewHolder> mFlippedCardSet;
86 public RecyclerView.ViewHolder createViewHolder(View view, @LayoutRes int viewType) { in createViewHolder()
96 public void bindView(RecyclerView.ViewHolder holder, ContextualCard card) { in bindView()
159 private void initDismissalActions(RecyclerView.ViewHolder holder, ContextualCard card) { in initDismissalActions()
181 private void resetCardView(RecyclerView.ViewHolder holder) { in resetCardView()
186 private void showDismissalView(RecyclerView.ViewHolder holder) { in showDismissalView()
191 private View getInitialView(RecyclerView.ViewHolder viewHolder) { in getInitialView()
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DDirectoryItemAnimator.java44 private final Map<RecyclerView.ViewHolder, ColorAnimation> mRunningAnimations =
58 public void endAnimation(RecyclerView.ViewHolder vh) { in endAnimation()
78 RecyclerView.ViewHolder viewHolder, in recordPreLayoutInformation()
90 RecyclerView.State state, RecyclerView.ViewHolder viewHolder) { in recordPostLayoutInformation()
103 public boolean canReuseUpdatedViewHolder(RecyclerView.ViewHolder vh) { in canReuseUpdatedViewHolder()
117 final RecyclerView.ViewHolder viewHolder;
120 public ColorAnimation(RecyclerView.ViewHolder vh, int startColor, int endColor) in ColorAnimation()
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/
DActionPresenterSelector.java55 static class ActionViewHolder extends Presenter.ViewHolder {
69 public ViewHolder onCreateViewHolder(ViewGroup parent) { in onCreateViewHolder()
77 public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { in onBindViewHolder()
85 public void onUnbindViewHolder(Presenter.ViewHolder viewHolder) { in onUnbindViewHolder()
92 public ViewHolder onCreateViewHolder(ViewGroup parent) { in onCreateViewHolder()
100 public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { in onBindViewHolder()
137 public void onUnbindViewHolder(Presenter.ViewHolder viewHolder) { in onUnbindViewHolder()
DDetailsContentPresenter.java50 public static class ViewHolder extends Presenter.ViewHolder { class in DetailsContentPresenter
136 public ViewHolder(final View view) { in ViewHolder() method in DetailsContentPresenter.ViewHolder
269 public final ViewHolder onCreateViewHolder(ViewGroup parent) { in onCreateViewHolder()
273 return new ViewHolder(v); in onCreateViewHolder()
277 public final void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { in onBindViewHolder()
278 final ViewHolder vh = (ViewHolder) viewHolder; in onBindViewHolder()
356 public void onUnbindViewHolder(Presenter.ViewHolder viewHolder) {} in onUnbindViewHolder()
/packages/apps/Car/libs/car-ui-lib/tests/paintbooth/src/com/android/car/ui/paintbooth/
DMainActivity.java70 private class ViewHolder extends RecyclerView.ViewHolder { class in MainActivity
73 ViewHolder(@NonNull View itemView) { in ViewHolder() method in MainActivity.ViewHolder
87 private final RecyclerView.Adapter<ViewHolder> mAdapter =
88 new RecyclerView.Adapter<ViewHolder>() {
91 public ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
94 return new ViewHolder(item);
98 public void onBindViewHolder(@NonNull ViewHolder holder, int position) {
/packages/apps/Car/libs/car-ui-lib/tests/paintbooth/src/com/android/car/ui/paintbooth/dialogs/
DDialogsActivity.java199 private static class ViewHolder extends CarUiRecyclerView.ViewHolder { class in DialogsActivity
203 ViewHolder(View itemView) { in ViewHolder() method in DialogsActivity.ViewHolder
214 private final CarUiRecyclerView.Adapter<ViewHolder> mAdapter =
215 new CarUiRecyclerView.Adapter<ViewHolder>() {
222 public ViewHolder onCreateViewHolder(ViewGroup parent, int position) {
226 return new ViewHolder(item);
230 public void onBindViewHolder(@NonNull ViewHolder holder, int position) {
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/individual/
DIndividualPickerFragment.java45 import androidx.recyclerview.widget.RecyclerView.ViewHolder;
139 ViewHolder selectedViewHolder = mImageGrid.findViewHolderForAdapterPosition(
182 ViewHolder viewHolder = mImageGrid.findViewHolderForAdapterPosition(
707 private class RotationHolder extends RecyclerView.ViewHolder implements View.OnClickListener {
792 class IndividualAdapter extends RecyclerView.Adapter<ViewHolder> {
809 public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder()
840 public void onBindViewHolder(ViewHolder holder, int position) { in onBindViewHolder()
865 private ViewHolder createRotationHolder(ViewGroup parent) { in createRotationHolder()
882 private ViewHolder createIndividualHolder(ViewGroup parent) { in createIndividualHolder()
897ViewHolder oldViewHolder = mImageGrid.findViewHolderForAdapterPosition( in createIndividualHolder()
[all …]
/packages/apps/TV/src/com/android/tv/ui/sidepanel/
DSideFragment.java257 private static class ItemAdapter<T extends Item> extends RecyclerView.Adapter<ViewHolder> {
272 public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder()
274 return new ViewHolder(view); in onCreateViewHolder()
278 public void onBindViewHolder(ViewHolder holder, int position) { in onBindViewHolder()
283 public void onViewRecycled(ViewHolder holder) { in onViewRecycled()
320 private static class ViewHolder extends RecyclerView.ViewHolder class in SideFragment
325 private ViewHolder(View view) { in ViewHolder() method in SideFragment.ViewHolder
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestRecyclerView.java34 private List<RecyclerView.ViewHolder> mHolders = new ArrayList<>();
43 public ViewHolder getChildViewHolder(View child) { in getChildViewHolder()
47 public void setHolders(List<ViewHolder> holders) { in setHolders()
52 public ViewHolder findViewHolderForAdapterPosition(int position) { in findViewHolderForAdapterPosition()
102 private static class TestViewHolder extends RecyclerView.ViewHolder {

12345678910