/packages/apps/DeskClock/src/com/android/deskclock/provider/ |
D | Alarm.java | 39 public final class Alarm implements Parcelable, ClockContract.AlarmsColumns { class 113 public static ContentValues createContentValues(Alarm alarm) { in createContentValues() 190 public static Alarm getAlarm(ContentResolver cr, long alarmId) { 193 return new Alarm(cursor); 206 public static Alarm getAlarm(ContentResolver cr, Uri contentUri) { 222 public static List<Alarm> getAlarms(ContentResolver cr, String selection, 224 final List<Alarm> result = new LinkedList<>(); 228 result.add(new Alarm(cursor)); 236 public static boolean isTomorrow(Alarm alarm, Calendar now) { 246 public static Alarm addAlarm(ContentResolver contentResolver, Alarm alarm) { [all …]
|
D | AlarmInstance.java | 329 mId = c.getLong(Alarm.INSTANCE_ID_INDEX); in AlarmInstance() 330 mYear = c.getInt(Alarm.INSTANCE_YEAR_INDEX); in AlarmInstance() 331 mMonth = c.getInt(Alarm.INSTANCE_MONTH_INDEX); in AlarmInstance() 332 mDay = c.getInt(Alarm.INSTANCE_DAY_INDEX); in AlarmInstance() 333 mHour = c.getInt(Alarm.INSTANCE_HOUR_INDEX); in AlarmInstance() 334 mMinute = c.getInt(Alarm.INSTANCE_MINUTE_INDEX); in AlarmInstance() 335 mLabel = c.getString(Alarm.INSTANCE_LABEL_INDEX); in AlarmInstance() 336 mVibrate = c.getInt(Alarm.INSTANCE_VIBRATE_INDEX) == 1; in AlarmInstance()
|
D | ClockDatabaseHelper.java | 163 final Alarm alarm = new Alarm(); in onUpgrade() 174 alarm.alert = Alarm.NO_RINGTONE_URI; in onUpgrade() 181 db.insert(ALARMS_TABLE_NAME, null, Alarm.createContentValues(alarm)); in onUpgrade()
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | FetchMatchingAlarmsAction.java | 28 import com.android.deskclock.provider.Alarm; 45 private final List<Alarm> mAlarms; 47 private final List<Alarm> mMatchingAlarms = new ArrayList<>(); 50 public FetchMatchingAlarmsAction(Context context, List<Alarm> alarms, Intent intent, in FetchMatchingAlarmsAction() 94 for (Alarm alarm : mAlarms) { in run() 107 for (Alarm alarm : mAlarms) { in run() 129 final List<Alarm> alarmsFiringAtSameTime = getAlarmsByHourMinutes( in run() 147 for (Alarm alarm : mAlarms) { in run() 162 private List<Alarm> getAlarmsByHourMinutes(int hour24, int minutes, ContentResolver cr) { 165 Alarm.HOUR, Alarm.MINUTES, Alarm.ENABLED); [all …]
|
D | HandleApiCalls.java | 38 import com.android.deskclock.provider.Alarm; 126 public static void dismissAlarm(Alarm alarm, Activity activity) { in dismissAlarm() 183 final List<Alarm> alarms = getEnabledAlarms(mContext); in doInBackground() 192 for (Iterator<Alarm> i = alarms.iterator(); i.hasNext();) { in doInBackground() 218 final List<Alarm> matchingAlarms = fmaa.getMatchingAlarms(); in doInBackground() 235 for (Alarm alarm : matchingAlarms) { in doInBackground() 242 private static List<Alarm> getEnabledAlarms(Context context) { in getEnabledAlarms() 243 final String selection = String.format("%s=?", Alarm.ENABLED); in getEnabledAlarms() 245 return Alarm.getAlarms(context.getContentResolver(), selection, args); in getEnabledAlarms() 334 final Intent createAlarm = Alarm.createIntent(this, DeskClock.class, Alarm.INVALID_ID) in handleSetAlarm() [all …]
|
D | AlarmClockFragment.java | 45 import com.android.deskclock.provider.Alarm; 84 private long mScrollToAlarmId = Alarm.INVALID_ID; 85 private long mExpandedAlarmId = Alarm.INVALID_ID; 107 mExpandedAlarmId = savedState.getLong(KEY_EXPANDED_ID, Alarm.INVALID_ID); in onCreate() 164 mExpandedAlarmId = Alarm.INVALID_ID; in onCreateView() 219 long alarmId = intent.getLongExtra(SCROLL_TO_ALARM_INTENT_EXTRA, Alarm.INVALID_ID); in onResume() 220 if (alarmId != Alarm.INVALID_ID) { in onResume() 264 public void setLabel(Alarm alarm, String label) { in setLabel() 271 return Alarm.getAlarmsCursorLoader(getActivity()); in onCreateLoader() 278 final Alarm alarm = new Alarm(data); in onLoadFinished() [all …]
|
D | AlarmSelectionActivity.java | 28 import com.android.deskclock.provider.Alarm; 80 final Alarm alarm = (Alarm) parcelable; in onCreate() 95 final Alarm alarm = selection.getAlarm(); in onListItemClick() 104 private final Alarm mAlarm; 108 public ProcessAlarmActionAsync(Alarm alarm, Activity activity, int action) { in ProcessAlarmActionAsync()
|
D | DeskClockBackupAgent.java | 33 import com.android.deskclock.provider.Alarm; 119 final List<Alarm> alarms = Alarm.getAlarms(contentResolver, null); in processRestoredData() 122 for (Alarm alarm : alarms) { in processRestoredData()
|
D | LabelDialogFragment.java | 43 import com.android.deskclock.provider.Alarm; 63 private Alarm mAlarm; 67 public static LabelDialogFragment newInstance(Alarm alarm, String label, String tag) { in newInstance() 197 void onDialogLabelSet(Alarm alarm, String label, String tag); in onDialogLabelSet()
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/ |
D | AlarmTimeClickHandler.java | 33 import com.android.deskclock.provider.Alarm; 53 private Alarm mSelectedAlarm; 70 public void setSelectedAlarm(Alarm selectedAlarm) { in setSelectedAlarm() 78 public void setAlarmEnabled(Alarm alarm, boolean newState) { in setAlarmEnabled() 88 public void setAlarmVibrationEnabled(Alarm alarm, boolean newState) { in setAlarmVibrationEnabled() 105 public void setAlarmRepeatEnabled(Alarm alarm, boolean isEnabled) { in setAlarmRepeatEnabled() 135 public void setDayOfWeekEnabled(Alarm alarm, boolean checked, int index) { in setDayOfWeekEnabled() 152 final Alarm alarm = itemHolder.item; in onDeleteClicked() 158 public void onClockClicked(Alarm alarm) { in onClockClicked() 172 public void onRingtoneClicked(Context context, Alarm alarm) { in onRingtoneClicked() [all …]
|
D | AlarmUpdateHandler.java | 30 import com.android.deskclock.provider.Alarm; 47 private Alarm mDeletedAlarm; 61 public void asyncAddAlarm(final Alarm alarm) { in asyncAddAlarm() 71 Alarm newAlarm = Alarm.addAlarm(cr, alarm); in asyncAddAlarm() 102 public void asyncUpdateAlarm(final Alarm alarm, final boolean popToast, in asyncUpdateAlarm() 111 Alarm.updateAlarm(cr, alarm); in asyncUpdateAlarm() 156 public void asyncDeleteAlarm(final Alarm alarm) { in asyncDeleteAlarm() 166 return Alarm.deleteAlarm(mAppContext.getContentResolver(), alarm.id); in asyncDeleteAlarm() 201 final Alarm deletedAlarm = mDeletedAlarm; in showUndoBar() 214 private AlarmInstance setupAlarmInstance(Alarm alarm) { in setupAlarmInstance()
|
D | AlarmStateManager.java | 45 import com.android.deskclock.provider.Alarm; 264 Alarm alarm = Alarm.getAlarm(cr, instance.mAlarmId); in updateParentAlarm() 273 Alarm.deleteAlarm(cr, alarm.id); in updateParentAlarm() 277 Alarm.updateAlarm(cr, alarm); in updateParentAlarm() 657 final Alarm alarm = Alarm.getAlarm(cr, instance.mAlarmId); in registerInstance() 695 Alarm.updateAlarm(cr, alarm); in registerInstance() 808 final Alarm alarm = Alarm.getAlarm(contentResolver, instance.mAlarmId); in fixAlarmInstances() 954 long alarmId = instance.mAlarmId == null ? Alarm.INVALID_ID : instance.mAlarmId; in handleIntent() 955 final Intent viewAlarmIntent = Alarm.createIntent(context, DeskClock.class, alarmId) in handleIntent()
|
/packages/apps/DeskClock/src/com/android/deskclock/ringtone/ |
D | RingtonePickerActivity.java | 56 import com.android.deskclock.provider.Alarm; 133 public static Intent createAlarmRingtonePickerIntent(Context context, Alarm alarm) { in createAlarmRingtonePickerIntent() 234 new AsyncTask<Void, Void, Alarm>() { in onPause() 236 protected Alarm doInBackground(Void... parameters) { in onPause() 237 final Alarm alarm = Alarm.getAlarm(cr, mAlarmId); in onPause() 245 protected void onPostExecute(Alarm alarm) { in onPause() 615 final List<Alarm> alarms = Alarm.getAlarms(cr, null); in doInBackground() 616 for (Alarm alarm : alarms) { in doInBackground()
|
/packages/apps/DeskClock/src/com/android/deskclock/widget/selector/ |
D | AlarmSelection.java | 18 import com.android.deskclock.provider.Alarm; 22 private final Alarm mAlarm; 28 public AlarmSelection(String label, Alarm alarm) { in AlarmSelection() 37 public Alarm getAlarm() { in getAlarm()
|
D | AlarmSelectionAdapter.java | 30 import com.android.deskclock.provider.Alarm; 53 final Alarm alarm = selection.getAlarm(); in getView() 64 daysOfWeek = Alarm.isTomorrow(alarm, Calendar.getInstance()) ? in getView()
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/dataadapter/ |
D | AlarmItemViewHolder.java | 29 import com.android.deskclock.provider.Alarm; 85 final Alarm alarm = itemHolder.item; in onBindItemView() 92 protected void bindOnOffSwitch(Alarm alarm) { in bindOnOffSwitch() 98 protected void bindClock(Alarm alarm) { in bindClock() 103 protected boolean bindPreemptiveDismissButton(Context context, Alarm alarm, in bindPreemptiveDismissButton()
|
D | CollapsedAlarmViewHolder.java | 37 import com.android.deskclock.provider.Alarm; 101 final Alarm alarm = itemHolder.item; in onBindItemView() 110 private void bindReadOnlyLabel(Context context, Alarm alarm) { in bindReadOnlyLabel() 121 private void bindRepeatText(Context context, Alarm alarm) { in bindRepeatText() 136 private void bindUpcomingInstance(Context context, Alarm alarm) { in bindUpcomingInstance() 141 final String labelText = Alarm.isTomorrow(alarm, Calendar.getInstance()) ? in bindUpcomingInstance()
|
D | AlarmItemHolder.java | 23 import com.android.deskclock.provider.Alarm; 26 public class AlarmItemHolder extends ItemAdapter.ItemHolder<Alarm> { 33 public AlarmItemHolder(Alarm alarm, AlarmInstance alarmInstance, in AlarmItemHolder()
|
D | ExpandedAlarmViewHolder.java | 48 import com.android.deskclock.provider.Alarm; 195 final Alarm alarm = itemHolder.item; in onBindItemView() 205 private void bindRingtone(Context context, Alarm alarm) { in bindRingtone() 218 private void bindDaysOfWeekButtons(Alarm alarm, Context context) { in bindDaysOfWeekButtons() 240 private void bindEditLabel(Context context, Alarm alarm) { in bindEditLabel() 247 private void bindVibrator(Alarm alarm) { in bindVibrator()
|
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/ |
D | SpringLoadedDragController.java | 19 import com.android.launcher3.Alarm; 30 Alarm mAlarm; 38 mAlarm = new Alarm(); in SpringLoadedDragController() 55 public void onAlarm(Alarm alarm) { in onAlarm()
|
/packages/apps/Launcher3/src/com/android/launcher3/folder/ |
D | Folder.java | 49 import com.android.launcher3.Alarm; 132 private final Alarm mReorderAlarm = new Alarm(); 133 private final Alarm mOnExitAlarm = new Alarm(); 134 private final Alarm mOnScrollHintAlarm = new Alarm(); 135 @Thunk final Alarm mScrollPauseAlarm = new Alarm(); 696 public void onAlarm(Alarm alarm) { 774 public void onAlarm(Alarm alarm) { 1361 public void onAlarm(Alarm alarm) { 1392 public void onAlarm(Alarm alarm) {
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/ |
D | MotionPauseDetector.java | 22 import com.android.launcher3.Alarm; 49 private final Alarm mForcePauseTimeout; 82 mForcePauseTimeout = new Alarm(); in MotionPauseDetector()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | Alarm.java | 22 public class Alarm implements Runnable{ class 34 public Alarm() { in Alarm() method in Alarm
|
D | SecondaryDropTarget.java | 51 private final Alarm mCacheExpireAlarm; 61 mCacheExpireAlarm = new Alarm(); in SecondaryDropTarget() 89 public void onAlarm(Alarm alarm) { in onAlarm()
|
/packages/apps/DeskClock/src/com/android/deskclock/data/ |
D | AlarmModel.java | 27 import com.android.deskclock.provider.Alarm; 59 if (!Alarm.NO_RINGTONE_URI.equals(uri)) { in setDefaultAlarmRingtoneUri()
|