summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2012-09-26 13:38:21 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-09-26 13:38:22 -0700
commit1951db86f527ff4e8c2ddf4306779ce956cd372d (patch)
treeec949cff9b00baf7d1a80909a80984bbdc933e9f /media
parentfd3398c8bf25d8ec7ce813ebda431d67d734f268 (diff)
parent65c4a2b26cd8776b0927e9b0e07ecf53bd31b627 (diff)
downloadframeworks_base-1951db86f527ff4e8c2ddf4306779ce956cd372d.zip
frameworks_base-1951db86f527ff4e8c2ddf4306779ce956cd372d.tar.gz
frameworks_base-1951db86f527ff4e8c2ddf4306779ce956cd372d.tar.bz2
Merge "Multi-user ringtone playback." into jb-mr1-dev
Diffstat (limited to 'media')
-rw-r--r--media/java/android/media/IRingtonePlayer.aidl3
-rw-r--r--media/java/android/media/Ringtone.java3
2 files changed, 4 insertions, 2 deletions
diff --git a/media/java/android/media/IRingtonePlayer.aidl b/media/java/android/media/IRingtonePlayer.aidl
index 44a0333..0872f1d 100644
--- a/media/java/android/media/IRingtonePlayer.aidl
+++ b/media/java/android/media/IRingtonePlayer.aidl
@@ -17,6 +17,7 @@
package android.media;
import android.net.Uri;
+import android.os.UserHandle;
/**
* @hide
@@ -28,6 +29,6 @@ interface IRingtonePlayer {
boolean isPlaying(IBinder token);
/** Used for Notification sound playback. */
- void playAsync(in Uri uri, boolean looping, int streamType);
+ void playAsync(in Uri uri, in UserHandle user, boolean looping, int streamType);
void stopAsync();
}
diff --git a/media/java/android/media/Ringtone.java b/media/java/android/media/Ringtone.java
index 23f7b55..f190eb9 100644
--- a/media/java/android/media/Ringtone.java
+++ b/media/java/android/media/Ringtone.java
@@ -225,8 +225,9 @@ public class Ringtone {
mLocalPlayer.start();
}
} else if (mAllowRemote) {
+ final Uri canonicalUri = mUri.getCanonicalUri();
try {
- mRemotePlayer.play(mRemoteToken, mUri, mStreamType);
+ mRemotePlayer.play(mRemoteToken, canonicalUri, mStreamType);
} catch (RemoteException e) {
Log.w(TAG, "Problem playing ringtone: " + e);
}