History log of /packages/apps/DeskClock/src/com/android/deskclock/ScreensaverActivity.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
b8c4512b4a6d3e78d426e7e67b502e4735e365cf 14-Feb-2017 Justin Klaassen <justinklaassen@google.com> Set theme for Screensaver

- Set Theme.DeskClock for Screensaver so that app-level theme attributes
such as ?colorAccent can be resolved succcessfully.
- Also did some minor cleanup of Screensaver and ScreensaverActivity.

Bug: 35330855
Test: manually verified that crash does not occur when using Screensaver
or ScreensaverActivity on API 19 and 25 devices.

Change-Id: I107fdd51af5a97f41464942dc3e2f7730f11b5c2
/packages/apps/DeskClock/src/com/android/deskclock/ScreensaverActivity.java
a5fa7fac7743829560b4dfbe48b673e6d7300499 14-Dec-2016 Christine Franks <christyfranks@google.com> Prevent navigation bar from displaying on screensaver exit

Bug: 33416951
Test: manual - open screensaver (from overflow menu option and from
long-pressing on the World Clock RV) and dismiss with a tap; nav bar
should not appear until end of animation.

Change-Id: I64f0630e34a87c65fb2e9470b8943a310b4d087a
/packages/apps/DeskClock/src/com/android/deskclock/ScreensaverActivity.java
23629266834a251cb937a885e5223e5ae37cc6fa 21-Nov-2016 Christine Franks <christyfranks@google.com> Fix janky RepeatDays animation

Bug: 33039716
Test: manual - no apparent jank (or strict mode violations) during
repeatdays expansion/contraction, and systrace reports no dropped
frames during the animation itself.

Change-Id: I923781f44a5db50534640ae605705f7437c805f4
/packages/apps/DeskClock/src/com/android/deskclock/ScreensaverActivity.java
900ede28311ddf4502622009a3d5ab44a11b7264 10-Nov-2016 Christine Franks <christyfranks@google.com> Lint fixes

Bug: 32021228
Test: ran release linter, and builds properly

Change-Id: Ib8f6abf9c5c2fc88e0efdaec6d91d63e3941b8e9
/packages/apps/DeskClock/src/com/android/deskclock/ScreensaverActivity.java
de7bc34a9e062b175343ac464440a4d6eaceaab6 08-Nov-2016 Sean Stout <sstout@google.com> Bottom nav bar is now invisible in screen saver.

Bug: 32067212
Test: Manual - use and exit screensaver
Change-Id: Ic972e5bea77f0e27e6d628f1a44d46c5eedad27d
/packages/apps/DeskClock/src/com/android/deskclock/ScreensaverActivity.java
7b852b43db6d9e50814dd07366b025b3f9f9b758 08-Sep-2016 Christine Franks <christyfranks@google.com> Add seconds option for main clock

Bug: 18594326
Test: Manual - go to settings, toggle setting for displaying seconds,
toggle between analog and digital clocks and toggle display seconds
setting again. Close the app and reopen to test persistence of setting.
On upgrade from old version, current defaults are respected.
Change-Id: I21391929e59f5e8ada77efe446acbc13145478ee
/packages/apps/DeskClock/src/com/android/deskclock/ScreensaverActivity.java
ab6a8e1f3e21977b0fddfa03ee0ba942830dc00a 29-Aug-2016 Justin Klaassen <justinklaassen@google.com> Cleanup exported APIs

Bug: 30076796

- Removed preliminary support for deeplinks since Clock doesn't have a
public content provider.
- Removed unnecessarily exported intent actions since Intents
specifying explicit components don't need to register specific
actions.
- Removed unused strings and resources.

Change-Id: Ifbee006dbd752ecdcfe0125cabe19ffda40ea659
/packages/apps/DeskClock/src/com/android/deskclock/ScreensaverActivity.java
2bd7fb4d346a1a116f0f1a58f17722f2286cdcdc 28-Jun-2016 Sean Stout <sstout@google.com> Clock application now has launcher shortcuts

Bug: 28581133
Bug: 29875092

Long pressing on clock with a supported launcher will bring up
a list of 4 shortcuts: Create new timer, create new alarm,
start/stop stopwatch, and start clock screensaver. Analytics on
shortcut use are reported.

Change-Id: Iea7e05024218f70d2bec4bef1357dd8afa0165e6
/packages/apps/DeskClock/src/com/android/deskclock/ScreensaverActivity.java
1415d4cd56f67b4a7a0aca254a698c65c5eecffd 09-Mar-2016 James Lemieux <jplemieux@google.com> Overhaul the digital clock widget

Bug: 7346144
Bug: 26747882
Bug: 27391440
Bug: 27226990
Bug: 27282291
Bug: 18410094
Bug: 22124815
Bug: 27459689
Bug: 24003653
Bug: 27118501

