Home
last modified time | relevance | path

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

123456

/packages/apps/Car/Dialer/src/com/android/car/dialer/
DStrequentsItemAnimator.java21 import android.support.v7.widget.RecyclerView.ViewHolder;
35 private ArrayList<ViewHolder> mPendingRemovals = new ArrayList<>();
36 private ArrayList<ViewHolder> mPendingAdditions = new ArrayList<>();
40 private ArrayList<ArrayList<ViewHolder>> mAdditionsList = new ArrayList<>();
44 private ArrayList<ViewHolder> mAddAnimations = new ArrayList<>();
45 private ArrayList<ViewHolder> mMoveAnimations = new ArrayList<>();
46 private ArrayList<ViewHolder> mRemoveAnimations = new ArrayList<>();
47 private ArrayList<ViewHolder> mChangeAnimations = new ArrayList<>();
50 public ViewHolder holder;
53 private MoveInfo(ViewHolder holder, int fromX, int fromY, int toX, int toY) { in MoveInfo()
[all …]
/packages/apps/TV/src/com/android/tv/dvr/ui/
DDetailsContentPresenter.java51 public static class ViewHolder extends Presenter.ViewHolder { class in DetailsContentPresenter
114 public ViewHolder(final View view) { in ViewHolder() method in DetailsContentPresenter.ViewHolder
210 public final ViewHolder onCreateViewHolder(ViewGroup parent) { in onCreateViewHolder()
213 return new ViewHolder(v); in onCreateViewHolder()
217 public final void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { in onBindViewHolder()
218 final ViewHolder vh = (ViewHolder) viewHolder; in onBindViewHolder()
277 public void onUnbindViewHolder(Presenter.ViewHolder viewHolder) { } in onUnbindViewHolder()
280 public void onViewAttachedToWindow(Presenter.ViewHolder holder) { in onViewAttachedToWindow()
283 ViewHolder vh = (ViewHolder) holder; in onViewAttachedToWindow()
289 public void onViewDetachedFromWindow(Presenter.ViewHolder holder) { in onViewDetachedFromWindow()
[all …]
DActionPresenterSelector.java53 static class ActionViewHolder extends Presenter.ViewHolder {
67 public ViewHolder onCreateViewHolder(ViewGroup parent) { in onCreateViewHolder()
74 public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { in onBindViewHolder()
82 public void onUnbindViewHolder(Presenter.ViewHolder viewHolder) { in onUnbindViewHolder()
89 public ViewHolder onCreateViewHolder(ViewGroup parent) { in onCreateViewHolder()
96 public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { in onBindViewHolder()
131 public void onUnbindViewHolder(Presenter.ViewHolder viewHolder) { in onUnbindViewHolder()
/packages/apps/Calendar/src/com/android/calendar/agenda/
DAgendaListView.java24 import com.android.calendar.agenda.AgendaAdapter.ViewHolder;
143 if (o instanceof AgendaByDayAdapter.ViewHolder) { in updatePastEvents()
145 AgendaByDayAdapter.ViewHolder holder = (AgendaByDayAdapter.ViewHolder) o; in updatePastEvents()
150 } else if (o instanceof AgendaAdapter.ViewHolder) { in updatePastEvents()
153 AgendaAdapter.ViewHolder holder = (AgendaAdapter.ViewHolder) o; in updatePastEvents()
190 if (holder instanceof AgendaAdapter.ViewHolder) { in onItemClick()
191 holderStartTime = ((AgendaAdapter.ViewHolder) holder).startTimeMilli; in onItemClick()
263 public AgendaAdapter.ViewHolder getSelectedViewHolder() { in getSelectedViewHolder()
394 if (firstVisibleItem.getTag() instanceof AgendaAdapter.ViewHolder) { in shiftPosition()
395 ViewHolder viewHolder = (AgendaAdapter.ViewHolder) firstVisibleItem.getTag(); in shiftPosition()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DAllAppsGridAdapter.java49 public class AllAppsGridAdapter extends RecyclerView.Adapter<AllAppsGridAdapter.ViewHolder> {
85 void onBindView(ViewHolder holder); in onBindView()
91 public static class ViewHolder extends RecyclerView.ViewHolder { class in AllAppsGridAdapter
92 public ViewHolder(View v) { in ViewHolder() method in AllAppsGridAdapter.ViewHolder
277 public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder()
291 return new ViewHolder(icon); in onCreateViewHolder()
297 return new ViewHolder(appDiscoveryItemView); in onCreateViewHolder()
299 return new ViewHolder(mLayoutInflater.inflate(R.layout.all_apps_empty_search, in onCreateViewHolder()
310 return new ViewHolder(searchMarketView); in onCreateViewHolder()
312 return new ViewHolder(mLayoutInflater.inflate( in onCreateViewHolder()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/
DItemAnimator.java27 import android.support.v7.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/TvSettings/QuickSettings/src/com/android/tv/quicksettings/
DDialogAdapter.java24 public class DialogAdapter extends RecyclerView.Adapter<DialogAdapter.ViewHolder> {
43 public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder()
46 final ViewHolder vh = new ViewHolder(v); in onCreateViewHolder()
75 public void onBindViewHolder(ViewHolder holder, int position) { in onBindViewHolder()
82 public void onViewRecycled(ViewHolder holder) { in onViewRecycled()
91 public static class ViewHolder extends RecyclerView.ViewHolder { class in DialogAdapter
95 public ViewHolder(View itemView) { in ViewHolder() method in DialogAdapter.ViewHolder
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DDirectoryItemAnimator.java42 private final Map<RecyclerView.ViewHolder, ColorAnimation> mRunningAnimations =
63 public void endAnimation(RecyclerView.ViewHolder vh) { in endAnimation()
83 RecyclerView.ViewHolder viewHolder, in recordPreLayoutInformation()
95 RecyclerView.State state, RecyclerView.ViewHolder viewHolder) { in recordPostLayoutInformation()
103 public boolean animateChange(final RecyclerView.ViewHolder oldHolder, in animateChange()
104 RecyclerView.ViewHolder newHolder, ItemHolderInfo preInfo, in animateChange()
131 public boolean canReuseUpdatedViewHolder(RecyclerView.ViewHolder vh) { in canReuseUpdatedViewHolder()
145 final RecyclerView.ViewHolder viewHolder;
148 public ColorAnimation(RecyclerView.ViewHolder vh, int startColor, int endColor) in ColorAnimation()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DAccessPointListAdapter.java38 import com.android.car.settings.wifi.AccessPointListAdapter.ViewHolder;
47 extends RecyclerView.Adapter<AccessPointListAdapter.ViewHolder>
93 public class ViewHolder extends RecyclerView.ViewHolder { class in AccessPointListAdapter
98 public ViewHolder(View view) { in ViewHolder() method in AccessPointListAdapter.ViewHolder
132 public AccessPointListAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, in onCreateViewHolder()
136 ViewHolder vh = new ViewHolder(v); in onCreateViewHolder()
141 public void onBindViewHolder(ViewHolder holder, int position) { in onBindViewHolder()
/packages/apps/TV/src/com/android/tv/ui/sidepanel/
DSideFragment.java251 ItemAdapter.ViewHolder viewHolder = new ItemAdapter.ViewHolder( in preloadRecycledViews()
265 private static class ItemAdapter extends RecyclerView.Adapter<ItemAdapter.ViewHolder> {
280 public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder()
281 return new ViewHolder(mLayoutInflater.inflate(viewType, parent, false)); in onCreateViewHolder()
285 public void onBindViewHolder(ViewHolder holder, int position) { in onBindViewHolder()
290 public void onViewRecycled(ViewHolder holder) { in onViewRecycled()
326 private static class ViewHolder extends RecyclerView.ViewHolder class in SideFragment.ItemAdapter
331 private ViewHolder(View view) { in ViewHolder() method in SideFragment.ItemAdapter.ViewHolder
/packages/apps/Car/Settings/src/com/android/car/settings/common/
DTextLineItem.java29 public abstract class TextLineItem extends TypedPagedListAdapter.LineItem<TextLineItem.ViewHolder> {
44 public void bindViewHolder(ViewHolder viewHolder) { in bindViewHolder()
51 static class ViewHolder extends RecyclerView.ViewHolder { class in TextLineItem
55 public ViewHolder(View view) { in ViewHolder() method in TextLineItem.ViewHolder
62 public static RecyclerView.ViewHolder createViewHolder(ViewGroup parent) { in createViewHolder()
65 return new ViewHolder(v); in createViewHolder()
DSeekbarLineItem.java32 extends TypedPagedListAdapter.LineItem<SeekbarLineItem.ViewHolder> {
64 public void bindViewHolder(ViewHolder viewHolder) { in bindViewHolder()
71 static class ViewHolder extends RecyclerView.ViewHolder { class in SeekbarLineItem
75 public ViewHolder(View view) { in ViewHolder() method in SeekbarLineItem.ViewHolder
82 public static RecyclerView.ViewHolder createViewHolder(ViewGroup parent) { in createViewHolder()
85 return new ViewHolder(v); in createViewHolder()
DIconTextLineItem.java34 extends TypedPagedListAdapter.LineItem<IconTextLineItem.ViewHolder> {
52 public void bindViewHolder(ViewHolder viewHolder) { in bindViewHolder()
66 static class ViewHolder extends RecyclerView.ViewHolder { class in IconTextLineItem
71 public ViewHolder(View view) { in ViewHolder() method in IconTextLineItem.ViewHolder
79 public static RecyclerView.ViewHolder createViewHolder(ViewGroup parent) { in createViewHolder()
82 return new ViewHolder(v); in createViewHolder()
DIconToggleLineItem.java35 extends TypedPagedListAdapter.LineItem<IconToggleLineItem.ViewHolder> {
58 public void bindViewHolder(ViewHolder viewHolder) { in bindViewHolder()
68 static class ViewHolder extends RecyclerView.ViewHolder implements IconUpdateListener { class in IconToggleLineItem
74 public ViewHolder(View itemView) { in ViewHolder() method in IconToggleLineItem.ViewHolder
89 public static RecyclerView.ViewHolder createViewHolder(ViewGroup parent) { in createViewHolder()
92 return new ViewHolder(v); in createViewHolder()
DTypedPagedListAdapter.java26 import android.support.v7.widget.RecyclerView.ViewHolder;
38 extends RecyclerView.Adapter<ViewHolder>
54 public static abstract class LineItem<VH extends ViewHolder> {
91 public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder()
111 public void onBindViewHolder(ViewHolder holder, int position) { in onBindViewHolder()
/packages/apps/ExactCalculator/src/com/android/calculator2/
DHistoryAdapter.java32 public class HistoryAdapter extends RecyclerView.Adapter<HistoryAdapter.ViewHolder> {
55 public HistoryAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder()
64 return new ViewHolder(v, viewType); in onCreateViewHolder()
68 public void onBindViewHolder(final HistoryAdapter.ViewHolder holder, int position) { in onBindViewHolder()
97 public void onViewRecycled(ViewHolder holder) { in onViewRecycled()
188 public static class ViewHolder extends RecyclerView.ViewHolder { class in HistoryAdapter
195 public ViewHolder(View v, int viewType) { in ViewHolder() method in HistoryAdapter.ViewHolder
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothDeviceListAdapter.java62 extends RecyclerView.Adapter<BluetoothDeviceListAdapter.ViewHolder>
93 class ViewHolder extends RecyclerView.ViewHolder { class in BluetoothDeviceListAdapter
101 public ViewHolder(View view) { in ViewHolder() method in BluetoothDeviceListAdapter.ViewHolder
149 public BluetoothDeviceListAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, in onCreateViewHolder()
165 return new ViewHolder(v); in onCreateViewHolder()
179 public void onBindViewHolder(ViewHolder holder, int position) { in onBindViewHolder()
414 private final ViewHolder mViewHolder;
416 DeviceAttributeChangeCallback(ViewHolder viewHolder) { in DeviceAttributeChangeCallback()
427 private final ViewHolder mViewHolder;
429 BluetoothClickListener(ViewHolder viewHolder) { in BluetoothClickListener()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/
DApplicationListAdapter.java39 extends RecyclerView.Adapter<ApplicationListAdapter.ViewHolder>
64 public class ViewHolder extends RecyclerView.ViewHolder { class in ApplicationListAdapter
68 public ViewHolder(View view) { in ViewHolder() method in ApplicationListAdapter.ViewHolder
93 public ApplicationListAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, in onCreateViewHolder()
97 return new ViewHolder(v); in onCreateViewHolder()
101 public void onBindViewHolder(ViewHolder holder, int position) { in onBindViewHolder()
/packages/apps/Car/Settings/src/com/android/car/settings/datetime/
DTimeZoneListAdapter.java39 extends RecyclerView.Adapter<TimeZoneListAdapter.ViewHolder>
62 public class ViewHolder extends RecyclerView.ViewHolder { class in TimeZoneListAdapter
66 public ViewHolder(View view) { in ViewHolder() method in TimeZoneListAdapter.ViewHolder
91 public TimeZoneListAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, in onCreateViewHolder()
95 return new ViewHolder(v); in onCreateViewHolder()
99 public void onBindViewHolder(ViewHolder holder, int position) { in onBindViewHolder()
/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/suggestions/
DSuggestionDismissControllerTest.java81 final RecyclerView.ViewHolder vh = mock(RecyclerView.ViewHolder.class); in getSwipeDirs_isSuggestionTile_shouldReturnDirection()
90 final RecyclerView.ViewHolder vh = mock(RecyclerView.ViewHolder.class); in getSwipeDirs_isNotSuggestionTile_shouldReturn0()
99 final RecyclerView.ViewHolder vh = mock(RecyclerView.ViewHolder.class); in onSwiped_shouldTriggerDismissSuggestion()
/packages/apps/Settings/src/com/android/settings/dashboard/
DSupportItemAdapter.java60 public final class SupportItemAdapter extends RecyclerView.Adapter<SupportItemAdapter.ViewHolder> {
112 public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder()
113 return new ViewHolder(LayoutInflater.from(parent.getContext()).inflate( in onCreateViewHolder()
118 public void onBindViewHolder(ViewHolder holder, int position) { in onBindViewHolder()
331 private void bindEscalationOptions(ViewHolder holder, EscalationData data) { in bindEscalationOptions()
366 public void bindAccountPicker(ViewHolder holder) { in bindAccountPicker()
378 private void bindOfflineEscalationOptions(ViewHolder holder, OfflineEscalationData data) { in bindOfflineEscalationOptions()
421 private void bindSignInPromoTile(ViewHolder holder, EscalationData data) { in bindSignInPromoTile()
431 private void bindSupportTile(ViewHolder holder, SupportData data) { in bindSupportTile()
579 static final class ViewHolder extends RecyclerView.ViewHolder { class in SupportItemAdapter
[all …]
/packages/apps/TV/src/com/android/tv/search/
DProgramGuideSearchFragment.java56 public Presenter.ViewHolder onCreateViewHolder(ViewGroup viewGroup) {
69 return new Presenter.ViewHolder(cardView);
73 public void onBindViewHolder(ViewHolder viewHolder, Object o) {
88 public void onUnbindViewHolder(ViewHolder viewHolder) {
125 public void onItemClicked(Presenter.ViewHolder viewHolder, Object o, RowPresenter
126 .ViewHolder viewHolder1, Row row) {
/packages/apps/TV/src/com/android/tv/ui/
DSelectInputView.java317 class InputListAdapter extends RecyclerView.Adapter<InputListAdapter.ViewHolder> {
319 public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder()
322 return new ViewHolder(v); in onCreateViewHolder()
326 public void onBindViewHolder(ViewHolder holder, final int position) { in onBindViewHolder()
376 class ViewHolder extends RecyclerView.ViewHolder { class in SelectInputView.InputListAdapter
380 ViewHolder(View v) { in ViewHolder() method in SelectInputView.InputListAdapter.ViewHolder
/packages/apps/Settings/src/com/android/settings/
DUserCredentialsSettings.java300 private static class CredentialAdapter extends RecyclerView.Adapter<ViewHolder> {
312 public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder()
314 return new ViewHolder(inflater.inflate(LAYOUT_RESOURCE, parent, false)); in onCreateViewHolder()
318 public void onBindViewHolder(ViewHolder h, int position) { in onBindViewHolder()
330 private static class ViewHolder extends RecyclerView.ViewHolder { class in UserCredentialsSettings
331 public ViewHolder(View item) { in ViewHolder() method in UserCredentialsSettings.ViewHolder
/packages/apps/Settings/src/com/android/settings/localepicker/
DLocaleDragAndDropAdapter.java59 class CustomViewHolder extends RecyclerView.ViewHolder implements View.OnTouchListener {
96 public boolean onMove(RecyclerView view, RecyclerView.ViewHolder source, in LocaleDragAndDropAdapter()
97 RecyclerView.ViewHolder target) { in LocaleDragAndDropAdapter()
103 public void onSwiped(RecyclerView.ViewHolder viewHolder, int i) { in LocaleDragAndDropAdapter()
114 RecyclerView.ViewHolder viewHolder, float dX, float dY, in LocaleDragAndDropAdapter()
128 public void onSelectedChanged(RecyclerView.ViewHolder viewHolder, int actionState) { in LocaleDragAndDropAdapter()

123456