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

Commit 0fceb518 authored by Adam Stone's avatar Adam Stone
Browse files

Added support for getKeyRequest metric.

This adds a metric constant name for success and failure counts of
getKeyRequest.

BUG: 64001676

Test: Added a CTS test case for the metric and ran on a device.
Change-Id: I84992536320d87a716c14cd461b8f4d2245f3431
parent 1da5ab01
Loading
Loading
Loading
Loading
+20 −0
Original line number Diff line number Diff line
@@ -1582,6 +1582,7 @@ public final class MediaDrm implements AutoCloseable {
         * Key to extract the number of successful {@link #openSession} calls
         * from the {@link PersistableBundle} returned by a
         * {@link #getMetrics} call.
         * The count is a Long value ({@link android.os.BaseBundle#getLong}).
         */
        public static final String OPEN_SESSION_OK_COUNT
            = "/drm/mediadrm/open_session/ok/count";
@@ -1590,8 +1591,27 @@ public final class MediaDrm implements AutoCloseable {
         * Key to extract the number of failed {@link #openSession} calls
         * from the {@link PersistableBundle} returned by a
         * {@link #getMetrics} call.
         * The count is a Long value ({@link android.os.BaseBundle#getLong}).
         */
        public static final String OPEN_SESSION_ERROR_COUNT
            = "/drm/mediadrm/open_session/error/count";

        /**
         * Key to extract the number of successful {@link #getKeyRequest}
         * calls from the {@link PersistableBundle} returned by a
         * {@link #getMetrics} call.
         * The count is a Long value ({@link android.os.BaseBundle#getLong}).
         */
        public static final String GET_KEY_REQUEST_OK_COUNT
            = "/drm/mediadrm/get_key_request/ok/count";

        /**
         * Key to extract the number of failed {@link #getKeyRequest}
         * calls from the {@link PersistableBundle} returned by a
         * {@link #getMetrics} call.
         * The count is a Long value ({@link android.os.BaseBundle#getLong}).
         */
        public static final String GET_KEY_REQUEST_ERROR_COUNT
            = "/drm/mediadrm/get_key_request/error/count";
    }
}