History log of /packages/apps/DeskClock/src/com/android/deskclock/alarms/AlarmTimeClickHandler.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
2ce91e244f72c245dd31b06a2156d89828a41ed6 31-Jan-2017 James Lemieux <jplemieux@google.com> Avoid exceptions while launching ringtone picker from non-Activity

Bug: 34819444
Test: Manually launch the ringtone picker
Change-Id: Id91e051cd18d08dcc87eda70d0519c61e9568961
/packages/apps/DeskClock/src/com/android/deskclock/alarms/AlarmTimeClickHandler.java
e82722e842c4b1e4395b7df8acfdec1dbb33d4f2 25-Jan-2017 Sean Stout <sstout@google.com> AlarmTimeClickHandler caches application context - DO NOT MERGE

Bug: 34628534
Test: manual - ensure application context is cached upon AlarmTimeClickHandler creation
Change-Id: I91fc3d1686e1329ef9399fec8aa7dc4ce90776ec
/packages/apps/DeskClock/src/com/android/deskclock/alarms/AlarmTimeClickHandler.java
baed4fe9b41db74d9c428a377a630ee2010d5126 10-Nov-2016 James Lemieux <jplemieux@google.com> Support no selection in ringtone picker

Bug: 32703296

If the picker is created with an initial selection that is absent
in the list of options, clear the selection and avoid altering the
ringtone unless the user explicitly selects a new one.

Change-Id: If86f04bfa8777039412c1e1767bbaa252f93ac30
/packages/apps/DeskClock/src/com/android/deskclock/alarms/AlarmTimeClickHandler.java
ad63baa415c9def882c9ee49b85b2ed918246624 01-Nov-2016 Christine Franks <christyfranks@google.com> Add extra layout space for predictive animations

Bug: 31563493
Test: manual - add and delete alarms, watch them animate nicely

Change-Id: Iedbc72b86f2a13e3b3fab9ffaeca4a6a26c751f3
/packages/apps/DeskClock/src/com/android/deskclock/alarms/AlarmTimeClickHandler.java
6310cf2e3693a94ae9a0c07d6ddce9099bd0de27 01-Nov-2016 James Lemieux <jplemieux@google.com> Add precision to logged alarm actions

Bug: 30792257
Change-Id: Ic5e1ccdcd3ec3ea0ba03d08265f625304e4c188c
/packages/apps/DeskClock/src/com/android/deskclock/alarms/AlarmTimeClickHandler.java
880fb2e124e16930648972554e8dde8d622a5644 13-Oct-2016 Justin Klaassen <justinklaassen@google.com> Unified time picker implementation

Bug: 32541057
Test: Manual - verified time picker appearance on KK and N MR1.
Change-Id: I3865369f495476387b6fbe7dca71b3d335f31303
/packages/apps/DeskClock/src/com/android/deskclock/alarms/AlarmTimeClickHandler.java
33781c882e4229f4ec1a8fafbabb9d4b8b8e2932 14-Oct-2016 James Lemieux <jplemieux@google.com> Implementing fullscreen ringtone picker

Bug: 27856432

Ringtone picker now looks more like the rest of the app. Also allows
the user to pick a file chosen from their file system using the built-in
file browser.

Change-Id: I8ce9dbc28e414d188f52b3885960a475a16061d8
/packages/apps/DeskClock/src/com/android/deskclock/alarms/AlarmTimeClickHandler.java
e90855acf862c7cabbdd169713f2283496b098f2 22-Oct-2016 James Lemieux <jplemieux@google.com> Avoid IllegalStateException while editing label

Bug: 32333918
Bug: 32332232

It appears the IME can deliver events after the fragment has saved
its state. Defensive code now stops listening for IME events when the
fragment view is destroyed. It also calls dismissAllowingStateLoss() to
be more resilient to this problem.

Change-Id: I3139c7f56596e148e9179035562f80e9fc232cf4
/packages/apps/DeskClock/src/com/android/deskclock/alarms/AlarmTimeClickHandler.java
ff17acface9b98eba868fff0e2d70ddc85c5e4db 31-Jul-2016 James Lemieux <jplemieux@google.com> Replace DaysOfWeek with Weekdays

Bug: 27915335

Weekdays is designed to be immutable, as are all other data model objects.

Change-Id: I9a12bdb17e439dbe79b735e9ed7e04940ea93048
/packages/apps/DeskClock/src/com/android/deskclock/alarms/AlarmTimeClickHandler.java
95f47c5ca6b04d50ae67eec5b8231d105b2f6ca1 19-May-2016 Justin Klaassen <justinklaassen@google.com> Restore selected alarm on orientation change

Bug: 28847564
Change-Id: Ia0298d055d36939fa3ea607558120329403d2add
/packages/apps/DeskClock/src/com/android/deskclock/alarms/AlarmTimeClickHandler.java
b2e7e162327b1992aa74721a8847c7f7a579e049 18-May-2016 Justin Klaassen <justinklaassen@google.com> Custom ringtone picker v2

