History log of /packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
22e6309fcd8d0fa027ee7bbef988ff7e9c426b12 02-Feb-2017 James Lemieux <jplemieux@google.com> Disable seconds on the unseen clock depending on style

Bug: 34856983
Test: Manually test adjusting all combinations of clock style and seconds

This has two benefits:
1) the unseen clock no longer schedules one second callbacks to update a
GONE component
2) It avoids the reported exception caused by Activity.recreate()

Change-Id: I0a1a3e30a5e4ae6c751a2285ca25f4470fc2bb9d
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.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/ClockFragment.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/ClockFragment.java
7dd3db484832aca7df8d1b774d04faaec55b9b80 16-Sep-2016 Christine Franks <christyfranks@google.com> Add the number of hours each city is ahead/behind.

Bug: 31522711
Test: Manual - 1) Honolulu (hours behind PST) 2) Barcelona (hours ahead
of PST). Set system time to Guam, Adelaide, and Sydney to see full set
of potential ahead/behind hours/minutes and tomorrow/yesterday variants.

Change-Id: I935baa4673dbe7f816967d36678c9aadf4b10d92
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.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/ClockFragment.java
88969aecfc735f88d37cb767aa23779abd8c5ad9 08-Sep-2016 Sean Stout <sstout@google.com> Replaced Timer and Stopwatch button images with text.

Bug: 31348653
Test: manual - Play and pause timer and stopwatch

Timer and stopwatch left and right buttons now use text instead of images.
Timer "add minute" and "reset" button now also uses text.

Change-Id: Ie9e19cc7c4162c3fb4c77d92cb53517bf3af83f6
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.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/ClockFragment.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/ClockFragment.java
f575d0e5a9bef1551203d4121b598cf98f814e7a 21-Jul-2016 Sean Stout <sstout@google.com> Date shows in landscape. Solitary clock won't scroll in MW.

Bug: 30166706

Day and date will now appear in landscape orientation. Additionally,
the clock will not scroll if it is the only item in MW mode.

Change-Id: Ibba9c53b7519cd24981a3f0bc07ce6689f3d53b4
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.java
e7741026bfb740981650d722292de1088c0c77a2 20-Jul-2016 Sean Stout <sstout@google.com> Fix IndexOutOfBoundsException from adapter in landscape.

Bug: 29899153
Change-Id: I9b2a94749f89f34956620147e32df87ef47a561b
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.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/ClockFragment.java
a10158df7b7e056ec5c63df9cfaacd88d0e79c7f 06-Jul-2016 Sean Stout <sstout@google.com> notifyDataSetChanged called whenever city list changes

Bug: 29899153
Change-Id: I77d52591706da2d4448c75ac9cf4291a06bebba9
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.java
5b7e6654db42f0a9e71d82f17fafe53b6f8bff0f 29-Jun-2016 Sean Stout <sstout@google.com> Merge "Long clicking RecyclerView will now start daydream" into ub-deskclock-gatling
b4f4c54e58b0aff949e3d57f1bb39e6b54538c0e 28-Jun-2016 Sean Stout <sstout@google.com> Long clicking RecyclerView will now start daydream

Bug: 29820580

Long clicking on the RecyclerView on the world clock screen
will now start daydream.

Change-Id: I74e15d3282fb828d0006376dcee0d3210fbfbee6
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.java
2f4f5fc6fc92cc654db75da8d88f1f39cb05fdfd 24-Jun-2016 Sean Stout <sstout@google.com> Setting an alarm will not crash Pre L

Bug: 29638004
Change-Id: I40b619aab439259a14ec2bb1ec339d821bb275e6
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.java
83fd56cd7004fbf3c72b51a2cc6c7d79fb005541 21-Jun-2016 James Lemieux <jplemieux@google.com> Change world clock icon

Bug: 28278006
Change-Id: I37587afb037953173fb148e16732c573272e4161
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.java
5109d54a0a62dba900cc57426fd98d176a0778f2 18-Jun-2016 James Lemieux <jplemieux@google.com> Merge \"Use vector drawables instead of density-specific images\" into ub-deskclock-fantasy
am: 1df503d4a8

