Allocates a buffer that backs an AHardwareBuffer using the passed AHardwareBuffer_Desc.
\return 0 on success, or an error number of the allocation fails for any reason. The returned buffer has a reference count of 1.
See Implementation
Allocates a buffer that backs an AHardwareBuffer using the passed AHardwareBuffer_Desc.
\return 0 on success, or an error number of the allocation fails for any reason. The returned buffer has a reference count of 1.