Package: android.hardware.cas@1.0

IMediaCasService

interface IMediaCasService

IMediaCasService is the main entry point for interacting with a vendor's cas HAL to create cas and descrambler plugin instances.A cas plugin instance opens cas sessions which are used to obtain keys for a descrambler session, which can in turn be used to descramble protected video content.

Methods

enumeratePlugins

enumeratePlugins ()
generates (vec<HidlCasPluginDescriptor> descriptors)

List all available CA systems on the device.

Details
Generates
descriptors
an array of descriptors for the available CA systems.

isSystemIdSupported

isSystemIdSupported (int32_t CA_system_id)
generates (bool result)

Query if a certain CA system is supported on this device.

Details
Parameters
CA_system_id
the id of the CA system.
Generates
result
whether the specified CA system is supported on this device.

createPlugin

createPlugin (int32_t CA_system_id, ICasListener listener)
generates (ICas cas)

Construct a new instance of a CasPlugin given a CA_system_id.

Details
Parameters
CA_system_id
the id of the CA system.
listener
the event listener to receive events coming from the CasPlugin.
Generates
cas
the newly created CasPlugin interface.

isDescramblerSupported

isDescramblerSupported (int32_t CA_system_id)
generates (bool result)

Query if the descrambling scheme for a CA system is supported on this device.

Details
Parameters
CA_system_id
the id of the CA system.
Generates
result
whether the specified descrambling scheme is supported on this device.

createDescrambler

createDescrambler (int32_t CA_system_id)
generates (IDescramblerBase descrambler)

Construct a new instance of a DescramblerPlugin given a CA_system_id.

Details
Parameters
CA_system_id
the id of the CA system.
Generates
descrambler
the newly created plugin interface.