Change-Id: I01217c1bacc8102acfc7dbf2f128db16d3ee5581
7edf267d42dc18bc7ec01ec4b7fd1c099cac0579 18-Jun-2016 James Lemieux <jplemieux@google.com> Use vector drawables instead of density-specific images

Bug: 25793040
Change-Id: If01626f76326c8a42449a677a01b2e87b73bf8b3
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.java
045f8a1a43f0236ff9be324663cfbb2db507c94e 15-Jun-2016 Sean Stout <sstout@google.com> Clean up for ag/1126439

Bug: 29155369

Fixing some styling problems.

Change-Id: Ifb852ab9b97e6ccdec3d9f4ccc5f8589fc4a0ad7
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.java
dec072e5248419fd5b768fa105dd80d7f5133f93 03-Jun-2016 Sean Stout <sstout@google.com> World clock list has been changed from ListView to RecyclerView.

Bug: 29155369

The world clock list now uses a RecyclerView versus a ListView. As a result,
it is able to listen for Long Clicks versus its previous OnTouch solution.

Change-Id: I39d455ab6c48e0732aa2d4c6e25da04e8a3bce1f
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.java
c7f7c7339e3888087564abae926978f73986e2c2 08-Jun-2016 James Lemieux <jplemieux@google.com> Improve portrait layout of world clocks

Bug: 29208178

- hairline now correctly shows/hides when cities exist/do not exist
- space above first world clock and hairline has been restored

Change-Id: I290f39a034b97b297f6a79b1e1ab65fc41ca23e5
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.java
e3de2ef55914fc52f02aa22fb9b062fa2fe16573 02-Jun-2016 Sean Stout <sstout@google.com> Screen saver can now always be started with a long press.

Bug: 29071570

The user can now long press anywhere on the world clock screen and
the screen saver will be launched.

Change-Id: I0619ef1a8b894cbb76aa464da531285097b48c5c
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.java
67646b22a4e9dd8ab9a8ef4a8bde82f793d969a3 20-May-2016 James Lemieux <jplemieux@google.com> Adjust timer layout for multiwindow

Bug: 26840878

Timer circles and stopwatch circles, when displayed, are always 60%
of the container width in portrait or 90% of the container height in
landscape.

When the parent container falls below 320dp width and height, the
circles may disappear as they are too small to remain useful.

Change-Id: Ice7fb1ccd4db9abd215141e427e1f8ddd4b64fc0
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.java
86c02300719c5d797a38380dd8a05db1a8a48c20 16-May-2016 James Lemieux <jplemieux@google.com> Improve clock tab layout for multiwindow

Bug: 26840878

- center current time display
- provide enough padding to the world clock list item to scroll
its content above the FAB

Change-Id: Idcf2bcff5d3beb1aa6b81d724d4b69f4977be3f6
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.java
e2c1ef08a2402ffee85e01d36c789a6c71311ce6 12-May-2016 James Lemieux <jplemieux@google.com> Adjust world clock tab layout for multiwindow

Bug: 26840878
Change-Id: I0e5fe4863ec724a8d14661e7cf884d20b6da5dd5
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.java
7d314ab883d222147d7affc7ecaeef17a926b0b7 12-May-2016 James Lemieux <jplemieux@google.com> Clock screensaver should always be fullscreen

Note: it must be started in a new task or it will inherit the
resizable setting of the existing task.

Change-Id: I14308329964b9f8a3d845421ec48f45618ca9e6c
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.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/ClockFragment.java
4e7ee09e878178873241846757b178535da3dd76 02-Feb-2016 James Lemieux <jplemieux@google.com> Add drop shadows beneath the app bars

Bug: 26014484

Activities that gained drop shadows:
- DeskClock
- SettingsActivity
- CitySelectionActivity

Note: the drop shadows are drawn manually rather than using
elevation in order to be backward compatible to KK.

Change-Id: I0b1b95b594f80a60dd6696f149451611c34af354
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.java
603fe1de9633d2831042b23f3a86328f09db34f4 29-Jan-2016 James Lemieux <jplemieux@google.com> Update world cities

Bug: 25931904
Bug: 25694200

This update does two things:

1) The format for storing cities discards storing ID, city name and
timezone ID in 3 parallel arrays. Now, all available IDs are stored in
a single untranslatable array. All corresponding translation entries
use the id as the resource name.

