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

Commit 8ad2965d authored by Jeff Tinker's avatar Jeff Tinker
Browse files

Add javadocs to MediaCodec.CryptoInfo methods

bug:27383993

Change-Id: I11bba4a2690d112e4210add41910f14c5ba6a927
parent 0822a7e2
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -2221,7 +2221,10 @@ final public class MediaCodec {
        public int mode;

        /**
         * Metadata describing encryption pattern for the protected bytes in a subsample.
         * Metadata describing an encryption pattern for the protected bytes in
         * a subsample.  An encryption pattern consists of a repeating sequence
         * of crypto blocks comprised of a number of encrypted blocks followed
         * by a number of unencrypted, or skipped, blocks.
         */
        public final static class Pattern {
            /**
@@ -2273,6 +2276,10 @@ final public class MediaCodec {
         */
        private Pattern pattern;

        /**
         * Set the subsample count, clear/encrypted sizes, key, IV and mode fields of
         * a {@link MediaCodec.CryptoInfo} instance.
         */
        public void set(
                int newNumSubSamples,
                @NonNull int[] newNumBytesOfClearData,
@@ -2289,6 +2296,10 @@ final public class MediaCodec {
            pattern = new Pattern(0, 0);
        }

        /**
         * Set the encryption pattern on a {@link MediaCodec.CryptoInfo} instance.
         * See {@link MediaCodec.CryptoInfo.Pattern}.
         */
        public void setPattern(Pattern newPattern) {
            pattern = newPattern;
        }