Package: android.hardware.cas@1.0

types

Properties

HidlCasSessionId

typedef vec HidlCasSessionId

HidlCasData

typedef vec HidlCasData

Status

enum Status: uint32_t
Details
Members
OK
The CAS plugin must return OK when an operation completes without any errors.
ERROR_CAS_NO_LICENSE
The CAS plugin must return ERROR_CAS_NO_LICENSE, when descrambling is attempted and no license keys have been provided.
ERROR_CAS_LICENSE_EXPIRED
ERROR_CAS_LICENSE_EXPIRED must be returned when an attempt is made to use a license and the keys in that license have expired.
ERROR_CAS_SESSION_NOT_OPENED
The CAS plugin must return ERROR_CAS_SESSION_NOT_OPENED when an attempt is made to use a session that has not been opened.
ERROR_CAS_CANNOT_HANDLE
The CAS plugin must return ERROR_CAS_CANNOT_HANDLE when an unsupported data format or operation is attempted.
ERROR_CAS_INVALID_STATE
ERROR_CAS_INVALID_STATE must be returned when the device is in a state where it is not able to perform descrambling.
BAD_VALUE
The CAS plugin must return BAD_VALUE whenever an illegal parameter is passed to one of the interface functions.
ERROR_CAS_NOT_PROVISIONED
The CAS plugin must return ERROR_CAS_NOT_PROVISIONED when the device has not yet been provisioned.
ERROR_CAS_RESOURCE_BUSY
ERROR_CAS_RESOURCE_BUSY must be returned when resources, such as CAS sessions or secure buffers are not available to perform a requested operation because they are already in use.
ERROR_CAS_INSUFFICIENT_OUTPUT_PROTECTION
The CAS Plugin must return ERROR_CAS_INSUFFICIENT_OUTPUT_PROTECTION when the output protection level enabled on the device is not sufficient to meet the requirements in the license policy.HDCP is an example of a form of output protection.
ERROR_CAS_TAMPER_DETECTED
The CAS Plugin must return ERROR_CAS_TAMPER_DETECTED if an attempt to tamper with the CAS system is detected.
ERROR_CAS_DEVICE_REVOKED
The CAS Plugin must return ERROR_CAS_DEVICE_REVOKED if the response indicates that the device has been revoked.Device revocation means that the device is no longer permitted to play content.
ERROR_CAS_DECRYPT_UNIT_NOT_INITIALIZED
The CAS plugin must return ERROR_CAS_DECRYPT_UNIT_NOT_INITIALIZED when descrambling is failing because the session is not initialized properly.
ERROR_CAS_DECRYPT
The CAS Plugin must return ERROR_CAS_DECRYPT if the DescramblerPlugin's descramble operation fails.
ERROR_CAS_UNKNOWN
ERROR_CAS_UNKNOWN must be returned when a fatal failure occurs and no other defined error is appropriate.

HidlCasPluginDescriptor

struct HidlCasPluginDescriptor {int32_t caSystemId; string name}

Describes a CAS plugin with its system id and name.

Details
Members
caSystemId
name