2) About 50ish new cities were added to guarantee at least one
location from each country in the world can be located in the list.

Change-Id: I501cc171f47559f8949bede357f9027fe49d0535
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.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/ClockFragment.java
5a67cd46eb23ad89825ebcd6894a3bc5f728af45 20-Jan-2016 Justin Klaassen <justinklaassen@google.com> Create AlarmObserverPreL in onCreate
am: f93d6c754b

* commit 'f93d6c754b0b511f36c12997e498df8d3efe4e71':
Create AlarmObserverPreL in onCreate
f93d6c754b0b511f36c12997e498df8d3efe4e71 20-Jan-2016 Justin Klaassen <justinklaassen@google.com> Create AlarmObserverPreL in onCreate

Bug: 26484535
Change-Id: I32e8f1c5f8620109affc25e3bb4a826856759eec
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.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/ClockFragment.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/ClockFragment.java
e75ee0f1dae990bcba5f7b2811d2c5541297fd3d 11-Dec-2015 James Lemieux <jplemieux@google.com> TimerSetupView now repurposes fab and buttons

TimerSetupView used to have its own fab and a custom button for
the X icon that cancels timer creation. It now utilizes the application's
fab and buttons. This ensures that fab/button locations and
animations are uniform.

Child fragments and views no longer have direct access to the fab
and buttons outside of specific callbacks. This design attempts
to remove past bugs where irrelevant views altered the state of the
fab at inappropriate times.

Change-Id: If8c69246e915f6357df80a6d8107f7b2b5a6172e
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.java
5e0c5c4846f73565bf07542f64bea8208002f55c 25-Nov-2015 James Lemieux <jplemieux@google.com> Remember the last selected tab between DeskClock launches

Bug: 24220917

DeskClock now permanently tracks the last selected tab using
SharedPreferences and restores it on subsequent restarts. Along
with this change came a large refactoring to the way tabs are
modeled and stored within the application. In particular:

- UiDataModel was created and answers questions about the
tabs that exist, their order, their display order and which one
is currently selected.

- DeskClock activity captures the tab change, records it in
UiDataModel and then reacts to tab changes from the UiDataModel

- Consequently, any area of the application may now alter the
selected tab programmatically by calling
UiDataModel.getDataModel().setSelectedTab(aTab);

Change-Id: I1c655d17c68c4c1cdf96bae1e9f2e3c4d9e2251a
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.java
6d603b7c62bb38d763a681a8bf20fadb1442e833 07-Nov-2015 James Lemieux <jplemieux@google.com> Refactor Timers to use new unified DataModel

Bug: 24816218
Bug: 25494722

This refactoring introduces a Timer domain object. Instances of these
domain objects are fetched via a DataModel class that is the single point
of reference for all timer data. This allows the data to be shared across
the entire application. In particular, the timer notifications, TimerFragment
and ExpiredTimersActivity all draw upon the same model to determine
what the state of the timers are.

IMPORTANT: The public intent com.android.deskclock.action.STOP_TIMER
has been renamed to com.android.deskclock.action.PAUSE_TIMER to be
more accurate.

Change-Id: Ib904e80a25c6de1861de2b395bec27db16ff0e66
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.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/ClockFragment.java
24a54fc16fdf95ee3f76ab99978c3401473dc516 19-Sep-2015 James Lemieux <jplemieux@google.com> Refactor Stopwatch to use new unified DataModel

This refactoring introduces Stopwatch and Lap domain objects.
Instances of these domain objects are fetched via a DataModel
class that is the single point of reference for all stopwatch data.
This allows the data to be shared across the entire application.
In particular, the stopwatch notification and StopwatchFragment
all draw upon the same model to determine what the state of the
stopwatch is and what laps have been recorded.

Change-Id: I6bda1fda73568cb312b167f1f6b10bd1abc99d62
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.java
b29a49dfb68c859a54d17826122e9801ca9bc670 09-Sep-2015 James Lemieux <jplemieux@google.com> World Clocks should not appear to be touchable

Change-Id: Id58ccc2e690cb54b34fb871941d9f723ac3d5646
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.java
3bcda8ed83df9666072d9b4327bccaf086d4af35 17-Aug-2015 Fan Zhang <zhfan@google.com> Move option menu to top-right corner on all 4 tabs.