Bug: 28667387

- Request the READ_EXTERNAL_STORAGE permission if it isn't already
granted when launching the ringtone picker. This allows the listing
of external ringtones stored in the alarms/ folder.
- Allow the volume rockers to control the alarm stream volume while the
ringtone picker is showing.
- Load the RingtoneManager's cursor off the main thread to prevent
potential ANRs and jank.
- Use Theme.AppCompat.Dialog to more closely match the styling of the
platform version.
- Disable the "OK" button if the selection is invalid.

Change-Id: I1ec6b0b744a3a19b3f289e33c24db982543862bc
/packages/apps/DeskClock/src/com/android/deskclock/alarms/AlarmTimeClickHandler.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/alarms/AlarmTimeClickHandler.java
0edcbf10d2ad7c5cae8f92d2fa502dbb183d454a 22-Jan-2016 Dylan Phan <lerp@google.com> Merge "Add alarm volume muted indicators" into ub-deskclock-escargatoire
1692031401c9896805a35e31c152b12e6e663c51 07-Dec-2015 Dylan Phan <lerp@google.com> Add alarm volume muted indicators

Bug: 23940484

Also introduce ItemAdapter abstraction.

Change-Id: Ib308300c3a7493f7582e16734745d263a6179b09
/packages/apps/DeskClock/src/com/android/deskclock/alarms/AlarmTimeClickHandler.java
5ac08ffbd616b6fbeae8eb6b2555799669d428cf 15-Jan-2016 James Lemieux <jplemieux@google.com> Fix alarm not firing in memory-pressure situations
am: b76aa50f9e

* commit 'b76aa50f9e13e71e81b9d02cc3ebebaa73188d3e':
Fix alarm not firing in memory-pressure situations
b76aa50f9e13e71e81b9d02cc3ebebaa73188d3e 14-Jan-2016 James Lemieux <jplemieux@google.com> Fix alarm not firing in memory-pressure situations

Bug: 25846551

The original form of the code that fires an alarm is:
AlarmManager -> BroadcastReceiver -> Service.

The new form of the code that fires an alarm is:
AlarmManager -> Service.

Evidence exists that the system lowmemorykiller may elect to kill the
clock app after BroadcastReceiver.onReceive(...) completes but before
Service.onStartCommand(...) begins. When this occurs, the results are
disastrous as the clock fails to fire at the appropriate time.

To remove this possibility, all alarm state changes are delivered to the
Service. The methods that manipulate database state within
BroadcastReceiver have been made public and static and are called
directly from the Service to perform the same work as before. If the
alarm state transition is to the FIRING state, the AlarmService also
performs the work of posting the firing notification in the foreground.
All of this occurs during the handling of a single Intent on the same
thread within the service which should no longer provide
lowmemorykiller with any opportunities to prevent the firing of an alarm
by killing the clock app.

Change-Id: I3629a5b725a758f680f41611939a5bbeec23238a
/packages/apps/DeskClock/src/com/android/deskclock/alarms/AlarmTimeClickHandler.java
3101fcf76ff5c228d2e643395be03d6cbf97d47e 27-Oct-2015 Dylan Phan <lerp@google.com> Implement custom ringtone picker for timers and alarms.

Bug: 23996371
Change-Id: I6515da60f2811d7fd03b8a41d9bd724dc959fd0f
/packages/apps/DeskClock/src/com/android/deskclock/alarms/AlarmTimeClickHandler.java
c254e35cec28ebbb2866295ca60a4971a150819c 20-Aug-2015 James Lemieux <jplemieux@google.com> Preview the vibration when it is enabled on an alarm

To give the user a sample of the expected behavior when
configuring an alarm.

Change-Id: Ie64f0260857d0e8681f97d4a5f0e3024e4a64cb3
/packages/apps/DeskClock/src/com/android/deskclock/alarms/AlarmTimeClickHandler.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/alarms/AlarmTimeClickHandler.java
c8f715a45ad7bb522f48fbd25b500000cb49d1b8 19-Aug-2015 Annie Chin <afchin@google.com> Pop a toast when an alarm is predismissed from the AlarmClockFragment.

Bug: 23345016

Toast/talkback reads the message "<alarm time> alarm dismissed.

Change-Id: I2cc6ee54238c86402ad252c8ada198f6d95e634c
/packages/apps/DeskClock/src/com/android/deskclock/alarms/AlarmTimeClickHandler.java
effc01ce01f15cae466235d3a736389c84c7ebef 05-Aug-2015 Fan Zhang <zhfan@google.com> Convert ListView to RecyclerView in AlarmClockFragment.

Bug: 17425204
Bug: 23075718
Bug: 17324151
Change-Id: I85df81d7a8b352e37022953f57c5158a1d04797d
/packages/apps/DeskClock/src/com/android/deskclock/alarms/AlarmTimeClickHandler.java