Package: android.hardware.media.bufferpool@1.0

IConnection

interface IConnection

A connection to a buffer pool which handles requests from a buffer pool client.The connection must be made in order to receive buffers from other buffer pool clients.

Methods

fetch

fetch (uint64_t transactionId, uint32_t bufferId)
generates (ResultStatus status, Buffer buffer)

Retrieves a buffer using bufferId.The method must be called from receiving side of buffer during transferring only when the specified buffer is neither cached nor used.This fails if the specified transaction is not valid.

Details
Parameters
transactionId
Unique transaction id for buffer transferring.
bufferId
Id of the buffer to be fetched.
Generates
status
The status of the call.OK - A buffer was fetched successfully.NO_MEMORY - Memory allocation failure occurred.NOT_FOUND - A buffer was not found due to invalidation.CRITICAL_ERROR - Other errors.
buffer
The actual buffer which is specified with bufferId.