Home
last modified time | relevance | path

Searched refs:itemHolder (Results 1 – 9 of 9) 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()
/packages/apps/DeskClock/src/com/android/deskclock/ringtone/
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()
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.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()
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()
DAlarmItemViewHolder.java84 protected void onBindItemView(final AlarmItemHolder itemHolder) { in onBindItemView() argument
85 final Alarm alarm = itemHolder.item; in onBindItemView()
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
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()