History log of /packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
7bcc2d8ce2951a8f5451e93a5192b7ae04564de0 18-Oct-2012 Sam Blitzstein <sblitz@google.com> Replace lights out mode with screensaver.

Removed the lights out code.
Added in explicit screensaver mode.
Also fixed bug related to timer labels on device rotation.

Bug: 7328141
Bug: 7339168
Change-Id: I7df3567888ee04ad9a335c34d51384bfaf24e6b3
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
feabb7a335fb8c7644783d2dca53b864009054d8 12-Oct-2012 Robyn Coultas <coultasr@android.com> Show TimerAlertFullScreen upon any timer expiry

Bug: 7333666
Change-Id: If4f3583e4963d75a88ba8a4967475dbde76a7868
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
0f6e3350fed144e3909ba4e45f3006f042c0187c 11-Oct-2012 Sam Blitzstein <sblitz@google.com> Adding ability to label timers.

Bug: 7203259
Bug: 7324818
Change-Id: I482f4500bfab29ec0ace9b661d72e79473c40f25
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
357497c341662c56945e22e458852f52a977efdf 09-Oct-2012 Sam Blitzstein <sblitz@google.com> Implemented lights out and dimming.

Bug: 7234512
Change-Id: I808d992bc58febc0d13d32e95531b6211d598792
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
421751e187dfa61bc1e48b52cdaf366628b06dd4 27-Sep-2012 Isaac Katzenelson <isaack@android.com> New world clock

Change-Id: I772726bc26db55e93c22b1add6fa4081f84b01a5
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
1ce69abc1f8bea2d7903f24ee32fec42cee83634 02-Oct-2012 Itzhak Katzenelson <isaack@android.com> Adding timer notifications.

Bug: 7255233
Change-Id: Id4d91a0e857d4553bd42a878a21c8a3e1bb9bf06
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
551a5c3b016d5f9273fb940c3849bc3560c2694a 30-Sep-2012 Itzhak Katzenelson <isaack@android.com> Set home time zone when app starts if it is not set.

Bug: 7258124
Change-Id: I23fafcd40e2e6992c05d6cf3a88f451e845d20dd
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
113e1daddd8cb0e890084aa4b6ea3194d8ad4826 26-Sep-2012 Sam Blitzstein <sblitz@google.com> Add notification for timer.

Change-Id: I22bec04942ab46fd7d446c2aaf27d29b07052df3
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
48a8e478723413bbc343a6429da821aa32f72844 25-Sep-2012 Yorke Lee <yorkelee@google.com> Add contentDescriptions for ActionBar Tabs

Bug: 7221285 Clock Application requires contentDescriptions on navigation bar
Change-Id: Ic8dd9b087ffa5456885bd6e0fcce641b9b4703b7
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
fc177987092f72f84f0833f80600d4bbf20d0b87 22-Sep-2012 Isaac Katzenelson <isaack@android.com> Fixes to help menu button

Bug: 7198428
Change-Id: If19d83b9919dc7a4070a0b15f6f497513c1eecfe
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
a80f15ded8c0be8bf2268bc4cf7b0ce125b07d1b 20-Sep-2012 Isaac Katzenelson <isaack@android.com> landscape layouts

Change-Id: I672b70fb9aef1862e45e44dd8ed89778c687af98
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
51eb2d54650a3600ce68e942f8a7fe37aa731f9e 20-Sep-2012 Isaac Katzenelson <isaack@android.com> Move to timer view when timer expires

Bug: 7203760
Change-Id: I85fadb7fc6b3ef7274676daf5c55ece7a913496e
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
6fc34de781d8fece646b16dc289bbf4c0b01fde4 20-Sep-2012 Isaac Katzenelson <isaack@android.com> Support for help menu item with smartlink

Bug: 7198428
Change-Id: I47a0078056dd6068749ca2539bf53db9ddaf4af8
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
63211efa1565b5dc171938740ba183302d0e46f3 14-Sep-2012 Isaac Katzenelson <isaack@android.com> Merge clock to JB-MR1

Change-Id: Ic2b550adb16f593a037939b2d1a2d4f60f4c5a5d
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
9a1fd04f15b653a6600629aee41c7d3fd7d843b3 03-Aug-2012 Daniel Sandler <dsandler@android.com> Improvements to the DeskClock dream.

