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

Commit a0cbc6f6 authored by Rahul Frias's avatar Rahul Frias Committed by Jean-Michel Trivi
Browse files

Clarified app behavior on REQUEST_TYPE_NONE

Indicated that when this request type is returned in response
to a getKeyRequest no license exchange is required and
the key is available for use.

Bug: 73750909
Test: javadocs change only. Compiled Sailfish.
Change-Id: I4f124158160bf7e74f0228788c7b24bcefbb5dd0
parent a6855037
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -705,7 +705,9 @@ public final class MediaDrm implements AutoCloseable {
    public @interface KeyType {}

    /**
     * Contains the opaque data an app uses to request keys from a license server
     * Contains the opaque data an app uses to request keys from a license server.
     * These request types may or may not be generated by a given plugin. Refer
     * to plugin vendor documentation for more information.
     */
    public static final class KeyRequest {
        private byte[] mData;
@@ -730,8 +732,8 @@ public final class MediaDrm implements AutoCloseable {
        public static final int REQUEST_TYPE_RELEASE = 2;

        /**
         * Keys are already loaded. No license request is necessary, and no
         * key request data is returned.
         * Keys are already loaded and are available for use. No license request is necessary, and
         * no key request data is returned.
         */
        public static final int REQUEST_TYPE_NONE = 3;