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 getMetrics() call.

Summary

Constants

String CLOSE_SESSION_ERROR_COUNT

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

String CLOSE_SESSION_ERROR_LIST

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

String CLOSE_SESSION_OK_COUNT

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

String EVENT_KEY_EXPIRED_COUNT

Key to extract the count of onEvent(MediaDrm, byte[], int, int, byte[]) calls of type KEY_EXPIRED occured.

String EVENT_KEY_NEEDED_COUNT

Key to extract the count of onEvent(MediaDrm, byte[], int, int, byte[]) calls of type KEY_NEEDED occured.

String EVENT_PROVISION_REQUIRED_COUNT

Key to extract the count of onEvent(MediaDrm, byte[], int, int, byte[]) calls of type PROVISION_REQUIRED occured.

String EVENT_SESSION_RECLAIMED_COUNT

Key to extract the count of onEvent(MediaDrm, byte[], int, int, byte[]) calls of type SESSION_RECLAIMED.

String EVENT_VENDOR_DEFINED_COUNT

Key to extract the count of onEvent(MediaDrm, byte[], int, int, byte[]) calls of type VENDOR_DEFINED.

String GET_DEVICE_UNIQUE_ID_ERROR_COUNT

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

String GET_DEVICE_UNIQUE_ID_ERROR_LIST

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

String GET_DEVICE_UNIQUE_ID_OK_COUNT

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

String GET_KEY_REQUEST_ERROR_COUNT

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

String GET_KEY_REQUEST_ERROR_LIST

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

String GET_KEY_REQUEST_OK_COUNT

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

String GET_KEY_REQUEST_OK_TIME_MICROS

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

String GET_PROVISION_REQUEST_ERROR_COUNT

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

String GET_PROVISION_REQUEST_ERROR_LIST

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

String GET_PROVISION_REQUEST_OK_COUNT

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

String KEY_STATUS_EXPIRED_COUNT

Key to extraact the count of STATUS_EXPIRED events that occured.

String KEY_STATUS_INTERNAL_ERROR_COUNT

Key to extract the count of STATUS_INTERNAL_ERROR events that occured.

String KEY_STATUS_OUTPUT_NOT_ALLOWED_COUNT

Key to extract the count of STATUS_OUTPUT_NOT_ALLOWED events that occured.

String KEY_STATUS_PENDING_COUNT

Key to extract the count of STATUS_PENDING events that occured.

String KEY_STATUS_USABLE_COUNT

Key to extract the count of STATUS_USABLE events that occured.

String OPEN_SESSION_ERROR_COUNT

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

String OPEN_SESSION_ERROR_LIST

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

String OPEN_SESSION_OK_COUNT

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

String PROVIDE_KEY_RESPONSE_ERROR_COUNT

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

String PROVIDE_KEY_RESPONSE_ERROR_LIST

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

String PROVIDE_KEY_RESPONSE_OK_COUNT

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

String PROVIDE_KEY_RESPONSE_OK_TIME_MICROS

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

String PROVIDE_PROVISION_RESPONSE_ERROR_COUNT

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

String PROVIDE_PROVISION_RESPONSE_ERROR_LIST

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

String PROVIDE_PROVISION_RESPONSE_OK_COUNT

Key to extract the number of successful provideProvisionResponse(byte[]) calls from the PersistableBundle returned by a 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

String CLOSE_SESSION_ERROR_COUNT

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

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

CLOSE_SESSION_ERROR_LIST

String CLOSE_SESSION_ERROR_LIST

Key to extract the list of error codes that were returned from closeSession(byte[]) 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 (getLongArray(String)).

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

CLOSE_SESSION_OK_COUNT

String CLOSE_SESSION_OK_COUNT

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

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

EVENT_KEY_EXPIRED_COUNT

String EVENT_KEY_EXPIRED_COUNT

Key to extract the count of onEvent(MediaDrm, byte[], int, int, byte[]) calls of type KEY_EXPIRED occured. The count is extracted from the PersistableBundle returned from a getMetrics() call. The count is a Long value (getLong(String)).

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

EVENT_KEY_NEEDED_COUNT

String EVENT_KEY_NEEDED_COUNT

Key to extract the count of onEvent(MediaDrm, byte[], int, int, byte[]) calls of type KEY_NEEDED occured. The count is extracted from the PersistableBundle returned from a getMetrics() call. The count is a Long value (getLong(String)).

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

EVENT_PROVISION_REQUIRED_COUNT

String EVENT_PROVISION_REQUIRED_COUNT

Key to extract the count of onEvent(MediaDrm, byte[], int, int, byte[]) calls of type PROVISION_REQUIRED occured. The count is extracted from the PersistableBundle returned from a getMetrics() call. The count is a Long value (getLong(String)).

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

EVENT_SESSION_RECLAIMED_COUNT

String EVENT_SESSION_RECLAIMED_COUNT

