Package: android.hardware.graphics.allocator@2.0

IAllocator

interface IAllocator

Methods

dumpDebugInfo

dumpDebugInfo ()
generates (string debugInfo)

Retrieves implementation-defined debug information, which will be displayed during, for example, `dumpsys SurfaceFlinger`.

Details
Generates
debugInfo
is a string of debug information.
Annotations
entry
exit
callflow
next="*"

allocate

allocate (BufferDescriptor descriptor, uint32_t count)
generates (Error error, uint32_t stride, vec<handle> buffers)

Allocates buffers with the properties specified by the descriptor.

Details
Parameters
descriptor
specifies the properties of the buffers to allocate.
count
is the number of buffers to allocate.
Generates
error
is NONE upon success.Otherwise, BAD_DESCRIPTOR when the descriptor is invalid.NO_RESOURCES when the allocation cannot be fulfilled at this time.UNSUPPORTED when any of the property encoded in the descriptor is not supported.
stride
is the number of pixels between two consecutive rows of the buffers, when the concept of consecutive rows is defined.Otherwise, it has no meaning.
buffers
is an array of raw handles to the newly allocated buffers.
Annotations
entry
exit
callflow
next="*"