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

Commit 22f15771 authored by Jeff Tinker's avatar Jeff Tinker
Browse files

Add status for license starting in the future

bug:116738851
Change-Id: Ifd38733f2f5704fbc93d23e6b53994430736dd17
parent 5ca35d19
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -24870,6 +24870,7 @@ package android.media {
    field public static final int STATUS_OUTPUT_NOT_ALLOWED = 2; // 0x2
    field public static final int STATUS_PENDING = 3; // 0x3
    field public static final int STATUS_USABLE = 0; // 0x0
    field public static final int STATUS_USABLE_IN_FUTURE = 5; // 0x5
  }
  public static final class MediaDrm.MediaDrmStateException extends java.lang.IllegalStateException {
+8 −0
Original line number Diff line number Diff line
@@ -547,6 +547,13 @@ public final class MediaDrm implements AutoCloseable {
         */
        public static final int STATUS_INTERNAL_ERROR = 4;

        /**
         * The key is not yet usable to decrypt media because the start
         * time is in the future. The key will become usable when
         * its start time is reached.
         */
        public static final int STATUS_USABLE_IN_FUTURE = 5;

        /** @hide */
        @IntDef({
            STATUS_USABLE,
@@ -554,6 +561,7 @@ public final class MediaDrm implements AutoCloseable {
            STATUS_OUTPUT_NOT_ALLOWED,
            STATUS_PENDING,
            STATUS_INTERNAL_ERROR,
            STATUS_USABLE_IN_FUTURE,
        })
        @Retention(RetentionPolicy.SOURCE)
        public @interface KeyStatusCode {}