Lines Matching refs:usage

48     uint64_t usage = AHardwareBuffer_convertToGrallocUsageBits(desc->usage);  in AHardwareBuffer_allocate()  local
50 desc->width, desc->height, format, desc->layers, usage, in AHardwareBuffer_allocate()
90 outDesc->usage = AHardwareBuffer_convertFromGrallocUsageBits(gbuffer->getUsage()); in AHardwareBuffer_describe()
96 int AHardwareBuffer_lockAndGetInfo(AHardwareBuffer* buffer, uint64_t usage, in AHardwareBuffer_lockAndGetInfo() argument
106 if (usage & ~(AHARDWAREBUFFER_USAGE_CPU_READ_MASK | in AHardwareBuffer_lockAndGetInfo()
113 usage = AHardwareBuffer_convertToGrallocUsageBits(usage); in AHardwareBuffer_lockAndGetInfo()
137 …int result = gbuffer->lockAsync(usage, usage, bounds, outVirtualAddress, fence, &bytesPerPixel, &b… in AHardwareBuffer_lockAndGetInfo()
151 int AHardwareBuffer_lock(AHardwareBuffer* buffer, uint64_t usage, in AHardwareBuffer_lock() argument
158 if (usage & ~(AHARDWAREBUFFER_USAGE_CPU_READ_MASK | in AHardwareBuffer_lock()
165 usage = AHardwareBuffer_convertToGrallocUsageBits(usage); in AHardwareBuffer_lock()
180 …return gbuffer->lockAsync(usage, usage, bounds, outVirtualAddress, fence, &bytesPerPixel, &bytesPe… in AHardwareBuffer_lock()
183 int AHardwareBuffer_lockPlanes(AHardwareBuffer* buffer, uint64_t usage, in AHardwareBuffer_lockPlanes() argument
187 if (usage & ~(AHARDWAREBUFFER_USAGE_CPU_READ_MASK | in AHardwareBuffer_lockPlanes()
194 usage = AHardwareBuffer_convertToGrallocUsageBits(usage); in AHardwareBuffer_lockPlanes()
206 int result = gBuffer->lockAsyncYCbCr(usage, bounds, &yuvData, fence); in AHardwareBuffer_lockPlanes()
227 return gBuffer->lockAsync(usage, usage, bounds, &outPlanes->planes[0].data, fence); in AHardwareBuffer_lockPlanes()
375 desc->usage, &supported); in AHardwareBuffer_isSupported()
386 if (desc->usage & AHARDWAREBUFFER_USAGE_GPU_CUBE_MAP) { in AHardwareBuffer_isSupported()
428 const uint64_t usage = AHardwareBuffer_convertToGrallocUsageBits(desc->usage); in AHardwareBuffer_createFromHandle() local
431 format, desc->layers, usage, desc->stride)); in AHardwareBuffer_createFromHandle()
475 if (desc->usage & blobInvalidGpuMask) { in AHardwareBuffer_isValidDescription()
480 if (desc->usage & AHARDWAREBUFFER_USAGE_VIDEO_ENCODE) { in AHardwareBuffer_isValidDescription()
492 if (desc->usage & yuvInvalidGpuMask) { in AHardwareBuffer_isValidDescription()
498 if (desc->usage & AHARDWAREBUFFER_USAGE_SENSOR_DIRECT_DATA) { in AHardwareBuffer_isValidDescription()
502 if (desc->usage & AHARDWAREBUFFER_USAGE_GPU_DATA_BUFFER) { in AHardwareBuffer_isValidDescription()
508 …if ((desc->usage & (AHARDWAREBUFFER_USAGE_CPU_READ_MASK | AHARDWAREBUFFER_USAGE_CPU_WRITE_MASK)) && in AHardwareBuffer_isValidDescription()
509 (desc->usage & AHARDWAREBUFFER_USAGE_PROTECTED_CONTENT)) { in AHardwareBuffer_isValidDescription()
515 if (desc->usage & AHARDWAREBUFFER_USAGE_GPU_CUBE_MAP) { in AHardwareBuffer_isValidDescription()
659 uint64_t AHardwareBuffer_convertToGrallocUsageBits(uint64_t usage) { in AHardwareBuffer_convertToGrallocUsageBits() argument
689 return usage; in AHardwareBuffer_convertToGrallocUsageBits()
692 uint64_t AHardwareBuffer_convertFromGrallocUsageBits(uint64_t usage) { in AHardwareBuffer_convertFromGrallocUsageBits() argument
693 return usage; in AHardwareBuffer_convertFromGrallocUsageBits()