Package: android.hardware.drm@1.0

IDrmPluginListener

interface IDrmPluginListener

IDrmPluginListener is a listener interface for Drm events sent from an IDrmPlugin instance.

Methods

sendEvent

oneway sendEvent (EventType eventType, SessionId sessionId, vec<uint8_t> data)

Legacy event sending method, it sends events of various types using a single overloaded set of parameters.This form is deprecated.

Details
RPC mode
oneway
Parameters
eventType
the type of the event
sessionId
identifies the session the event originated from
data
event-specific data blob

sendExpirationUpdate

oneway sendExpirationUpdate (SessionId sessionId, int64_t expiryTimeInMS)

Send a license expiration update to the listener.The expiration update indicates how long the current keys are valid before they need to be renewed.

Details
RPC mode
oneway
Parameters
sessionId
identifies the session the event originated from
expiryTimeInMS
the time when the keys need to be renewed.The time is in milliseconds, relative to the Unix epoch.A time of 0 indicates that the keys never expire.

sendKeysChange

oneway sendKeysChange (SessionId sessionId, vec<KeyStatus> keyStatusList, bool hasNewUsableKey)

Send a keys change event to the listener.The keys change event indicates the status of each key in the session.Keys can be indicated as being usable, expired, outputnotallowed or statuspending.

Details
RPC mode
oneway
Parameters
sessionId
identifies the session the event originated from
keyStatusList
indicates the status for each key ID in the session.
hasNewUsableKey
indicates if the event includes at least one key that has become usable.