Lines Matching full:usage

93     Underlying usage = static_cast<Underlying>(bufferUsage);  in getUsageString()  local
96 if (usage & BufferUsage::CAMERA_INPUT) { in getUsageString()
97 usage &= ~static_cast<Underlying>(BufferUsage::CAMERA_INPUT); in getUsageString()
100 if (usage & BufferUsage::CAMERA_OUTPUT) { in getUsageString()
101 usage &= ~static_cast<Underlying>(BufferUsage::CAMERA_OUTPUT); in getUsageString()
104 if (usage & BufferUsage::COMPOSER_CURSOR) { in getUsageString()
105 usage &= ~static_cast<Underlying>(BufferUsage::COMPOSER_CURSOR); in getUsageString()
108 if (usage & BufferUsage::COMPOSER_OVERLAY) { in getUsageString()
109 usage &= ~static_cast<Underlying>(BufferUsage::COMPOSER_OVERLAY); in getUsageString()
112 if (usage & BufferUsage::CPU_READ_OFTEN) { in getUsageString()
113 usage &= ~static_cast<Underlying>(BufferUsage::CPU_READ_OFTEN); in getUsageString()
116 if (usage & BufferUsage::CPU_READ_NEVER) { in getUsageString()
117 usage &= ~static_cast<Underlying>(BufferUsage::CPU_READ_NEVER); in getUsageString()
120 if (usage & BufferUsage::CPU_READ_RARELY) { in getUsageString()
121 usage &= ~static_cast<Underlying>(BufferUsage::CPU_READ_RARELY); in getUsageString()
124 if (usage & BufferUsage::CPU_WRITE_NEVER) { in getUsageString()
125 usage &= ~static_cast<Underlying>(BufferUsage::CPU_WRITE_NEVER); in getUsageString()
128 if (usage & BufferUsage::CPU_WRITE_OFTEN) { in getUsageString()
129 usage &= ~static_cast<Underlying>(BufferUsage::CPU_WRITE_OFTEN); in getUsageString()
132 if (usage & BufferUsage::CPU_WRITE_RARELY) { in getUsageString()
133 usage &= ~static_cast<Underlying>(BufferUsage::CPU_WRITE_RARELY); in getUsageString()
136 if (usage & BufferUsage::GPU_RENDER_TARGET) { in getUsageString()
137 usage &= ~static_cast<Underlying>(BufferUsage::GPU_RENDER_TARGET); in getUsageString()
140 if (usage & BufferUsage::GPU_TEXTURE) { in getUsageString()
141 usage &= ~static_cast<Underlying>(BufferUsage::GPU_TEXTURE); in getUsageString()
144 if (usage & BufferUsage::PROTECTED) { in getUsageString()
145 usage &= ~static_cast<Underlying>(BufferUsage::PROTECTED); in getUsageString()
148 if (usage & BufferUsage::RENDERSCRIPT) { in getUsageString()
149 usage &= ~static_cast<Underlying>(BufferUsage::RENDERSCRIPT); in getUsageString()
152 if (usage & BufferUsage::VIDEO_DECODER) { in getUsageString()
153 usage &= ~static_cast<Underlying>(BufferUsage::VIDEO_DECODER); in getUsageString()
156 if (usage & BufferUsage::VIDEO_ENCODER) { in getUsageString()
157 usage &= ~static_cast<Underlying>(BufferUsage::VIDEO_ENCODER); in getUsageString()
161 if (usage) { in getUsageString()
162 usages.push_back(android::base::StringPrintf("UnknownUsageBits-%" PRIu64, usage)); in getUsageString()
328 outCrosDescriptor->droid_usage = descriptor.usage; in convertToCrosDescriptor()
340 if (convertToBufferUsage(descriptor.usage, &outCrosDescriptor->use_flags)) { in convertToCrosDescriptor()
341 std::string usageString = getUsageString(descriptor.usage); in convertToCrosDescriptor()
342 drv_log("Failed to convert descriptor. Unsupported usage flags %s\n", usageString.c_str()); in convertToCrosDescriptor()
389 descriptor.usage = encoded[4]; in decodeBufferDescriptorInfo()
400 encoded[4] = info.usage & std::numeric_limits<uint32_t>::max(); in encodeBufferDescriptorInfo()