The digital clock widget now scales to the size it is granted by the user.
The scaling is accomplished by dynamically choosing a font size, and
testing (through offscreen measurement) if the chosen font will
successfully fit in the widget's allocated space. This technique should
be successful across all locales, fonts and sizes.

Note, as of this CL, digital clock widget no longer contains world cities.
It only displays the current time, date, and next alarm time. Plans exist
to create a new stand-alone widget for just the world cities.

Change-Id: I2890f7a1aa8687218f1bbef485dc1154c65bde15
/packages/apps/DeskClock/src/com/android/deskclock/ScreensaverActivity.java
310210dab3e97b1defe0870ecbc25b1451e90392 03-Feb-2016 Justin Klaassen <justinklaassen@google.com> Use Logger singleton for custom logtags

Change-Id: I14098480f4092efbac67c458b774d9e648b80267
/packages/apps/DeskClock/src/com/android/deskclock/ScreensaverActivity.java
3af168c834d73487f8f614f0aaafbf6f9a850f0f 26-Jan-2016 James Lemieux <jplemieux@google.com> Refactor the mechanism for delivering periodic callbacks

Bug: 25983208
Bug: 26381960

Periodic timed callbacks are used to update portions of the UI that
may change at time boundaries, such as date displays when midnight
passes. The old mechanism required the API user to define their own
Handler and also compute and schedule each callback. Also, no
corrective rescheduling occurred if the device time changed.

The new design introduces PeriodicCallbackModel as a delegate to
UiDataModel. The delegate removes all of the burdens associated
with scheduling and canceling period callbacks. The caller need only
supply the Runnable that contains the logic to execute and an offset
in millis if they want to be called before or after the period ends.

Change-Id: Ibb51b22af081fc4df60ee1c561f2c9aaf1ddef96
/packages/apps/DeskClock/src/com/android/deskclock/ScreensaverActivity.java
c624a3fb698c13312a5e14114c37f45e3b3438bc 22-Dec-2015 Justin Klaassen <justinklaassen@google.com> Fix build warnings

Bug: 26292420
Change-Id: Ib5d8b09fa9d70f408c3097654bae5b6906fac048
/packages/apps/DeskClock/src/com/android/deskclock/ScreensaverActivity.java
19a6a8fb14a280b9d64130ee4e336e5f0585c601 07-Oct-2015 Dylan Phan <lerp@google.com> Fix bug where digital clock was too small.

Bug: 22690473

Also scale am/pm with clock font size across different devices.
Also reduce clock font size for locales that have long am/pm strings.

Change-Id: Ib0a58956909871edffe68cb7fab7d5677533ce84
/packages/apps/DeskClock/src/com/android/deskclock/ScreensaverActivity.java
34142b1d0f2445bbd606bb490dfef6c078c630ea 14-Aug-2015 James Lemieux <jplemieux@google.com> Refactor Cities (World Clocks) to use new unified DataModel

This refactoring replaces CityObj with City, an immutable description
of a city and its associated clock information. City objects are fetched
via a DataModel class that is the single point of reference for all City
data. This allows the data to be shared across the entire application.
In particular, DigitalWidgetViewsFactory, ClockFragment and
CitySelectionActivity all draw upon the same model to determine what
cities exist, which ones are selected, and what the preferred display
order shall be.

Change-Id: I7c2eaa31b596b5333213415af58a7bb46ebb370e
/packages/apps/DeskClock/src/com/android/deskclock/ScreensaverActivity.java
da6c5b10503f31b0e8d12bf7200278151ec4561f 01-Aug-2015 James Lemieux <jplemieux@google.com> Give up the dream of supporting pre-Kitkat

All SDK version checks are now routed through readable
cover methods on Utils. All code paths handling SDK
versions that predate Kitkat have been removed.

Change-Id: I876620ad34ab3d701789cb35904ccfe03c2d1e45
/packages/apps/DeskClock/src/com/android/deskclock/ScreensaverActivity.java
26d4e779a332025fa10fff55274073e0742794d9 20-Jun-2015 Justin Klaassen <justinklaassen@google.com> Don't finish ScreensaverActivity in onPause

Bug: 21455209
Change-Id: I23b6bdf437cff727efad3cde8b12cafe77425351
/packages/apps/DeskClock/src/com/android/deskclock/ScreensaverActivity.java
7eddc8e6dec60494c00702ea1403682a9c662a45 05-Mar-2015 Annie Chin <afchin@google.com> DateFormat: Do not use .getBestDateTimePattern() for pre-18

Instead, add new format strings for 12 and 24 hour times, with and
without weekdays.

Change-Id: I282b2d6d2e3ac2fbff94986217292f90ccbc2fb3
Bugs: 19621195
/packages/apps/DeskClock/src/com/android/deskclock/ScreensaverActivity.java
6c6337ce2b39ffa1395e8039bd739893b41a1b3a 12-Feb-2015 Budi Kusmiantoro <budi@google.com> Initial change to use AppCompat

