Home
last modified time | relevance | path

Searched refs:ItemViewHolder (Results 1 – 15 of 15) sorted by relevance

/packages/apps/DeskClock/src/com/android/deskclock/
DItemAdapter.kt27 import com.android.deskclock.ItemAdapter.ItemViewHolder
35 class ItemAdapter<T : ItemHolder<*>> : RecyclerView.Adapter<ItemViewHolder<T>>() {
64 override fun onItemClicked(viewHolder: ItemViewHolder<*>, id: Int) { in onItemClicked()
78 private val mFactoriesByViewType: SparseArray<ItemViewHolder.Factory> = SparseArray()
110 factory: ItemViewHolder.Factory, in withViewTypes()
239 override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ItemViewHolder<T> { in onCreateViewHolder()
242 return factory.createViewHolder(parent, viewType) as ItemViewHolder<T> in onCreateViewHolder()
247 override fun onBindViewHolder(viewHolder: ItemViewHolder<T>, position: Int) { in onBindViewHolder()
254 override fun onViewRecycled(viewHolder: ItemViewHolder<T>) { in onViewRecycled()
362 open class ItemViewHolder<T : ItemHolder<*>>(itemView: View) class in com.android.deskclock.ItemAdapter
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/ringtone/
DHeaderViewHolder.kt24 import com.android.deskclock.ItemAdapter.ItemViewHolder
28 : ItemViewHolder<HeaderHolder>(itemView) {
37 : ItemViewHolder.Factory {
38 override fun createViewHolder(parent: ViewGroup, viewType: Int): ItemViewHolder<*> { in createViewHolder()
DAddCustomRingtoneViewHolder.kt25 import com.android.deskclock.ItemAdapter.ItemViewHolder
29 : ItemViewHolder<AddCustomRingtoneHolder>(itemView), View.OnClickListener {
48 : ItemViewHolder.Factory {
49 override fun createViewHolder(parent: ViewGroup, viewType: Int): ItemViewHolder<*> { in createViewHolder()
DRingtoneViewHolder.kt32 import com.android.deskclock.ItemAdapter.ItemViewHolder
38 : ItemViewHolder<RingtoneHolder>(itemView), View.OnClickListener, OnCreateContextMenuListener {
102 : ItemViewHolder.Factory {
103 override fun createViewHolder(parent: ViewGroup, viewType: Int): ItemViewHolder<*> { in createViewHolder()
DRingtonePickerActivity.kt53 import com.android.deskclock.ItemAdapter.ItemViewHolder in <lambda>()
131 val ringtoneFactory: ItemViewHolder.Factory = RingtoneViewHolder.Factory(inflater) in <lambda>()
132 val headerFactory: ItemViewHolder.Factory = HeaderViewHolder.Factory(inflater) in <lambda>()
133 val addNewFactory: ItemViewHolder.Factory = AddCustomRingtoneViewHolder.Factory(inflater) in <lambda>()
418 override fun onItemClicked(viewHolder: ItemViewHolder<*>, id: Int) { in <lambda>()
/packages/services/Car/tests/MultiDisplayTest/src/com/google/android/car/multidisplaytest/
DMDTest.java152 private final class MenuAdapter extends RecyclerView.Adapter<ItemViewHolder> {
160 public ItemViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder()
162 return new ItemViewHolder(view); in onCreateViewHolder()
166 public void onBindViewHolder(ItemViewHolder holder, int position) { in onBindViewHolder()
177 private final class ItemViewHolder extends RecyclerView.ViewHolder { class in MDTest
180 ItemViewHolder(View itemView) { in ItemViewHolder() method in MDTest.ItemViewHolder
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/key/
DInjectKeyTestFragment.java179 private final class KeysAdapter extends RecyclerView.Adapter<ItemViewHolder> {
187 public ItemViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder()
189 return new ItemViewHolder(view); in onCreateViewHolder()
193 public void onBindViewHolder(ItemViewHolder holder, int position) { in onBindViewHolder()
204 private final class ItemViewHolder extends RecyclerView.ViewHolder { class in InjectKeyTestFragment
207 ItemViewHolder(View itemView) { in ItemViewHolder() method in InjectKeyTestFragment.ItemViewHolder
/packages/apps/Settings/src/com/android/settings/datetime/timezone/
DBaseTimeZoneAdapter.java89 return new ItemViewHolder(view, mOnListItemClickListener); in onCreateViewHolder()
100 } else if (holder instanceof ItemViewHolder) { in onBindViewHolder()
101 ItemViewHolder<T> itemViewHolder = (ItemViewHolder<T>) holder; in onBindViewHolder()
187 public static class ItemViewHolder<T extends BaseTimeZoneAdapter.AdapterItem> class in BaseTimeZoneAdapter
198 public ItemViewHolder(View itemView, OnListItemClickListener<T> onListItemClickListener) { in ItemViewHolder() method in BaseTimeZoneAdapter.ItemViewHolder
/packages/modules/IntentResolver/java/src/com/android/intentresolver/grid/
DItemViewHolder.java35 public final class ItemViewHolder extends ViewHolderBase { class
40 public ItemViewHolder( in ItemViewHolder() method in ItemViewHolder
DChooserGridAdapter.java245 return new ItemViewHolder( in onCreateViewHolder()
251 return new ItemViewHolder( in onCreateViewHolder()
306 bindItemViewHolder(position, (ItemViewHolder) holder); in onBindViewHolder()
455 void bindItemViewHolder(int position, ItemViewHolder holder) { in bindItemViewHolder()
/packages/apps/Settings/tests/robotests/src/com/android/settings/datetime/timezone/
DRegionSearchPickerTest.java33 import com.android.settings.datetime.timezone.BaseTimeZoneAdapter.ItemViewHolder;
89 ItemViewHolder viewHolder = (ItemViewHolder) adapter.onCreateViewHolder( in clickItemView_duringRegionSearch_shouldNotCrash()
/packages/apps/DeskClock/src/com/android/deskclock/alarms/dataadapter/
DAlarmItemViewHolder.kt26 import com.android.deskclock.ItemAdapter.ItemViewHolder in <lambda>()
38 : ItemViewHolder<AlarmItemHolder>(itemView), OnAnimateChangeListener { in <lambda>()
DCollapsedAlarmViewHolder.kt32 import com.android.deskclock.ItemAdapter.ItemViewHolder in <lambda>()
244 class Factory(private val layoutInflater: LayoutInflater) : ItemViewHolder.Factory { in <lambda>()
245 override fun createViewHolder(parent: ViewGroup, viewType: Int): ItemViewHolder<*> { in <lambda>()
DExpandedAlarmViewHolder.kt43 import com.android.deskclock.ItemAdapter.ItemViewHolder in <lambda>()
486 class Factory(context: Context) : ItemViewHolder.Factory { in <lambda>()
491 override fun createViewHolder(parent: ViewGroup, viewType: Int): ItemViewHolder<*> { in <lambda>()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/
DKitchenSinkActivity.java648 private final class MenuAdapter extends RecyclerView.Adapter<ItemViewHolder> {
657 public ItemViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder()
659 return new ItemViewHolder(view); in onCreateViewHolder()
663 public void onBindViewHolder(ItemViewHolder holder, int position) { in onBindViewHolder()
674 private final class ItemViewHolder extends RecyclerView.ViewHolder { class in KitchenSinkActivity
677 ItemViewHolder(View itemView) { in ItemViewHolder() method in KitchenSinkActivity.ItemViewHolder