diff options
author | Gloria Wang <gwang@google.com> | 2011-03-16 10:44:03 -0700 |
---|---|---|
committer | Gloria Wang <gwang@google.com> | 2011-03-16 21:36:30 -0700 |
commit | f8bf3c46f524b1252bf466a351daaef61afdcecb (patch) | |
tree | 40f222d60751b8278291b5890d7fc3f2fb6a75eb /drm/java/android/drm/DrmInfoEvent.java | |
parent | 3913c131c61288c5b4eedb063d9eb6b6204d2a1f (diff) | |
download | frameworks_base-f8bf3c46f524b1252bf466a351daaef61afdcecb.zip frameworks_base-f8bf3c46f524b1252bf466a351daaef61afdcecb.tar.gz frameworks_base-f8bf3c46f524b1252bf466a351daaef61afdcecb.tar.bz2 |
Fix for 4089881.
- Add one more parameter in the interface of DrmEvent and its subclasses
DrmInfoEvent and DrmErrorEvent
- Send back DrmInfo in the response of async processDrmInfo calls
Change-Id: Ia9b1a641296629a19ae4ffa7913e6c878fd340f8
Diffstat (limited to 'drm/java/android/drm/DrmInfoEvent.java')
-rw-r--r-- | drm/java/android/drm/DrmInfoEvent.java | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/drm/java/android/drm/DrmInfoEvent.java b/drm/java/android/drm/DrmInfoEvent.java index 72f37ea..190199a 100644 --- a/drm/java/android/drm/DrmInfoEvent.java +++ b/drm/java/android/drm/DrmInfoEvent.java @@ -16,6 +16,8 @@ package android.drm; +import java.util.HashMap; + /** * This is an entity class which would be passed to caller in * {@link DrmManagerClient.OnInfoListener#onInfo(DrmManagerClient, DrmInfoEvent)} @@ -54,11 +56,25 @@ public class DrmInfoEvent extends DrmEvent { * constructor to create DrmInfoEvent object with given parameters * * @param uniqueId Unique session identifier - * @param type Type of information + * @param type Type of the event. It could be one of the types defined above * @param message Message description */ public DrmInfoEvent(int uniqueId, int type, String message) { super(uniqueId, type, message); } + + /** + * constructor to create DrmInfoEvent object with given parameters + * + * @param uniqueId Unique session identifier + * @param type Type of the event. It could be one of the types defined above + * @param message Message description + * @param attributes Attributes for extensible information. Could be any + * information provided by the plugin + */ + public DrmInfoEvent(int uniqueId, int type, String message, + HashMap<String, Object> attributes) { + super(uniqueId, type, message, attributes); + } } |