summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Tinker <jtinker@google.com>2015-03-24 00:10:20 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-03-24 00:10:21 +0000
commit3910eb551c7736015708c627dcabaa75c66d9ec3 (patch)
tree89629c951914c759704e27d92e9d56dc3791981c
parent8873f848aa1d028228ec999f48e797e8e15cb529 (diff)
parent5ce85b99b3461b9bea40410f0539640476274b4f (diff)
downloadframeworks_base-3910eb551c7736015708c627dcabaa75c66d9ec3.zip
frameworks_base-3910eb551c7736015708c627dcabaa75c66d9ec3.tar.gz
frameworks_base-3910eb551c7736015708c627dcabaa75c66d9ec3.tar.bz2
Merge "Note in docs that MediaDrm methods throw IllegalStateException"
-rw-r--r--media/java/android/media/MediaDrm.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/media/java/android/media/MediaDrm.java b/media/java/android/media/MediaDrm.java
index 6d48441..069f7ff 100644
--- a/media/java/android/media/MediaDrm.java
+++ b/media/java/android/media/MediaDrm.java
@@ -82,6 +82,10 @@ import android.util.Log;
* encrypted content, the samples returned from the extractor remain encrypted, they
* are only decrypted when the samples are delivered to the decoder.
* <p>
+ * MediaDrm methods throw {@link java.lang.IllegalStateException}
+ * when a method is called on a MediaDrm object that is in an invalid or inoperable
+ * state. This is typically due to incorrect application API usage, but may also
+ * be due to an unrecoverable failure in the DRM plugin or security hardware.
* <a name="Callbacks"></a>
* <h3>Callbacks</h3>
* <p>Applications should register for informational events in order
@@ -481,7 +485,6 @@ public final class MediaDrm {
* reprovisioning is required
* @throws DeniedByServerException if the response indicates that the
* server rejected the request
- * @throws ResourceBusyException if required resources are in use
*/
public native byte[] provideKeyResponse(byte[] scope, byte[] response)
throws NotProvisionedException, DeniedByServerException;