History log of /packages/apps/DeskClock/src/com/android/deskclock/HandleApiCalls.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
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/HandleApiCalls.java
0f69521d84b80163a28491e764671d02b3d14590 06-Oct-2015 Annie Chin <afchin@google.com> Improve handling for deleteAfterUse timers.

Bug: 24515248

Do not differentiate notification "stop" action for non-deleteAfterUse
and deleteAfterUse timers.
Set timerObj state to STATE_DELETED when deleteAfterUse timer is
stopped.

Change-Id: I33ee021311134b1b120bbf7f793c45d013a8740d
/packages/apps/DeskClock/src/com/android/deskclock/HandleApiCalls.java
6a59a7b2c034557bc8bc7481544db5cd1105a891 20-Aug-2015 James Lemieux <jplemieux@google.com> Alarms created from external intents use default ringtone

Clock recently gained the notion of "application default ringtone"
but this was ignored in favor of "system default alarm ringtone" when
creating alarms from external intents. This behavior was fixed.

A secondary cleanup moved the functionality in
RingtoneDataManager into DataModel.

Bug: 23353723
Change-Id: Id092101dc30ec6c48f59cf4f142778b08a6075de
/packages/apps/DeskClock/src/com/android/deskclock/HandleApiCalls.java
5ae0b399eaa79fc9889086a7a0dc039a666d5265 10-Jul-2015 Annie Chin <afchin@google.com> Scroll to the started timer when timer is started through API call.

Bug: 22224832

Previously defaulted to the first timer in the list due to the
assumption that the started timer would be new.

Change-Id: Ibb42b14e3d47f7e9ded9460722a509c75ab9cb1a
/packages/apps/DeskClock/src/com/android/deskclock/HandleApiCalls.java
a7ed263c0fc460db44c572acd2ba921c303d6b81 23-Jun-2015 Daria Evdokimova <dariaevdo@google.com> Added voiceInteractor to Disambig dialog.

Didn't include voice interactor in one of the states
where the disambig dialog is shown, adding it here.

Change-Id: I1744ec4866b64a9774218fe07b9beb4a91bab586
/packages/apps/DeskClock/src/com/android/deskclock/HandleApiCalls.java
c9c756428be4a51c8839fa6ec6d2a096402fa8e4 23-Jun-2015 Daria Evdokimova <dariaevdo@google.com> Change strings for Alarms

Changes the argument passed into getString() for alarms.
Instead of taking 'alarm' itself passes formatted time.

Change-Id: If926dba122ef10bf788ac6c6b81e2fd05ebf4981
/packages/apps/DeskClock/src/com/android/deskclock/HandleApiCalls.java
07424a1e5b07d2f1e00c302c2c7510d0df380a90 23-Jun-2015 Daria Evdokimova <dariaevdo@google.com> Voice Interactor strings for SET_ALARM & SET_TIMER

Added new strings to be spoken through
VoiceInteractor for SET_ALARM and SET_TIMER

Change-Id: I9fc3a0e3a0023394d25c19fcd8fd80df866f1657
/packages/apps/DeskClock/src/com/android/deskclock/HandleApiCalls.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/HandleApiCalls.java
e6f73547d9fed9f9e0a44e6baf2894d317e6ef78 13-Jun-2015 Daria Evdokimova <dariaevdo@google.com> Picker UI for Alarms.

Implements the UI for Alarms.
When a user tries to DISMISS_ALARM and it's ambiguous
which alarm they mean we show the UI that lets them
pick an alarm they want.

Change-Id: Ia70277db7d6b6ac4277604837ec7b14cd519b2c6
/packages/apps/DeskClock/src/com/android/deskclock/HandleApiCalls.java
15888e382f62473fd837bd04596f30906136bc92 13-Jun-2015 Daria Evdokimova <dariaevdo@google.com> Snooze intent

Implementation of SNOOZE_ALARM.
After SNOOZE_ALARM intent is received a toast
saying 'Alarm is snoozed for 10 minutes' is shown.

Change-Id: I8e9fc6fb81372d5af71bc98ff01749b45b69e53f
/packages/apps/DeskClock/src/com/android/deskclock/HandleApiCalls.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/HandleApiCalls.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/HandleApiCalls.java
97a4d2c3f311ccb50ee46a93a6dac469b197c345 13-Jun-2015 Daria Evdokimova <dariaevdo@google.com> Change DISMISS window from 2 hours to 24 hours

As decided earlier enabling the option to DISMISS_ALARM
up to 24 hours in advance.

