History log of /packages/apps/DeskClock/src/com/android/deskclock/HandleDeskClockApiCalls.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
06a5775de256f1238909789406ae7bec593b5b42 09-Dec-2015 James Lemieux <jplemieux@google.com> Pausing an expired timer should reset it

Bug: 22371346

This is a use case that can only occur via system intents and not
via the user interface. Since the utility of pausing and/or resuming
an expired timer is dubious at best, the effect is now changed to
reset the expired timer.

Change-Id: I28c7500d1393dcfade1303b31de750c525dd0df3
/packages/apps/DeskClock/src/com/android/deskclock/HandleDeskClockApiCalls.java
692ccc4aaf2d6f605ac59235b7774b656847ab07 25-Nov-2015 James Lemieux <jplemieux@google.com> Do not attempt to display deleted timer

TimerIntentsTest actually caught this bug. The intent to show
the timer tab requested that a freshly deleted timer be displayed.
This can produce exceptions if it was the last timer.

When a timer is deleted, the timer tab can be shown but no
specific timer should be requested for display.

Change-Id: I7024fbe5a154d5ecb8d563c80c09044d3917ab50
/packages/apps/DeskClock/src/com/android/deskclock/HandleDeskClockApiCalls.java
437da3b08ce9ce1b32f4e544816cb3431ceb8d4e 13-Nov-2015 James Lemieux <jplemieux@google.com> Simplify HandleDeskClockApiCalls, TimerService and StopwatchService

HandleDeskClockApiCalls used to pass through all timer and stopwatch
mutations to the corresponding Service to complete. This complicated
the logging of the corresponding event unnecessarily.

After this change:

- StopwatchService is only invoked from stopwatch notifications and may
now assume the event label

- TimerService is only invoked from timer notifications and AlarmManager
and may now assume the event label

- HandleDeskClockApiCalls.EXTRA_FROM_NOTIFICATION has been replaced
with HandleDeskClockApiCalls.EXTRA_EVENT_LABEL which explicitly
identifies the label of the event

Change-Id: Ic9796c43e826f82138ee431d3abb02524c0146ba
/packages/apps/DeskClock/src/com/android/deskclock/HandleDeskClockApiCalls.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/HandleDeskClockApiCalls.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/HandleDeskClockApiCalls.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/HandleDeskClockApiCalls.java
0458c052eb27c3a829290fd411b78f9a20279ac5 15-Jul-2015 Daria Evdokimova <dariaevdo@google.com> Fixing bug for firing timer after STOP_TIMER

b/22469231

Change-Id: I329968036e6c5676489f5d0e466a035264d051f1
/packages/apps/DeskClock/src/com/android/deskclock/HandleDeskClockApiCalls.java
4ed569b3e7df20b1347c4cb25035bf1f2c5908e1 14-Jul-2015 Daria Evdokimova <dariaevdo@google.com> Fixing bug for RESET_TIMER and STOP_TIMER

b/22469477

Change-Id: I3a465875b1b8e2f37b20834873649d02a687545b
/packages/apps/DeskClock/src/com/android/deskclock/HandleDeskClockApiCalls.java
8d9154927ac682f096ac0d9ea6d12c7724c01c80 14-Jul-2015 Daria Evdokimova <dariaevdo@google.com> Merge "Fixing bug for STOP_TIMER" into ub-deskclock-business
996e976a80c687e00257dc1d77a2afa96c3054e3 14-Jul-2015 Daria Evdokimova <dariaevdo@google.com> Fixing bug for STOP_TIMER

b/22468335

Change-Id: Iade02428b9aba8f35d93b2ada80fad7daad936c0
/packages/apps/DeskClock/src/com/android/deskclock/HandleDeskClockApiCalls.java
e8fad03ba6d08024ae12171e0aa430de545f6f3f 10-Jul-2015 Daria Evdokimova <dariaevdo@google.com> Fixing bug for ADD_CLOCK & DELETE_CLOCK

b/22399073