- simplify layouts (removing a number of obsolete sw600
ones)
- add a clickable alarm button way down in the corner, to
let you see your alarm info

TODO: Add another little button for dim mode.

Change-Id: Ibc8e44a33c2a934e485277868c77356eb4250194
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
cf8041059a617485e2dbcaae92df01552e5a56f7 16-May-2012 Vikram Aggarwal <viki@google.com> Do not dim screen when adding alarms. Remove some dead code.

Fix b/6482646

Change-Id: Ieec599b9303ad0ad09dd9180b351bf73f6fc1f0b
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
dbf6de4e1955f5dec19acc9f8048485204ee094f 27-Apr-2012 Daniel Sandler <dsandler@android.com> Fix dimming when tapping 'Set alarm'

Bug: 6026411
Change-Id: Ieba1861c54f04a9604cbdf5278b5e574f16df3ea
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
7dd2d1f5fb1de58c8aef5bc102d21627924295cf 05-Mar-2012 Daniel Sandler <dsandler@android.com> Restore DeskClock's dock behavior.

(partial revert of change Ie9494136, functionality roughly
on-par with ics-mr1 now, plus bugfixes)

Change-Id: I65a5911e54266dff9b52c734e6dc782edcdec364
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
dfc7092060dcf2cb5e5f38e55d5c878027b93060 18-Jan-2012 Daniel Sandler <dsandler@android.com> Fix NPE when resuming.

Bug: 5868975
Change-Id: Ib5b312338af8591a6ae506080fe23a82213ef538
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
369c60f998c1802b778a76f7ded34ccd27df738c 24-Nov-2011 Michael Chan <mchan@android.com> am 191b91f4: Fixed the blank screen problem when hitting "Set alarm" in dim mode

* commit '191b91f419a0ed35104b3436615364b302cfbd67':
Fixed the blank screen problem when hitting "Set alarm" in dim mode
191b91f419a0ed35104b3436615364b302cfbd67 23-Nov-2011 Michael Chan <mchan@android.com> Fixed the blank screen problem when hitting "Set alarm" in dim mode

Bug: 5638835
Change-Id: I2b39abf713d3ad906d66058000aaa6c50fea51a4
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
7e77977037b89c775faa0a480c8ce70eb820dc20 18-Nov-2011 RoboErik <epastern@google.com> b/5308922 Keep dimmed/screen saver state on rotation

Change-Id: I68f640fffef65f6553a40cba030a5404315649dd
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
48df859acaa503c9449eab10df74664092420a6e 03-Nov-2011 Daniel Sandler <dsandler@android.com> Disable DeskClock's dock behavior.

This is now handled by Android Dreams (screensavers) via
SystemUI, which now responds to DESK_DOCK intents.

Bug: 3155234
Change-Id: Ie94941367ae7f473363e1c84be44248b7efc4044
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
927b49cc5b771a64b7159a80b490e4c8bc1bdcae 07-Oct-2011 Erik <epastern@google.com> b/5397609 Remove uneeded menu items from DeskClock screen

Remove 'Alarms' and 'Add alarm' menu items from the main clock
screen and also finish the alarms screen when launching the clock
screen.

Change-Id: I878477b755b84bc9d221a4582e1eccee8be01406
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
ec04d6516961bac094fbb2dade7925adecac6c80 12-Sep-2011 Erik <epastern@google.com> b/5245457 Make background toggle day/night/screensaver modes

Change-Id: I95a5589c302bdb9d0da0fa181ac378aa3e4adbb5
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
d5b02dee04b7011a2b6cb1086752c583dcc604e1 08-Sep-2011 Erik <epastern@google.com> b/5245408 Hide battery level indicator

Change-Id: I5524d1e6197d3f2ab5f97e48f1f39ed986c976f0
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
322abb8230ff8a3ac2b58cf95863b1f8e78a99af 01-Sep-2011 Erik <epastern@google.com> b/5243877 Update to screen saver colors and layout

Change color in screensaver mode and fix to layouts so
non-time views will be disappear when you change.

