Home
last modified time | relevance | path

Searched refs:RingtoneViewHolder (Results 1 – 5 of 5) sorted by relevance

/packages/apps/DeskClock/tests/src/com/android/deskclock/ringtone/
DRingtonePickerActivityTest.java98 assertEquals(RingtoneViewHolder.VIEW_TYPE_SYSTEM_SOUND, silentHolder.getItemViewType()); in validateDefaultState_TimerRingtonePicker()
101 assertEquals(RingtoneViewHolder.VIEW_TYPE_SYSTEM_SOUND, defaultHolder.getItemViewType()); in validateDefaultState_TimerRingtonePicker()
136 assertEquals(RingtoneViewHolder.VIEW_TYPE_SYSTEM_SOUND, silentHolder.getItemViewType()); in validateDefaultState_AlarmRingtonePicker()
139 assertEquals(RingtoneViewHolder.VIEW_TYPE_SYSTEM_SOUND, defaultHolder.getItemViewType()); in validateDefaultState_AlarmRingtonePicker()
168 assertEquals(RingtoneViewHolder.VIEW_TYPE_CUSTOM_SOUND, in validateDefaultState_TimerRingtonePicker_WithCustomRingtones()
180 assertEquals(RingtoneViewHolder.VIEW_TYPE_SYSTEM_SOUND, silentHolder.getItemViewType()); in validateDefaultState_TimerRingtonePicker_WithCustomRingtones()
183 assertEquals(RingtoneViewHolder.VIEW_TYPE_SYSTEM_SOUND, defaultHolder.getItemViewType()); in validateDefaultState_TimerRingtonePicker_WithCustomRingtones()
221 assertEquals(RingtoneViewHolder.VIEW_TYPE_CUSTOM_SOUND, in validateDefaultState_AlarmRingtonePicker_WithCustomRingtones()
233 assertEquals(RingtoneViewHolder.VIEW_TYPE_SYSTEM_SOUND, silentHolder.getItemViewType()); in validateDefaultState_AlarmRingtonePicker_WithCustomRingtones()
236 assertEquals(RingtoneViewHolder.VIEW_TYPE_SYSTEM_SOUND, defaultHolder.getItemViewType()); in validateDefaultState_AlarmRingtonePicker_WithCustomRingtones()
/packages/apps/DeskClock/src/com/android/deskclock/ringtone/
DRingtonePickerActivity.kt131 val ringtoneFactory: ItemViewHolder.Factory = RingtoneViewHolder.Factory(inflater) in <lambda>()
139 .withViewTypes(ringtoneFactory, listener, RingtoneViewHolder.VIEW_TYPE_SYSTEM_SOUND) in <lambda>()
140 .withViewTypes(ringtoneFactory, listener, RingtoneViewHolder.VIEW_TYPE_CUSTOM_SOUND) in <lambda>()
427 RingtoneViewHolder.CLICK_NORMAL -> { in <lambda>()
444 RingtoneViewHolder.CLICK_LONG_PRESS -> { in <lambda>()
447 RingtoneViewHolder.CLICK_NO_PERMISSIONS -> { in <lambda>()
DRingtoneViewHolder.kt37 internal class RingtoneViewHolder private constructor(itemView: View) class
105 return RingtoneViewHolder(itemView) in createViewHolder()
DSystemRingtoneHolder.kt23 return RingtoneViewHolder.VIEW_TYPE_SYSTEM_SOUND in getItemViewType()
DCustomRingtoneHolder.kt25 return RingtoneViewHolder.VIEW_TYPE_CUSTOM_SOUND in getItemViewType()