Bug: 16481922
Bug: 23318892

Change-Id: I77552dc073411a9b7c40527b4ca04ddfac812ae1
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.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/ClockFragment.java
441b2d0abd03e1bc479b90af9c500f100aeabed8 11-Aug-2015 Fan Zhang <zhfan@google.com> Use design support library's FloatingActionButton in clock.

Bug:22879012
Change-Id: I5fc59ca383860ced1fa12ecbca3a59133312466e
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.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/ClockFragment.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/ClockFragment.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/ClockFragment.java
5e469aa155baea98f09d5d5e657aa2315a76679d 08-Oct-2014 rachelzhang <rachelzhang@google.com> Fix delete/reset timer button disappearing

Bug: 17910859
Change-Id: I4ccd92602bc909db6c265f3d8bee27bf2e524cb2
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.java
d0a9d2681d5386471f59cbe3a3962657266905ca 07-Oct-2014 Budi Kusmiantoro <budi@google.com> Fix crash when Fragment is not yet attached to Actvity

Bug: 17894562
Change-Id: I4f4533b6fb106f3810dd1ae6944bb2d4efecf53d
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.java
d50ff479c37e33de776c339bc93df308f4ac7ab0 08-Sep-2014 rachelzhang <rachelzhang@google.com> Update timer and stopwatch UX

Bug: 15758027
Bug: 15757778

Change-Id: I19e72adb33afa9815c9b5a57d1d7fb04e0ff0243
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.java
40bf69f36896140231b260827d96e9f4aaa6aa3f 11-Sep-2014 Budi Kusmiantoro <budi@google.com> Add talkback support for FABs

Bug: 17368984
Change-Id: I898d3ae00bfa774d8407e8de00c30d801a02bdd8
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.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/ClockFragment.java
80eafdf26fc496ffa112b9eb1b44d7b80333c80a 17-Aug-2014 rachelzhang <rachelzhang@google.com> Massive polish of clock UI

Bug: 15757778

* Change theme color from pink to green
* Change world clock single row layout
* Update to quantum assets / fonts
* Fix few bugs

Change-Id: I796decb8469b7d3c1e944f77c41b7c5af5d81a36
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.java
5520461495a8c4fb468aa94d7b18a3fc25d54739 05-Aug-2014 rachelzhang <rachelzhang@google.com> Fab for clock app

Bug:16824066

Change-Id: Ifa3d0af09a07ca85fdb3b77dc9a9a4da5173537d
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.java
d48339f270ba72bb8416fd194b4a0d1aeb3bd958 11-Jul-2014 rachelzhang <rachelzhang@google.com> Background color change thruout the day

Bug: 15758851

Change-Id: I385eb47e693d9e69ec18a9e3ba9b09bc6f72cfd7
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.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/ClockFragment.java
690f451a6aea35d944cb2eaddf488d3acf377184 10-Oct-2013 Isaac Katzenelson <isaackatz@google.com> Use best time formatting for clock

Bug: 11119295

Change-Id: I3a37abddf55d4c1f2c7dfedb5854ebc4b0722062
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.java
ac7857ffb8c1a100e8a696eb93c027d53a4f48f1 26-Sep-2013 Alan Viverette <alanv@google.com> Use drag-to-open overflow menu in Alarm and Clock fragments

BUG: 10903795
Change-Id: I6288b5d4d579cc7a0aa8c0142d3249c3da232b3e
(cherry picked from commit d968d6707f61078c3afacffa08c499ee9ed472a5)
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.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/ClockFragment.java
13b1605e4372cc715a09d7fff1d1a8aee4522782 11-Sep-2013 Sam Blitzstein <sblitz@google.com> Hide bottom bar in landscape.

This way we can make sure analog clock has enough space.

Bug: 10691481
Change-Id: I2075238965fcff2574ffbf3405299378b8cf3c51
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.java
5b0de6c83ff2401b61ed8f191d018a99d6d6c7e1 10-Sep-2013 Sam Blitzstein <sblitz@google.com> Update clock fragment alarm text on alarm change.

Bug: 10516129
Change-Id: Ibd1b3db80e9f7b2e2eb8db59cf88438f58571528
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.java
ab0d28c68a77bea2a4a2ee50378da3670a1dd939 27-Aug-2013 Paul Sliwowski <psliwowski@google.com> Refactor alarm manager code to use new Instance table.

