/hardware/interfaces/graphics/mapper/2.0/utils/passthrough/include/mapper-passthrough/2.0/ |
D | GrallocBufferDescriptor.h | 39 BufferDescriptor descriptor; in grallocEncodeBufferDescriptor() local 40 descriptor.resize(grallocBufferDescriptorSize); in grallocEncodeBufferDescriptor() 41 descriptor[0] = grallocBufferDescriptorMagicVersion; in grallocEncodeBufferDescriptor() 42 descriptor[1] = descriptorInfo.width; in grallocEncodeBufferDescriptor() 43 descriptor[2] = descriptorInfo.height; in grallocEncodeBufferDescriptor() 44 descriptor[3] = descriptorInfo.layerCount; in grallocEncodeBufferDescriptor() 45 descriptor[4] = static_cast<uint32_t>(descriptorInfo.format); in grallocEncodeBufferDescriptor() 46 descriptor[5] = static_cast<uint32_t>(descriptorInfo.usage); in grallocEncodeBufferDescriptor() 47 descriptor[6] = static_cast<uint32_t>(descriptorInfo.usage >> 32); in grallocEncodeBufferDescriptor() 49 return descriptor; in grallocEncodeBufferDescriptor() [all …]
|
/hardware/interfaces/audio/effect/all-versions/default/ |
D | Conversions.cpp | 37 EffectDescriptor* descriptor) { in effectDescriptorFromHal() argument 38 HidlUtils::uuidFromHal(halDescriptor.type, &descriptor->type); in effectDescriptorFromHal() 39 HidlUtils::uuidFromHal(halDescriptor.uuid, &descriptor->uuid); in effectDescriptorFromHal() 40 descriptor->flags = EnumBitfield<EffectFlags>(halDescriptor.flags); in effectDescriptorFromHal() 41 descriptor->cpuLoad = halDescriptor.cpuLoad; in effectDescriptorFromHal() 42 descriptor->memoryUsage = halDescriptor.memoryUsage; in effectDescriptorFromHal() 43 memcpy(descriptor->name.data(), halDescriptor.name, descriptor->name.size()); in effectDescriptorFromHal() 44 memcpy(descriptor->implementor.data(), halDescriptor.implementor, in effectDescriptorFromHal() 45 descriptor->implementor.size()); in effectDescriptorFromHal()
|
/hardware/libhardware/modules/sensors/dynamic_sensor/HidUtils/test/ |
D | HidParserExample2.cpp | 24 void printRawValue(const std::vector<unsigned char> &descriptor) { in printRawValue() argument 25 LOG_D << "Descriptor [" << descriptor.size() << "]: " << std::hex; in printRawValue() 26 hexdumpToStream(LOG_D, descriptor.begin(), descriptor.end()); in printRawValue() 41 std::vector<unsigned char> descriptor(t->data, t->data + t->len); in main() local 47 printRawValue(descriptor); in main() 50 std::vector<HidItem> hidItemVector = HidItem::tokenize(descriptor); in main()
|
/hardware/qcom/display/msm8998/libgralloc1/ |
D | gr_buf_mgr.cpp | 62 auto descriptor = std::make_shared<BufferDescriptor>(); in CreateBufferDescriptor() local 63 descriptors_map_.emplace(descriptor->GetId(), descriptor); in CreateBufferDescriptor() 64 *descriptor_id = descriptor->GetId(); in CreateBufferDescriptor() 71 const auto descriptor = descriptors_map_.find(descriptor_id); in DestroyBufferDescriptor() local 72 if (descriptor == descriptors_map_.end()) { in DestroyBufferDescriptor() 75 descriptors_map_.erase(descriptor); in DestroyBufferDescriptor() 108 for (auto &descriptor : descriptors) { in AllocateBuffers() local 109 descriptor->SetColorFormat(allocator_->GetImplDefinedFormat(descriptor->GetProducerUsage(), in AllocateBuffers() 110 descriptor->GetConsumerUsage(), in AllocateBuffers() 111 descriptor->GetFormat())); in AllocateBuffers() [all …]
|
D | gr_device_impl.h | 51 struct gralloc1_device *device, int32_t /*gralloc1_function_descriptor_t*/ descriptor); 70 gralloc1_buffer_descriptor_t descriptor); 72 gralloc1_buffer_descriptor_t descriptor, 75 gralloc1_buffer_descriptor_t descriptor, 78 gralloc1_buffer_descriptor_t descriptor, int32_t format); 80 gralloc1_buffer_descriptor_t descriptor, 83 gralloc1_buffer_descriptor_t descriptor, 91 static gralloc1_error_t GetColorFormat(gralloc1_device_t *device, buffer_handle_t descriptor,
|
D | gr_device_impl.cpp | 234 gralloc1_buffer_descriptor_t descriptor) { in DestroyBufferDescriptor() argument 239 return dev->buf_mgr_->DestroyBufferDescriptor(descriptor); in DestroyBufferDescriptor() 243 gralloc1_buffer_descriptor_t descriptor, in SetConsumerUsage() argument 249 return dev->buf_mgr_->CallBufferDescriptorFunction(descriptor, in SetConsumerUsage() 255 gralloc1_buffer_descriptor_t descriptor, in SetBufferDimensions() argument 261 return dev->buf_mgr_->CallBufferDescriptorFunction(descriptor, in SetBufferDimensions() 268 gralloc1_buffer_descriptor_t descriptor, in SetColorFormat() argument 274 return dev->buf_mgr_->CallBufferDescriptorFunction(descriptor, in SetColorFormat() 280 gralloc1_buffer_descriptor_t descriptor, in SetLayerCount() argument 286 return dev->buf_mgr_->CallBufferDescriptorFunction(descriptor, in SetLayerCount() [all …]
|
D | gr_allocator.cpp | 218 unsigned int Allocator::GetSize(const BufferDescriptor &descriptor, unsigned int alignedw, in GetSize() argument 221 int format = descriptor.GetFormat(); in GetSize() 222 int width = descriptor.GetWidth(); in GetSize() 223 int height = descriptor.GetHeight(); in GetSize() 224 int layer_count = descriptor.GetLayerCount(); in GetSize() 225 gralloc1_producer_usage_t prod_usage = descriptor.GetProducerUsage(); in GetSize() 226 gralloc1_consumer_usage_t cons_usage = descriptor.GetConsumerUsage(); in GetSize() 316 BufferDescriptor descriptor = BufferDescriptor(width, height, format); in GetBufferSizeAndDimensions() local 317 GetAlignedWidthAndHeight(descriptor, alignedw, alignedh); in GetBufferSizeAndDimensions() 319 *size = GetSize(descriptor, *alignedw, *alignedh); in GetBufferSizeAndDimensions() [all …]
|
D | gr_buf_mgr.h | 53 gralloc1_error_t ValidateBufferSize(private_handle_t const *hnd, BufferDescriptor descriptor); 64 const auto descriptor = map_descriptor->second; in CallBufferDescriptorFunction() local 65 (descriptor.get()->*member)(std::forward<Args>(args)...); in CallBufferDescriptorFunction() 78 int AllocateBuffer(const BufferDescriptor &descriptor, buffer_handle_t *handle, 82 void CreateSharedHandle(buffer_handle_t inbuffer, const BufferDescriptor &descriptor,
|
/hardware/interfaces/graphics/allocator/2.0/utils/gralloc1-adapter/ |
D | Gralloc1On0Adapter.cpp | 95 auto descriptor = in doGetFunction() local 97 switch (descriptor) { in doGetFunction() 215 gralloc1_buffer_descriptor_t descriptor) in destroyDescriptor() argument 217 ALOGV("Destroying descriptor %" PRIu64, descriptor); in destroyDescriptor() 220 if (mDescriptors.count(descriptor) == 0) { in destroyDescriptor() 224 mDescriptors.erase(descriptor); in destroyDescriptor() 229 gralloc1_backing_store_t store, const Descriptor& descriptor, in Buffer() argument 234 mDescriptor(descriptor), in Buffer() 241 const std::shared_ptr<Descriptor>& descriptor, in allocate() argument 251 descriptor->producerUsage, descriptor->consumerUsage); in allocate() [all …]
|
/hardware/qcom/display/msm8996/libgralloc1/ |
D | gr_buf_mgr.cpp | 62 auto descriptor = std::make_shared<BufferDescriptor>(); in CreateBufferDescriptor() local 63 descriptors_map_.emplace(descriptor->GetId(), descriptor); in CreateBufferDescriptor() 64 *descriptor_id = descriptor->GetId(); in CreateBufferDescriptor() 71 const auto descriptor = descriptors_map_.find(descriptor_id); in DestroyBufferDescriptor() local 72 if (descriptor == descriptors_map_.end()) { in DestroyBufferDescriptor() 75 descriptors_map_.erase(descriptor); in DestroyBufferDescriptor() 108 for (auto &descriptor : descriptors) { in AllocateBuffers() local 109 descriptor->SetColorFormat(allocator_->GetImplDefinedFormat(descriptor->GetProducerUsage(), in AllocateBuffers() 110 descriptor->GetConsumerUsage(), in AllocateBuffers() 111 descriptor->GetFormat())); in AllocateBuffers() [all …]
|
D | gr_device_impl.h | 51 struct gralloc1_device *device, int32_t /*gralloc1_function_descriptor_t*/ descriptor); 70 gralloc1_buffer_descriptor_t descriptor); 72 gralloc1_buffer_descriptor_t descriptor, 75 gralloc1_buffer_descriptor_t descriptor, 78 gralloc1_buffer_descriptor_t descriptor, int32_t format); 80 gralloc1_buffer_descriptor_t descriptor, 83 gralloc1_buffer_descriptor_t descriptor, 91 static gralloc1_error_t GetColorFormat(gralloc1_device_t *device, buffer_handle_t descriptor,
|
D | gr_device_impl.cpp | 216 gralloc1_buffer_descriptor_t descriptor) { in DestroyBufferDescriptor() argument 221 return dev->buf_mgr_->DestroyBufferDescriptor(descriptor); in DestroyBufferDescriptor() 225 gralloc1_buffer_descriptor_t descriptor, in SetConsumerUsage() argument 231 return dev->buf_mgr_->CallBufferDescriptorFunction(descriptor, in SetConsumerUsage() 237 gralloc1_buffer_descriptor_t descriptor, in SetBufferDimensions() argument 243 return dev->buf_mgr_->CallBufferDescriptorFunction(descriptor, in SetBufferDimensions() 250 gralloc1_buffer_descriptor_t descriptor, in SetColorFormat() argument 256 return dev->buf_mgr_->CallBufferDescriptorFunction(descriptor, in SetColorFormat() 262 gralloc1_buffer_descriptor_t descriptor, in SetLayerCount() argument 268 return dev->buf_mgr_->CallBufferDescriptorFunction(descriptor, in SetLayerCount() [all …]
|
D | gr_allocator.cpp | 217 unsigned int Allocator::GetSize(const BufferDescriptor &descriptor, unsigned int alignedw, in GetSize() argument 220 int format = descriptor.GetFormat(); in GetSize() 221 int width = descriptor.GetWidth(); in GetSize() 222 int height = descriptor.GetHeight(); in GetSize() 223 uint32_t layer_count = descriptor.GetLayerCount(); in GetSize() 224 gralloc1_producer_usage_t prod_usage = descriptor.GetProducerUsage(); in GetSize() 225 gralloc1_consumer_usage_t cons_usage = descriptor.GetConsumerUsage(); in GetSize() 315 BufferDescriptor descriptor = BufferDescriptor(width, height, format); in GetBufferSizeAndDimensions() local 316 GetAlignedWidthAndHeight(descriptor, alignedw, alignedh); in GetBufferSizeAndDimensions() 318 *size = GetSize(descriptor, *alignedw, *alignedh); in GetBufferSizeAndDimensions() [all …]
|
D | gr_buf_mgr.h | 53 gralloc1_error_t ValidateBufferSize(private_handle_t const *hnd, BufferDescriptor descriptor); 64 const auto descriptor = map_descriptor->second; in CallBufferDescriptorFunction() local 65 (descriptor.get()->*member)(std::forward<Args>(args)...); in CallBufferDescriptorFunction() 78 int AllocateBuffer(const BufferDescriptor &descriptor, buffer_handle_t *handle, 82 void CreateSharedHandle(buffer_handle_t inbuffer, const BufferDescriptor &descriptor,
|
/hardware/qcom/sdm845/display/gralloc/ |
D | gr_device_impl.h | 51 struct gralloc1_device *device, int32_t /*gralloc1_function_descriptor_t*/ descriptor); 70 gralloc1_buffer_descriptor_t descriptor); 72 gralloc1_buffer_descriptor_t descriptor, 75 gralloc1_buffer_descriptor_t descriptor, 78 gralloc1_buffer_descriptor_t descriptor, int32_t format); 80 gralloc1_buffer_descriptor_t descriptor, 83 gralloc1_buffer_descriptor_t descriptor, 91 static gralloc1_error_t GetColorFormat(gralloc1_device_t *device, buffer_handle_t descriptor, 137 const auto descriptor = map_descriptor->second; in CallBufferDescriptorFunction() local 138 (descriptor.get()->*member)(std::forward<Args>(args)...); in CallBufferDescriptorFunction()
|
/hardware/qcom/display/msm8909w_3100/libgralloc1/ |
D | gr_buf_mgr.cpp | 37 static BufferInfo GetBufferInfo(const BufferDescriptor &descriptor) { in GetBufferInfo() argument 38 return BufferInfo(descriptor.GetWidth(), descriptor.GetHeight(), descriptor.GetFormat(), in GetBufferInfo() 39 descriptor.GetProducerUsage(), descriptor.GetConsumerUsage()); in GetBufferInfo() 61 auto descriptor = std::make_shared<BufferDescriptor>(); in CreateBufferDescriptor() local 62 descriptors_map_.emplace(descriptor->GetId(), descriptor); in CreateBufferDescriptor() 63 *descriptor_id = descriptor->GetId(); in CreateBufferDescriptor() 70 const auto descriptor = descriptors_map_.find(descriptor_id); in DestroyBufferDescriptor() local 71 if (descriptor == descriptors_map_.end()) { in DestroyBufferDescriptor() 74 descriptors_map_.erase(descriptor); in DestroyBufferDescriptor() 107 for (auto &descriptor : descriptors) { in AllocateBuffers() local [all …]
|
D | gr_device_impl.h | 51 struct gralloc1_device *device, int32_t /*gralloc1_function_descriptor_t*/ descriptor); 70 gralloc1_buffer_descriptor_t descriptor); 72 gralloc1_buffer_descriptor_t descriptor, 75 gralloc1_buffer_descriptor_t descriptor, 78 gralloc1_buffer_descriptor_t descriptor, int32_t format); 80 gralloc1_buffer_descriptor_t descriptor, 83 gralloc1_buffer_descriptor_t descriptor, 91 static gralloc1_error_t GetColorFormat(gralloc1_device_t *device, buffer_handle_t descriptor,
|
/hardware/qcom/display/msm8909/gralloc/ |
D | gr_buf_mgr.cpp | 37 static BufferInfo GetBufferInfo(const BufferDescriptor &descriptor) { in GetBufferInfo() argument 38 return BufferInfo(descriptor.GetWidth(), descriptor.GetHeight(), descriptor.GetFormat(), in GetBufferInfo() 39 descriptor.GetProducerUsage(), descriptor.GetConsumerUsage()); in GetBufferInfo() 61 auto descriptor = std::make_shared<BufferDescriptor>(); in CreateBufferDescriptor() local 62 descriptors_map_.emplace(descriptor->GetId(), descriptor); in CreateBufferDescriptor() 63 *descriptor_id = descriptor->GetId(); in CreateBufferDescriptor() 70 const auto descriptor = descriptors_map_.find(descriptor_id); in DestroyBufferDescriptor() local 71 if (descriptor == descriptors_map_.end()) { in DestroyBufferDescriptor() 74 descriptors_map_.erase(descriptor); in DestroyBufferDescriptor() 107 for (auto &descriptor : descriptors) { in AllocateBuffers() local [all …]
|
D | gr_device_impl.h | 51 struct gralloc1_device *device, int32_t /*gralloc1_function_descriptor_t*/ descriptor); 70 gralloc1_buffer_descriptor_t descriptor); 72 gralloc1_buffer_descriptor_t descriptor, 75 gralloc1_buffer_descriptor_t descriptor, 78 gralloc1_buffer_descriptor_t descriptor, int32_t format); 80 gralloc1_buffer_descriptor_t descriptor, 83 gralloc1_buffer_descriptor_t descriptor, 91 static gralloc1_error_t GetColorFormat(gralloc1_device_t *device, buffer_handle_t descriptor,
|
/hardware/interfaces/graphics/allocator/2.0/utils/passthrough/include/allocator-passthrough/2.0/ |
D | Gralloc1Hal.h | 84 Error allocateBuffers(const BufferDescriptor& descriptor, uint32_t count, uint32_t* outStride, in allocateBuffers() argument 87 if (!grallocDecodeBufferDescriptor(descriptor, &descriptorInfo)) { in allocateBuffers() 280 gralloc1_buffer_descriptor_t descriptor; in createDescriptor() local 282 int32_t error = mDispatch.createDescriptor(mDevice, &descriptor); in createDescriptor() 285 error = mDispatch.setDimensions(mDevice, descriptor, info.width, info.height); in createDescriptor() 288 error = mDispatch.setFormat(mDevice, descriptor, static_cast<int32_t>(info.format)); in createDescriptor() 292 error = mDispatch.setLayerCount(mDevice, descriptor, info.layerCount); in createDescriptor() 298 error = mDispatch.setProducerUsage(mDevice, descriptor, toProducerUsage(info.usage)); in createDescriptor() 301 error = mDispatch.setConsumerUsage(mDevice, descriptor, toConsumerUsage(info.usage)); in createDescriptor() 305 *outDescriptor = descriptor; in createDescriptor() [all …]
|
/hardware/qcom/camera/msm8998/QCamera2/HAL3/ |
D | QCamera3StreamMem.h | 107 gralloc1_buffer_descriptor_t descriptor); 110 gralloc1_buffer_descriptor_t descriptor, 115 gralloc1_buffer_descriptor_t descriptor, 119 gralloc1_buffer_descriptor_t descriptor, 123 gralloc1_buffer_descriptor_t descriptor, 127 gralloc1_buffer_descriptor_t descriptor,
|
/hardware/libhardware/include/hardware/ |
D | gralloc1.h | 304 int32_t /*gralloc1_function_descriptor_t*/ descriptor); 386 gralloc1_device_t* device, gralloc1_buffer_descriptor_t descriptor); 413 gralloc1_device_t* device, gralloc1_buffer_descriptor_t descriptor, 438 gralloc1_device_t* device, gralloc1_buffer_descriptor_t descriptor, 457 gralloc1_device_t* device, gralloc1_buffer_descriptor_t descriptor, 481 gralloc1_device_t* device, gralloc1_buffer_descriptor_t descriptor, 501 gralloc1_device_t* device, gralloc1_buffer_descriptor_t descriptor, 605 gralloc1_device_t* device, buffer_handle_t descriptor,
|
/hardware/interfaces/sensors/common/vts/utils/ |
D | GrallocWrapper.cpp | 82 const mapper2::BufferDescriptor& descriptor, uint32_t count, bool import, uint32_t* outStride) { in allocate() argument 85 mAllocator->allocate(descriptor, count, in allocate() 113 mapper2::BufferDescriptor descriptor = createDescriptor(descriptorInfo); in allocate() local 114 auto buffers = allocate(descriptor, 1, import, outStride); in allocate() 124 mapper2::BufferDescriptor descriptor; in createDescriptor() local 129 descriptor = tmpDescriptor; in createDescriptor() 132 return descriptor; in createDescriptor()
|
/hardware/interfaces/graphics/allocator/3.0/ |
D | IAllocator.hal | 31 * Allocates buffers with the properties specified by the descriptor. 34 * descriptor. 36 * @param descriptor Properties of the buffers to allocate. This must be 41 * - `BAD_DESCRIPTOR` if the descriptor is invalid. 43 * - `UNSUPPORTED` if any of the properties encoded in the descriptor 50 allocate(BufferDescriptor descriptor, uint32_t count)
|
/hardware/interfaces/graphics/mapper/2.1/utils/vts/ |
D | MapperVts.cpp | 98 BufferDescriptor descriptor; in createDescriptor() local 102 descriptor = tmpDescriptor; in createDescriptor() 105 return descriptor; in createDescriptor() 110 BufferDescriptor descriptor = createDescriptor(descriptorInfo); in allocate() local 115 auto buffers = V2_0::vts::Gralloc::allocate(descriptor, 1, import, outStride); in allocate()
|