MediaDrm.MetricsConstants


public static final class MediaDrm.MetricsConstants
extends Object

java.lang.Object
   ↳ android.media.MediaDrm.MetricsConstants


Definitions for the metrics that are reported via the MediaDrm.getMetrics() call.

Summary

Constants

String CLOSE_SESSION_ERROR_COUNT

Key to extract the number of failed MediaDrm.closeSession(byte) calls from the PersistableBundle returned by a MediaDrm.getMetrics() call.

String CLOSE_SESSION_ERROR_LIST

Key to extract the list of error codes that were returned from MediaDrm.closeSession(byte) calls.

String CLOSE_SESSION_OK_COUNT

Key to extract the number of successful MediaDrm.closeSession(byte) calls from the PersistableBundle returned by a MediaDrm.getMetrics() call.

String EVENT_KEY_EXPIRED_COUNT

Key to extract the count of OnEventListener#onEvent calls of type KEY_EXPIRED occured.

String EVENT_KEY_NEEDED_COUNT

Key to extract the count of OnEventListener#onEvent calls of type KEY_NEEDED occured.

String EVENT_PROVISION_REQUIRED_COUNT

Key to extract the count of OnEventListener#onEvent calls of type PROVISION_REQUIRED occured.

String EVENT_SESSION_RECLAIMED_COUNT

Key to extract the count of OnEventListener#onEvent calls of type SESSION_RECLAIMED.

String EVENT_VENDOR_DEFINED_COUNT

Key to extract the count of OnEventListener#onEvent calls of type VENDOR_DEFINED.

String GET_DEVICE_UNIQUE_ID_ERROR_COUNT

Key to extract the number of failed MediaDrm.getPropertyByteArray(String) calls were made with the MediaDrm.PROPERTY_DEVICE_UNIQUE_ID value.

String GET_DEVICE_UNIQUE_ID_ERROR_LIST

Key to extract the list of error codes that were returned from MediaDrm.getPropertyByteArray(String) calls with the MediaDrm.PROPERTY_DEVICE_UNIQUE_ID value.

String GET_DEVICE_UNIQUE_ID_OK_COUNT

Key to extract the number of successful MediaDrm.getPropertyByteArray(String) calls were made with the MediaDrm.PROPERTY_DEVICE_UNIQUE_ID value.

String GET_KEY_REQUEST_ERROR_COUNT

Key to extract the number of failed MediaDrm.getKeyRequest(byte, byte, String, int, HashMap) calls from the PersistableBundle returned by a MediaDrm.getMetrics() call.

String GET_KEY_REQUEST_ERROR_LIST

Key to extract the list of error codes that were returned from MediaDrm.getKeyRequest(byte, byte, String, int, HashMap) calls.

String GET_KEY_REQUEST_OK_COUNT

Key to extract the number of successful MediaDrm.getKeyRequest(byte, byte, String, int, HashMap) calls from the PersistableBundle returned by a MediaDrm.getMetrics() call.

String GET_KEY_REQUEST_OK_TIME_MICROS

Key to extract the average time in microseconds of calls to MediaDrm.getKeyRequest(byte, byte, String, int, HashMap).

String GET_PROVISION_REQUEST_ERROR_COUNT

Key to extract the number of failed MediaDrm.getProvisionRequest() calls from the PersistableBundle returned by a MediaDrm.getMetrics() call.

String GET_PROVISION_REQUEST_ERROR_LIST

Key to extract the list of error codes that were returned from MediaDrm.getProvisionRequest() calls.

String GET_PROVISION_REQUEST_OK_COUNT

Key to extract the number of successful MediaDrm.getProvisionRequest() calls from the PersistableBundle returned by a MediaDrm.getMetrics() call.

String KEY_STATUS_EXPIRED_COUNT

Key to extract the count of KeyStatus#STATUS_EXPIRED events that occured.

String KEY_STATUS_INTERNAL_ERROR_COUNT

Key to extract the count of KeyStatus#STATUS_INTERNAL_ERROR events that occured.

String KEY_STATUS_OUTPUT_NOT_ALLOWED_COUNT

Key to extract the count of KeyStatus#STATUS_OUTPUT_NOT_ALLOWED events that occured.

String KEY_STATUS_PENDING_COUNT

Key to extract the count of KeyStatus#STATUS_PENDING events that occured.

String KEY_STATUS_USABLE_COUNT

Key to extract the count of KeyStatus#STATUS_USABLE events that occured.

String OPEN_SESSION_ERROR_COUNT

Key to extract the number of failed MediaDrm.openSession() calls from the PersistableBundle returned by a MediaDrm.getMetrics() call.