Change-Id: I30a235d91859a08d6d17a645aa8f646887152ab5
/packages/apps/DeskClock/src/com/android/deskclock/HandleApiCalls.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/HandleApiCalls.java
9b9e80f3f818e1240eed7e2f1d7bb1e64c3956b5 10-Jun-2015 Daria Evdokimova <dariaevdo@google.com> Allowing multiple alarms to be set for the same time through Intents.

Right now setting multiple alarms for the same time through Intents
is not allowed even though it is allowed through the UI.
This CL changes that. Tests for this feature are in the following CL.

Change-Id: I1383300e86e9d62042704edf45d146303f81c0a7
/packages/apps/DeskClock/src/com/android/deskclock/HandleApiCalls.java
5f594531901d5f562c0c6a8e1d4ffd2e57709764 27-May-2015 Daria Evdokimova <dariaevdo@google.com> Added Voice Action Intents

Added Voice Action Intents for Alarms, Clocks, Timers, and Stopwatch.
Fixed bugs that prevented the UI from going idle when
a timer/stopwatch is running.
Added Tests for intents from HandleVoiceApiCalls.
Removed static imports in HandleApiCalls.
Fixed a bug that didn't cancel a pending intent for an alarm
after it was deleted.
Integrated Intent Actions based on updates to AlarmClock.java MNC.

Bug: 21337563
Bug: 21337557
Bug: 21336697

Change-Id: If82bfad6487989839defc81483dff603c53e7cb8
/packages/apps/DeskClock/src/com/android/deskclock/HandleApiCalls.java
50ab55f5778342f83d0fcb2e6b2c3e8cae91ca8a 09-May-2015 James Lemieux <jplemieux@google.com> Add uniform event tracking to DeskClockGoogle

DeskClock has now been littered with calls of the form:
Events.sendEvent(category, action, label);

DeskClockApplication handles these events by logging them with a
uniform log tag.

Category is one of: Alarm, Clock, Timer, Stopwatch
Action describes what happened: e.g. create, delete, snooze, dismiss, etc.
Label describes where the action originated: DeskClock, Notification,
Wear, Intent, Voice

Bug: 20038553
Change-Id: Ia2485582e9da9e37a6858db3b61a68c9102c778d
/packages/apps/DeskClock/src/com/android/deskclock/HandleApiCalls.java
c5f13e3767d01a273c95cf1df48d81b1a7b3f2d6 14-Feb-2015 Annie Chin <afchin@google.com> Have HandleApiCalls extend Activity, not AppCompatActivity.

Bug: 19386542
Change-Id: I5980640d81599c1d46485560485cca5c9b5b5a2e
/packages/apps/DeskClock/src/com/android/deskclock/HandleApiCalls.java
758e914ef9e2c2c048b4e57e1aa1586587728dc2 13-Feb-2015 Annie Chin <afchin@google.com> Put in framework TimePicker to be backwards compatible for pre-L.

Bug:19368255
Change-Id: I770174456be523ee63e334dfd17ae525b62e1c9a
/packages/apps/DeskClock/src/com/android/deskclock/HandleApiCalls.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/HandleApiCalls.java
bae6862c87f851be4bbcbab57ac71ac5385c9850 24-Jan-2015 James Lemieux <jplemieux@google.com> Sync timers to externals

Change-Id: I676bda0f7358b4cbb0240c919240a5e353b04896
/packages/apps/DeskClock/src/com/android/deskclock/HandleApiCalls.java
255538c5eb70e663ae39fa0c226514b66f43b2d9 19-Nov-2014 Annie Chin <afchin@google.com> Merge "Create/Manage TimerId through SharedPreferences." into lmp-mr1-dev
21b76e3b412a95882951b9f98a4cd7f0e3d2fd47 17-Nov-2014 Annie Chin <afchin@google.com> Create/Manage TimerId through SharedPreferences.

Bug: 18285551
Change-Id: I15b1af308494e397b38b0b98b92c37b6be10e0f9
/packages/apps/DeskClock/src/com/android/deskclock/HandleApiCalls.java
5a62e2da97bdcd86b73176a3cff077fc6deddfdd 18-Nov-2014 Annie Chin <afchin@google.com> Add more logging statements to HandleApiCalls.

Bug: 18399515
Change-Id: Idaf8fd7818c5c1cd32cada5f63a81bc1ddf50658
/packages/apps/DeskClock/src/com/android/deskclock/HandleApiCalls.java
5ae21a32f1d5a66667c4792f957cd55da87136e3 29-Oct-2014 rachelzhang <rachelzhang@google.com> Bugfix: voice setting up timer should go to timers view

Bug: 17899446
Change-Id: I7e490561e30c65d7d5a21c7923e30019dfcf8097
/packages/apps/DeskClock/src/com/android/deskclock/HandleApiCalls.java
cdbb71b08c13c84af850f4036febc0b90dcfcc7d 12-Sep-2014 Justin Klaassen <justinklaassen@google.com> Improve AlarmActivity logging

