Lines Matching refs:BufferUsage
26 using android::hardware::graphics::common::V1_2::BufferUsage;
94 std::string getUsageString(hidl_bitfield<BufferUsage> bufferUsage) { in getUsageString()
95 using Underlying = typename std::underlying_type<BufferUsage>::type; in getUsageString()
100 if (usage & BufferUsage::CAMERA_INPUT) { in getUsageString()
101 usage &= ~static_cast<Underlying>(BufferUsage::CAMERA_INPUT); in getUsageString()
104 if (usage & BufferUsage::CAMERA_OUTPUT) { in getUsageString()
105 usage &= ~static_cast<Underlying>(BufferUsage::CAMERA_OUTPUT); in getUsageString()
108 if (usage & BufferUsage::COMPOSER_CURSOR) { in getUsageString()
109 usage &= ~static_cast<Underlying>(BufferUsage::COMPOSER_CURSOR); in getUsageString()
112 if (usage & BufferUsage::COMPOSER_OVERLAY) { in getUsageString()
113 usage &= ~static_cast<Underlying>(BufferUsage::COMPOSER_OVERLAY); in getUsageString()
116 if (usage & BufferUsage::CPU_READ_OFTEN) { in getUsageString()
117 usage &= ~static_cast<Underlying>(BufferUsage::CPU_READ_OFTEN); in getUsageString()
120 if (usage & BufferUsage::CPU_READ_NEVER) { in getUsageString()
121 usage &= ~static_cast<Underlying>(BufferUsage::CPU_READ_NEVER); in getUsageString()
124 if (usage & BufferUsage::CPU_READ_RARELY) { in getUsageString()
125 usage &= ~static_cast<Underlying>(BufferUsage::CPU_READ_RARELY); in getUsageString()
128 if (usage & BufferUsage::CPU_WRITE_NEVER) { in getUsageString()
129 usage &= ~static_cast<Underlying>(BufferUsage::CPU_WRITE_NEVER); in getUsageString()
132 if (usage & BufferUsage::CPU_WRITE_OFTEN) { in getUsageString()
133 usage &= ~static_cast<Underlying>(BufferUsage::CPU_WRITE_OFTEN); in getUsageString()
136 if (usage & BufferUsage::CPU_WRITE_RARELY) { in getUsageString()
137 usage &= ~static_cast<Underlying>(BufferUsage::CPU_WRITE_RARELY); in getUsageString()
140 if (usage & BufferUsage::GPU_RENDER_TARGET) { in getUsageString()
141 usage &= ~static_cast<Underlying>(BufferUsage::GPU_RENDER_TARGET); in getUsageString()
144 if (usage & BufferUsage::GPU_TEXTURE) { in getUsageString()
145 usage &= ~static_cast<Underlying>(BufferUsage::GPU_TEXTURE); in getUsageString()
148 if (usage & BufferUsage::PROTECTED) { in getUsageString()
149 usage &= ~static_cast<Underlying>(BufferUsage::PROTECTED); in getUsageString()
152 if (usage & BufferUsage::RENDERSCRIPT) { in getUsageString()
153 usage &= ~static_cast<Underlying>(BufferUsage::RENDERSCRIPT); in getUsageString()
156 if (usage & BufferUsage::VIDEO_DECODER) { in getUsageString()
157 usage &= ~static_cast<Underlying>(BufferUsage::VIDEO_DECODER); in getUsageString()
160 if (usage & BufferUsage::VIDEO_ENCODER) { in getUsageString()
161 usage &= ~static_cast<Underlying>(BufferUsage::VIDEO_ENCODER); in getUsageString()
259 if ((grallocUsage & BufferUsage::CPU_READ_MASK) == in convertToBufferUsage()
260 static_cast<uint64_t>(BufferUsage::CPU_READ_RARELY)) { in convertToBufferUsage()
263 if ((grallocUsage & BufferUsage::CPU_READ_MASK) == in convertToBufferUsage()
264 static_cast<uint64_t>(BufferUsage::CPU_READ_OFTEN)) { in convertToBufferUsage()
267 if ((grallocUsage & BufferUsage::CPU_WRITE_MASK) == in convertToBufferUsage()
268 static_cast<uint64_t>(BufferUsage::CPU_WRITE_RARELY)) { in convertToBufferUsage()
271 if ((grallocUsage & BufferUsage::CPU_WRITE_MASK) == in convertToBufferUsage()
272 static_cast<uint64_t>(BufferUsage::CPU_WRITE_OFTEN)) { in convertToBufferUsage()
275 if (grallocUsage & BufferUsage::GPU_TEXTURE) { in convertToBufferUsage()
278 if (grallocUsage & BufferUsage::GPU_RENDER_TARGET) { in convertToBufferUsage()
281 if (grallocUsage & BufferUsage::COMPOSER_OVERLAY) { in convertToBufferUsage()
286 if (grallocUsage & BufferUsage::PROTECTED) { in convertToBufferUsage()
289 if (grallocUsage & BufferUsage::COMPOSER_CURSOR) { in convertToBufferUsage()
292 if (grallocUsage & BufferUsage::VIDEO_ENCODER) { in convertToBufferUsage()
296 if (grallocUsage & BufferUsage::CAMERA_OUTPUT) { in convertToBufferUsage()
299 if (grallocUsage & BufferUsage::CAMERA_INPUT) { in convertToBufferUsage()
302 if (grallocUsage & BufferUsage::RENDERSCRIPT) { in convertToBufferUsage()
305 if (grallocUsage & BufferUsage::VIDEO_DECODER) { in convertToBufferUsage()
342 if (grallocUsage & BufferUsage::CPU_READ_MASK) { in convertToMapUsage()
345 if (grallocUsage & BufferUsage::CPU_WRITE_MASK) { in convertToMapUsage()