String OPEN_SESSION_ERROR_LIST

Key to extract the list of error codes that were returned from MediaDrm.openSession() calls.

String OPEN_SESSION_OK_COUNT

Key to extract the number of successful MediaDrm.openSession() calls from the PersistableBundle returned by a MediaDrm.getMetrics() call.

String PROVIDE_KEY_RESPONSE_ERROR_COUNT

Key to extract the number of failed MediaDrm.provideKeyResponse(byte, byte) calls from the PersistableBundle returned by a MediaDrm.getMetrics() call.

String PROVIDE_KEY_RESPONSE_ERROR_LIST

Key to extract the list of error codes that were returned from MediaDrm.provideKeyResponse(byte, byte) calls.

String PROVIDE_KEY_RESPONSE_OK_COUNT

Key to extract the number of successful MediaDrm.provideKeyResponse(byte, byte) calls from the PersistableBundle returned by a MediaDrm.getMetrics() call.

String PROVIDE_KEY_RESPONSE_OK_TIME_MICROS

Key to extract the average time in microseconds of calls to MediaDrm.provideKeyResponse(byte, byte).

String PROVIDE_PROVISION_RESPONSE_ERROR_COUNT

Key to extract the number of failed MediaDrm.provideProvisionResponse(byte) calls from the PersistableBundle returned by a MediaDrm.getMetrics() call.

String PROVIDE_PROVISION_RESPONSE_ERROR_LIST

Key to extract the list of error codes that were returned from MediaDrm.provideProvisionResponse(byte) calls.

String PROVIDE_PROVISION_RESPONSE_OK_COUNT

Key to extract the number of successful MediaDrm.provideProvisionResponse(byte) calls from the PersistableBundle returned by a MediaDrm.getMetrics() call.

String SESSION_END_TIMES_MS

Key to extract the end times of sessions.

String SESSION_START_TIMES_MS

Key to extract the start times of sessions.

Inherited methods

Constants

CLOSE_SESSION_ERROR_COUNT

Added in API level 28
public static final String CLOSE_SESSION_ERROR_COUNT

Key to extract the number of failed MediaDrm.closeSession(byte) calls from the PersistableBundle returned by a MediaDrm.getMetrics() call. The count is a Long value (BaseBundle.getLong(String)).

Constant Value: "drm.mediadrm.close_session.error.count"

CLOSE_SESSION_ERROR_LIST

Added in API level 28
public static final String CLOSE_SESSION_ERROR_LIST

Key to extract the list of error codes that were returned from MediaDrm.closeSession(byte) calls. The key is used to lookup the list in the PersistableBundle returned by a MediaDrm.getMetrics() call. The list is an array of Long values (BaseBundle.getLongArray(String)).

Constant Value: "drm.mediadrm.close_session.error.list"

CLOSE_SESSION_OK_COUNT

Added in API level 28
public static final String CLOSE_SESSION_OK_COUNT

Key to extract the number of successful MediaDrm.closeSession(byte) calls from the PersistableBundle returned by a MediaDrm.getMetrics() call. The count is a Long value (BaseBundle.getLong(String)).

Constant Value: "drm.mediadrm.close_session.ok.count"

EVENT_KEY_EXPIRED_COUNT

Added in API level 28
public static final String EVENT_KEY_EXPIRED_COUNT

Key to extract the count of OnEventListener#onEvent calls of type KEY_EXPIRED occured. The count is extracted from the PersistableBundle returned from a MediaDrm.getMetrics() call. The count is a Long value (BaseBundle.getLong(String)).

Constant Value: "drm.mediadrm.event.KEY_EXPIRED.count"

EVENT_KEY_NEEDED_COUNT

Added in API level 28
public static final String EVENT_KEY_NEEDED_COUNT

Key to extract the count of OnEventListener#onEvent calls of type KEY_NEEDED occured. The count is extracted from the PersistableBundle returned from a MediaDrm.getMetrics() call. The count is a Long value (BaseBundle.getLong(String)).

Constant Value: "drm.mediadrm.event.KEY_NEEDED.count"

EVENT_PROVISION_REQUIRED_COUNT

Added in API level 28
public static final String EVENT_PROVISION_REQUIRED_COUNT

Key to extract the count of OnEventListener#onEvent calls of type PROVISION_REQUIRED occured. The count is extracted from the PersistableBundle returned from a MediaDrm.getMetrics() call. The count is a Long value (BaseBundle.getLong(String)).

Constant Value: "drm.mediadrm.event.PROVISION_REQUIRED.count"