Change-Id: Id3e56e98a5b8e288e06b01e339316c470df3c94b
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
91d3f291efe9d090dd7fe003955d9da2dec18a74 30-Aug-2011 Erik <epastern@google.com> b/3155234 Launch/exit clock when docked/undocked

Also rips out all the unused weather code.

Change-Id: I16417ddc832a7a68d2859dbd357d39a48dbf65df
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
73327b39cf35c8f2f4e5ba1ac30c6fd41a99d10f 24-Aug-2011 Erik <epastern@google.com> b/5076132 Work on matching clock redlines

Also rips out a lot of now unused code.

Change-Id: Idd3f9dd0d3a1395897ea7c8b0926d09da5cb1794
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
e050c90109ba4a62b64240f93610a44f366ed8e7 08-Aug-2011 Attila Bodis <attila@google.com> b/4500544 Fix FC when accessing dock settings on devices that don't support it.

Change-Id: I7664ae22c6ecb327af744bdda6e7b0233bc2f829
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
1250ced34d1d7f644c907c820bd95495e598cd61 26-May-2011 Daniel Sandler <dsandler@google.com> Merge "Fix crash when N&W sends 0 for the weather icon resid."
e8073fd12b419ee98aa00f657a7a001c14768c8d 26-May-2011 Daniel Sandler <dsandler@google.com> Fix crash when N&W sends 0 for the weather icon resid.

Change-Id: I0167a8e6d72461b7ac3643b61bfcc5733ac92f33
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
c57490dff5bfbf601d4b708fdae029df99f807b2 05-May-2011 Daniel Sandler <dsandler@google.com> DeskClock dream (screensaver module).

Essentially a duplicate of the moving-clock screensaver
introduced with Nexus One, but in a convenient Dream
activity.

(depends on I4559a95 for android.dreams in support lib)

Change-Id: I01b3d431b6b80665b8a9a477e7d6ac6cd579d0f2
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
2c5f0979c70f8e16916766540ed4c96cdd127aac 21-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Allowing screen saver to be disabled on a per-build basis

Also, removing alarm info from the screen saver UI
in general.

Bug: 3369069
Change-Id: Ie1a7caa0c6a9b14bebf1f2b6b38dceeeeffef238
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
ee00759c00d94c50fed2eea0af7975b9d7fcbad4 19-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> New assets and labels

Change-Id: I8db8f0e37832fea4fb280b482dd88e86b0d7721d
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
7fc983026decebf7940b9512116bdbff015fadf0 16-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Holo layout for desk clock

Change-Id: Ib6b23097ae782dba0007ca91bfe8571f3245ef99
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
3b2b8e183116d4a66acf0ed1c7db917950dc36bc 26-Oct-2010 Daniel Sandler <dsandler@android.com> Keep screen on when on AC even if the battery stops charging.

Bug: 3126403
Change-Id: Ie2316202ffe8c86306c84fcea97d93d56f1aeda2
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
3a4bd4c68531b98db58626f60d0e9a7f5db54dc2 19-May-2010 Daniel Sandler <dsandler@android.com> Fix midnight date rollover in DeskClock screensaver.

Bug: 2692736
Change-Id: I36854393b273c383e63fbf771946da711d027d65
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
5d1b236620eec1456ca1e9a30085ce2ae27e984d 27-Apr-2010 Daniel Sandler <dsandler@android.com> Switch to explicitly managed cursors for weather query.

Previously, DeskClock used Activity.managedQuery, which
didn't exactly leak cursors, but it allowed them to
accumulate as long as the DeskClock Activity was running.
When used overnight as a bedside clock, the Activity can run
for a very long time without being paused.

Bug: 2627720
Change-Id: If4d53d3d6cba9dd96b41a3e25f4c8fad75339c42
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
9654c843a0b41beb94a5dc8151ab5aef8d262b3d 03-Dec-2009 Daniel Sandler <dsandler@android.com> Show a long dash instead of 0° if no temperature is available.

Bug: 2574118
Bug: 2301604 (original)
Change-Id: I36fba9248848325f48f6ab82dbd09dcc881cfcbf
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
3f5052618fc262c22b9e00137014329bcc660524 15-Mar-2010 Daniel Sandler <dsandler@android.com> Keep listening for dock event broadcasts when paused.