Bug: 17481822

- In order to better debug alarm firing issues, improve the log utility to
log verbosely on engineering builds and to respect the current logging level.
- Add more verbose logs to AlarmActivity.

Change-Id: I8355a335c4ada84baa2e6aa6d368f3a69e7b4b98
/packages/apps/DeskClock/src/com/android/deskclock/HandleApiCalls.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/HandleApiCalls.java
742cdd52a41758b6f4cca9a635e1f398260ce4f0 03-Oct-2013 Alon Albert <aalbert@google.com> Days Extra Should be an ArrayList<String>

But accept int[] too.

Bug: 10492773
Change-Id: I5338388f756087d6fb37d47a1c7b3bdc2e043abb
/packages/apps/DeskClock/src/com/android/deskclock/HandleApiCalls.java
6806f6761dd6c10df03ad0c564a4c741a70244e0 12-Sep-2013 Paul Sliwowski <psliwowski@google.com> Fixed scroll to view.

Bug: 10681753

Change-Id: Idcf79eb4297cf7cdf05c299e8c0aad9d7bb858a0
/packages/apps/DeskClock/src/com/android/deskclock/HandleApiCalls.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/HandleApiCalls.java
3a8cccb87ddad4e39179303f3fb59c65579436c1 30-Aug-2013 Alon Albert <aalbert@google.com> Merge "Handle SHOW_ALARMS Intent" into ics-ub-clock-amazon
101ed3de571396c3cfc66f66f86e9b0d8afbc600 30-Aug-2013 Alon Albert <aalbert@google.com> Handle SHOW_ALARMS Intent

Change-Id: I9435b66cbf5d37fac89a206bad14b5a11735d543
/packages/apps/DeskClock/src/com/android/deskclock/HandleApiCalls.java
3534dc25837e27090ce5cfdcf6190f879d3aa4e2 30-Aug-2013 Alon Albert <aalbert@google.com> No DAYS EXTRA Implies Non-Repeating

So don't try to reuse a recurring alarm in that case.

Change-Id: I0c6cb6b4ee68306f3dc1798b40c3a2901f1b5db7
/packages/apps/DeskClock/src/com/android/deskclock/HandleApiCalls.java
1c604c48ef4dd01e789e1fffb0dec8f815e0cd30 29-Aug-2013 Alon Albert <aalbert@google.com> Enhance SetAlarm API

Add DAYS, VIBRATE, ALERT
Implement implicit deleteAfterUse

Change-Id: Ibe58394020987469aca4a7895ac591407e64ce5e
/packages/apps/DeskClock/src/com/android/deskclock/HandleApiCalls.java
e7c4dc56335d2c0f56b7c3373f8b648b8c1afcba 28-Aug-2013 Isaac Katzenelson <isaackatz@google.com> Fix delete after use implementation for timers

Bug: 10517026
Change-Id: I35f450dcfa379df92dbdfd997a351056e9233f41
/packages/apps/DeskClock/src/com/android/deskclock/HandleApiCalls.java
91ffb2a0726a56213c0649c864a56bf120896e80 27-Aug-2013 Isaac Katzenelson <isaackatz@google.com> Add support for SET_TIMER api

Bug: 7497400, 8131590
Fixes alarm not created when using the API with SKIP_UI is false

Change-Id: If401c88d2d4945a1d5b85b421f7c52a329b63c49
/packages/apps/DeskClock/src/com/android/deskclock/HandleApiCalls.java
8188813bc869d3df4885f9c2972f9cc85745b59b 20-Aug-2013 Paul Sliwowski <psliwowski@google.com> Refactor and add new tables/daos to Content Provider.

Changes includes:
- Add new Instances table to hold alarm state
- Add new Cities table to hold user selectable cities.
- Add delete_after_use column to Alarms table.
- Fix issue where alarmId was a int and not a long.
- Move Alarm related code to Alarm dao.
- Moved DaysOfWeek out of Alarm dao.

Change-Id: Idd578bb3668099ec8f4b30fbe9b62b06158ab406
/packages/apps/DeskClock/src/com/android/deskclock/HandleApiCalls.java
37dcae47682b04c8702ebb2021d5a6429b382130 23-Aug-2013 Isaac Katzenelson <isaackatz@google.com> Boiler plate code for SET_TIMER intent support

Bug: 7497400
Change-Id: Id0aa03a3604ce5e48b5e99a9dc07eaf7f917adb8
/packages/apps/DeskClock/src/com/android/deskclock/HandleApiCalls.java