EVENT_SESSION_RECLAIMED_COUNT

Added in API level 28
public static final String EVENT_SESSION_RECLAIMED_COUNT

Key to extract the count of OnEventListener#onEvent calls of type SESSION_RECLAIMED. The count is extracted from the PersistableBundle returned from a MediaDrm.getMetrics() call. The count is a Long value (BaseBundle.getLong(String)).

Constant Value: "drm.mediadrm.event.SESSION_RECLAIMED.count"

EVENT_VENDOR_DEFINED_COUNT

Added in API level 28
public static final String EVENT_VENDOR_DEFINED_COUNT

Key to extract the count of OnEventListener#onEvent calls of type VENDOR_DEFINED. The count is extracted from the PersistableBundle returned from a MediaDrm.getMetrics() call. The count is a Long value (BaseBundle.getLong(String)).

Constant Value: "drm.mediadrm.event.VENDOR_DEFINED.count"

GET_DEVICE_UNIQUE_ID_ERROR_COUNT

Added in API level 28
public static final String GET_DEVICE_UNIQUE_ID_ERROR_COUNT

Key to extract the number of failed MediaDrm.getPropertyByteArray(String) calls were made with the MediaDrm.PROPERTY_DEVICE_UNIQUE_ID value. The key is used to lookup the value in the PersistableBundle returned by a MediaDrm.getMetrics() call. The count is a Long value (BaseBundle.getLong(String)).

Constant Value: "drm.mediadrm.get_device_unique_id.error.count"

GET_DEVICE_UNIQUE_ID_ERROR_LIST

Added in API level 28
public static final String GET_DEVICE_UNIQUE_ID_ERROR_LIST

Key to extract the list of error codes that were returned from MediaDrm.getPropertyByteArray(String) calls with the MediaDrm.PROPERTY_DEVICE_UNIQUE_ID value. The key is used to lookup the list in the PersistableBundle returned by a MediaDrm.getMetrics() call. The list is an array of Long values (BaseBundle.getLongArray(String)).

Constant Value: "drm.mediadrm.get_device_unique_id.error.list"

GET_DEVICE_UNIQUE_ID_OK_COUNT

Added in API level 28
public static final String GET_DEVICE_UNIQUE_ID_OK_COUNT

Key to extract the number of successful MediaDrm.getPropertyByteArray(String) calls were made with the MediaDrm.PROPERTY_DEVICE_UNIQUE_ID value. The key is used to lookup the value in the PersistableBundle returned by a MediaDrm.getMetrics() call. The count is a Long value (BaseBundle.getLong(String)).

Constant Value: "drm.mediadrm.get_device_unique_id.ok.count"

GET_KEY_REQUEST_ERROR_COUNT

Added in API level 28
public static final String GET_KEY_REQUEST_ERROR_COUNT

Key to extract the number of failed MediaDrm.getKeyRequest(byte, byte, String, int, HashMap) calls from the PersistableBundle returned by a MediaDrm.getMetrics() call. The count is a Long value (BaseBundle.getLong(String)).

Constant Value: "drm.mediadrm.get_key_request.error.count"

GET_KEY_REQUEST_ERROR_LIST

Added in API level 28
public static final String GET_KEY_REQUEST_ERROR_LIST

Key to extract the list of error codes that were returned from MediaDrm.getKeyRequest(byte, byte, String, int, HashMap) calls. The key is used to lookup the list in the PersistableBundle returned by a MediaDrm.getMetrics() call. The list is an array of Long values (BaseBundle.getLongArray(String)).

Constant Value: "drm.mediadrm.get_key_request.error.list"

GET_KEY_REQUEST_OK_COUNT

Added in API level 28
public static final String GET_KEY_REQUEST_OK_COUNT

Key to extract the number of successful MediaDrm.getKeyRequest(byte, byte, String, int, HashMap) calls from the PersistableBundle returned by a MediaDrm.getMetrics() call. The count is a Long value (BaseBundle.getLong(String)).

Constant Value: "drm.mediadrm.get_key_request.ok.count"

GET_KEY_REQUEST_OK_TIME_MICROS

Added in API level 28
public static final String GET_KEY_REQUEST_OK_TIME_MICROS

Key to extract the average time in microseconds of calls to MediaDrm.getKeyRequest(byte, byte, String, int, HashMap). The value is retrieved from the PersistableBundle returned from MediaDrm.getMetrics(). The time is a Long value (BaseBundle.getLong(String)).

Constant Value: "drm.mediadrm.get_key_request.ok.average_time_micros"

GET_PROVISION_REQUEST_ERROR_COUNT

