Package: android.hardware.media.bufferpool@1.0

IClientManager

interface IClientManager

IClientManager manages IConnection(s)inside a process.A locally created IConnection represents a communication node(receiver)with the specified buffer pool(IAccessor). IConnection(s)are not exposed to other processes(IClientManager). IClientManager instance must be unique within a process.

Methods

registerSender

registerSender (IAccessor bufferPool)
generates (ResultStatus status, int64_t connectionId)

Sets up a buffer receiving communication node for the specified buffer pool.A manager must create a IConnection to the buffer pool if it does not already have a connection.

Details
Parameters
bufferPool
a buffer pool which is specified with the IAccessor.The specified buffer pool is the owner of received buffers.
Generates
status
The status of the call.OK - A sender was set successfully.NO_MEMORY - Memory allocation failure occurred.ALREADY_EXISTS - A sender was registered already.CRITICAL_ERROR - Other errors.
connectionId
the Id of the communication node to the buffer pool.This id is used in FMQ to notify IAccessor that a buffer has been sent to that connection during transfers.