Change-Id: If0ef94f68383ebfcb4a0af697671c7854f33383d
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.java
6ae9f520831c7547654176ffc1e2f02c0675a894 07-Sep-2013 Sam Blitzstein <sblitz@google.com> Use two-pane layout for tablet landscape world clocks.

Bug: 10654098
Change-Id: I3825ed5a503b6d48d935d439bdb7afd3391ed0da
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.java
4c68a4b737d7776fd23e857eb612f89c6dba3ec0 30-Aug-2013 Sam Blitzstein <sblitz@google.com> Use Keep's StaggeredGridView for timers.

Also update header and background layouts.

Bug: 10516184
Change-Id: Ibe73ce965acb11796c21e9df4b35e6bb830aabb3
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.java
519fb1ef95d09ee96fc07bf501e5461afabaaef6 12-Aug-2013 Sam Blitzstein <sblitz@google.com> Move alarm to its own tab.

Also animate alarm expansion.

Change-Id: Icdebc6a18f34cfe55af70491d07dde4b1dc675c5
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.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/ClockFragment.java
d4bbc122b90c63c5906ad32c4652b72c9409fd44 25-Oct-2012 Isaac Katzenelson <isaack@android.com> Read cities names for DB and not from list

Bug: 7413861

The list of user selected cities in world clock was using the name from the usr's list and
not from the DB. When a change of locale is done on the device, the cities name were not changed.
Changed the WorldClock adapter to use the DB name and timezone if available.
Added suport in both app and widget.

Change-Id: I029581f9fd6cf245ac980c1d1352e0d777924ccd
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.java
7048625adb7c349deab4c00b2d85bcf65c164ae5 24-Oct-2012 Isaac Katzenelson <isaack@android.com> New digital clock widget for Clock

Bug: 7390795

Added a new widget with its own provider and service and factory.
Factory extends a broadcast receiver and listens to all time
changes, locale changes, changes in world clock and alarms.
Added broadcasts for changing the world clock's user cities list
and for setting the next alarm.

Change-Id: Ida4bbd619da941fb46505cb2ac653fde0a41a97f
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.java
92ccd14f35758b626632218fedf434874954f770 25-Oct-2012 Isaac Katzenelson <isaack@android.com> Revert "Read cities names for DB and not from list"

This reverts commit eee5b1f9b714710fda624b711e845ebf658b713b

Change-Id: Ic7986bc74b71700ae3e400e2ab969a4b3fbbb903
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.java
eee5b1f9b714710fda624b711e845ebf658b713b 25-Oct-2012 Isaac Katzenelson <isaack@android.com> Read cities names for DB and not from list

Bug: 7413861

The list of user selected cities in world clock was using the name from the usr's list and
not from the DB. When a change of locale is done on the device, the cities name were not changed.
Changed the WorldClock adapter to use the DB name and timezone if available.

Change-Id: I11b44c61c792ce0821f8a8e34f9c9086d6bfb66f
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.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/ClockFragment.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/ClockFragment.java
58c329f52d7952597ae7a4e88fc2ec9e15ddd93a 19-Oct-2012 Robyn Coultas <coultasr@android.com> Renumbered Timer+Stopwatch notification id

Bugs: 7367575, 7367541

Change-Id: Ie64fa1ebfb38976a13385c50621bd71d81068dd9
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.java
e01cfa4f60df64468ec1c1197861266d54eaaeae 15-Oct-2012 Robyn Coultas <coultasr@android.com> Only show home time when different from main time

Bug: 7325111
Change-Id: Iccddb42f83eb4c0350e9f20de1195cb95bba5757
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.java
1c4ab87072b0fb21e05ed221acd28560d6110b12 10-Oct-2012 Sara Ting <sarating@google.com> Improve accessibility for visually impaired.

Bug:7303805
Change-Id: Ie215ace8c14c0399448bd297157c0a48ef24e0d5
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.java
ef4eab3feb145756089951a9b0f9c237241d8446 10-Oct-2012 Itzhak Katzenelson <isaack@android.com> Fix clock date format

