Added in API level 28

MetricsConstants


class MetricsConstants
kotlin.Any
   ↳ android.media.MediaDrm.MetricsConstants

Definitions for the metrics that are reported via the getMetrics call.

Summary

Constants
static String

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

static String

Key to extract the list of error codes that were returned from closeSession calls.

static String

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

static String

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

static String

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

static String

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

static String

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

static String

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

static String

Key to extract the number of failed getPropertyByteArray calls were made with the PROPERTY_DEVICE_UNIQUE_ID value.

static String

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

static String

Key to extract the number of successful getPropertyByteArray calls were made with the PROPERTY_DEVICE_UNIQUE_ID value.

static String

Key to extract the number of failed getKeyRequest calls from the PersistableBundle returned by a getMetrics call.

static String

Key to extract the list of error codes that were returned from getKeyRequest calls.

static String

Key to extract the number of successful getKeyRequest calls from the PersistableBundle returned by a getMetrics call.

static String

Key to extract the average time in microseconds of calls to getKeyRequest.

static String

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

static String

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

static String

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

static String

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

static String

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

static String

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

static String

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

static String

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

static String

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

static String

Key to extract the list of error codes that were returned from #openSession calls.

static String

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

static String

Key to extract the number of failed provideKeyResponse calls from the PersistableBundle returned by a getMetrics call.

static String

Key to extract the list of error codes that were returned from provideKeyResponse calls.

static String

Key to extract the number of successful provideKeyResponse calls from the PersistableBundle returned by a getMetrics call.

static String

Key to extract the average time in microseconds of calls to provideKeyResponse.

static String

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

static String

Key to extract the list of error codes that were returned from provideProvisionResponse calls.

static String

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

static String

Key to extract the end times of sessions.

static String

Key to extract the start times of sessions.

Constants

CLOSE_SESSION_ERROR_COUNT

Added in API level 28
static val CLOSE_SESSION_ERROR_COUNT: String

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

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

CLOSE_SESSION_ERROR_LIST

Added in API level 28
static val CLOSE_SESSION_ERROR_LIST: String

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

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

CLOSE_SESSION_OK_COUNT

Added in API level 28
static val CLOSE_SESSION_OK_COUNT: String

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

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

EVENT_KEY_EXPIRED_COUNT

Added in API level 28
static val EVENT_KEY_EXPIRED_COUNT: String

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

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

EVENT_KEY_NEEDED_COUNT

Added in API level 28
static val EVENT_KEY_NEEDED_COUNT: String

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

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

EVENT_PROVISION_REQUIRED_COUNT

Added in API level 28
static val EVENT_PROVISION_REQUIRED_COUNT: String

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

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

EVENT_SESSION_RECLAIMED_COUNT

Added in API level 28
static val EVENT_SESSION_RECLAIMED_COUNT: String

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

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

EVENT_VENDOR_DEFINED_COUNT

Added in API level 28
static val EVENT_VENDOR_DEFINED_COUNT: String

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

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

GET_DEVICE_UNIQUE_ID_ERROR_COUNT

Added in API level 28
static val GET_DEVICE_UNIQUE_ID_ERROR_COUNT: String

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

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

GET_DEVICE_UNIQUE_ID_ERROR_LIST

Added in API level 28
static val GET_DEVICE_UNIQUE_ID_ERROR_LIST: String

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

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

GET_DEVICE_UNIQUE_ID_OK_COUNT

Added in API level 28
static val GET_DEVICE_UNIQUE_ID_OK_COUNT: String

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

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

GET_KEY_REQUEST_ERROR_COUNT

Added in API level 28
static val GET_KEY_REQUEST_ERROR_COUNT: String