Added in API level 28
public static final String GET_PROVISION_REQUEST_ERROR_COUNT

Key to extract the number of failed MediaDrm.getProvisionRequest() calls from the PersistableBundle returned by a MediaDrm.getMetrics() call. The count is a Long value (BaseBundle.getLong(String)).

Constant Value: "drm.mediadrm.get_provision_request.error.count"

GET_PROVISION_REQUEST_ERROR_LIST

Added in API level 28
public static final String GET_PROVISION_REQUEST_ERROR_LIST

Key to extract the list of error codes that were returned from MediaDrm.getProvisionRequest() calls. The key is used to lookup the list in the PersistableBundle returned by a MediaDrm.getMetrics() call. The list is an array of Long values (BaseBundle.getLongArray(String)).

Constant Value: "drm.mediadrm.get_provision_request.error.list"

GET_PROVISION_REQUEST_OK_COUNT

Added in API level 28
public static final String GET_PROVISION_REQUEST_OK_COUNT

Key to extract the number of successful MediaDrm.getProvisionRequest() calls from the PersistableBundle returned by a MediaDrm.getMetrics() call. The count is a Long value (BaseBundle.getLong(String)).

Constant Value: "drm.mediadrm.get_provision_request.ok.count"

KEY_STATUS_EXPIRED_COUNT

Added in API level 28
public static final String KEY_STATUS_EXPIRED_COUNT

Key to extract the count of KeyStatus#STATUS_EXPIRED events that occured. The count is extracted from the PersistableBundle returned from a MediaDrm.getMetrics() call. The count is a Long value (BaseBundle.getLong(String)).

Constant Value: "drm.mediadrm.key_status.EXPIRED.count"

KEY_STATUS_INTERNAL_ERROR_COUNT

Added in API level 28
public static final String KEY_STATUS_INTERNAL_ERROR_COUNT

Key to extract the count of KeyStatus#STATUS_INTERNAL_ERROR events that occured. The count is extracted from the PersistableBundle returned from a MediaDrm.getMetrics() call. The count is a Long value (BaseBundle.getLong(String)).

Constant Value: "drm.mediadrm.key_status.INTERNAL_ERROR.count"

KEY_STATUS_OUTPUT_NOT_ALLOWED_COUNT

Added in API level 28
public static final String KEY_STATUS_OUTPUT_NOT_ALLOWED_COUNT

Key to extract the count of KeyStatus#STATUS_OUTPUT_NOT_ALLOWED events that occured. The count is extracted from the PersistableBundle returned from a MediaDrm.getMetrics() call. The count is a Long value (BaseBundle.getLong(String)).

Constant Value: "drm.mediadrm.key_status_change.OUTPUT_NOT_ALLOWED.count"

KEY_STATUS_PENDING_COUNT

Added in API level 28
public static final String KEY_STATUS_PENDING_COUNT

Key to extract the count of KeyStatus#STATUS_PENDING events that occured. The count is extracted from the PersistableBundle returned from a MediaDrm.getMetrics() call. The count is a Long value (BaseBundle.getLong(String)).

Constant Value: "drm.mediadrm.key_status_change.PENDING.count"

KEY_STATUS_USABLE_COUNT

Added in API level 28
public static final String KEY_STATUS_USABLE_COUNT

Key to extract the count of KeyStatus#STATUS_USABLE events that occured. The count is extracted from the PersistableBundle returned from a MediaDrm.getMetrics() call. The count is a Long value (BaseBundle.getLong(String)).

Constant Value: "drm.mediadrm.key_status_change.USABLE.count"

OPEN_SESSION_ERROR_COUNT

Added in API level 28
public static final String OPEN_SESSION_ERROR_COUNT

Key to extract the number of failed MediaDrm.openSession() calls from the PersistableBundle returned by a MediaDrm.getMetrics() call. The count is a Long value (BaseBundle.getLong(String)).

Constant Value: "drm.mediadrm.open_session.error.count"

OPEN_SESSION_ERROR_LIST

Added in API level 28
public static final String OPEN_SESSION_ERROR_LIST

Key to extract the list of error codes that were returned from MediaDrm.openSession() calls. The key is used to lookup the list in the PersistableBundle returned by a MediaDrm.getMetrics() call. The list is an array of Long values (BaseBundle.getLongArray(String)).

Constant Value: "drm.mediadrm.open_session.error.list"

OPEN_SESSION_OK_COUNT

Added in API level 28
public static final String OPEN_SESSION_OK_COUNT

Key to extract the number of successful MediaDrm.openSession() calls from the PersistableBundle returned by a MediaDrm.getMetrics() call. The count is a Long value (BaseBundle.getLong(String)).