Change-Id: I11028b58fa5c9a38a576d8818c2a67bb95d6e085
/packages/apps/DeskClock/src/com/android/deskclock/ScreensaverActivity.java
40e4b8c5bda04416feaa3f41539c241479d4f046 31-Jan-2015 Annie Chin <afchin@google.com> Detect changed "next-alarm" values in pre-L versions.

Bug: 19200823
Change-Id: Ife9a0cce886d63cfc14c67943fd77a2d51d12656
/packages/apps/DeskClock/src/com/android/deskclock/ScreensaverActivity.java
f10aaa263d364ecca5c6f3ee39ef96faf9eac83d 18-Nov-2014 Budi Kusmiantoro <budi@google.com> Add delay upon orientation change before layout update

Bug: 18410105
Change-Id: I2d25adf885e1045479c95e25e53de7ebca3d51f8
/packages/apps/DeskClock/src/com/android/deskclock/ScreensaverActivity.java
577479b809bfd4bf46c014501fa7e47e61275064 29-Aug-2014 Budi Kusmiantoro <budi@google.com> Adjust font-size for digital clock AM/PM

Bug: 17324475
Change-Id: I0f0dd0e365e48e4e0f907841c7f98689167d55fc
/packages/apps/DeskClock/src/com/android/deskclock/ScreensaverActivity.java
c0743272ad924bc97d335d695be3e6b32a83dd7d 09-Jul-2014 Adrian Roos <roosa@google.com> Migrate DeskClock to AlarmManager.setAlarmClock

Updates AlarmNotifications to set alarm info via
the new AlarmManager API.

Bug: 14589952
Change-Id: I50099a8b6241b32afedbd32c034c4c7ac19373b0
/packages/apps/DeskClock/src/com/android/deskclock/ScreensaverActivity.java
3a4ba0db218b830af3dd17fde2952125a2e50fdc 10-Oct-2013 Isaac Katzenelson <isaackatz@google.com> Use best time formatting for clock - part 2

Bug: 11119295
Change-Id: I72fed7082b13b12863af1b79ce4b0a15ef554216
/packages/apps/DeskClock/src/com/android/deskclock/ScreensaverActivity.java
3bb9d29c12584480f3651ccbef86f2777c0b7818 14-Sep-2013 Robyn Coultas <coultasr@android.com> DigitalAppWidgetProvider is receiver for actions

Bug: 8239532
Bug: 10695465

DigitalWidgetViewsFactory lifespan was not unlimited, so using
it to receive actions was inappropriate. Moved all handling into
DigitalAppWidgetProvider. This change lost some of the optimizations
that DigitalWidgetViewsFactory had.

Replaced previous Utils.ACTION_ON_QUARTER_HOUR users with code that uses postDelayed

Change-Id: I27a7b96f8ab85f8f72c7e1b75d55a9616c3db859
/packages/apps/DeskClock/src/com/android/deskclock/ScreensaverActivity.java
ed2084787cec0f02e6cead215d409d6f2f60f737 03-Sep-2013 Alon Albert <aalbert@google.com> Have Screensavers Listen to Alarm Changes

So they can update the "Next alarm..." display

Instead of listening to our own Alarms.NEXT_ALARM_TIME_SET, we observe
the system setting Settings.System.NEXT_ALARM_FORMATTED. This way we
respect 3rd party apps that use this API as well as ourselves.

Change-Id: Iaa90ba8335c38bd6b0ed4571e0784f4f8cb2d154
/packages/apps/DeskClock/src/com/android/deskclock/ScreensaverActivity.java
0b7c93a6b691b25ccbcd8d683774d3d0d351a8e9 20-Nov-2012 Robyn Coultas <coultasr@android.com> ACTION_ON_QUARTER_HOUR replaces ACTION_TIME_TICK

BUG: 7522888

Consolidated common code for this alarm into Utils
refresh quarter-hour-alarm when time changes

Change-Id: I96645d07db942a9030485cd71bd2a27a04475672
/packages/apps/DeskClock/src/com/android/deskclock/ScreensaverActivity.java
b41f177aef12a5aa5ec43057535f5deacf98a881 23-Oct-2012 Isaac Katzenelson <isaack@android.com> Change clock layouts

Bug: 7275340, 7390795

Change layout of clocks so that all info (date, next alarm, city name, etc..)
will be under the clock and centered.
Fixed issue with redundant leading zero in am/pm time.

Change-Id: I8af219b1d62a2a092f4b46a22b9a262acc25ceef
/packages/apps/DeskClock/src/com/android/deskclock/ScreensaverActivity.java
78b8e1513e24c58ffea6ee4edbebdce85c248f6f 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/ScreensaverActivity.java