/hardware/libhardware/modules/camera/3_4/metadata/ |
D | control_test.cpp | 81 android::CameraMetadata metadata; in ExpectOptions() local 82 ASSERT_EQ(control_->PopulateStaticFields(&metadata), 0); in ExpectOptions() 84 EXPECT_EQ(metadata.entryCount(), 1u); in ExpectOptions() 85 ExpectMetadataEq(metadata, options_tag_, options); in ExpectOptions() 87 EXPECT_EQ(metadata.entryCount(), 0u); in ExpectOptions() 94 android::CameraMetadata metadata; in ExpectValue() local 95 ASSERT_EQ(control_->PopulateDynamicFields(&metadata), 0); in ExpectValue() 96 EXPECT_EQ(metadata.entryCount(), 1u); in ExpectValue() 97 ExpectMetadataEq(metadata, delegate_tag_, value); in ExpectValue() 182 android::CameraMetadata metadata; in TEST_F() local [all …]
|
D | property_test.cpp | 60 android::CameraMetadata metadata; in TEST_F() local 61 ASSERT_EQ(property.PopulateStaticFields(&metadata), 0); in TEST_F() 65 EXPECT_EQ(metadata.entryCount(), 1u); in TEST_F() 67 ExpectMetadataEq(metadata, int_tag_, data); in TEST_F() 78 android::CameraMetadata metadata; in TEST_F() local 79 ASSERT_EQ(property.PopulateStaticFields(&metadata), 0); in TEST_F() 83 EXPECT_EQ(metadata.entryCount(), 1u); in TEST_F() 85 ExpectMetadataEq(metadata, float_tag_, data); in TEST_F() 94 android::CameraMetadata metadata; in TEST_F() local 95 ASSERT_EQ(property.PopulateStaticFields(&metadata), 0); in TEST_F() [all …]
|
D | state_test.cpp | 68 android::CameraMetadata metadata; in TEST_F() local 69 ASSERT_EQ(state_->PopulateStaticFields(&metadata), 0); in TEST_F() 70 EXPECT_TRUE(metadata.isEmpty()); in TEST_F() 80 android::CameraMetadata metadata; in TEST_F() local 81 ASSERT_EQ(state_->PopulateDynamicFields(&metadata), 0); in TEST_F() 82 EXPECT_EQ(metadata.entryCount(), 1u); in TEST_F() 83 ExpectMetadataEq(metadata, tag_, expected); in TEST_F() 92 android::CameraMetadata metadata; in TEST_F() local 93 ASSERT_EQ(state_->PopulateDynamicFields(&metadata), err); in TEST_F() 99 android::CameraMetadata metadata; in TEST_F() local [all …]
|
D | test_common.h | 33 static void ExpectMetadataEq(const android::CameraMetadata& metadata, in ExpectMetadataEq() argument 37 camera_metadata_ro_entry_t entry = metadata.find(tag); in ExpectMetadataEq() 49 static void ExpectMetadataEq(const android::CameraMetadata& metadata, in ExpectMetadataEq() argument 52 ExpectMetadataEq(metadata, tag, &expected, 1); in ExpectMetadataEq() 57 static void ExpectMetadataEq(const android::CameraMetadata& metadata, in ExpectMetadataEq() argument 60 ExpectMetadataEq(metadata, tag, expected.data(), expected.size()); in ExpectMetadataEq() 65 static void ExpectMetadataEq(const android::CameraMetadata& metadata, in ExpectMetadataEq() argument 68 ExpectMetadataEq(metadata, tag, expected.data(), N); in ExpectMetadataEq() 73 static void ExpectMetadataEq(const android::CameraMetadata& metadata, in ExpectMetadataEq() argument 77 metadata, tag, expected.data(), expected.total_num_elements()); in ExpectMetadataEq() [all …]
|
D | control.h | 44 android::CameraMetadata* metadata) const override; 46 android::CameraMetadata* metadata) const override; 48 int template_type, android::CameraMetadata* metadata) const override; 50 const android::CameraMetadata& metadata) const override; 52 const android::CameraMetadata& metadata) override; 88 int Control<T>::PopulateStaticFields(android::CameraMetadata* metadata) const { in PopulateStaticFields() argument 102 metadata, options_->tag(), options_->MetadataRepresentation()); in PopulateStaticFields() 106 int Control<T>::PopulateDynamicFields(android::CameraMetadata* metadata) const { in PopulateDynamicFields() argument 113 return UpdateMetadata(metadata, delegate_->tag(), value); in PopulateDynamicFields() 118 int template_type, android::CameraMetadata* metadata) const { in PopulateTemplateRequest() argument [all …]
|
D | metadata.cpp | 37 int Metadata::FillStaticMetadata(android::CameraMetadata* metadata) { in FillStaticMetadata() argument 39 if (!metadata) { in FillStaticMetadata() 60 res = metadata->append(additional_metadata); in FillStaticMetadata() 85 metadata, ANDROID_REQUEST_AVAILABLE_REQUEST_KEYS, control_tags); in FillStaticMetadata() 92 metadata, ANDROID_REQUEST_AVAILABLE_RESULT_KEYS, dynamic_tags); in FillStaticMetadata() 99 metadata, ANDROID_REQUEST_AVAILABLE_CHARACTERISTICS_KEYS, static_tags); in FillStaticMetadata() 109 bool Metadata::IsValidRequest(const android::CameraMetadata& metadata) { in IsValidRequest() argument 113 if (metadata.isEmpty()) in IsValidRequest() 118 bool valid_request = component->SupportsRequestValues(metadata); in IsValidRequest() 165 int Metadata::SetRequestSettings(const android::CameraMetadata& metadata) { in SetRequestSettings() argument [all …]
|
D | metadata_common.h | 61 static int UpdateMetadata(android::CameraMetadata* metadata, in UpdateMetadata() argument 65 int res = metadata->update(tag, data, count); in UpdateMetadata() 75 static int UpdateMetadata(android::CameraMetadata* metadata, in UpdateMetadata() argument 78 return UpdateMetadata(metadata, tag, &val, 1); in UpdateMetadata() 83 static int UpdateMetadata(android::CameraMetadata* metadata, in UpdateMetadata() argument 86 return UpdateMetadata(metadata, tag, val.data(), val.size()); in UpdateMetadata() 91 static int UpdateMetadata(android::CameraMetadata* metadata, in UpdateMetadata() argument 94 return UpdateMetadata(metadata, tag, val.data(), N); in UpdateMetadata() 99 static int UpdateMetadata(android::CameraMetadata* metadata, in UpdateMetadata() argument 102 return UpdateMetadata(metadata, tag, val.data(), val.total_num_elements()); in UpdateMetadata() [all …]
|
D | partial_metadata_interface.h | 39 virtual int PopulateStaticFields(android::CameraMetadata* metadata) const = 0; 43 android::CameraMetadata* metadata) const = 0; 47 int template_type, android::CameraMetadata* metadata) const = 0; 53 const android::CameraMetadata& metadata) const = 0; 58 virtual int SetRequestValues(const android::CameraMetadata& metadata) = 0;
|
D | state.h | 39 android::CameraMetadata* metadata) const override; 41 android::CameraMetadata* metadata) const override; 43 int template_type, android::CameraMetadata* metadata) const override; 45 const android::CameraMetadata& metadata) const override; 47 const android::CameraMetadata& metadata) override; 63 int State<T>::PopulateDynamicFields(android::CameraMetadata* metadata) const { in PopulateDynamicFields() argument 71 return UpdateMetadata(metadata, tag_, value); in PopulateDynamicFields()
|
D | metadata.h | 31 int FillStaticMetadata(android::CameraMetadata* metadata); 32 bool IsValidRequest(const android::CameraMetadata& metadata); 35 int SetRequestSettings(const android::CameraMetadata& metadata); 36 int FillResultMetadata(android::CameraMetadata* metadata);
|
D | partial_metadata_factory_test.cpp | 58 android::CameraMetadata metadata; in ExpectControlOptions() local 59 ASSERT_EQ(control_->PopulateStaticFields(&metadata), 0); in ExpectControlOptions() 60 EXPECT_EQ(metadata.entryCount(), 1u); in ExpectControlOptions() 61 ExpectMetadataEq(metadata, options_tag_, options); in ExpectControlOptions() 65 android::CameraMetadata metadata; in ExpectControlValue() local 66 ASSERT_EQ(control_->PopulateDynamicFields(&metadata), 0); in ExpectControlValue() 67 EXPECT_EQ(metadata.entryCount(), 1u); in ExpectControlValue() 68 ExpectMetadataEq(metadata, delegate_tag_, value); in ExpectControlValue() 93 android::CameraMetadata metadata; in TEST_F() local 94 ASSERT_EQ(state->PopulateDynamicFields(&metadata), 0); in TEST_F() [all …]
|
/hardware/libhardware/modules/camera/3_4/ |
D | Android.mk | 53 metadata/boottime_state_delegate.cpp \ 54 metadata/enum_converter.cpp \ 55 metadata/metadata.cpp \ 56 metadata/metadata_reader.cpp \ 67 metadata/control_test.cpp \ 68 metadata/default_option_delegate_test.cpp \ 69 metadata/enum_converter_test.cpp \ 70 metadata/ignored_control_delegate_test.cpp \ 71 metadata/map_converter_test.cpp \ 72 metadata/menu_control_options_test.cpp \ [all …]
|
D | format_metadata_factory_test.cpp | 39 virtual void ExpectMetadataTagCount(const android::CameraMetadata& metadata, in ExpectMetadataTagCount() argument 42 camera_metadata_ro_entry_t entry = metadata.find(tag); in ExpectMetadataTagCount() 103 android::CameraMetadata metadata; in TEST_F() local 104 component->PopulateStaticFields(&metadata); in TEST_F() 105 ASSERT_EQ(metadata.entryCount(), 1u); in TEST_F() 113 ExpectMetadataTagCount(metadata, tag, (formats.size() + 1) * 3 * 4); in TEST_F() 117 ExpectMetadataEq(metadata, tag, 200000000); in TEST_F() 121 ExpectMetadataTagCount(metadata, tag, 4); in TEST_F() 169 android::CameraMetadata metadata; in TEST_F() local 170 component->PopulateStaticFields(&metadata); in TEST_F() [all …]
|
/hardware/qcom/display/msm8226/liboverlay/ |
D | overlayWriteback.cpp | 191 struct msmfb_metadata metadata; in setOutputFormat() local 192 memset(&metadata, 0 , sizeof(metadata)); in setOutputFormat() 193 metadata.op = metadata_op_wb_format; in setOutputFormat() 194 metadata.data.mixer_cfg.writeback_format = mdpFormat; in setOutputFormat() 195 if (ioctl(mFd.getFD(), MSMFB_METADATA_SET, &metadata) < 0) { in setOutputFormat() 206 struct msmfb_metadata metadata; in getOutputFormat() local 207 memset(&metadata, 0 , sizeof(metadata)); in getOutputFormat() 208 metadata.op = metadata_op_wb_format; in getOutputFormat() 209 if (ioctl(mFd.getFD(), MSMFB_METADATA_GET, &metadata) < 0) { in getOutputFormat() 213 mOpFmt = metadata.data.mixer_cfg.writeback_format; in getOutputFormat() [all …]
|
/hardware/qcom/display/msm8994/liboverlay/ |
D | overlayWriteback.cpp | 195 struct msmfb_metadata metadata; in setOutputFormat() local 196 memset(&metadata, 0 , sizeof(metadata)); in setOutputFormat() 197 metadata.op = metadata_op_wb_format; in setOutputFormat() 198 metadata.data.mixer_cfg.writeback_format = mdpFormat; in setOutputFormat() 199 if (ioctl(mFd.getFD(), MSMFB_METADATA_SET, &metadata) < 0) { in setOutputFormat() 210 struct msmfb_metadata metadata; in getOutputFormat() local 211 memset(&metadata, 0 , sizeof(metadata)); in getOutputFormat() 212 metadata.op = metadata_op_wb_format; in getOutputFormat() 213 if (ioctl(mFd.getFD(), MSMFB_METADATA_GET, &metadata) < 0) { in getOutputFormat() 217 mOpFmt = metadata.data.mixer_cfg.writeback_format; in getOutputFormat() [all …]
|
/hardware/qcom/display/msm8084/liboverlay/ |
D | overlayWriteback.cpp | 191 struct msmfb_metadata metadata; in setOutputFormat() local 192 memset(&metadata, 0 , sizeof(metadata)); in setOutputFormat() 193 metadata.op = metadata_op_wb_format; in setOutputFormat() 194 metadata.data.mixer_cfg.writeback_format = mdpFormat; in setOutputFormat() 195 if (ioctl(mFd.getFD(), MSMFB_METADATA_SET, &metadata) < 0) { in setOutputFormat() 206 struct msmfb_metadata metadata; in getOutputFormat() local 207 memset(&metadata, 0 , sizeof(metadata)); in getOutputFormat() 208 metadata.op = metadata_op_wb_format; in getOutputFormat() 209 if (ioctl(mFd.getFD(), MSMFB_METADATA_GET, &metadata) < 0) { in getOutputFormat() 213 mOpFmt = metadata.data.mixer_cfg.writeback_format; in getOutputFormat() [all …]
|
/hardware/qcom/display/msm8960/libqdutils/ |
D | mdp_version.cpp | 75 struct msmfb_metadata metadata; in MDPVersion() local 76 memset(&metadata, 0 , sizeof(metadata)); in MDPVersion() 77 metadata.op = metadata_op_get_caps; in MDPVersion() 78 if (ioctl(fb_fd, MSMFB_METADATA_GET, &metadata) == -1) { in MDPVersion() 82 mMdpRev = metadata.data.caps.mdp_rev; in MDPVersion() 83 mRGBPipes = metadata.data.caps.rgb_pipes; in MDPVersion() 84 mVGPipes = metadata.data.caps.vig_pipes; in MDPVersion() 85 mDMAPipes = metadata.data.caps.dma_pipes; in MDPVersion()
|
/hardware/libhardware/modules/radio/ |
D | radio_hw.c | 179 static int add_bitmap_metadata(radio_metadata_t **metadata, radio_metadata_key_t key, in add_bitmap_metadata() argument 202 ret = radio_metadata_add_raw(metadata, key, (const unsigned char *)data, size); in add_bitmap_metadata() 212 radio_metadata_t **metadata, bool program) in prepare_metadata() argument 218 if (metadata == NULL) in prepare_metadata() 221 if (*metadata != NULL) in prepare_metadata() 222 radio_metadata_deallocate(*metadata); in prepare_metadata() 224 *metadata = NULL; in prepare_metadata() 226 ret = radio_metadata_allocate(metadata, tuner->program.channel, 0); in prepare_metadata() 232 ret = radio_metadata_add_int(metadata, RADIO_METADATA_KEY_RBDS_PTY, 5); in prepare_metadata() 235 ret = radio_metadata_add_text(metadata, RADIO_METADATA_KEY_RDS_PS, "RockBand"); in prepare_metadata() [all …]
|
/hardware/libhardware/modules/camera/3_4/arc/ |
D | image_processor.cpp | 58 static bool ConvertToJpeg(const CameraMetadata& metadata, 60 static bool SetExifTags(const CameraMetadata& metadata, ExifUtils* utils); 115 int ImageProcessor::ConvertFormat(const CameraMetadata& metadata, in ConvertFormat() argument 220 bool res = ConvertToJpeg(metadata, in_frame, out_frame); in ConvertFormat() 351 static bool ConvertToJpeg(const CameraMetadata& metadata, in ConvertToJpeg() argument 357 if (metadata.exists(ANDROID_JPEG_QUALITY)) { in ConvertToJpeg() 358 entry = metadata.find(ANDROID_JPEG_QUALITY); in ConvertToJpeg() 365 if (metadata.exists(ANDROID_JPEG_THUMBNAIL_QUALITY)) { in ConvertToJpeg() 366 entry = metadata.find(ANDROID_JPEG_THUMBNAIL_QUALITY); in ConvertToJpeg() 377 if (!SetExifTags(metadata, &utils)) { in ConvertToJpeg() [all …]
|
/hardware/interfaces/graphics/composer/2.3/utils/command-buffer/include/composer-command-buffer/2.3/ |
D | ComposerCommandBuffer.h | 51 for (const auto& metadata : metadataVec) { in setLayerPerFrameMetadata() local 52 writeSigned(static_cast<int32_t>(metadata.key)); in setLayerPerFrameMetadata() 53 writeFloat(metadata.value); in setLayerPerFrameMetadata() 81 const hidl_vec<IComposerClient::PerFrameMetadataBlob>& metadata) { in setLayerPerFrameMetadataBlobs() argument 85 if (metadata.size() > std::numeric_limits<uint32_t>::max()) { in setLayerPerFrameMetadataBlobs() 93 for (auto metadataBlob : metadata) { in setLayerPerFrameMetadataBlobs() 113 write(static_cast<uint32_t>(metadata.size())); in setLayerPerFrameMetadataBlobs() 114 for (auto metadataBlob : metadata) { in setLayerPerFrameMetadataBlobs()
|
/hardware/qcom/camera/msm8998/QCamera2/HAL/ |
D | QCameraMem.h | 115 bool metadata) const = 0; 116 virtual int getMatchBufIndex(const void *opaque, bool metadata) const = 0; 198 virtual camera_memory_t *getMemory(uint32_t index, bool metadata) const; 199 virtual int getMatchBufIndex(const void *opaque, bool metadata) const; 231 virtual camera_memory_t *getMemory(uint32_t index, bool metadata) const; 232 virtual int getMatchBufIndex(const void *opaque, bool metadata) const; 252 virtual camera_memory_t *getMemory(uint32_t index, bool metadata) const; 253 virtual int getMatchBufIndex(const void *opaque, bool metadata) const; 260 int closeNativeHandle(const void *data, bool metadata = true); 261 native_handle_t *getNativeHandle(uint32_t index, bool metadata = true); [all …]
|
/hardware/qcom/display/msm8909/libgralloc/ |
D | mapper.cpp | 413 MetaData_t *metadata = (MetaData_t *)hnd->base_metadata; in gralloc_perform() local 414 if (!metadata) { in gralloc_perform() 417 } else if (metadata->operation & COLOR_METADATA) { in gralloc_perform() 418 ColorMetaData *colorMetadata = &metadata->color; in gralloc_perform() 437 } else if(metadata->operation & UPDATE_COLOR_SPACE) { in gralloc_perform() 438 *color_space = metadata->colorSpace; in gralloc_perform() 459 MetaData_t *metadata = (MetaData_t *)hnd->base_metadata; in gralloc_perform() local 460 if(metadata && metadata->operation & MAP_SECURE_BUFFER) { in gralloc_perform() 461 *map_secure_buffer = metadata->mapSecureBuffer; in gralloc_perform() 476 MetaData_t *metadata = (MetaData_t *)hnd->base_metadata; in gralloc_perform() local [all …]
|
/hardware/qcom/display/msm8909w_3100/libgralloc/ |
D | mapper.cpp | 413 MetaData_t *metadata = (MetaData_t *)hnd->base_metadata; in gralloc_perform() local 414 if (!metadata) { in gralloc_perform() 417 } else if (metadata->operation & COLOR_METADATA) { in gralloc_perform() 418 ColorMetaData *colorMetadata = &metadata->color; in gralloc_perform() 437 } else if(metadata->operation & UPDATE_COLOR_SPACE) { in gralloc_perform() 438 *color_space = metadata->colorSpace; in gralloc_perform() 459 MetaData_t *metadata = (MetaData_t *)hnd->base_metadata; in gralloc_perform() local 460 if(metadata && metadata->operation & MAP_SECURE_BUFFER) { in gralloc_perform() 461 *map_secure_buffer = metadata->mapSecureBuffer; in gralloc_perform() 476 MetaData_t *metadata = (MetaData_t *)hnd->base_metadata; in gralloc_perform() local [all …]
|
/hardware/interfaces/camera/metadata/3.4/ |
D | Android.bp | 4 name: "android.hardware.camera.metadata@3.4", 10 "android.hardware.camera.metadata@3.2", 11 "android.hardware.camera.metadata@3.3",
|
/hardware/interfaces/camera/metadata/3.3/ |
D | types.hal | 18 * Autogenerated from camera metadata definitions in 23 package android.hardware.camera.metadata@3.3; 25 import android.hardware.camera.metadata@3.2; 28 * Top level hierarchy definitions for camera metadata. *_INFO sections are for 29 * the static metadata that can be retrived without opening the camera device. 33 android.hardware.camera.metadata@3.2::CameraMetadataSection:ANDROID_SECTION_COUNT, 47 enum CameraMetadataSectionStart : android.hardware.camera.metadata@3.2::CameraMetadataSectionStart { 57 * Main enumeration for defining camera metadata tags added in this revision 68 …ANDROID_CONTROL_AF_SCENE_CHANGE = android.hardware.camera.metadata@3.2::CameraMetadataTag:ANDROID_… 78 …ANDROID_LENS_POSE_REFERENCE = android.hardware.camera.metadata@3.2::CameraMetadataTag:ANDROID_LENS… [all …]
|