Constant Value: "drm.mediadrm.open_session.ok.count"

PROVIDE_KEY_RESPONSE_ERROR_COUNT

Added in API level 28
public static final String PROVIDE_KEY_RESPONSE_ERROR_COUNT

Key to extract the number of failed MediaDrm.provideKeyResponse(byte, byte) calls from the PersistableBundle returned by a MediaDrm.getMetrics() call. The count is a Long value (BaseBundle.getLong(String)).

Constant Value: "drm.mediadrm.provide_key_response.error.count"

PROVIDE_KEY_RESPONSE_ERROR_LIST

Added in API level 28
public static final String PROVIDE_KEY_RESPONSE_ERROR_LIST

Key to extract the list of error codes that were returned from MediaDrm.provideKeyResponse(byte, byte) calls. The key is used to lookup the list in the PersistableBundle returned by a MediaDrm.getMetrics() call. The list is an array of Long values (BaseBundle.getLongArray(String)).

Constant Value: "drm.mediadrm.provide_key_response.error.list"

PROVIDE_KEY_RESPONSE_OK_COUNT

Added in API level 28
public static final String PROVIDE_KEY_RESPONSE_OK_COUNT

Key to extract the number of successful MediaDrm.provideKeyResponse(byte, byte) calls from the PersistableBundle returned by a MediaDrm.getMetrics() call. The count is a Long value (BaseBundle.getLong(String)).

Constant Value: "drm.mediadrm.provide_key_response.ok.count"

PROVIDE_KEY_RESPONSE_OK_TIME_MICROS

Added in API level 28
public static final String PROVIDE_KEY_RESPONSE_OK_TIME_MICROS

Key to extract the average time in microseconds of calls to MediaDrm.provideKeyResponse(byte, byte). The valus is retrieved from the PersistableBundle returned from MediaDrm.getMetrics(). The time is a Long value (BaseBundle.getLong(String)).

Constant Value: "drm.mediadrm.provide_key_response.ok.average_time_micros"

PROVIDE_PROVISION_RESPONSE_ERROR_COUNT

Added in API level 28
public static final String PROVIDE_PROVISION_RESPONSE_ERROR_COUNT

Key to extract the number of failed MediaDrm.provideProvisionResponse(byte) calls from the PersistableBundle returned by a MediaDrm.getMetrics() call. The count is a Long value (BaseBundle.getLong(String)).

Constant Value: "drm.mediadrm.provide_provision_response.error.count"

PROVIDE_PROVISION_RESPONSE_ERROR_LIST

Added in API level 28
public static final String PROVIDE_PROVISION_RESPONSE_ERROR_LIST

Key to extract the list of error codes that were returned from MediaDrm.provideProvisionResponse(byte) calls. The key is used to lookup the list in the PersistableBundle returned by a MediaDrm.getMetrics() call. The list is an array of Long values (BaseBundle.getLongArray(String)).

Constant Value: "drm.mediadrm.provide_provision_response.error.list"

PROVIDE_PROVISION_RESPONSE_OK_COUNT

Added in API level 28
public static final String PROVIDE_PROVISION_RESPONSE_OK_COUNT

Key to extract the number of successful MediaDrm.provideProvisionResponse(byte) calls from the PersistableBundle returned by a MediaDrm.getMetrics() call. The count is a Long value (BaseBundle.getLong(String)).

Constant Value: "drm.mediadrm.provide_provision_response.ok.count"

SESSION_END_TIMES_MS

Added in API level 28
public static final String SESSION_END_TIMES_MS

Key to extract the end times of sessions. Times are represented as milliseconds since epoch (1970-01-01T00:00:00Z). The end times are returned from the PersistableBundle from a MediaDrm.getMetrics() call. The end times are returned as another PersistableBundle containing the session ids as keys and the end times as long values. Use BaseBundle.keySet() to get the list of session ids, and then BaseBundle.getLong(String) to get the end time for each session.

Constant Value: "drm.mediadrm.session_end_times_ms"

SESSION_START_TIMES_MS

Added in API level 28
public static final String SESSION_START_TIMES_MS

Key to extract the start times of sessions. Times are represented as milliseconds since epoch (1970-01-01T00:00:00Z). The start times are returned from the PersistableBundle from a MediaDrm.getMetrics() call. The start times are returned as another PersistableBundle containing the session ids as keys and the start times as long values. Use BaseBundle.keySet() to get the list of session ids, and then BaseBundle.getLong(String) to get the start time for each session.

Constant Value: "drm.mediadrm.session_start_times_ms"