History log of /packages/apps/DeskClock/src/com/android/deskclock/timer/TimerKlaxon.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
f8faca1961278db2797d122351885ce6e32e4f3d 01-Sep-2015 James Lemieux <jplemieux@google.com> Simplify code that adds None as a valid timer ringtone

- None option is added to picker by default, remove code that
manually added it
- Replace NO_RINGTONE_URI constant in TimerRingtonePreference
with test method: DataModel.isSilentTimerRingtoneUri(uri)

Bug: 23499698
Change-Id: Id45a24bee607edd8295c2a31785e55d67b44e8b0
/packages/apps/DeskClock/src/com/android/deskclock/timer/TimerKlaxon.java
32efff252246b90ae870600a7b8db3a62c1ebdc8 26-Aug-2015 Annie Chin <afchin@google.com> Allow "Silent" to be set as a Timer ringtone.

Bug: 23499698

Add "None" option to Timer ringtone selection. Summary will show up
as "Silent." This is consistent with Alarm ringtone selection.

Change-Id: I4dc87f3258a3223a2bcddcf29076944cd9637df4
/packages/apps/DeskClock/src/com/android/deskclock/timer/TimerKlaxon.java
bd9eae10b13e015d1997d06f13e9abe06a7f306b 21-Aug-2015 James Lemieux <jplemieux@google.com> Present Clock's timer beep as the default ringtone

A "settings" package was introduced as a byproduct of this CL.

When choosing the preferred ringtone for timers, the default
selection should play timer_expired.ogg which ships with the
application. This is the only sound played on all prior version of
the application.

Known Issue: the dialog will label the default as
"Default alarm sound". This will be fixed in a later CL.

Change-Id: I4e9c6663c597038ec273b699cdda3a036b376350
/packages/apps/DeskClock/src/com/android/deskclock/timer/TimerKlaxon.java
856483e7e18d5f042a338f7b3d472e28a386c4ad 18-Aug-2015 James Lemieux <jplemieux@google.com> remove requests for READ_EXTERNAL_STORAGE permission

Very late in the M release, a change was made to no longer
require the READ_EXTERNAL_STORAGE permission to view
the titles of external ring tones. Consequently, we no longer
have a reason to acquire this permission in the application.

As well, the storage of the ringtone to play for expired timers
has been moved from Utils into the DataModel.

Bug: 22919062
Change-Id: I9209cd3e6efaee1063c1c04bca15b0ea61ffc4d8
/packages/apps/DeskClock/src/com/android/deskclock/timer/TimerKlaxon.java
88fecb35c9673a8bd6faabd4d03045e9b1d36c45 23-Jul-2015 James Lemieux <jplemieux@google.com> Add option for progressive ringtones

New settings were added for alarms and timers that
allow the user to choose a duration of a crescendo or
0 if no crescendo is desired.

Bug: 18230898
Change-Id: I64df05bab0026c9d55d7e526fc918f1e6f3b2c08
/packages/apps/DeskClock/src/com/android/deskclock/timer/TimerKlaxon.java
f139f92b7861f51cf343ecf13e0c06768c363903 10-Jul-2015 Annie Chin <afchin@google.com> Add custom ringtones for timers.

Bug: 18366475

Add an option in the SettingsActivity to change timer ringtone.
In order to keep currently satisfied users happy, default to using
the current timer_expire.ogg ringtone. If the user opens the
timer ringtone preference, they'll be able to pick from
RingtoneManager's alarm selection. This also means that they will
never be able to get timer_expire back unless they clear their
SharedPreferences, because timer_expire is not one of
RingtoneManager's provided ringtones.

Before the user selects a RingtoneManager ringtone, leave the
summary for the timer ringtone preference blank so the user will
have less of an impression that timer_expire is a selectable option.

Change-Id: I513514d9add3e67e22d539d54eeea236677e5874
/packages/apps/DeskClock/src/com/android/deskclock/timer/TimerKlaxon.java
5bacdff3431203e8eb14500dc7a3df7a6950f3f6 01-Jul-2015 Annie Chin <afchin@google.com> Use AsyncRingtonePlayer for timer ringtones.

Bug: 18366475

This will facilitate implementing custom ringtones for timers.
Remove MediaPlayer from TimerService.

Change-Id: I2a94b5c8ded06a99304b0fa80f21fc022c0ece42
/packages/apps/DeskClock/src/com/android/deskclock/timer/TimerKlaxon.java