Home
last modified time | relevance | path

Searched full:metadata (Results 1 – 25 of 704) sorted by relevance

12345678910>>...29

/system/media/camera/src/
Dcamera_metadata_asserts.cpp23 #include <aidl/android/hardware/camera/metadata/CameraMetadataSection.h>
24 #include <aidl/android/hardware/camera/metadata/CameraMetadataSectionStart.h>
25 #include <aidl/android/hardware/camera/metadata/CameraMetadataTag.h>
26 #include <aidl/android/hardware/camera/metadata/ColorCorrectionMode.h>
27 #include <aidl/android/hardware/camera/metadata/ColorCorrectionAberrationMode.h>
28 #include <aidl/android/hardware/camera/metadata/ControlAeAntibandingMode.h>
29 #include <aidl/android/hardware/camera/metadata/ControlAeLock.h>
30 #include <aidl/android/hardware/camera/metadata/ControlAeMode.h>
31 #include <aidl/android/hardware/camera/metadata/ControlAePrecaptureTrigger.h>
32 #include <aidl/android/hardware/camera/metadata/ControlAfMode.h>
[all …]
Dcamera_metadata.c39 * A single metadata entry, storing an array of values of a given type. If the
60 * A packet of metadata. This is a list of entries, each of which may point to
90 * In short, the entries and data are contiguous in memory after the metadata
109 * A datum of metadata. This corresponds to camera_metadata_entry_t::data
168 * The preferred alignment of a packet of camera metadata. In general,
169 * this is the lowest common multiple of the constituents of a metadata
210 const camera_metadata_t *metadata) { in get_entries() argument
212 ((uint8_t*)metadata + metadata->entries_start); in get_entries()
215 static uint8_t *get_data(const camera_metadata_t *metadata) { in get_data() argument
216 return (uint8_t*)metadata + metadata->data_start; in get_data()
[all …]
/system/media/audio_utils/
DMetadata.cpp20 #include <audio_utils/Metadata.h>
22 using namespace android::audio_utils::metadata;
29 int audio_metadata_put_int32(audio_metadata_t *metadata, const char *key, int32_t value) { in audio_metadata_put_int32() argument
30 if (metadata == nullptr || key == nullptr) { in audio_metadata_put_int32()
33 reinterpret_cast<Data *>(metadata)->emplace(key, value); in audio_metadata_put_int32()
37 int audio_metadata_put_int64(audio_metadata_t *metadata, const char *key, int64_t value) { in audio_metadata_put_int64() argument
38 if (metadata == nullptr || key == nullptr) { in audio_metadata_put_int64()
41 reinterpret_cast<Data *>(metadata)->emplace(key, value); in audio_metadata_put_int64()
45 int audio_metadata_put_float(audio_metadata_t *metadata, const char *key, float value) { in audio_metadata_put_float() argument
46 if (metadata == nullptr || key == nullptr) { in audio_metadata_put_float()
[all …]
/system/media/radio/src/
Dradio_metadata.c61 radio_metadata_buffer_t *metadata = *metadata_ptr; in check_size() local
62 uint32_t index_offset = metadata->size_int - metadata->count - 1; in check_size()
63 uint32_t data_offset = *((uint32_t *)metadata + index_offset); in check_size()
67 LOG_ALWAYS_FATAL_IF(metadata->size_int < (metadata->count + 1), in check_size()
68 "%s: invalid size %u", __func__, metadata->size_int); in check_size()
73 req_size_int = data_offset + metadata->count + 1 + 1 + size_int; in check_size()
76 if (req_size_int <= metadata->size_int) { in check_size()
80 if (req_size_int > RADIO_METADATA_MAX_SIZE || metadata->size_int >= RADIO_METADATA_MAX_SIZE) { in check_size()
84 new_size_int = metadata->size_int; in check_size()
88 ALOGV("%s growing from %u to %u", __func__, metadata->size_int, new_size_int); in check_size()
[all …]
/system/core/libstats/pull_rust/
Dstats_pull.rs29 pub struct Metadata { struct
30 metadata: *mut AStatsManager_PullAtomMetadata, field
33 impl Metadata { impl
37 let metadata = unsafe { AStatsManager_PullAtomMetadata_obtain() }; in new() localVariable
38 if metadata.is_null() { in new()
39 panic!("Cannot obtain pull atom metadata."); in new()
41 Metadata { metadata } in new()
47 // Safety: Metadata::new ensures that self.metadata is a valid object. in set_cooldown_millis()
48 unsafe { AStatsManager_PullAtomMetadata_setCoolDownMillis(self.metadata, cooldown_millis) } in set_cooldown_millis()
53 // Safety: Metadata::new ensures that self.metadata is a valid object. in get_cooldown_millis()
[all …]
/system/core/fs_mgr/liblp/
Dwriter.cpp51 LpMetadata metadata = input; in SerializeMetadata() local
52 LpMetadataHeader& header = metadata.header; in SerializeMetadata()
55 std::string partitions(reinterpret_cast<const char*>(metadata.partitions.data()), in SerializeMetadata()
56 metadata.partitions.size() * sizeof(LpMetadataPartition)); in SerializeMetadata()
57 std::string extents(reinterpret_cast<const char*>(metadata.extents.data()), in SerializeMetadata()
58 metadata.extents.size() * sizeof(LpMetadataExtent)); in SerializeMetadata()
59 std::string groups(reinterpret_cast<const char*>(metadata.groups.data()), in SerializeMetadata()
60 metadata.groups.size() * sizeof(LpMetadataPartitionGroup)); in SerializeMetadata()
61 std::string block_devices(reinterpret_cast<const char*>(metadata.block_devices.data()), in SerializeMetadata()
62 metadata.block_devices.size() * sizeof(LpMetadataBlockDevice)); in SerializeMetadata()
[all …]
Dsuper_layout_builder_test.cpp36 auto metadata = builder->Export(); in TEST() local
37 ASSERT_NE(metadata, nullptr); in TEST()
40 ASSERT_TRUE(tool.Open(*metadata.get())); in TEST()
43 // Get a copy of the metadata we'd expect if flashing. in TEST()
45 metadata = builder->Export(); in TEST()
46 ASSERT_NE(metadata, nullptr); in TEST()
48 auto geometry_blob = std::make_shared<std::string>(SerializeGeometry(metadata->geometry)); in TEST()
49 auto metadata_blob = std::make_shared<std::string>(SerializeMetadata(*metadata.get())); in TEST()
75 auto metadata = builder->Export(); in TEST() local
76 ASSERT_NE(metadata, nullptr); in TEST()
[all …]
Dsuper_layout_builder.cpp33 auto metadata = ReadFromImageFile(fd.get()); in Open() local
34 if (!metadata) { in Open()
37 return Open(*metadata.get()); in Open()
41 auto metadata = ReadFromImageBlob(data, size); in Open() local
42 if (!metadata) { in Open()
45 return Open(*metadata.get()); in Open()
48 bool SuperLayoutBuilder::Open(const LpMetadata& metadata) { in Open() argument
49 for (const auto& partition : metadata.partitions) { in Open()
59 if (!metadata.extents.empty()) { in Open()
64 if (metadata.block_devices.size() != 1) { in Open()
[all …]
Dutility.cpp103 const LpMetadataBlockDevice* GetMetadataSuperBlockDevice(const LpMetadata& metadata) { in GetMetadataSuperBlockDevice() argument
104 if (metadata.block_devices.empty()) { in GetMetadataSuperBlockDevice()
107 return &metadata.block_devices[0]; in GetMetadataSuperBlockDevice()
129 uint64_t GetTotalSuperPartitionSize(const LpMetadata& metadata) { in GetTotalSuperPartitionSize() argument
131 for (const auto& block_device : metadata.block_devices) { in GetTotalSuperPartitionSize()
137 std::vector<std::string> GetBlockDevicePartitionNames(const LpMetadata& metadata) { in GetBlockDevicePartitionNames() argument
139 for (const auto& block_device : metadata.block_devices) { in GetBlockDevicePartitionNames()
145 const LpMetadataPartition* FindPartition(const LpMetadata& metadata, const std::string& name) { in FindPartition() argument
146 for (const auto& partition : metadata.partitions) { in FindPartition()
154 uint64_t GetPartitionSize(const LpMetadata& metadata, const LpMetadataPartition& partition) { in GetPartitionSize() argument
[all …]
Dreader.cpp81 LERROR << "Logical partition metadata has invalid geometry magic signature."; in ParseGeometry()
88 LERROR << "Logical partition metadata has unrecognized fields."; in ParseGeometry()
97 LERROR << "Logical partition metadata has invalid geometry checksum."; in ParseGeometry()
104 LERROR << "Logical partition metadata has invalid struct size."; in ParseGeometry()
108 LERROR << "Logical partition metadata has invalid slot count."; in ParseGeometry()
112 LERROR << "Metadata max size is not sector-aligned."; in ParseGeometry()
167 static bool ReadMetadataHeader(Reader* reader, LpMetadata* metadata) { in ReadMetadataHeader() argument
169 LpMetadataHeader& header = metadata->header; in ReadMetadataHeader()
179 LERROR << "Logical partition metadata has invalid magic value."; in ReadMetadataHeader()
184 LERROR << "Logical partition metadata has incompatible version."; in ReadMetadataHeader()
[all …]
Dio_test.cpp46 // Our tests assume a 128KiB disk with two 512 byte metadata slots.
53 // simulate read/writing logical partition metadata as if we had a block device
140 // Verify that we can't read unwritten metadata. in TEST_F()
144 // Flashing metadata should not work if the metadata was created for a larger
212 // Test that we can update metadata slots without disturbing others.
265 unique_ptr<LpMetadata> metadata = ReadMetadata(opener, "super", 0); in TEST_F() local
266 ASSERT_NE(metadata, nullptr); in TEST_F()
268 ASSERT_TRUE(UpdatePartitionTable(opener, "super", *metadata.get(), i)); in TEST_F()
275 // Test that updating a metadata slot does not allow it to be computed based
305 // Test that changing one bit of metadata is enough to break the checksum.
[all …]
/system/core/fs_mgr/liblp/include/liblp/
Dliblp.h35 // Helper structure for easily interpreting deserialized metadata, or
36 // re-serializing metadata.
51 const LpMetadata& metadata);
53 // Update the partition table for a given metadata slot number. False is
57 // - Corrupt or missing metadata geometry on disk.
60 const LpMetadata& metadata, uint32_t slot_number);
62 // Read logical partition metadata from its predetermined location on a block
68 bool FlashPartitionTable(const std::string& super_partition, const LpMetadata& metadata);
69 bool UpdatePartitionTable(const std::string& super_partition, const LpMetadata& metadata,
74 // only metadata. Unlike a flashed block device, there are no reserved bytes or
[all …]
/system/chre/util/include/chre/util/system/
Dcallback_allocator_impl.h34 template <typename Metadata>
35 CallbackAllocator<Metadata>::CallbackAllocator( in CallbackAllocator()
43 template <typename Metadata>
44 void *CallbackAllocator<Metadata>::DoAllocate(Layout /* layout */) { in DoAllocate()
51 template <typename Metadata>
52 void CallbackAllocator<Metadata>::DoDeallocate(void *ptr) { in DoDeallocate()
71 std::move(callbackRecord->metadata)); in DoDeallocate()
75 template <typename Metadata>
77 CallbackAllocator<Metadata>::MakeUniqueArrayWithCallback(std::byte *ptr, in MakeUniqueArrayWithCallback()
79 Metadata &&metadata) { in MakeUniqueArrayWithCallback() argument
[all …]
Dcallback_allocator.h36 //! @param Metadata The metadata type for the callback function
37 template <typename Metadata>
44 Metadata &&metadata)>;
49 Metadata metadata; member
67 std::byte *ptr, size_t size, Metadata &&metadata);
/system/media/audio_utils/include/audio_utils/
DMetadata.h36 * Audio Metadata: a C++ Object based map.
51 * Metadata code supports advanced automatic parceling.
92 namespace android::audio_utils::metadata {
233 // A subset of the metadata types may be directly copied as bytes
240 // A subset of metadata types which are a struct-based.
293 * metadata::Datum as an open system.
336 * Audio Metadata keys are typed. Similar to variant's template typenames,
337 * which directly indicate possible types in the union, the Audio Metadata
509 * Metadata is passed as a Payload<Data>.
792 if (!android::audio_utils::metadata::copyFromByteString( in copyFromByteString()
[all …]
/system/core/libstats/pull_lazy/
Dlibstatspull_lazy.cpp140 void AStatsManager_PullAtomMetadata_release(AStatsManager_PullAtomMetadata* metadata) { in AStatsManager_PullAtomMetadata_release() argument
141 INVOKE_METHOD(AStatsManager_PullAtomMetadata_release, metadata); in AStatsManager_PullAtomMetadata_release()
144 void AStatsManager_PullAtomMetadata_setCoolDownMillis(AStatsManager_PullAtomMetadata* metadata, in AStatsManager_PullAtomMetadata_setCoolDownMillis() argument
146 INVOKE_METHOD(AStatsManager_PullAtomMetadata_setCoolDownMillis, metadata, cool_down_millis); in AStatsManager_PullAtomMetadata_setCoolDownMillis()
149 int64_t AStatsManager_PullAtomMetadata_getCoolDownMillis(AStatsManager_PullAtomMetadata* metadata) { in AStatsManager_PullAtomMetadata_getCoolDownMillis() argument
150 INVOKE_METHOD(AStatsManager_PullAtomMetadata_getCoolDownMillis, metadata); in AStatsManager_PullAtomMetadata_getCoolDownMillis()
153 void AStatsManager_PullAtomMetadata_setTimeoutMillis(AStatsManager_PullAtomMetadata* metadata, in AStatsManager_PullAtomMetadata_setTimeoutMillis() argument
155 INVOKE_METHOD(AStatsManager_PullAtomMetadata_setTimeoutMillis, metadata, timeout_millis); in AStatsManager_PullAtomMetadata_setTimeoutMillis()
158 int64_t AStatsManager_PullAtomMetadata_getTimeoutMillis(AStatsManager_PullAtomMetadata* metadata) { in AStatsManager_PullAtomMetadata_getTimeoutMillis() argument
159 INVOKE_METHOD(AStatsManager_PullAtomMetadata_getTimeoutMillis, metadata); in AStatsManager_PullAtomMetadata_getTimeoutMillis()
[all …]
/system/media/audio_utils/tests/
Dmetadata_tests_c.c17 // Separate test for Metadata C API called from C, as gtest doesn't support that
20 #include <audio_utils/Metadata.h>
27 audio_metadata_t *metadata = audio_metadata_create(); in main() local
28 audio_metadata_put(metadata, "i32", (int32_t)1); in main()
29 audio_metadata_put(metadata, "i64", (int64_t)2); in main()
30 audio_metadata_put(metadata, "float", (float)3.1f); in main()
31 audio_metadata_put(metadata, "double", (double)4.11); in main()
34 audio_metadata_put(metadata, "data", data); in main()
41 audio_metadata_put(metadata, "complex", prime); in main()
48 audio_metadata_destroy(metadata); in main()
/system/media/radio/include/system/
Dradio_metadata.h28 /* maximum length for text metadata including NUL terminator */
83 * - metadata: the address where the allocate meta data buffer should be returned.
92 int radio_metadata_allocate(radio_metadata_t **metadata,
100 * - metadata: the meta data buffer to be de-allocated.
103 void radio_metadata_deallocate(radio_metadata_t *metadata);
109 * - metadata: the address of the meta data buffer. I/O. the meta data can be modified if the
120 int radio_metadata_add_int(radio_metadata_t **metadata,
128 * - metadata: the address of the meta data buffer. I/O. the meta data can be modified if the
140 int radio_metadata_add_text(radio_metadata_t **metadata,
148 * - metadata: the address of the meta data buffer. I/O. the meta data can be modified if the
[all …]
/system/media/camera/include/system/
Dcamera_metadata.h74 * A reference to a metadata entry in a buffer.
96 * A read-only reference to a metadata entry in a buffer. Identical to
127 * Main definitions for the metadata entry and array structures
132 * A packet of metadata. This is a list of metadata entries, each of which has
153 * Functions for manipulating camera metadata
171 * Get the required alignment of a packet of camera metadata, which is the
191 * Place a camera metadata structure into an existing buffer. Returns NULL if
196 * metadata header placed at the start of the buffer. It is the caller's
210 void free_camera_metadata(camera_metadata_t *metadata);
213 * Calculate the buffer size needed for a metadata structure of entry_count
[all …]
/system/core/fs_mgr/libfiemap/
Dmetadata.cpp17 #include "metadata.h"
54 auto metadata = ReadFromImageFile(metadata_file); in OpenMetadata() local
55 if (!metadata) { in OpenMetadata()
56 LOG(ERROR) << "Could not read metadata file " << metadata_file; in OpenMetadata()
59 return metadata; in OpenMetadata()
87 auto metadata = OpenMetadata(metadata_dir); in OpenOrCreateMetadata() local
88 if (!metadata) { in OpenOrCreateMetadata()
91 builder = MetadataBuilder::New(*metadata.get(), &opener); in OpenOrCreateMetadata()
95 LOG(ERROR) << "Could not create metadata builder"; in OpenOrCreateMetadata()
104 LOG(ERROR) << "Unable to export new metadata"; in SaveMetadata()
[all …]
/system/gsid/
Dgsid.rc9 mkdir /metadata/gsi 0771 root system
10 mkdir /metadata/gsi/dsu 0771 root system
11 mkdir /metadata/gsi/ota 0771 root system
12 mkdir /metadata/gsi/remount 0771 root system
13 chmod 0664 /metadata/gsi/dsu/active
14 chmod 0664 /metadata/gsi/dsu/booted
15 chmod 0664 /metadata/gsi/dsu/lp_names
/system/core/libstats/pull_lazy/tests/
Dlibstatspull_lazy_test.cpp37 AStatsManager_PullAtomMetadata* metadata = NULL; in TEST_F() local
39 EXPECT_DEATH(AStatsManager_PullAtomMetadata_release(metadata), kLoadFailed); in TEST_F()
40 EXPECT_DEATH(AStatsManager_PullAtomMetadata_setCoolDownMillis(metadata, 0), kLoadFailed); in TEST_F()
41 EXPECT_DEATH(AStatsManager_PullAtomMetadata_getCoolDownMillis(metadata), kLoadFailed); in TEST_F()
42 EXPECT_DEATH(AStatsManager_PullAtomMetadata_setTimeoutMillis(metadata, 0), kLoadFailed); in TEST_F()
43 EXPECT_DEATH(AStatsManager_PullAtomMetadata_getTimeoutMillis(metadata), kLoadFailed); in TEST_F()
44 EXPECT_DEATH(AStatsManager_PullAtomMetadata_setAdditiveFields(metadata, NULL, 0), kLoadFailed); in TEST_F()
45 EXPECT_DEATH(AStatsManager_PullAtomMetadata_getNumAdditiveFields(metadata), kLoadFailed); in TEST_F()
46 EXPECT_DEATH(AStatsManager_PullAtomMetadata_getAdditiveFields(metadata, NULL), kLoadFailed); in TEST_F()
/system/core/fs_mgr/
Dfs_mgr_dm_linear.cpp58 // If the super device is the source of this block device's metadata, in GetPhysicalPartitionDevicePath()
74 if (GetMetadataSuperBlockDevice(*params.metadata) == &block_device) { in GetPhysicalPartitionDevicePath()
97 const auto& extent = params.metadata->extents[params.partition->first_extent_index + i]; in CreateDmTableInternal()
104 const auto& block_device = params.metadata->block_devices[extent.target_source]; in CreateDmTableInternal()
116 LOG(ERROR) << "Unknown target type in metadata: " << extent.target_type; in CreateDmTableInternal()
141 auto metadata = ReadMetadata(block_device.c_str(), slot); in CreateLogicalPartitions() local
142 if (!metadata) { in CreateLogicalPartitions()
146 return CreateLogicalPartitions(*metadata.get(), block_device); in CreateLogicalPartitions()
154 bool CreateLogicalPartitions(const LpMetadata& metadata, const std::string& super_device) { in CreateLogicalPartitions() argument
157 .metadata = &metadata, in CreateLogicalPartitions()
[all …]
/system/media/camera/docs/
DHidlMetadata.mako38 * Autogenerated from camera metadata definitions in
43 package android.hardware.camera.metadata@${hal_major_version()}.${hal_minor_version()};
47 import android.hardware.camera.metadata@${hal_major_version()}.${i};
53 % for idx, section in enumerate(find_all_sections_added_in_hal(metadata, hal_major_version(), hal_m…
57 * Top level hierarchy definitions for camera metadata. *_INFO sections are for
58 * the static metadata that can be retrived without opening the camera device.
64 …android.hardware.camera.metadata@${hal_major_version()}.${hal_minor_version()-1}::CameraMetadataSe…
82 …l_major_version()) == hal_minor_version() else 'android.hardware.camera.metadata@%d.%d::CameraMeta…
83 % for i in find_all_sections_added_in_hal(metadata, hal_major_version(), hal_minor_version()):
96 // No new metadata sections added in this revision
[all …]
/system/update_engine/payload_consumer/
Dpayload_metadata.h38 // This class parses payload metadata and validate its signature.
52 // metadata. Returns kMetadataParseError if the metadata can't be parsed given
68 // Given the |payload|, verifies that the signed hash of its metadata matches
69 // |metadata_signature| (if present) or the metadata signature in payload
72 // metadata is parsed so that an on-path attack on the SSL connection
91 // Returns the size of the payload metadata, which includes the payload header
95 // Returns the size of the payload metadata signature. If the header was not
114 // Parses a payload file |payload_path| and prepares the metadata properties,
115 // manifest and metadata signatures. Can be used as an easy to use utility to
125 // Returns the byte offset where the size of the metadata signature is stored

12345678910>>...29