Key to extract the count of onEvent(MediaDrm, byte[], int, int, byte[]) calls of type SESSION_RECLAIMED. The count is extracted from the PersistableBundle returned from a getMetrics() call. The count is a Long value (getLong(String)).

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

EVENT_VENDOR_DEFINED_COUNT

String EVENT_VENDOR_DEFINED_COUNT

Key to extract the count of onEvent(MediaDrm, byte[], int, int, byte[]) calls of type VENDOR_DEFINED. The count is extracted from the PersistableBundle returned from a getMetrics() call. The count is a Long value (getLong(String)).

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

GET_DEVICE_UNIQUE_ID_ERROR_COUNT

String GET_DEVICE_UNIQUE_ID_ERROR_COUNT

Key to extract the number of failed getPropertyByteArray(String) 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 (getLong(String)).

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

GET_DEVICE_UNIQUE_ID_ERROR_LIST

String GET_DEVICE_UNIQUE_ID_ERROR_LIST

Key to extract the list of error codes that were returned from getPropertyByteArray(String) 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 (getLongArray(String)).

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

GET_DEVICE_UNIQUE_ID_OK_COUNT

String GET_DEVICE_UNIQUE_ID_OK_COUNT

Key to extract the number of successful getPropertyByteArray(String) 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 (getLong(String)).

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

GET_KEY_REQUEST_ERROR_COUNT

String GET_KEY_REQUEST_ERROR_COUNT

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

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

GET_KEY_REQUEST_ERROR_LIST

String GET_KEY_REQUEST_ERROR_LIST

Key to extract the list of error codes that were returned from getKeyRequest(byte[], byte[], String, int, HashMap) 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 (getLongArray(String)).

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

GET_KEY_REQUEST_OK_COUNT

String GET_KEY_REQUEST_OK_COUNT

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

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

GET_KEY_REQUEST_OK_TIME_MICROS

String GET_KEY_REQUEST_OK_TIME_MICROS

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

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

GET_PROVISION_REQUEST_ERROR_COUNT

String GET_PROVISION_REQUEST_ERROR_COUNT

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

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

GET_PROVISION_REQUEST_ERROR_LIST

String GET_PROVISION_REQUEST_ERROR_LIST

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 (getLongArray(String)).

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

GET_PROVISION_REQUEST_OK_COUNT

String GET_PROVISION_REQUEST_OK_COUNT

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

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

KEY_STATUS_EXPIRED_COUNT

String KEY_STATUS_EXPIRED_COUNT

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

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

KEY_STATUS_INTERNAL_ERROR_COUNT

String KEY_STATUS_INTERNAL_ERROR_COUNT

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

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

KEY_STATUS_OUTPUT_NOT_ALLOWED_COUNT

String KEY_STATUS_OUTPUT_NOT_ALLOWED_COUNT

Key to extract the count of 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 (getLong(String)).

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

KEY_STATUS_PENDING_COUNT

String KEY_STATUS_PENDING_COUNT

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

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

KEY_STATUS_USABLE_COUNT

String KEY_STATUS_USABLE_COUNT

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

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

OPEN_SESSION_ERROR_COUNT

String OPEN_SESSION_ERROR_COUNT

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

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

OPEN_SESSION_ERROR_LIST

String OPEN_SESSION_ERROR_LIST

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 (getLongArray(String)).

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

OPEN_SESSION_OK_COUNT

String OPEN_SESSION_OK_COUNT

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

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

PROVIDE_KEY_RESPONSE_ERROR_COUNT

String PROVIDE_KEY_RESPONSE_ERROR_COUNT

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

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

PROVIDE_KEY_RESPONSE_ERROR_LIST

String PROVIDE_KEY_RESPONSE_ERROR_LIST

Key to extract the list of error codes that were returned from provideKeyResponse(byte[], byte[]) 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 (getLongArray(String)).

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

PROVIDE_KEY_RESPONSE_OK_COUNT

String PROVIDE_KEY_RESPONSE_OK_COUNT

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

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

PROVIDE_KEY_RESPONSE_OK_TIME_MICROS

String PROVIDE_KEY_RESPONSE_OK_TIME_MICROS

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

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

PROVIDE_PROVISION_RESPONSE_ERROR_COUNT

String PROVIDE_PROVISION_RESPONSE_ERROR_COUNT

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

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

PROVIDE_PROVISION_RESPONSE_ERROR_LIST

String PROVIDE_PROVISION_RESPONSE_ERROR_LIST

Key to extract the list of error codes that were returned from provideProvisionResponse(byte[]) 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 (getLongArray(String)).

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

PROVIDE_PROVISION_RESPONSE_OK_COUNT

String PROVIDE_PROVISION_RESPONSE_OK_COUNT

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

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

SESSION_END_TIMES_MS

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

Constant Value: "drm.mediadrm.session_end_times_ms"

SESSION_START_TIMES_MS

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

Constant Value: "drm.mediadrm.session_start_times_ms"