Key to extract the number of failed getKeyRequest calls from the PersistableBundle returned by a getMetrics call. The count is a Long value (android.os.BaseBundle#getLong).

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

GET_KEY_REQUEST_ERROR_LIST

Added in API level 28
static val GET_KEY_REQUEST_ERROR_LIST: String

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

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

GET_KEY_REQUEST_OK_COUNT

Added in API level 28
static val GET_KEY_REQUEST_OK_COUNT: String

Key to extract the number of successful getKeyRequest calls from the PersistableBundle returned by a getMetrics call. The count is a Long value (android.os.BaseBundle#getLong).

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

GET_KEY_REQUEST_OK_TIME_MICROS

Added in API level 28
static val GET_KEY_REQUEST_OK_TIME_MICROS: String

Key to extract the average time in microseconds of calls to getKeyRequest. The value is retrieved from the PersistableBundle returned from getMetrics. The time is a Long value (android.os.BaseBundle#getLong).

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

GET_PROVISION_REQUEST_ERROR_COUNT

Added in API level 28
static val GET_PROVISION_REQUEST_ERROR_COUNT: String

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

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

GET_PROVISION_REQUEST_ERROR_LIST

Added in API level 28
static val GET_PROVISION_REQUEST_ERROR_LIST: String

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

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

GET_PROVISION_REQUEST_OK_COUNT

Added in API level 28
static val GET_PROVISION_REQUEST_OK_COUNT: String

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

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

KEY_STATUS_EXPIRED_COUNT

Added in API level 28
static val KEY_STATUS_EXPIRED_COUNT: String

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

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

KEY_STATUS_INTERNAL_ERROR_COUNT

Added in API level 28
static val KEY_STATUS_INTERNAL_ERROR_COUNT: String

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

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

KEY_STATUS_OUTPUT_NOT_ALLOWED_COUNT

Added in API level 28
static val KEY_STATUS_OUTPUT_NOT_ALLOWED_COUNT: String

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

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

KEY_STATUS_PENDING_COUNT

Added in API level 28
static val KEY_STATUS_PENDING_COUNT: String

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

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

KEY_STATUS_USABLE_COUNT

Added in API level 28
static val KEY_STATUS_USABLE_COUNT: String

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

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

OPEN_SESSION_ERROR_COUNT

Added in API level 28
static val OPEN_SESSION_ERROR_COUNT: String

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

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

OPEN_SESSION_ERROR_LIST

Added in API level 28
static val OPEN_SESSION_ERROR_LIST: String

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

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

OPEN_SESSION_OK_COUNT

Added in API level 28
static val OPEN_SESSION_OK_COUNT: String

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

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

PROVIDE_KEY_RESPONSE_ERROR_COUNT

Added in API level 28
static val PROVIDE_KEY_RESPONSE_ERROR_COUNT: String

Key to extract the number of failed provideKeyResponse calls from the PersistableBundle returned by a getMetrics call. The count is a Long value (android.os.BaseBundle#getLong).

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

PROVIDE_KEY_RESPONSE_ERROR_LIST

Added in API level 28
static val PROVIDE_KEY_RESPONSE_ERROR_LIST: String

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

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

PROVIDE_KEY_RESPONSE_OK_COUNT

Added in API level 28
static val PROVIDE_KEY_RESPONSE_OK_COUNT: String

Key to extract the number of successful provideKeyResponse calls from the PersistableBundle returned by a getMetrics call. The count is a Long value (android.os.BaseBundle#getLong).

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

PROVIDE_KEY_RESPONSE_OK_TIME_MICROS

Added in API level 28
static val PROVIDE_KEY_RESPONSE_OK_TIME_MICROS: String

Key to extract the average time in microseconds of calls to provideKeyResponse. The valus is retrieved from the PersistableBundle returned from getMetrics. The time is a Long value (android.os.BaseBundle#getLong).

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

PROVIDE_PROVISION_RESPONSE_ERROR_COUNT

Added in API level 28
static val PROVIDE_PROVISION_RESPONSE_ERROR_COUNT: String

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

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

PROVIDE_PROVISION_RESPONSE_ERROR_LIST

Added in API level 28
static val PROVIDE_PROVISION_RESPONSE_ERROR_LIST: String

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

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

PROVIDE_PROVISION_RESPONSE_OK_COUNT

Added in API level 28
static val PROVIDE_PROVISION_RESPONSE_OK_COUNT: String

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

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

SESSION_END_TIMES_MS

Added in API level 28
static val SESSION_END_TIMES_MS: String

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 getMetrics call. The end times are returned as another PersistableBundle containing the session ids as keys and the end times as long values. Use android.os.BaseBundle#keySet to get the list of session ids, and then android.os.BaseBundle#getLong to get the end time for each session.

Value: "drm.mediadrm.session_end_times_ms"

SESSION_START_TIMES_MS

Added in API level 28
static val SESSION_START_TIMES_MS: String

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 getMetrics call. The start times are returned as another PersistableBundle containing the session ids as keys and the start times as long values. Use android.os.BaseBundle#keySet to get the list of session ids, and then android.os.BaseBundle#getLong to get the start time for each session.

Value: "drm.mediadrm.session_start_times_ms"