When the screen is off, the dock app is paused; if the
device is undocked in this state, there's a race to resume
the dock app & broadcast the UI mode change event. Fixed.

Bug: 2507444
Change-Id: I7416aed4f9def0b9458273f40fe27131412d23f0
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
2f2ce735ef658f4e2b72fe9b0352fad9279e636d 05-Mar-2010 Dianne Hackborn <hackbod@google.com> Update to use new dock broadcasts.
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
5a53e103af5f139608a9b607601a8cc6818bf324 22-Feb-2010 Jack Palevich <jackpal@google.com> Add missing close-paren to fix build break.
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
aa0d261b50d103dd718077b261dd0671d388266f 18-Feb-2010 Daniel Sandler <dsandler@google.com> Launch music player via new INTENT_ACTION_MUSIC_PLAYER.
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
08a201d49ff1e16fb2a1b52694cf9fb2fbe69e06 17-Feb-2010 Daniel Sandler <dsandler@google.com> Null check when launching Music.

Bug: 2449914
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
abc34112bd18bc0fc068ffa30ca07ae161bc9f0a 28-Jan-2010 Mike Lockwood <lockwood@android.com> Use ALLOW_LOCK_WHILE_SCREEN_ON window manager flag to allow lockscreen to activate while screen is on.

Change-Id: I302d65c51cd5b6bd495b24479a9c377e4bedf66d
Signed-off-by: Mike Lockwood <lockwood@android.com>
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.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/DeskClock.java
291a4130541885f34ddb2398ba6218596c3851c9 23-Jan-2010 Daniel Sandler <dsandler@google.com> resolved conflicts for merge of f22cedb7 to master
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/DeskClock.java
9fa4cc96ece43fdc6873fdafb8c8f6b3ea0cc1fd 20-Jan-2010 Daniel Sandler <dsandler@google.com> Add Dock Settings menu item to DeskClock.

Bug: 2367275
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
6e37178770f41ffcf8013e9460170140bcc6c130 10-Dec-2009 Daniel Sandler <dsandler@android.com> Re-schedule screen saver mode when returning to normal.

Fixes http://b/2317620
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
8457946f5f77a9a6af079c44c8d0792c17d0ef27 15-Jan-2010 Daniel Sandler <dsandler@google.com> Restore softkey illumination control.

Introduced in change I35b0967
but accidentally reverted in change Ic98ba511.
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
f7bd3f7d1f14090b9ddf4a3d7b33ef98ad73c8ae 14-Jan-2010 Daniel Sandler <dsandler@google.com> Several tweaks to DeskClock's dimming feature:

- Attentuate the background slightly more when in dim mode
- Implement http://b/2332431 (tapping anywhere will cause
the screen to un-dim)
- Fix http://b/2349550 (keep the screen dim underneath an
alarm dialog)
- When the trackball is operated, focus the alarms button
first (instead of the dim button)
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
889ca057eb9aa2a6cce0fff87e1e118926815c88 09-Jan-2010 Daniel Sandler <dsandler@google.com> am 60d04edf: am e7c9540b: Refresh date display at midnight.

Merge commit '60d04edf7496f3370cb848f696b268825b47295a'

* commit '60d04edf7496f3370cb848f696b268825b47295a':
Refresh date display at midnight.
e7c9540b179fdafb69cdc5e05a2d769f4be9463a 08-Jan-2010 Daniel Sandler <dsandler@google.com> Refresh date display at midnight.

Fixes http://b/2341789
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
f6e3c42ec2bfd7e3440393bd5a0d498a513574c5 10-Dec-2009 Daniel Sandler <dsandler@android.com> Listen for weather update notifications instead of polling.

DeskClock still periodically requests updated information
from the weather content provider (as recommended by the
Genie team) but does so on an hourly schedule rather than
every 5 minutes.

Also addresses http://b/2314820.
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
80ff42c1abf87a4e81cb422446412973b46a75bd 10-Dec-2009 Daniel Sandler <dsandler@android.com> Re-schedule screen saver mode when returning to normal.

Fixes http://b/2317620
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
e5b7da9308d17c4d6720c012950c7922779435f7 11-Dec-2009 Daniel Sandler <dsandler@google.com> am 3d4de660: Dismiss the desk clock if it was launched by docking.

