History log of /packages/apps/AlarmClock/src/com/android/alarmclock/AlarmClock.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
203b5aa2c07516cc64d722072edfd9e093e4988a 21-Oct-2009 Patrick Scott <phanna@android.com> Set the clock visibility after rotating the screen.
/packages/apps/AlarmClock/src/com/android/alarmclock/AlarmClock.java
bcfaaa6b567b95df64499c2a2e3c15780438a2dc 09-Oct-2009 Patrick Scott <phanna@android.com> Post a runnable during configuration changes to avoid an ANR.

Doing a relayout of the screen causes a lot of things to happen. One of which is
the analog clock registers a broadcast receiver.

Do a little cleanup as well.
/packages/apps/AlarmClock/src/com/android/alarmclock/AlarmClock.java
cf7307401797b159ca32f85e7cf38d18cececd0d 15-Sep-2009 Patrick Scott <phanna@android.com> Prevent leaking windows by listening for config changes.

Remove the old database sanity check as it will not happen. Remove the strings
associated with the db error as well. Update the layout of the AlarmClock
activity during configuration changes so that the activity is no longer
destroyed and leaking the delete alert.
/packages/apps/AlarmClock/src/com/android/alarmclock/AlarmClock.java
d776e51cec79901a0d656bba7b1f3780cceac57d 26-Jun-2009 Patrick Scott <phanna@android.com> Huge rewrite of the AlarmClock to play the Alarm in a service.

The AlarmKlaxon has been converted to a service that plays the alarm and
vibrates the device. The AlarmAlert now just shows the UI for the alarm and
allows the user to snooze or dismiss the alarm. The snooze button must be
pressed in order to snooze the alarm. Volume and Camera buttons dismiss the
alarm while other buttons have their original behavior.

Each alarm triggers a notification that the alarm has fired. This allows another
activity (say, the Calendar alert #1908616) to play on top of the AlarmAlert.
The AlarmKlaxon service will continue to play even though the alert has been
dismissed. The user can get back to the UI through the notification.

If the user snoozes the alarm, the notification reflects that choice (#1691034)
and allows the user to cancel the snooze by clicking the notification. The
snoozed alarm takes priority over any other alarm (#1693155) so that it will
play unless the notification is clicked.

The database interaction has also been rewritten to use a Parcelable Alarm class
for sending and receiving the alarm data in a much simpler manner. This allows
for fewer database lookups since each activity no longer has to lookup the alarm
info.

The alarm silenced text has been removed from the AlarmAlert UI and moved to the
notification area. When an alarm is killed, the alert is dismissed and the
notification reflects the state. Clicking the notification launches the SetAlarm
activity so the user can see which alarm was killed.
/packages/apps/AlarmClock/src/com/android/alarmclock/AlarmClock.java
f47699dd4704917713004099b5e3609be48653c4 13-May-2009 Patrick Scott <phanna@android.com> Rework the AlarmAlert dialog layout.

Make the layout portrait only to make it more uniform and nicer looking. Update
all the clock layouts to have the same size. The alert will have a larger clock
than the AlarmClock screen.

Remove the old hack to make the alert a dialog.

Inflate the views with a root so the layout params will be fill_parent. Use the
animate_circle resource in setBackgroundResource to clean up the code.

Add a new AlarmAlertFullScreen activity which makes the alert fullscreen with
the current wallpaper as the background. Query the keyguard manager during the
alarm broadcast to decide which activity to launch. The regular alert activity
shows above the current activity but the fullscreen activity will not show the
previous activity for security reasons.

Add the alarm_alert style that mimics the Theme.Dialog.Alert style but does not
rely on a private resource. Add dialog.9.png for the same reason.

Add a LinearLayout surrounding the alert layout to hold the background
wallpaper.
/packages/apps/AlarmClock/src/com/android/alarmclock/AlarmClock.java
1ae3822f9942bd40950d25ee38afc4b0fd92befb 23-Apr-2009 Jean-Baptiste Queru <jbq@google.com> Merge donut into master
eb142ac59aa8039c409b5fe4f50a130f16960d41 16-Apr-2009 Eric Fischer <enf@google.com> Don't maintain separate translations in Alarm Clock for days of the week.

Use DateFormatSymbols instead to get the strings for the names of the
days the week and for "AM" and "PM".
/packages/apps/AlarmClock/src/com/android/alarmclock/AlarmClock.java
0dffdefe54299ee01b45574244c92d3a06507b87 14-Apr-2009 Patrick Scott <phanna@android.com> Extend the ListView selection behind the checkbox.

Extend the selection behind the checkbox and change the behavior of selecting an
alarm item. Long pressing the item now brings up a context menu that can enable
or disable the alarm in addition to deleting the alarm.

The context menu header now contains the label of the alarm if it exists and
it mimics the standard dialog header view.

Updated some of the layout code to ensure that the default three Alarms do not
show a scrollbar.

BUG=1438269
/packages/apps/AlarmClock/src/com/android/alarmclock/AlarmClock.java
5d6f5fa51fa7fd13784a73199161deabec5bc898 06-Apr-2009 Patrick Scott <> AI 144629: Updated UI for alarm labels. Draw the label underneath the repeat days.
Use a slightly larger font than the repeat string. Also use bold and
italics to distinguish the label.
To avoid further clunkiness, do not draw the default label except in the
alert dialog.
BUG=1716467

Automated import of CL 144629
/packages/apps/AlarmClock/src/com/android/alarmclock/AlarmClock.java
06522bf515aa117255e1e1d7ad0d6ae56a55ebfc 25-Mar-2009 Patrick Scott <> Automated import from //branches/master/...@141978,141978
/packages/apps/AlarmClock/src/com/android/alarmclock/AlarmClock.java
d58247b4d07d8c84b2f5dfd85667201f111e35d5 25-Mar-2009 Patrick Scott <> Automated import from //branches/donutburger/...@141976,141976
/packages/apps/AlarmClock/src/com/android/alarmclock/AlarmClock.java
13e902189e05f09a890b9d6673a6f451c758542a 25-Mar-2009 Jason Parekh <> Automated import from //branches/master/...@140509,140509
/packages/apps/AlarmClock/src/com/android/alarmclock/AlarmClock.java
57c4e8b2ef600f89caafb0520b44b06fc73ab845 25-Mar-2009 Jason Parekh <> Automated import from //branches/donutburger/...@140507,140507
/packages/apps/AlarmClock/src/com/android/alarmclock/AlarmClock.java
185d17974729a98cf48a71ab9f16adaab9d1e1e0 05-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@136594
/packages/apps/AlarmClock/src/com/android/alarmclock/AlarmClock.java
5fedae0fb8cc29db88719329d52bdd62aad14277 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/packages/apps/AlarmClock/src/com/android/alarmclock/AlarmClock.java
8d7704fad6d9e52865b1789948e20e2f8b200823 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/packages/apps/AlarmClock/src/com/android/alarmclock/AlarmClock.java
e9789453c908325d931c04dd6183a3b393187615 11-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@130745
/packages/apps/AlarmClock/src/com/android/alarmclock/AlarmClock.java
10aba5b72f92f925bdb56cc717489e2825587cd5 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
/packages/apps/AlarmClock/src/com/android/alarmclock/AlarmClock.java
291e1a50b41a6ae47eddb1713dc99d22f96d0c9f 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/packages/apps/AlarmClock/src/com/android/alarmclock/AlarmClock.java