Home
last modified time | relevance | path

Searched refs:metadata (Results 1 – 25 of 212) sorted by relevance

123456789

/system/media/camera/src/
Dcamera_metadata_asserts.cpp124 …== static_cast<int>(::aidl::android::hardware::camera::metadata::CameraMetadataSection::ANDROID_CO…
126 …== static_cast<int>(::aidl::android::hardware::camera::metadata::CameraMetadataSection::ANDROID_CO…
128 …== static_cast<int>(::aidl::android::hardware::camera::metadata::CameraMetadataSection::ANDROID_DE…
130 …== static_cast<int>(::aidl::android::hardware::camera::metadata::CameraMetadataSection::ANDROID_ED…
132 …== static_cast<int>(::aidl::android::hardware::camera::metadata::CameraMetadataSection::ANDROID_FL…
134 …== static_cast<int>(::aidl::android::hardware::camera::metadata::CameraMetadataSection::ANDROID_FL…
136 …== static_cast<int>(::aidl::android::hardware::camera::metadata::CameraMetadataSection::ANDROID_HO…
138 …== static_cast<int>(::aidl::android::hardware::camera::metadata::CameraMetadataSection::ANDROID_JP…
140 …== static_cast<int>(::aidl::android::hardware::camera::metadata::CameraMetadataSection::ANDROID_LE…
142 …== static_cast<int>(::aidl::android::hardware::camera::metadata::CameraMetadataSection::ANDROID_LE…
[all …]
Dcamera_metadata.c210 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()
240 camera_metadata_t *metadata = (camera_metadata_t*) buffer; in allocate_copy_camera_metadata_checked() local
241 if (validate_camera_metadata_structure(metadata, &src_size) != OK) { in allocate_copy_camera_metadata_checked()
246 return metadata; in allocate_copy_camera_metadata_checked()
255 camera_metadata_t *metadata = place_camera_metadata( in allocate_camera_metadata() local
257 if (!metadata) { in allocate_camera_metadata()
263 return metadata; in allocate_camera_metadata()
[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/media/audio_utils/
DMetadata.cpp22 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()
49 reinterpret_cast<Data *>(metadata)->emplace(key, value); in audio_metadata_put_float()
[all …]
/system/core/fs_mgr/liblp/
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()
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()
79 ASSERT_FALSE(tool.Open(*metadata.get())); in TEST()
[all …]
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 …]
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 …]
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 …]
Dio_test.cpp265 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()
320 unique_ptr<LpMetadata> metadata = ReadMetadata(opener, "super", 0); in TEST_F() local
321 ASSERT_NE(metadata, nullptr); in TEST_F()
322 EXPECT_EQ(metadata->geometry.metadata_slot_count, 2); in TEST_F()
351 unique_ptr<LpMetadata> metadata = ReadMetadata(opener, "super", 0); in TEST_F() local
356 off_t offset = GetPrimaryMetadataOffset(metadata->geometry, 0); in TEST_F()
362 offset = GetBackupMetadataOffset(metadata->geometry, 0); in TEST_F()
648 auto metadata = ReadMetadata(opener, "super_b", 1); in TEST_F() local
[all …]
Dbuilder.cpp177 std::unique_ptr<LpMetadata> metadata = ReadMetadata(opener, super_partition, slot_number); in New() local
178 if (!metadata) { in New()
181 return New(*metadata.get(), &opener); in New()
199 std::unique_ptr<MetadataBuilder> MetadataBuilder::New(const LpMetadata& metadata, in New() argument
202 if (!builder->Init(metadata)) { in New()
222 auto metadata = ReadMetadata(opener, source_partition, source_slot_number); in NewForUpdate() local
223 if (!metadata) { in NewForUpdate()
231 auto super_device = GetMetadataSuperBlockDevice(*metadata.get()); in NewForUpdate()
234 if (!UpdateMetadataForOtherSuper(metadata.get(), source_slot_number, target_slot_number)) { in NewForUpdate()
243 SetMetadataHeaderV0(metadata.get()); in NewForUpdate()
[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.c27 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/core/libstats/pull_rust/
Dstats_pull.rs31 metadata: *mut AStatsManager_PullAtomMetadata, field
38 let metadata = unsafe { AStatsManager_PullAtomMetadata_obtain() }; in new() localVariable
39 if metadata.is_null() { in new()
42 Metadata { metadata } in new()
49 unsafe { AStatsManager_PullAtomMetadata_setCoolDownMillis(self.metadata, cooldown_millis) } in set_cooldown_millis()
55 unsafe { AStatsManager_PullAtomMetadata_getCoolDownMillis(self.metadata) } in get_cooldown_millis()
61 unsafe { AStatsManager_PullAtomMetadata_setTimeoutMillis(self.metadata, timeout_millis) } in set_timeout_millis()
67 unsafe { AStatsManager_PullAtomMetadata_getTimeoutMillis(self.metadata) } in get_timeout_millis()
75 self.metadata, in set_additive_fields()
87 let num_fields = AStatsManager_PullAtomMetadata_getNumAdditiveFields(self.metadata) in get_additive_fields()
[all …]
/system/media/radio/include/system/
Dradio_metadata.h92 int radio_metadata_allocate(radio_metadata_t **metadata,
103 void radio_metadata_deallocate(radio_metadata_t *metadata);
120 int radio_metadata_add_int(radio_metadata_t **metadata,
140 int radio_metadata_add_text(radio_metadata_t **metadata,
159 int radio_metadata_add_raw(radio_metadata_t **metadata,
179 int radio_metadata_add_clock(radio_metadata_t **metadata,
210 int radio_metadata_check(const radio_metadata_t *metadata);
224 size_t radio_metadata_get_size(const radio_metadata_t *metadata);
238 int radio_metadata_get_count(const radio_metadata_t *metadata);
257 int radio_metadata_get_at_index(const radio_metadata_t *metadata,
[all …]
/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/liblp/include/liblp/
Dliblp.h51 const LpMetadata& metadata);
60 const LpMetadata& metadata, uint32_t slot_number);
68 bool FlashPartitionTable(const std::string& super_partition, const LpMetadata& metadata);
69 bool UpdatePartitionTable(const std::string& super_partition, const LpMetadata& metadata,
81 bool WriteToImageFile(const std::string& file, const LpMetadata& metadata, uint32_t block_size,
86 bool WriteToImageFile(const std::string& file, const LpMetadata& metadata);
87 bool WriteToImageFile(android::base::borrowed_fd fd, const LpMetadata& metadata);
96 bool WriteSplitImageFiles(const std::string& output_dir, const LpMetadata& metadata,
107 const LpMetadataBlockDevice* GetMetadataSuperBlockDevice(const LpMetadata& metadata);
110 uint64_t GetTotalSuperPartitionSize(const LpMetadata& metadata);
[all …]
/system/core/fs_mgr/
Dfs_mgr_dm_linear.cpp74 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()
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()
159 for (const auto& partition : metadata.partitions) { in CreateLogicalPartitions()
192 if (!metadata) { in InitDefaults()
[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/media/audio_utils/include/audio_utils/
DMetadata.h90 namespace android::audio_utils::metadata {
822 if (!android::audio_utils::metadata::copyFromByteString(
980 int audio_metadata_put_int32(audio_metadata_t *metadata, const char *key, int32_t value);
991 int audio_metadata_put_int64(audio_metadata_t *metadata, const char *key, int64_t value);
1002 int audio_metadata_put_float(audio_metadata_t *metadata, const char *key, float value);
1013 int audio_metadata_put_double(audio_metadata_t *metadata, const char *key, double value);
1024 int audio_metadata_put_string(audio_metadata_t *metadata, const char *key, const char *value);
1035 int audio_metadata_put_data(audio_metadata_t *metadata, const char *key, audio_metadata_t *value);
1040 int audio_metadata_put_unknown(audio_metadata_t *metadata, const char *key,
1052 #define audio_metadata_put(metadata, key, value) _Generic((value), \
[all …]
/system/core/fs_mgr/libfiemap/
Dmetadata.cpp54 auto metadata = ReadFromImageFile(metadata_file); in OpenMetadata() local
55 if (!metadata) { 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()
171 auto metadata = OpenMetadata(metadata_dir); in RemoveImageMetadata() local
172 if (!metadata) { in RemoveImageMetadata()
177 auto builder = MetadataBuilder::New(*metadata.get(), &opener); in RemoveImageMetadata()
211 auto metadata = OpenMetadata(metadata_dir); in AddAttributes() local
[all …]
Dimage_manager.cpp133 auto metadata = OpenMetadata(metadata_dir_); in GetAllBackingImages() local
134 if (metadata) { in GetAllBackingImages()
135 for (auto&& partition : metadata->partitions) { in GetAllBackingImages()
146 auto metadata = OpenMetadata(metadata_dir_); in BackingImageExists() local
147 if (!metadata) { in BackingImageExists()
150 return !!FindPartition(*metadata.get(), name); in BackingImageExists()
301 auto metadata = OpenMetadata(metadata_dir_); in MapWithDmLinear() local
302 if (!metadata) { in MapWithDmLinear()
306 auto super = android::fs_mgr::GetMetadataSuperBlockDevice(*metadata.get()); in MapWithDmLinear()
311 .metadata = metadata.get(), in MapWithDmLinear()
[all …]
/system/core/fastboot/testdata/
Dmake_super_images.sh8 --metadata-size=4096 \
9 --metadata-slots=3 \
16 --metadata-size=4096 \
17 --metadata-slots=3 \
/system/core/fastboot/device/
Dutility.cpp107 static const LpMetadataPartition* FindLogicalPartition(const LpMetadata& metadata, in FindLogicalPartition() argument
109 for (const auto& partition : metadata.partitions) { in FindLogicalPartition()
125 std::unique_ptr<LpMetadata> metadata = ReadMetadata(path->c_str(), slot_number); in LogicalPartitionExists() local
126 if (!metadata) { in LogicalPartitionExists()
129 const LpMetadataPartition* partition = FindLogicalPartition(*metadata.get(), name); in LogicalPartitionExists()
173 if (auto metadata = ReadMetadata(super_name, current_slot)) { in ListPartitions() local
174 metadata_list.emplace_back(std::move(metadata)); in ListPartitions()
180 if (auto metadata = ReadMetadata(other_super, other_slot)) { in ListPartitions() local
181 metadata_list.emplace_back(std::move(metadata)); in ListPartitions()
185 for (const auto& metadata : metadata_list) { in ListPartitions() local
[all …]
/system/incremental_delivery/libdataloader/include/
Ddataloader_inline.h82 RawMetadata metadata(file->metadata.data, file->metadata.data + file->metadata.size); in createInstallationFile()
83 return DataLoaderInstallationFile(location, std::move(name), size, std::move(metadata)); in createInstallationFile()
127 RawMetadata&& metadata) in DataLoaderInstallationFile() argument
128 : mLocation(location), mName(std::move(name)), mSize(size), mMetadata(std::move(metadata)) {} in DataLoaderInstallationFile()
139 RawMetadata metadata(INCFS_MAX_FILE_ATTR_SIZE); in getRawMetadata()
140 size_t size = metadata.size(); in getRawMetadata()
141 if (DataLoader_FilesystemConnector_getRawMetadata(this, fid, metadata.data(), &size) < 0) { in getRawMetadata()
144 metadata.resize(size); in getRawMetadata()
145 return metadata; in getRawMetadata()
/system/media/camera/include/system/
Dcamera_metadata.h210 void free_camera_metadata(camera_metadata_t *metadata);
225 size_t get_camera_metadata_size(const camera_metadata_t *metadata);
233 size_t get_camera_metadata_compact_size(const camera_metadata_t *metadata);
242 size_t get_camera_metadata_entry_count(const camera_metadata_t *metadata);
248 size_t get_camera_metadata_entry_capacity(const camera_metadata_t *metadata);
254 size_t get_camera_metadata_data_count(const camera_metadata_t *metadata);
261 size_t get_camera_metadata_data_capacity(const camera_metadata_t *metadata);
306 int validate_camera_metadata_structure(const camera_metadata_t *metadata,
558 void dump_camera_metadata(const camera_metadata_t *metadata,
567 void dump_indented_camera_metadata(const camera_metadata_t *metadata,

123456789