Merge commit '3d4de660d654fee760cf96f609198489e4d6525d' into eclair-mr2

* commit '3d4de660d654fee760cf96f609198489e4d6525d':
Dismiss the desk clock if it was launched by docking.
3d4de660d654fee760cf96f609198489e4d6525d 11-Dec-2009 Daniel Sandler <dsandler@google.com> Dismiss the desk clock if it was launched by docking.

In other words: if the clock is behaving like a dock app
(launched by a dock event), it should finish() when the
device is removed from the dock. If, on the other hand,
it's behaving like a regular app (launched from the
Launcher), it should ignore an un-dock event.

This change also removes support for entering the desk dock
via a dialer code (an unnecessary feature since the app can
always be invoked from the Launcher).

Fixes http://b/2302215, approved by hiroshi.
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
7e827acae69298441b970262a309a957c92da155 03-Dec-2009 Daniel Sandler <dsandler@android.com> Show a long dash instead of 0° if no temperature is available. (DO NOT MERGE)

Fixes http://b/2301604
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
c1d449d071703d3c2b8c4d9961e812b4632b5c90 04-Dec-2009 Daniel Sandler <dsandler@google.com> Fix http://b/2305223 (DO NOT MERGE)

When placed into night mode (dim mode), the DeskClock must
restore full brightness any time the user returns to it from
another activity. There are two reasons for this:

1. The other activity won't be dim, so it's sort of jarring
to return to an almost-black screen.

2. As indicated in bug 2305223, visiting another activity is
a useful way to restore the display if it's so dark that
you can't see it to find the nightmode toggle button
(e.g., ambient lighting is very bright).
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
c98ba511cbc433951f787ca9e9bd4472c18e4ab8 04-Dec-2009 Daniel Sandler <dsandler@android.com> Fix http://b/2305223

When placed into night mode (dim mode), the DeskClock must
restore full brightness any time the user returns to it from
another activity. There are two reasons for this:

1. The other activity won't be dim, so it's sort of jarring
to return to an almost-black screen.

2. As indicated in bug 2305223, visiting another activity is
a useful way to restore the display if it's so dark that
you can't see it to find the nightmode toggle button
(e.g., ambient lighting is very bright).
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
1f385956ce5ae6dbe9ede0b0a4869eeff007041d 03-Dec-2009 Daniel Sandler <dsandler@android.com> Show a long dash instead of 0° if no temperature is available.

Fixes http://b/2301604
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
44c3bfe294da8063f817c80b1f311e101a220b09 02-Dec-2009 Daniel Sandler <dsandler@google.com> am a405d7d1: Merge change I0a8adab9 into eclair

Merge commit 'a405d7d18cbc7a572a9fbde729bb4182a07c830f' into eclair-mr2

* commit 'a405d7d18cbc7a572a9fbde729bb4182a07c830f':
Reduce screen saver delay to 5 min.
0a8adab905b45d7d7c6a4c467a4530440276bacd 01-Dec-2009 Daniel Sandler <dsandler@google.com> Reduce screen saver delay to 5 min.

Discussion in http://b/2282444 and http://b/2227579
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
15b30537faa4bdcefafbd1a6744911ad33684492 20-Nov-2009 Mike Lockwood <lockwood@android.com> Turn off button and keyboard backlights when dimming the screen.

Change-Id: I35b0967cc611bcca2694d9bc8dbfd887d5c6061b
Signed-off-by: Mike Lockwood <lockwood@android.com>
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
ddacabc24b515db4fa6c7a289ef81d8050c8062c 23-Nov-2009 Daniel Sandler <dsandler@google.com> Add "add alarm" menu to the DeskClock activity.

Rather than copying code from AlarmClock, there is now a
version of addNewAlarm() that can be invoked from any
activity. (AlarmClock now uses it, along with DeskClock.)

Part of bug http://b/2278197 .
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
b95b7a63c403a17c3725e1ccfbd65b4283fd6a0f 18-Nov-2009 Daniel Sandler <dsandler@google.com> Myriad fixes & cleanups in DeskClock.