Bug: 7317056
Change-Id: Idf02c5e8a8b47b131d71e4346aadf8b2f33a627f
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.java
421ad69ae79290b1ccca6316217b0ffdc48ac377 08-Oct-2012 Robyn Coultas <coultasr@android.com> Sort world clocks by timezone, name

Bug: 7302953, 7224695
Change-Id: Iced89dad5ba034337f39a4c1e348a06e9bb9c1a7
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.java
832a20480e1e76d1df846ac20c0eb1fe702a41f8 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/ClockFragment.java
d1905a1321536195b54ade53bc495a8ddc12b091 08-Oct-2012 Isaac Katzenelson <isaack@android.com> Layout changes for analog clock and world clock

Bug: 7265721
Change-Id: Ib5b3b20f34a3c7d3779fd21400283053975f2397
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.java
8d4bf235cf8be0b03f9a2b2d5499489a2f6b67e0 08-Oct-2012 Itzhak Katzenelson <isaack@android.com> Updated cities list for world clock

Bug: 7265721
Change-Id: Iac20e17c207df486bde2d6682ed62abc65917061
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.java
041e2988c31e2387012ba9baf53db011e4057e79 06-Oct-2012 Itzhak Katzenelson <isaack@android.com> World Clock list fixes.

Bug: 7265721, 7224692

Fixed clocks alignments and margins.
Added next alarm and date to the clock

Change-Id: Idff548ac726e6379a029be99527635411d926f91
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.java
8782f6f859307b50754c03619f3ee44992f8cb11 06-Oct-2012 Isaac Katzenelson <isaack@android.com> More world clock fixes

Bug: 7265721

Updated cities list
Inserted main clock into the ListView

Change-Id: Ie6c5e44f4ae06aa2b94a1a10003d4bd124f6642b
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.java
79d8f287a04f727aa4c9a21e19bb2c475cbd3034 05-Oct-2012 Isaac Katzenelson <isaack@android.com> Add analog clock to world clock

Bug: 7265721
Change-Id: Ia3807341deb1cb17e481fab4d0a3bf936e3a87f6
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.java
ef08487b5fec499811774e78ac0e556634ebd29a 04-Oct-2012 Isaac Katzenelson <isaack@android.com> WorldClock part 2

Change-Id: Ic45f765f54a8798e549763ae4dfb85efad63f220
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.java
948edb548f26c6aef3d918d01d80ea37570da41d 27-Sep-2012 Isaac Katzenelson <isaack@android.com> New world clock

Change-Id: I772726bc26db55e93c22b1add6fa4081f84b01a5
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.java
89f8ede75635c688b7c5d43d9160dd27b37c075b 30-Sep-2012 Itzhak Katzenelson <isaack@android.com> Various bug fixes

Bug: 7186324, 7256939
- Crash on dream, obsolete text clock was selected.
- Remove stopwatch lap headers

Change-Id: I18338b1525185150a25a48567a4e6debad05d9e6
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.java
80d6f234974b2d99e4d1da9b8cf29be900a86a33 25-Sep-2012 Yorke Lee <yorkelee@google.com> Set default clock style to digital

Bug: 7210759 Default clock style should be digital
Change-Id: I2d5786e7290703e83987ca5444617f3e8d54d400
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.java
dbefec37e0c0a3a8d832e5c34697fa0492e1077c 20-Sep-2012 Isaac Katzenelson <isaack@android.com> landscape layouts

Change-Id: I672b70fb9aef1862e45e44dd8ed89778c687af98
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.java
2beda01ac564464da763e794e1b0063f8bfe8dd6 12-Sep-2012 Isaac Katzenelson <isaack@android.com> Analog Clock and Timer animation

Change-Id: If0807564ff10725954a0e9447a7dc031e80c21fc
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.java
815e2f7431c590086d5bd4eee5d7bf08108c77eb 08-Sep-2012 Isaac Katzenelson <isaack@android.com> New deskclock

Change-Id: I27f066b7fbc29eb3d4988a6aa901a6c9909fbcca
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.java
65d7dfb98ab0102ac899b20fecbc760f2d625608 29-Aug-2012 Isaac Katzenelson <isaack@android.com> DeskClock ViewPager layout

Change-Id: I6b53653f8073bb257f0bc46b0d0e8007a2480640
/packages/apps/DeskClock/src/com/android/deskclock/ClockFragment.java