History log of /packages/apps/DeskClock/src/com/android/deskclock/Alarms.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
99ae7660f1e5e4645c889e78e26d44de20a7caf3 13-Sep-2011 Andy McFadden <fadden@android.com> Make sure cursors close

Rearrange try/finally.

Bug 5279462

Change-Id: I44d8570b94e9780c78d93c131d88227a04659ddc
/packages/apps/DeskClock/src/com/android/deskclock/Alarms.java
8304c6e63ee1ff86208bac6f79285905027e95e8 25-Aug-2011 Paul Westbrook <pwestbro@google.com> Fix dropped alarm when snoozing second

When calculating the next alarm event, make sure to take into
account the snoozed previous alarms with the upcoming alarms.

But, now that we allow for another alarm to happen while a previous
one was snoozed, we need to allow for multiple snoozed alarms.

Once we allow for multiple snoozed alarms, we need to be able to allow
for each to be canceled individually.

Bug: 4769415
Change-Id: Icc825a8d892e7b9f53e21499a7af2322b8acbe77
/packages/apps/DeskClock/src/com/android/deskclock/Alarms.java
77f14bd0ce48db935911da5d0a92b6348e6197fb 15-Dec-2010 Patrick Scott <phanna@android.com> Implement EXTRA_SKIP_UI.

Change SetAlarm to take an alarm object instead of just the id. Have
HandleSetAlarm pass the new Alarm object to the activity if EXTRA_SKIP_UI is
false.

Update TestAddAlarm to toggle the UI.

Bumped version number.

Bug: 3284120
Change-Id: Ie84ac8e3d7a63bfd64e40c626e577ce8b1f371b9
/packages/apps/DeskClock/src/com/android/deskclock/Alarms.java
501a153616bd44880b587447788990d83f433a8f 04-Nov-2010 Patrick Scott <phanna@android.com> Use time instead of alarm.time for non-repeating alarms.

Bug: 3155418
Change-Id: I66730a801b7d74da0c0f1af8d1855539146487a9
/packages/apps/DeskClock/src/com/android/deskclock/Alarms.java
bababb66c17c665d374313da47e2f3734adec83a 21-Oct-2010 Patrick Scott <phanna@android.com> Fix 24 hour display on the lock screen.

Bug: 3120148
Change-Id: I072b64499df3d8f55fadad1746df95dffc73ecdc
/packages/apps/DeskClock/src/com/android/deskclock/Alarms.java
c6098ef1fc69fe117343cc2e3db0d2b97b2daa6f 28-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> SharedPreferences commit -> apply.

Change-Id: I3c54bcd78ed74107840254a9861dc68f9bec3cc8
/packages/apps/DeskClock/src/com/android/deskclock/Alarms.java
aaeb8a227c7ea4ae124403b46cb4f673834f5536 27-Sep-2010 Patrick Scott <phanna@android.com> Add logs to track missed alarms.

Turn on a few verbose logs to track a couple of cases where an alarm might be
skipped or cancelled. Add a Log.wtf when an alert cannot be parsed as this is
never supposed to happen.

If we are returning from the AlarmReceiver due to some error, make sure to set
the next alert.

Bug: 3004064
Change-Id: I6879317b233ccb0497a5ed7b8259925cd00cf8e8
/packages/apps/DeskClock/src/com/android/deskclock/Alarms.java
bb13b216f986fc75dbd82d38f2bd6b2fbeb08abd 10-Aug-2010 Patrick Scott <phanna@android.com> Check for -1 id before modifying alarms.

Bug: 2898729
Change-Id: I9f70ee40fbcebeae2028c19a3b355e5d1cc433d4
/packages/apps/DeskClock/src/com/android/deskclock/Alarms.java
6064d3f7aabcb073dc3f917e049bc04c67fb6b29 03-Mar-2010 Patrick Scott <phanna@android.com> Have "Revert" go back to the original state of the alarm.