- Force the weather widget to actually fetch new data at
the moment the device is docked, or when the screensaver
disappears (if the device is plugged in).
- Use Intent.FLAG_ACTIVITY_CLEAR_TOP to launch weather,
music, and gallery to avoid jumping into the middle of
their task stacks (http://b/2267831)
- Fix layout issues with weather, particularly when the
Genie widget is unavailable. (relates to
http://b/2254472)
- Internationalize the error message shown when Genie
malfunctions.
- Clean up weather & time displays to match UX specs more
closely (fonts, shadow crop issues).
- Remove some tabs in XML.
- Internal cleanup: use "query" in the name of functions &
variables related to getting updated weather from Genie;
use "fetch" to refer to downloading new weather data from
the network
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
2ff01ef636c8896455e6780fbe14cd0dca207969 13-Nov-2009 Daniel Sandler <dsandler@google.com> Fine-tuning the DeskClock UI.

Date format used is the new full_wday_month_day_no_year,
which should fix http://b/2254472 and http://b/2247356 .

Font sizes and colors tweaked to match latest spec.
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
8423a1772b340c02e07c066b646baeae18521fe7 12-Nov-2009 Daniel Sandler <dsandler@google.com> Fix http://b/2249983 .

Place the other activities in Clock in their own task
affinity and hide them from the recent apps list.

Additionally, launch other apps with the new task flag
(since we're behaving like a launcher).
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
0c4449d6fd421c916ebaf9657ff6ae5a21eed2e7 12-Nov-2009 Daniel Sandler <dsandler@google.com> Fix http://b/2235284 by putting the next alarm in the Clock screen saver mode.

TBR.
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
9463551d754302e158b80357d9c5c88517fe6e58 11-Nov-2009 Daniel Sandler <dsandler@google.com> Fix http://b/2232909 .

Rather than being fancy and firing off the NOW_PLAYING
activity (which doesn't like to be launched if nothing's
playing), we just launch the Music app as if it were
starting from Launcher.
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
ba328cd4a23a13732467ba5533a94ac3d7cbbf4e 11-Nov-2009 Daniel Sandler <dsandler@google.com> Use an alarm to refresh the date at midnight.

Fixes http://b/2251125 (we were detecting user-initiated
date changes but not the natural rolling of one day into the
next).
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
2f7c9edfb3f65e5defc7c24bd9348dc76d9e65a5 10-Nov-2009 Daniel Sandler <dsandler@google.com> Preserve dim status when pausing.

Fixes http://b/2251135 (snoozing an alarm leaves the clock
in painfully-bright mode).
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
4e8ad3a40141d05ced3279c6a0296b71ffc5117d 06-Nov-2009 Daniel Sandler <dsandler@google.com> More UI tweaks:

- Add an options menu to the main Clock activity.
(The only item is "Alarms" to switch to the Alarm
activity; no icon yet.)
- Now showing current temperature as well as high/low temps.
- Remove year from the displayed date.
- Tidy layouts.
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
daa1dd3eb9ebb69817babdb74b125dc63889eb45 06-Nov-2009 Daniel Sandler <dsandler@google.com> DeskClock UI fixes.

- darker shade on the user's background
- stop clipping the left-hand side of the time (was moving
it over to accommodate Clockopia's generous tracking, but
it's causing drawing issues)
- AM/PM now in Droid Sans
- calmer green in screen-saver mode
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
e64281b157842af93b793e8c9de3dd9a71825172 05-Nov-2009 Daniel Sandler <dsandler@google.com> Launch the Genie widget when the weather is tapped.

Fixes: http://b/2240161
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
1878e99c5ccd7bd2288707a431e0bb5d39879985 05-Nov-2009 Daniel Sandler <dsandler@google.com> Fix trackball focus issues on orientation change.

http://b/2232758
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
f8952fa79d0cc70e5a802fb2624701fbed0736b8 05-Nov-2009 Daniel Sandler <dsandler@google.com> Integrate final button artwork for DeskClock.
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
4dc051aa9b76d8dffbd2372740eff2735c654540 04-Nov-2009 Daniel Sandler <dsandler@google.com> Start Gallery in slideshow mode from DeskClock.
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
0a267d0f1c1e18e0f208b60a81bf2f73457a2c56 03-Nov-2009 Daniel Sandler <dsandler@google.com> More tweaks per spec.

- Synchronize screensaver jumping to the second
- Turn on the display when this app is launched (by docking
the device)
- Show DeskClock on top of the keyguard
- Use Math.round() to compute Fahrenheit (sync up with Genie
widget)
- Stop moving the screensaver while the display is off.
(http://b/2234698)
- Minor code cleanups.
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
e6cf24dbbea56d8b88a8d48bed9d3a6f26c2ddf0 02-Nov-2009 Daniel Sandler <dsandler@google.com> AlarmClock tweaks.

- No more layout jumps when switching between dim/undim
modes
- Now registers itself as the "dock home"---that is, it
hijacks the home softkey away from Launcher while the
device is docked
- Shows "on top" of the keyguard; all exits, however, will
return to the keyguard before completing
- Now uses the WindowManager to hold a wakelock when
necessary
- Tweaked weather display (bringing the weather icon size
under control)
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
91522cd49090f40e2e5b96c9b2e310b1adf1218a 30-Oct-2009 Daniel Sandler <dsandler@google.com> Completed weather support; new screen-saving mode.

Now pulls high and low temperatures, as well as an icon (in
the form of a drawable resource), from the Genie widget,
periodically. Known issues: artwork is mdpi and fuzzy (bug
in Genie).

Preliminary support for a new screen-saving mode (subject to
change) specifically for OLEDs with short B/R subpixel
lifetime. Text is drawn in green on a black background; the
text also randomly jumps around the screen. Any user input
(touch, trackball/keypress, etc.) will restore the previous
view.

Screen saver mode kicks in after a delay (or, for debugging,
a longpress on "Dim"). Honors the current dimness setting,
so if the clock is currently in nightstand mode, the screen
saver will be very dim; otherwise (viz., desk mode) the
saver will be brighter.
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
2763ab4cb6ee8d186eb8894ad006f699bfca3413 27-Oct-2009 Daniel Sandler <dsandler@google.com> Show weather forecast in DeskClock.

Currently querying the GenieWidget; if it's not present, no
weather is shown or even hinted at in the UI. If GenieWidget
is available but fails to respond to the query, we show
"Weather unavailable." (needs i18n)

Note that Genie's WeatherProvider is currently broken, so
for now you'll always see "Weather unavailable."

Other changes:

- Fix dimming/flashing on rotation.
- Fix other layout problems & inefficiencies.
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
d13733225cb1a3e16413b35336e94e400bf5d399 27-Oct-2009 Daniel Sandler <dsandler@google.com> Landscape layout for DeskClock.

Created several new sub-layouts that are shared between the
two orientations.

Known issue: the activity currently re-starts (forgetting
the dim state) between orientations.
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
72a353a7d443f17a0e16412ae85ad359d97e9394 23-Oct-2009 Daniel Sandler <dsandler@google.com> Wiring up gallery & music buttons.
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
3955e05df4f0b1fa223ccc1cf8a44d5b5d5bd8a0 23-Oct-2009 Daniel Sandler <dsandler@google.com> UI improvements to DeskClock.

Fixes:
- "Dim" button moved to TR corner per spec.
- Next Alarm moved to TL corner per spec.
- Launcher button added (not yet wired).
- Battery indicator added to BR corner per spec.
- Drop shadow added to all text per spec.
- Layout now fills the portrait display vertically.

Known problems:
- No landscape layout
- Layout jumps when status bar disappears for dim mode
- No artwork yet
- Weather is a big orange box instead of, you know, weather
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
ef18177f9bbbeab8ef266c3f080175bc813dc34c 22-Oct-2009 Daniel Sandler <dsandler@google.com> Wire up date & next alarm displays.

Change-Id: I367e0dcdb3fdfa7256dfd5ce54097c8206806f51
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java
f8317ad7146b1cdfeded7acb23ae8f770b2d3f97 20-Oct-2009 Daniel Sandler <dsandler@google.com> New DeskClock activity, now the main app entry point.

UI not yet wired up for the most part, but Alarms should
take you to the AlarmClock activity, and there's a
functional implementation of screen dimming ("nightstand
mode").
/packages/apps/DeskClock/src/com/android/deskclock/DeskClock.java