History log of /packages/apps/DeskClock/src/com/android/deskclock/widget/TextTime.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
0b19985ecfa0f43acb8ededc173f643843098a95 09-Nov-2016 James Lemieux <jplemieux@google.com> Stop misrepresenting alarm time on DST days

Bug: 27654884

The alarms list displays the alarm time by formatting a Calendar object.
The Calendar object is always created on the current date. If the
current date happens to be the day DST is applied and the alarm time
falls in the missing hour (in the spring), Calendar adjusts the hour ahead
an hour, causing the alarm time to be incorrectly displayed on screen.

The Calendar object is now created on a fixed non-DST day to avoid
applying DST rules inappropriately.

Change-Id: Ibf3f86a84171edcf819a132fc3f3efdd4f32dd5d
/packages/apps/DeskClock/src/com/android/deskclock/widget/TextTime.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/widget/TextTime.java
69658181fa0096790a1584dee96acb64e657b22f 26-Sep-2016 Sean Stout <sstout@google.com> Updated fonts to be consistent across app.

Bug: 31680199
Test: manual - Make sure all fonts are updated
Change-Id: I121e4c1dd33a37c5ef6b0398fa9d01a4b2e01643
/packages/apps/DeskClock/src/com/android/deskclock/widget/TextTime.java
d8c0f43ee8f44fab34402ed27a2dcc74f5d1fb76 02-Jul-2016 Sean Stout <sstout@google.com> Talkback properly says top of the hour times

Bug: 29859682

Talkback now will say top of the hour times properly. E.G. "Nine AM" vs
"Nine Hundred AM"

Change-Id: I24a508b992eaca9c1c6d6445255b1d4aeb1e71d1
/packages/apps/DeskClock/src/com/android/deskclock/widget/TextTime.java
be4385190b52cd2b3e682d8b81faecfd5d3b2d78 19-Mar-2016 James Lemieux <jplemieux@google.com> Stop setting fixed 12-hour and 24-hour time formats in layouts

For quite some time, these time formats have been chosen dynamically
by ICU using the current Locale. They are fetched via
android.text.format.DateFormat.getBestDateTimePattern(...)

These static formats set in layout code are at best irrelevant and at
worst red herrings.

Change-Id: If29dd3d87307bb1a01deff5f48e99a51c1d93a95
/packages/apps/DeskClock/src/com/android/deskclock/widget/TextTime.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/widget/TextTime.java
84a20e9cf35647a16baca65b57314831b26ac4c1 16-Dec-2015 James Lemieux <jplemieux@google.com> Support a variety of am/pm string sizes when formatting times

Bug: 26015206
Bug: 26014517

ag/786215 introduced a small regression which assumed that the
meridiem (am/pm) portion of a time string should always be formatted
at the same proportional size as the remainder of the time display. In
truth, the user interface contains multiple ratios which were
inadvertently coalesced to a single ratio.

For example, the alarms tab formats alarm times with smaller am/pm
strings than the rest of the application. The display of selected world
clocks has been changed to share the same ratio with the alarms tab
in this change.

This change also enables the meridiem display on the digital widget.

Change-Id: I351c816fd522aa32c445b85ac19f619e0a030a43
/packages/apps/DeskClock/src/com/android/deskclock/widget/TextTime.java
d6c134979a65c717aa5e667c39d9f9a788b32a45 10-Oct-2015 Dylan Phan <lerp@google.com> Dynamically size fonts in the digital widget

Bug: 22690473

Also introduced DataModel.run() for accessing data on the correct thread.

Change-Id: I6c21b9293882e6aa502e6930bd039d342d9cbfd4
/packages/apps/DeskClock/src/com/android/deskclock/widget/TextTime.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/widget/TextTime.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/widget/TextTime.java
8d96e0448699b7b9d36fd8d82c7738ed526673cd 14-Oct-2013 Isaac Katzenelson <isaackatz@google.com> Fix content description of time in alarms list

Bug: 11169940
Change-Id: I90ae1606097e9e1ba218ae72e56a97d63da9e48e
/packages/apps/DeskClock/src/com/android/deskclock/widget/TextTime.java
8b8542c44a744b7afc5c9af34bbfec924e13a963 11-Oct-2013 Isaac Katzenelson <isaackatz@google.com> Use best time formatting for widget

Bug: 11119295
Change-Id: I7d463eb5d4ab7268fdfdfc38613042a45dd901e6
/packages/apps/DeskClock/src/com/android/deskclock/widget/TextTime.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/widget/TextTime.java
1f33a02b053c1de549f2d3bf23df93d83defac98 30-Sep-2013 Alon Albert <aalbert@google.com> Replace DigitialClock with TextTime

Bug: 10823373
Change-Id: I67a5baf46fb7273130eb2ad3fdcac497f96a1ea5
/packages/apps/DeskClock/src/com/android/deskclock/widget/TextTime.java