Change-Id: I962dea41256d9f05f53b0c6ea222e74c6b0b30cd
/packages/apps/DeskClock/src/com/android/deskclock/HandleDeskClockApiCalls.java
95d226e9785c7608923f05be54211fe0d415a3f6 24-Jun-2015 Daria Evdokimova <dariaevdo@google.com> New strings for stopwatch

Made customized strings for stopwatch instead
of generic 'Stopwatch mode was changed'.
Also changed the logic so that the above string isn't
shown for SHOW_STOPWACH.

Change-Id: Ic5d90bf641fa924de9ce2effd60bd923ecfd5d9c
/packages/apps/DeskClock/src/com/android/deskclock/HandleDeskClockApiCalls.java
8cf42f4b4f211efd12cd3e7c623beeb07d120e37 24-Jun-2015 Daria Evdokimova <dariaevdo@google.com> Using MNC codename instead of int

Using Build.Version doesn't work yet
because MNC shows as 22, not 23.
Added todo's to change that closer to MNC release.

Change-Id: I6cb0504ddf05cd7a00a3d95d4826c50ceeeb517c
/packages/apps/DeskClock/src/com/android/deskclock/HandleDeskClockApiCalls.java
00a08477a7b821f1384836d2e251eb2ef840d8b7 23-Jun-2015 Daria Evdokimova <dariaevdo@google.com> Added VoiceInteractor to DELETE_CLOCK

Added voice interaction for when a user attempts to
DELETE_CLOCK that wasn't added to their clock list yet

Change-Id: Iea3b8e5e672bc6a94196767f98f052d4c3da3285
/packages/apps/DeskClock/src/com/android/deskclock/HandleDeskClockApiCalls.java
97149ea89a5c0e057f25b89b87eef6224b82a777 19-Jun-2015 Daria Evdokimova <dariaevdo@google.com> Enabling VoiceInteractor

Submitting request to Voice interactor for
every successful and failed attempt to launch
a voice action. A couple of changes to strings based
on recent changes to the code.

Change-Id: I2c7745685e87fb267e87b772b0bf29c946cc1bc0
/packages/apps/DeskClock/src/com/android/deskclock/HandleDeskClockApiCalls.java
37fb8c747190e0657fbde31ff1d920f3eca42432 11-Jun-2015 Daria Evdokimova <dariaevdo@google.com> Change timers only if no disambig necessary

Currently voice actions on timers act on a timer that's last
on the Timers list in the database which might not be the timer
that the user wants to change. This CL changes it so that
a voice action on Timers is successful only if it's clear which
Timer a user means. DELETE_TIMER only acts if there's only
one available timer. START_TIMER only acts if there's one
non-running timer. RESET_TIMER only acts if there's one
stopped timer. STOP_TIMER only acts if there's only one
non-stopped timer.
Tests are added in a separate CL.

Change-Id: Ibbd86bdd27f7936674e95e6b7966fbb72a4264a1
/packages/apps/DeskClock/src/com/android/deskclock/HandleDeskClockApiCalls.java
61773fcb242cfcf7f5759c434d22780540619aeb 13-Jun-2015 Daria Evdokimova <dariaevdo@google.com> Remove label_voice from events.

Substituting label_voice for label_intent.

Change-Id: I013438fbdec4f0a169ca5df34fa71fb346d3f41e
/packages/apps/DeskClock/src/com/android/deskclock/HandleDeskClockApiCalls.java
972fca903a5272631c2cfbe5f111adc8edeace51 12-Jun-2015 Daria Evdokimova <dariaevdo@google.com> Move DISMISS_ALARM & rename HandleVoiceApiCalls

Renamed HandleVoiceApiCalls to HandleDeskClockApiCalls.
Removed the VOICE_ prefix from all the intents in that class.
Moved DISMISS_ALARM to HandleApiCalls instead of
HandleDeskClockApiCalls.

Change-Id: I17a1271e68a4b275ba8f4d471a61a7b02e6ceac0
/packages/apps/DeskClock/src/com/android/deskclock/HandleDeskClockApiCalls.java