Keep the original alarm state so that revert will reload the preferences from
the original state. Have all preferences immediately take effect. When adding a
new alarm, add the alarm if preferences change and then delete the alarm when
reverting.

Pop the set alarm toast only when changing the time or the enabled setting and
the result is that the alarm is enabled. Otherwise there can be a lot of toasts
showing while editing an alarm.
/packages/apps/DeskClock/src/com/android/deskclock/Alarms.java
a3aba0c93c31e89045cca669418e85acfb4e22fb 01-Mar-2010 David Ingram <davidi@google.com> Adds hooks to DeskClock so that other programs may kill or
snooze a ringing alarm, and also a broadcast intent to
inform interested parties when the alarm has been dismissed.

Change-Id: I491c3a24a6bac33025665c799c76a743010e9761
/packages/apps/DeskClock/src/com/android/deskclock/Alarms.java
232725e8c1b1b85a44857cedcc842dcd2c956dc2 17-Feb-2010 Patrick Scott <phanna@android.com> Disable the snooze if it matches the alarm that has been changed.

The user most likely wants the alarm to fire at the time they just set so
disable the snooze alert.

Bug: 2421068
/packages/apps/DeskClock/src/com/android/deskclock/Alarms.java
e46be904bd76dff5a13aeef12e9bfeddac7bbe81 27-Jan-2010 Patrick Scott <phanna@android.com> Moving alarm creation into SetAlarm.

This change allows the user to create a new alarm and then press "Revert"
without having already created the alarm.

Refactor a few methods to take an Alarm object rather than all the alarm fields.
The static method in AlarmClock to create a new alarm is no longer needed. Do
some cleanup in AlarmProvider around intial values.

Bug: 2338234
/packages/apps/DeskClock/src/com/android/deskclock/Alarms.java
fe8dd39ee5e173f15337d09c36aa453a55364e98 20-Jan-2010 Patrick Scott <phanna@android.com> Unbundle the DeskClock.

- Copy some framework resources into the app.
- Add a new layout to SetAlarm to avoid using an internal id to obtain the
content view.
- Use a string literal to identify the ALARM_CHANGED intent. This is not ideal
but is better than exposing the actual intent string for now.
/packages/apps/DeskClock/src/com/android/deskclock/Alarms.java
22924b6afee333e16fb62a19f1ac044c87c528b5 16-Dec-2009 Patrick Scott <phanna@android.com> Check for null alarms and dismiss the snooze if the alarm is disabled.

If the alarm that is currently active is deleted, disable snoozing the alarm.

Bug: 2322130
/packages/apps/DeskClock/src/com/android/deskclock/Alarms.java
c7edd6ea840e25cb04d090b6c29dc96c04d2be40 09-Nov-2009 Patrick Scott <phanna@android.com> Cancel the snooze if the user sets an alarm for before the snooze fires.

If the alarm is enabled, check the snooze time to see if it needs to be
cancelled. Remove the preference and notification if cancelled. Return the
calculated time from setAlarm to avoid another calculation.

Bug: 2139162
/packages/apps/DeskClock/src/com/android/deskclock/Alarms.java
a21b2db5541b0bf20582572e4f072137ff46c69f 28-Oct-2009 Patrick Scott <phanna@android.com> The snooze notification must be clicked to be cleared.

Change all the notifications to ongoing. This means they cannot be cleared
unless clicked. If the alarm is killed after 10 minutes, the notification is
changed to a vanilla notification and can be cleared with the "Clear All"
button.

This change will be merged to the MR2 branch of AlarmClock.

Bug: 2220016
/packages/apps/DeskClock/src/com/android/deskclock/Alarms.java
fa954248b41b567dfa2ddd7bd063d3936a51758e 16-Oct-2009 Daniel Sandler <dsandler@google.com> Moving things around a little in the new DeskClock.

- Package is now com.android.deskclock
- Launches in response to insertion in desk dock or
DESK dialercode

TODO next: split the AlarmClock activity into a DeskClock
and AlarmList (or similar).
/packages/apps/DeskClock/src/com/android/deskclock/Alarms.java