History log of /frameworks/base/packages/SystemUI/src/com/android/systemui/media/RingtonePlayer.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
783ee0ca8707a4e2977d1afd42cd01a3885a06e6 06-Mar-2016 Jeff Sharkey <jsharkey@android.com> Ask RingtonePlayer to open data for caching.

When setting default ringtones, RingtoneManager now caches the
selected media for playback before the device is unlocked. However,
this API hasn't historically required the caller to hold storage
permissions.

To keep this working, we attempt to delegate ringtone access over
through RingtonePlayer, which is what we do for playback. However,
because we're caching the real ringtone bits now, we need to be much
more careful about the PFDs we're willing to return. This change
requires that they be in external storage, and that they have the
ringtone/alarm/notification bit set.

Bug: 27366059
Change-Id: I59c2adc1d1250a3eac281f190f35a7cb3119967b
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/RingtonePlayer.java
e4de5a0d3b6e0c897c1cea0912b58e11db962365 23-Sep-2015 Xiaohui Chen <xiaohuic@google.com> Cleanup OWNER references.

Bug: 19913735
Change-Id: I2150c6baaab80fe11312e4401394a2a8da52e595
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/RingtonePlayer.java
4a05bbcd38604cbbcbac66af1abc69ecffddad8b 08-Aug-2015 Sungmin Choi <sungmin.choi@lge.com> Fix to check the incoming userid argument for RingtonePlayer

In PowerNotificationWarnings, where it dispatches notifications
with UserHandle.ALL:
mNoMan.notifyAsUser(TAG_NOTIFICATION, R.id.notification_power, n, UserHandle.ALL);
The fix is to have RingtonePlayer check the incoming userId argument to playAsync(),
and change USER_ALL to USER_OWNER.

BUG=22516181
BUG=22992637
Change-Id: Ia3f8aaa2bee7fb15c24542e2331b2bc5a877e715
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/RingtonePlayer.java
68de157b7810be72a283b9e0db292895d96988a9 20-Jul-2015 Todd Kennedy <toddke@google.com> Use RingtonePlayer to get ringtone title

Instead of requiring every application that calls Rintone.getTitle()
to request android.permission.READ_EXTERNAL_STORAGE, pass the call
through to the system UI process. We only do this for media store
URIs.

Bug: 22067670
Change-Id: I38cf3fb8d769ef6984c41a7b04afbbd4c57175ce
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/RingtonePlayer.java
462045e89aed0163a4681b8221f0df3f26900136 30-Jun-2015 Jean-Michel Trivi <jmtrivi@google.com> Ringtone: add support for volume control and looping

Bug 22182606

Change-Id: Ied910b9fe02a5da9c4822a107ee884677c8b4991
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/RingtonePlayer.java
81f871e2b96125d57b76c07169e868e516443794 07-Aug-2014 Jean-Michel Trivi <jmtrivi@google.com> Add support for AudioAttributes in android.media.Ringtone

Deprecate use of stream types.
Map deprecated API to AudioAttributes.
Add new methods to specify AudioAttributes on a Ringtone instance.

Bug 16790748

Change-Id: Ifb3c2e838e1f119614459ad7d71d83a4d7c9ffdb
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/RingtonePlayer.java
cd686b5b6d4166b510df8e32138479a9559bc117 05-Jun-2013 John Spurlock <jspurlock@google.com> Migrate systemui Slog calls to Log

Change-Id: Ib6734c85960f06fed646599565b8eeba26b9e98e
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/RingtonePlayer.java
b8bacccfc159fe204e5b09b52de55f8ba853f713 05-Jun-2013 John Spurlock <jspurlock@google.com> Remove a few non-public dependencies.

Maps, CharSequences, MotionEvent.copy

Change-Id: I97e15b0f9530623f65e061674bd7ec56d8fefa3e
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/RingtonePlayer.java
65c4a2b26cd8776b0927e9b0e07ecf53bd31b627 26-Sep-2012 Jeff Sharkey <jsharkey@android.com> Multi-user ringtone playback.

Change RingtonePlayer to open content:// Uris based on requesting
UserHandle. Grant SystemUI visibility to all emulated storage so
it can play ringtones for apps without READ_EXTERNAL_STORAGE.

Resolve canonical file:// Uris before passing out of source app,
replacing any /emulated_legacy/-style paths with user-specific
variant so they can be opened by SystemUI. Calling for RemoteViews,
Ringtones, and Notifications.

Bug: 7202982
Change-Id: Ibf0eca8df80c1486711144a7b648f464aadfe099
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/RingtonePlayer.java
b6e404a95f31f4681265eb53d2b7969f900151cc 15-May-2012 Jeff Sharkey <jsharkey@android.com> Disable verbose RingtonePlayer debugging.

Bug: 6491451
Change-Id: I41119599b5bbcc1a2bb717b3673e01e4b5366b9c
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/RingtonePlayer.java
098d580cc2bb6c0891c756a4e5230c6c6b0d2376 27-Apr-2012 Jeff Sharkey <jsharkey@android.com> Migrate ringtone playback to SystemUI.

Introduce IRingtonePlayer, which handles playback for both Ringtone
objects and Notifications. SystemUI now hosts this player, which it
registers with AudioService. It also keeps MediaPlayer instances
warm, and cleans them up after stop() or Binder death.

Move both Ringtone and NotificationManagerService to play back audio
through this new interface.

Bug: 6376128, 6350773
Change-Id: I1dcb86d16ee3c4f07cdb2248d33dcff4ead3609a
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/RingtonePlayer.java