Home
last modified time | relevance | path

Searched refs:itemHolders (Results 1 – 7 of 7) sorted by relevance

/packages/apps/DeskClock/src/com/android/deskclock/ringtone/
DRingtoneLoader.kt69 val itemHolders: MutableList<ItemHolder<Uri>> = ArrayList(itemCount) in loadInBackground() constant
72 itemHolders.add(HeaderHolder(R.string.your_sounds)) in loadInBackground()
76 itemHolders.add(CustomRingtoneHolder(ringtone)) in loadInBackground()
80 itemHolders.add(AddCustomRingtoneHolder()) in loadInBackground()
83 itemHolders.add(HeaderHolder(R.string.device_sounds)) in loadInBackground()
86 itemHolders.add(SystemRingtoneHolder(Utils.RINGTONE_SILENT, null)) in loadInBackground()
89 itemHolders.add(SystemRingtoneHolder(mDefaultRingtoneUri, mDefaultRingtoneTitle)) in loadInBackground()
94 itemHolders.add(SystemRingtoneHolder(ringtoneUri, null)) in loadInBackground()
97 return itemHolders in loadInBackground()
DRingtoneLoader.java82 final List<ItemAdapter.ItemHolder<Uri>> itemHolders = new ArrayList<>(itemCount); in loadInBackground() local
85 itemHolders.add(new HeaderHolder(R.string.your_sounds)); in loadInBackground()
89 itemHolders.add(new CustomRingtoneHolder(ringtone)); in loadInBackground()
93 itemHolders.add(new AddCustomRingtoneHolder()); in loadInBackground()
96 itemHolders.add(new HeaderHolder(R.string.device_sounds)); in loadInBackground()
99 itemHolders.add(new SystemRingtoneHolder(RINGTONE_SILENT, null)); in loadInBackground()
102 itemHolders.add(new SystemRingtoneHolder(mDefaultRingtoneUri, mDefaultRingtoneTitle)); in loadInBackground()
107 itemHolders.add(new SystemRingtoneHolder(ringtoneUri, null)); in loadInBackground()
110 return itemHolders; in loadInBackground()
DRingtonePickerActivity.kt242 itemHolders: List<ItemHolder<Uri>> in <lambda>()
245 mRingtoneAdapter.setItems(itemHolders) in <lambda>()
DRingtonePickerActivity.java303 List<ItemAdapter.ItemHolder<Uri>> itemHolders) { in onLoadFinished() argument
305 mRingtoneAdapter.setItems(itemHolders); in onLoadFinished()
/packages/apps/DeskClock/src/com/android/deskclock/
DItemAdapter.java148 public ItemAdapter setItems(List<T> itemHolders) { in setItems() argument
150 if (oldItemHolders != itemHolders) { in setItems()
158 if (oldItemHolders != null && itemHolders != null && hasStableIds()) { in setItems()
163 for (ItemHolder newItemHolder : itemHolders) { in setItems()
180 if (itemHolders != null) { in setItems()
182 for (ItemHolder newItemHolder : itemHolders) { in setItems()
188 mItemHolders = itemHolders; in setItems()
DAlarmClockFragment.java276 final List<AlarmItemHolder> itemHolders = new ArrayList<>(data.getCount()); in onLoadFinished() local
283 itemHolders.add(itemHolder); in onLoadFinished()
285 setAdapterItems(itemHolders, SystemClock.elapsedRealtime()); in onLoadFinished()
DAlarmClockFragment.kt239 val itemHolders: MutableList<AlarmItemHolder> = ArrayList(data.count) in onLoadFinished() constant
249 itemHolders.add(itemHolder) in onLoadFinished()
252 setAdapterItems(itemHolders, SystemClock.elapsedRealtime()) in onLoadFinished()