Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2952c5d0 authored by Andreas Huber's avatar Andreas Huber
Browse files

MediaCrypto's constructor can throw RuntimeException.

Change-Id: I5718e9abab0d1465882580e826747d6a78bdefb5
related-to-bug: 6275919
parent 901cb616
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -10996,7 +10996,7 @@ package android.media {
  }
  public final class MediaCrypto {
    ctor public MediaCrypto(byte[], byte[]);
    ctor public MediaCrypto(byte[], byte[]) throws java.lang.RuntimeException;
    method public static final boolean isCryptoSchemeSupported(byte[]);
    method public final void release();
    method public final boolean requiresSecureDecoderComponent(java.lang.String);
+1 −1
Original line number Diff line number Diff line
@@ -37,7 +37,7 @@ public final class MediaCrypto {
      * @param uuid The UUID of the crypto scheme.
      * @param initData Opaque initialization data specific to the crypto scheme.
    */
    public MediaCrypto(byte[] uuid, byte[] initData) {
    public MediaCrypto(byte[] uuid, byte[] initData) throws RuntimeException {
        native_setup(uuid, initData);
    }

+1 −1
Original line number Diff line number Diff line
@@ -210,7 +210,7 @@ static void android_media_MediaCrypto_native_setup(
    if (err != OK) {
        jniThrowException(
                env,
                "java/io/IOException",
                "java/lang/RuntimeException",
                "Failed to instantiate crypto object.");
        return;
    }