Home
last modified time | relevance | path

Searched refs:ItemHolder (Results 1 – 9 of 9) sorted by relevance

/packages/apps/DeskClock/tests/src/com/android/deskclock/ringtone/
DRingtonePickerActivityTest.java31 import com.android.deskclock.ItemAdapter.ItemHolder;
56 private ItemAdapter<ItemHolder<Uri>> ringtoneAdapter;
77 final List<ItemHolder<Uri>> systemRingtoneHolders = ringtoneAdapter.getItems(); in validateDefaultState_TimerRingtonePicker()
78 final Iterator<ItemHolder<Uri>> itemsIter = systemRingtoneHolders.iterator(); in validateDefaultState_TimerRingtonePicker()
115 final List<ItemHolder<Uri>> systemRingtoneHolders = ringtoneAdapter.getItems(); in validateDefaultState_AlarmRingtonePicker()
116 final Iterator<ItemHolder<Uri>> itemsIter = systemRingtoneHolders.iterator(); in validateDefaultState_AlarmRingtonePicker()
153 final List<ItemHolder<Uri>> systemRingtoneHolders = ringtoneAdapter.getItems(); in validateDefaultState_TimerRingtonePicker_WithCustomRingtones()
154 final Iterator<ItemHolder<Uri>> itemsIter = systemRingtoneHolders.iterator(); in validateDefaultState_TimerRingtonePicker_WithCustomRingtones()
206 final List<ItemHolder<Uri>> systemRingtoneHolders = ringtoneAdapter.getItems(); in validateDefaultState_AlarmRingtonePicker_WithCustomRingtones()
207 final Iterator<ItemHolder<Uri>> itemsIter = systemRingtoneHolders.iterator(); in validateDefaultState_AlarmRingtonePicker_WithCustomRingtones()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/
DItemAdapter.kt26 import com.android.deskclock.ItemAdapter.ItemHolder
35 class ItemAdapter<T : ItemHolder<*>> : RecyclerView.Adapter<ItemViewHolder<T>>() {
42 override fun onItemChanged(itemHolder: ItemHolder<*>) { in onItemChanged()
50 override fun onItemChanged(itemHolder: ItemHolder<*>, payload: Any) { in onItemChanged()
275 abstract class ItemHolder<T>( class in com.android.deskclock.ItemAdapter
363 open class ItemViewHolder<T : ItemHolder<*>>(itemView: View)
459 fun onItemChanged(itemHolder: ItemHolder<*>) in createViewHolder()
467 fun onItemChanged(itemHolder: ItemHolder<*>, payload: Any) in createViewHolder()
DAlarmClockFragment.kt36 import com.android.deskclock.ItemAdapter.ItemHolder
123 override fun onItemChanged(holder: ItemHolder<*>) { in onCreateView()
143 override fun onItemChanged(holder: ItemHolder<*>, payload: Any) { in onCreateView()
/packages/apps/DeskClock/src/com/android/deskclock/ringtone/
DRingtoneLoader.kt26 import com.android.deskclock.ItemAdapter.ItemHolder
40 ) : AsyncTaskLoader<List<ItemHolder<Uri?>>>(context) {
50 override fun loadInBackground(): List<ItemHolder<Uri?>> { in loadInBackground()
69 val itemHolders: MutableList<ItemHolder<Uri?>> = ArrayList(itemCount) in loadInBackground()
DRingtonePickerActivity.kt52 import com.android.deskclock.ItemAdapter.ItemHolder in <lambda>()
72 class RingtonePickerActivity : BaseActivity(), LoaderCallbacks<List<ItemHolder<Uri?>>> { in <lambda>()
83 private lateinit var mRingtoneAdapter: ItemAdapter<ItemHolder<Uri?>> in <lambda>()
236 override fun onCreateLoader(id: Int, args: Bundle?): Loader<List<ItemHolder<Uri?>>> { in <lambda>()
242 loader: Loader<List<ItemHolder<Uri?>>>, in <lambda>()
243 itemHolders: List<ItemHolder<Uri?>> in <lambda>()
267 override fun onLoaderReset(loader: Loader<List<ItemHolder<Uri?>>>) { in <lambda>()
DAddCustomRingtoneHolder.kt22 import com.android.deskclock.ItemAdapter.ItemHolder
24 internal class AddCustomRingtoneHolder : ItemHolder<Uri?>(null, NO_ID) {
DHeaderHolder.kt23 import com.android.deskclock.ItemAdapter.ItemHolder
28 ) : ItemHolder<Uri?>(null, NO_ID) {
DRingtoneHolder.kt22 import com.android.deskclock.ItemAdapter.ItemHolder
30 ) : ItemHolder<Uri?>(uri, NO_ID) {
/packages/apps/DeskClock/src/com/android/deskclock/alarms/dataadapter/
DAlarmItemHolder.kt21 import com.android.deskclock.ItemAdapter.ItemHolder
30 ) : ItemHolder<Alarm>(alarm, alarm.id) {