Lines Matching refs:usage
63 uint64_t usage = AHardwareBuffer_convertToGrallocUsageBits(desc->usage); in AHardwareBuffer_allocate() local
65 desc->width, desc->height, format, desc->layers, usage, in AHardwareBuffer_allocate()
105 outDesc->usage = AHardwareBuffer_convertFromGrallocUsageBits(gbuffer->getUsage()); in AHardwareBuffer_describe()
111 int AHardwareBuffer_lock(AHardwareBuffer* buffer, uint64_t usage, in AHardwareBuffer_lock() argument
115 if (usage & ~(AHARDWAREBUFFER_USAGE_CPU_READ_MASK | in AHardwareBuffer_lock()
122 usage = AHardwareBuffer_convertToGrallocUsageBits(usage); in AHardwareBuffer_lock()
130 return gBuffer->lockAsync(usage, usage, bounds, outVirtualAddress, fence); in AHardwareBuffer_lock()
390 uint64_t AHardwareBuffer_convertToGrallocUsageBits(uint64_t usage) { in AHardwareBuffer_convertToGrallocUsageBits() argument
416 return usage; in AHardwareBuffer_convertToGrallocUsageBits()
419 uint64_t AHardwareBuffer_convertFromGrallocUsageBits(uint64_t usage) { in AHardwareBuffer_convertFromGrallocUsageBits() argument
420 return usage; in AHardwareBuffer_convertFromGrallocUsageBits()