summaryrefslogtreecommitdiffstats
path: root/core/java/android/app/Notification.java
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2012-04-26 17:30:34 -0700
committerJeff Sharkey <jsharkey@android.com>2012-04-27 14:15:05 -0700
commit098d580cc2bb6c0891c756a4e5230c6c6b0d2376 (patch)
treebd5ae0f9e87a5516e8c481cebc54321272152491 /core/java/android/app/Notification.java
parentf5d70fd2add31cdb2e4ca1e931b47db95fa4b3e0 (diff)
downloadframeworks_base-098d580cc2bb6c0891c756a4e5230c6c6b0d2376.zip
frameworks_base-098d580cc2bb6c0891c756a4e5230c6c6b0d2376.tar.gz
frameworks_base-098d580cc2bb6c0891c756a4e5230c6c6b0d2376.tar.bz2
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
Diffstat (limited to 'core/java/android/app/Notification.java')
-rw-r--r--core/java/android/app/Notification.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java
index 0a996df..69689c9 100644
--- a/core/java/android/app/Notification.java
+++ b/core/java/android/app/Notification.java
@@ -21,6 +21,7 @@ import com.android.internal.R;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
+import android.media.AudioManager;
import android.net.Uri;
import android.os.Bundle;
import android.os.IBinder;
@@ -213,7 +214,7 @@ public class Notification implements Parcelable
/**
* Use this constant as the value for audioStreamType to request that
* the default stream type for notifications be used. Currently the
- * default stream type is STREAM_RING.
+ * default stream type is {@link AudioManager#STREAM_NOTIFICATION}.
*/
public static final int STREAM_DEFAULT = -1;