Lines Matching refs:BufferUsage
264 if (usage & BufferUsage::CPU_READ_MASK) { in CpuCanRead()
272 if (usage & BufferUsage::CPU_WRITE_MASK) { in CpuCanWrite()
286 if (usage & BufferUsage::PROTECTED) { in GetDataAlignment()
287 if ((usage & BufferUsage::CAMERA_OUTPUT) || (usage & GRALLOC_USAGE_PRIVATE_SECURE_DISPLAY)) { in GetDataAlignment()
300 if ((usage & BufferUsage::GPU_MIPMAP_COMPLETE)) { in IsGPUFlagSupported()
305 if ((usage & BufferUsage::GPU_CUBE_MAP)) { in IsGPUFlagSupported()
797 if ((usage & BufferUsage::GPU_TEXTURE) || (usage & BufferUsage::GPU_RENDER_TARGET)) { in IsUBwcPISupported()
821 (usage & BufferUsage::COMPOSER_CLIENT_TARGET)) in IsUBwcEnabled()
825 if ((usage & BufferUsage::GPU_TEXTURE) || (usage & BufferUsage::GPU_RENDER_TARGET)) { in IsUBwcEnabled()
1161 if ((usage & BufferUsage::GPU_TEXTURE) || (usage & BufferUsage::GPU_RENDER_TARGET)) { in GetAlignedWidthAndHeight()
1317 if ((usage & BufferUsage::PROTECTED) && ((usage & BufferUsage::CAMERA_OUTPUT) || in CanUseAdrenoForSize()
1334 if ((usage & GRALLOC_USAGE_PRIVATE_UNCACHED) || (usage & BufferUsage::PROTECTED)) { in UseUncached()
1339 if ((usage & BufferUsage::CPU_READ_MASK) == static_cast<uint64_t>(BufferUsage::CPU_READ_RARELY)) { in UseUncached()
1344 if ((usage & BufferUsage::CPU_WRITE_MASK) == in UseUncached()
1345 static_cast<uint64_t>(BufferUsage::CPU_WRITE_RARELY)) { in UseUncached()
1349 if ((usage & BufferUsage::SENSOR_DIRECT_DATA) || (usage & BufferUsage::GPU_DATA_BUFFER)) { in UseUncached()
1363 if (usage & BufferUsage::VIDEO_ENCODER) { in GetHandleFlags()
1367 if (usage & BufferUsage::CAMERA_OUTPUT) { in GetHandleFlags()
1371 if (usage & BufferUsage::CAMERA_INPUT) { in GetHandleFlags()
1375 if (usage & BufferUsage::COMPOSER_OVERLAY) { in GetHandleFlags()
1379 if (usage & BufferUsage::GPU_TEXTURE) { in GetHandleFlags()
1394 if (usage & (BufferUsage::CPU_READ_MASK | BufferUsage::CPU_WRITE_MASK)) { in GetHandleFlags()
1398 if ((usage & (BufferUsage::VIDEO_ENCODER | BufferUsage::VIDEO_DECODER | in GetHandleFlags()
1399 BufferUsage::CAMERA_OUTPUT | BufferUsage::GPU_RENDER_TARGET))) { in GetHandleFlags()
1420 } else if (usage & BufferUsage::VIDEO_ENCODER) { in GetImplDefinedFormat()
1430 } else if (usage & BufferUsage::CAMERA_INPUT) { in GetImplDefinedFormat()
1431 if (usage & BufferUsage::CAMERA_OUTPUT) { in GetImplDefinedFormat()
1437 } else if (usage & BufferUsage::CAMERA_OUTPUT) { in GetImplDefinedFormat()
1439 if ((usage & BufferUsage::PROTECTED) && (!CanAllocateZSLForSecureCamera())) { in GetImplDefinedFormat()
1447 } else if (usage & BufferUsage::COMPOSER_OVERLAY) { in GetImplDefinedFormat()