HomeSort by relevance Sort by last modified time
    Searched refs:Alarm (Results 1 - 25 of 69) sorted by null

1 2 3

  /packages/apps/DeskClock/src/com/android/deskclock/widget/selector/
AlarmSelection.java 18 import com.android.deskclock.provider.Alarm;
22 private final Alarm mAlarm;
26 * id corresponds to the Alarm id
28 public AlarmSelection(String label, Alarm alarm) {
30 mAlarm = alarm;
37 public Alarm getAlarm() {
  /packages/apps/Launcher3/src/com/android/launcher3/
OnAlarmListener.java 4 public void onAlarm(Alarm alarm);
SpringLoadedDragController.java 25 Alarm mAlarm;
33 mAlarm = new Alarm();
41 // Set a new alarm to expire for the screen that we are hovering over now
50 public void onAlarm(Alarm alarm) {
Alarm.java 21 public class Alarm implements Runnable{
22 // if we reach this time and the alarm hasn't been cancelled, call the listener
33 public Alarm() {
41 // Sets the alarm to go off in a certain number of milliseconds. If the alarm is already set,
42 // it's overwritten and only the new alarm setting is used
  /frameworks/base/tests/utils/SleepUtils/AlarmService/src/com/android/testing/alarmservice/
Alarm.aidl 19 interface Alarm {
  /developers/build/prebuilts/gradle/DirectBoot/Application/src/main/java/com/example/android/directboot/alarms/
Alarm.java 30 * Class represents a single alarm.
32 public class Alarm implements Comparable<Alarm>, Parcelable {
41 public Alarm() {}
43 protected Alarm(Parcel in) {
51 public static final Creator<Alarm> CREATOR = new Creator<Alarm>() {
53 public Alarm createFromParcel(Parcel in) {
54 return new Alarm(in);
58 public Alarm[] newArray(int size)
103 Alarm alarm = new Alarm(); local
137 Alarm alarm = (Alarm) o; local
    [all...]
AlarmStorage.java 60 * Stores an alarm in the SharedPreferences.
64 * @param hour the integer as 24-hour format the alarm goes off
65 * @param minute the integer of the minute the alarm goes off
66 * @return the saved {@link Alarm} instance
68 public Alarm saveAlarm(int month, int date, int hour, int minute) {
69 Alarm alarm = new Alarm(); local
71 alarm.id = SECURE_RANDOM.nextInt();
72 alarm.month = month
105 Alarm alarm = Alarm.fromJson(entry.getValue().toString()); local
    [all...]
AlarmAdapter.java 45 private SortedList<Alarm> mAlarmList;
52 public AlarmAdapter(Context context, Set<Alarm> alarms) {
53 mAlarmList = new SortedList<>(Alarm.class, new SortedListCallback());
71 Alarm alarm = mAlarmList.get(position); local
73 alarmTime.set(Calendar.MONTH, alarm.month);
74 alarmTime.set(Calendar.DATE, alarm.date);
75 alarmTime.set(Calendar.HOUR_OF_DAY, alarm.hour);
76 alarmTime.set(Calendar.MINUTE, alarm.minute);
84 Alarm toBeDeleted = mAlarmList.get(position)
    [all...]
  /developers/samples/android/security/DirectBoot/Application/src/main/java/com/example/android/directboot/alarms/
Alarm.java 30 * Class represents a single alarm.
32 public class Alarm implements Comparable<Alarm>, Parcelable {
41 public Alarm() {}
43 protected Alarm(Parcel in) {
51 public static final Creator<Alarm> CREATOR = new Creator<Alarm>() {
53 public Alarm createFromParcel(Parcel in) {
54 return new Alarm(in);
58 public Alarm[] newArray(int size)
103 Alarm alarm = new Alarm(); local
137 Alarm alarm = (Alarm) o; local
    [all...]
AlarmStorage.java 60 * Stores an alarm in the SharedPreferences.
64 * @param hour the integer as 24-hour format the alarm goes off
65 * @param minute the integer of the minute the alarm goes off
66 * @return the saved {@link Alarm} instance
68 public Alarm saveAlarm(int month, int date, int hour, int minute) {
69 Alarm alarm = new Alarm(); local
71 alarm.id = SECURE_RANDOM.nextInt();
72 alarm.month = month
105 Alarm alarm = Alarm.fromJson(entry.getValue().toString()); local
    [all...]
AlarmAdapter.java 45 private SortedList<Alarm> mAlarmList;
52 public AlarmAdapter(Context context, Set<Alarm> alarms) {
53 mAlarmList = new SortedList<>(Alarm.class, new SortedListCallback());
71 Alarm alarm = mAlarmList.get(position); local
73 alarmTime.set(Calendar.MONTH, alarm.month);
74 alarmTime.set(Calendar.DATE, alarm.date);
75 alarmTime.set(Calendar.HOUR_OF_DAY, alarm.hour);
76 alarmTime.set(Calendar.MINUTE, alarm.minute);
84 Alarm toBeDeleted = mAlarmList.get(position)
    [all...]
  /development/samples/browseable/DirectBoot/src/com.example.android.directboot/alarms/
Alarm.java 30 * Class represents a single alarm.
32 public class Alarm implements Comparable<Alarm>, Parcelable {
41 public Alarm() {}
43 protected Alarm(Parcel in) {
51 public static final Creator<Alarm> CREATOR = new Creator<Alarm>() {
53 public Alarm createFromParcel(Parcel in) {
54 return new Alarm(in);
58 public Alarm[] newArray(int size)
103 Alarm alarm = new Alarm(); local
137 Alarm alarm = (Alarm) o; local
    [all...]
AlarmStorage.java 60 * Stores an alarm in the SharedPreferences.
64 * @param hour the integer as 24-hour format the alarm goes off
65 * @param minute the integer of the minute the alarm goes off
66 * @return the saved {@link Alarm} instance
68 public Alarm saveAlarm(int month, int date, int hour, int minute) {
69 Alarm alarm = new Alarm(); local
71 alarm.id = SECURE_RANDOM.nextInt();
72 alarm.month = month
105 Alarm alarm = Alarm.fromJson(entry.getValue().toString()); local
    [all...]
AlarmAdapter.java 45 private SortedList<Alarm> mAlarmList;
52 public AlarmAdapter(Context context, Set<Alarm> alarms) {
53 mAlarmList = new SortedList<>(Alarm.class, new SortedListCallback());
71 Alarm alarm = mAlarmList.get(position); local
73 alarmTime.set(Calendar.MONTH, alarm.month);
74 alarmTime.set(Calendar.DATE, alarm.date);
75 alarmTime.set(Calendar.HOUR_OF_DAY, alarm.hour);
76 alarmTime.set(Calendar.MINUTE, alarm.minute);
84 Alarm toBeDeleted = mAlarmList.get(position)
    [all...]
  /packages/apps/Launcher2/src/com/android/launcher2/
Alarm.java 21 public class Alarm implements Runnable{
22 // if we reach this time and the alarm hasn't been cancelled, call the listener
33 public Alarm() {
41 // Sets the alarm to go off in a certain number of milliseconds. If the alarm is already set,
42 // it's overwritten and only the new alarm setting is used
83 public void onAlarm(Alarm alarm);
SpringLoadedDragController.java 25 Alarm mAlarm;
33 mAlarm = new Alarm();
41 // Set a new alarm to expire for the screen that we are hovering over now
50 public void onAlarm(Alarm alarm) {
  /frameworks/base/tests/utils/SleepUtils/AlarmService/
Android.mk 23 src/com/android/testing/alarmservice/Alarm.aidl
  /frameworks/base/tests/utils/SleepUtils/SleepHelper/
Android.mk 25 ../AlarmService/src/com/android/testing/alarmservice/Alarm.aidl
  /packages/apps/DeskClock/src/com/android/deskclock/provider/
Alarm.java 38 public final class Alarm implements Parcelable, ClockContract.AlarmsColumns {
112 public static ContentValues createContentValues(Alarm alarm) {
114 if (alarm.id != INVALID_ID) {
115 values.put(ClockContract.AlarmsColumns._ID, alarm.id);
118 values.put(ENABLED, alarm.enabled ? 1 : 0);
119 values.put(HOUR, alarm.hour);
120 values.put(MINUTES, alarm.minutes);
121 values.put(DAYS_OF_WEEK, alarm.daysOfWeek.getBitSet());
122 values.put(VIBRATE, alarm.vibrate ? 1 : 0)
    [all...]
  /packages/apps/DeskClock/src/com/android/deskclock/
FetchMatchingAlarmsAction.java 27 import com.android.deskclock.provider.Alarm;
44 private final List<Alarm> mAlarms;
46 private final List<Alarm> mMatchingAlarms = new ArrayList<>();
49 public FetchMatchingAlarmsAction(Context context, List<Alarm> alarms, Intent intent,
96 for (Alarm alarm : mAlarms) {
97 if (alarm.hour == hour24 && alarm.minutes == minutes) {
98 mMatchingAlarms.add(alarm);
109 for (Alarm alarm : mAlarms)
    [all...]
AlarmSelectionActivity.java 29 import com.android.deskclock.provider.Alarm;
67 // PickSelection is started only if there are more than 1 relevant alarm
70 final Alarm alarm = (Alarm) parcelable; local
73 final String label = String.format("%d %02d", alarm.hour, alarm.minutes);
74 mSelections.add(new AlarmSelection(label, alarm));
85 final Alarm alarm = selection.getAlarm() local
    [all...]
  /packages/apps/DeskClock/src/com/android/deskclock/alarms/
AlarmTimeClickHandler.java 33 import com.android.deskclock.provider.Alarm;
39 * Click handler for an alarm time item.
50 private Alarm mSelectedAlarm;
68 public Alarm getSelectedAlarm() {
80 public void setAlarmEnabled(Alarm alarm, boolean newState) {
81 if (newState != alarm.enabled) {
82 alarm.enabled = newState;
83 mAlarmUpdateHandler.asyncUpdateAlarm(alarm, alarm.enabled, false)
    [all...]
AlarmUpdateHandler.java 30 import com.android.deskclock.provider.Alarm;
38 * API for asynchronously mutating a single alarm.
47 private Alarm mDeletedAlarm;
57 * Adds a new alarm on the background.
59 * @param alarm The alarm to be added.
61 public void asyncAddAlarm(final Alarm alarm) {
66 if (alarm != null) {
70 // Add alarm to d
    [all...]
  /external/valgrind/gdbserver_tests/
nlpasssigalrm.stdoutB.exp 4 SIGALRM Yes Yes Yes Alarm clock
6 Program received signal SIGALRM, Alarm clock.
9 SIGALRM No No Yes Alarm clock
  /packages/apps/DeskClock/src/com/android/deskclock/alarms/dataadapter/
AlarmTimeAdapter.java 32 import com.android.deskclock.provider.Alarm;
36 * Data adapter for alarm time items.
52 private long mExpandedId = Alarm.INVALID_ID;
64 mExpandedId = savedState.getLong(KEY_EXPANDED_ID, Alarm.INVALID_ID);
89 LogUtils.e(TAG, "Failed to bind alarm " + position);
92 final Alarm alarm = new Alarm(mCursor); local
93 final AlarmInstance alarmInstance = alarm.canPreemptivelyDismiss()
95 viewHolder.bindAlarm(mContext, alarm, alarmInstance)
    [all...]

Completed in 623 milliseconds

1 2 3