Home
last modified time | relevance | path

Searched refs:itemHolder (Results 1 – 17 of 17) sorted by relevance

/packages/apps/DeskClock/src/com/android/deskclock/
DItemAdapter.java45 public void onItemChanged(ItemHolder<?> itemHolder) {
47 mOnItemChangedListener.onItemChanged(itemHolder);
49 final int position = mItemHolders.indexOf(itemHolder);
56 public void onItemChanged(ItemHolder<?> itemHolder, Object payload) {
58 mOnItemChangedListener.onItemChanged(itemHolder, payload);
60 final int position = mItemHolders.indexOf(itemHolder);
203 public ItemAdapter addItem(int position, @NonNull T itemHolder) { in addItem() argument
204 itemHolder.addOnItemChangedListener(mItemChangedNotifier); in addItem()
206 mItemHolders.add(position, itemHolder); in addItem()
219 public ItemAdapter removeItem(@NonNull T itemHolder) { in removeItem() argument
[all …]
DAlarmClockFragment.java281 final AlarmItemHolder itemHolder = in onLoadFinished() local
283 itemHolders.add(itemHolder); in onLoadFinished()
415 public void removeItem(AlarmItemHolder itemHolder) { in removeItem() argument
416 mItemAdapter.removeItem(itemHolder); in removeItem()
DAlarmClockFragment.kt248 val itemHolder = AlarmItemHolder(alarm, alarmInstance, mAlarmTimeClickHandler) in onLoadFinished() constant
249 itemHolders.add(itemHolder) in onLoadFinished()
370 fun removeItem(itemHolder: AlarmItemHolder) { in removeItem()
371 mItemAdapter.removeItem(itemHolder) in removeItem()
/packages/apps/DeskClock/src/com/android/deskclock/ringtone/
DRingtoneViewHolder.kt48 override fun onBindItemView(itemHolder: RingtoneHolder) { in onBindItemView()
49 mNameView.text = itemHolder.name in onBindItemView()
50 val opaque = itemHolder.isSelected || !itemHolder.hasPermissions() in onBindItemView()
57 if (!itemHolder.hasPermissions()) { in onBindItemView()
65 } else if (itemHolder.item == Utils.RINGTONE_SILENT) { in onBindItemView()
67 } else if (itemHolder.isPlaying) { in onBindItemView()
74 mSelectedView.visibility = if (itemHolder.isSelected) View.VISIBLE else View.GONE in onBindItemView()
76 val bgColorId = if (itemHolder.isSelected) R.color.white_08p else R.color.transparent in onBindItemView()
85 if (itemHolder.hasPermissions()) { in onClick()
DRingtoneViewHolder.java63 protected void onBindItemView(RingtoneHolder itemHolder) { in onBindItemView() argument
64 mNameView.setText(itemHolder.getName()); in onBindItemView()
65 final boolean opaque = itemHolder.isSelected() || !itemHolder.hasPermissions(); in onBindItemView()
72 if (!itemHolder.hasPermissions()) { in onBindItemView()
80 } else if (itemHolder.item == Utils.RINGTONE_SILENT) { in onBindItemView()
82 } else if (itemHolder.isPlaying()) { in onBindItemView()
89 mSelectedView.setVisibility(itemHolder.isSelected() ? VISIBLE : GONE); in onBindItemView()
91 final int bgColorId = itemHolder.isSelected() ? R.color.white_08p : R.color.transparent; in onBindItemView()
DRingtonePickerActivity.kt300 for (itemHolder in mRingtoneAdapter.items) { in <lambda>() method
301 if (itemHolder is RingtoneHolder) { in <lambda>()
302 if (itemHolder.uri == uri) { in <lambda>()
303 return itemHolder in <lambda>()
428 val newSelection = viewHolder.itemHolder as RingtoneHolder in <lambda>()
448 (viewHolder.itemHolder as RingtoneHolder).uri, false) in <lambda>()
DHeaderViewHolder.kt32 override fun onBindItemView(itemHolder: HeaderHolder) { in onBindItemView()
33 mItemHeader.setText(itemHolder.textResId) in onBindItemView()
DHeaderViewHolder.java39 protected void onBindItemView(HeaderHolder itemHolder) { in onBindItemView() argument
40 mItemHeader.setText(itemHolder.getTextResId()); in onBindItemView()
DRingtonePickerActivity.java365 for (ItemAdapter.ItemHolder<Uri> itemHolder : mRingtoneAdapter.getItems()) { in getRingtoneHolder()
366 if (itemHolder instanceof RingtoneHolder) { in getRingtoneHolder()
367 final RingtoneHolder ringtoneHolder = (RingtoneHolder) itemHolder; in getRingtoneHolder()
/packages/apps/DeskClock/src/com/android/deskclock/alarms/dataadapter/
DCollapsedAlarmViewHolder.kt54 itemHolder.expand() in <lambda>()
58 itemHolder.expand() in <lambda>()
62 itemHolder.expand() in <lambda>()
66 itemHolder.alarmTimeClickHandler.onClockClicked(itemHolder.item) in <lambda>()
68 itemHolder.expand() in <lambda>()
74 override fun onBindItemView(itemHolder: AlarmItemHolder) { in <lambda>()
75 super.onBindItemView(itemHolder) in <lambda>()
76 val alarm = itemHolder.item in <lambda>()
77 val alarmInstance = itemHolder.alarmInstance in <lambda>()
DExpandedAlarmViewHolder.kt98 itemHolder.collapse() in <lambda>()
102 itemHolder.collapse() in <lambda>()
106 alarmTimeClickHandler.onClockClicked(itemHolder.item) in <lambda>()
110 alarmTimeClickHandler.onEditLabelClicked(itemHolder.item) in <lambda>()
114 alarmTimeClickHandler.setAlarmVibrationEnabled(itemHolder.item, in <lambda>()
119 alarmTimeClickHandler.onRingtoneClicked(context, itemHolder.item) in <lambda>()
123 alarmTimeClickHandler.onDeleteClicked(itemHolder) in <lambda>()
129 alarmTimeClickHandler.setAlarmRepeatEnabled(itemHolder.item, checked) in <lambda>()
130 itemHolder.notifyItemChanged(ANIMATE_REPEAT_DAYS) in <lambda>()
136 alarmTimeClickHandler.setDayOfWeekEnabled(itemHolder!!.item, isChecked, i) in <lambda>()
[all …]
DAlarmItemViewHolder.kt47 val alarmInstance = itemHolder.alarmInstance in <lambda>()
49 itemHolder.alarmTimeClickHandler.dismissAlarmInstance(alarmInstance) in <lambda>()
53 itemHolder.alarmTimeClickHandler.setAlarmEnabled(itemHolder.item, checked) in <lambda>()
57 override fun onBindItemView(itemHolder: AlarmItemHolder) { in <lambda>()
58 val alarm = itemHolder.item in <lambda>()
DCollapsedAlarmViewHolder.java99 protected void onBindItemView(AlarmItemHolder itemHolder) { in onBindItemView() argument
100 super.onBindItemView(itemHolder); in onBindItemView()
101 final Alarm alarm = itemHolder.item; in onBindItemView()
102 final AlarmInstance alarmInstance = itemHolder.getAlarmInstance(); in onBindItemView()
DAlarmItemViewHolder.java84 protected void onBindItemView(final AlarmItemHolder itemHolder) { in onBindItemView() argument
85 final Alarm alarm = itemHolder.item; in onBindItemView()
DExpandedAlarmViewHolder.java192 protected void onBindItemView(final AlarmItemHolder itemHolder) { in onBindItemView() argument
193 super.onBindItemView(itemHolder); in onBindItemView()
195 final Alarm alarm = itemHolder.item; in onBindItemView()
196 final AlarmInstance alarmInstance = itemHolder.getAlarmInstance(); in onBindItemView()
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DAlarmTimeClickHandler.kt141 fun onDeleteClicked(itemHolder: AlarmItemHolder) { in onDeleteClicked()
143 (mFragment as AlarmClockFragment).removeItem(itemHolder) in onDeleteClicked()
145 val alarm = itemHolder.item in onDeleteClicked()
DAlarmTimeClickHandler.java148 public void onDeleteClicked(AlarmItemHolder itemHolder) { in onDeleteClicked() argument
150 ((AlarmClockFragment) mFragment).removeItem(itemHolder); in onDeleteClicked()
152 final Alarm alarm = itemHolder.item; in onDeleteClicked()