Home
last modified time | relevance | path

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

12345678

/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 …]
DRadioMetadataWrapper.cpp9 RadioMetadataWrapper::RadioMetadataWrapper(radio_metadata_t **metadata) in RadioMetadataWrapper() argument
10 : mMetadata(metadata) in RadioMetadataWrapper()
/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 …]
Dutility.cpp102 const LpMetadataBlockDevice* GetMetadataSuperBlockDevice(const LpMetadata& metadata) { in GetMetadataSuperBlockDevice() argument
103 if (metadata.block_devices.empty()) { in GetMetadataSuperBlockDevice()
106 return &metadata.block_devices[0]; in GetMetadataSuperBlockDevice()
128 uint64_t GetTotalSuperPartitionSize(const LpMetadata& metadata) { in GetTotalSuperPartitionSize() argument
130 for (const auto& block_device : metadata.block_devices) { in GetTotalSuperPartitionSize()
136 std::vector<std::string> GetBlockDevicePartitionNames(const LpMetadata& metadata) { in GetBlockDevicePartitionNames() argument
138 for (const auto& block_device : metadata.block_devices) { in GetBlockDevicePartitionNames()
144 const LpMetadataPartition* FindPartition(const LpMetadata& metadata, const std::string& name) { in FindPartition() argument
145 for (const auto& partition : metadata.partitions) { in FindPartition()
153 uint64_t GetPartitionSize(const LpMetadata& metadata, const LpMetadataPartition& partition) { in GetPartitionSize() argument
[all …]
Dio_test.cpp261 unique_ptr<LpMetadata> metadata = ReadMetadata(opener, "super", 0); in TEST_F() local
262 ASSERT_NE(metadata, nullptr); in TEST_F()
264 ASSERT_TRUE(UpdatePartitionTable(opener, "super", *metadata.get(), i)); in TEST_F()
316 unique_ptr<LpMetadata> metadata = ReadMetadata(opener, "super", 0); in TEST_F() local
317 ASSERT_NE(metadata, nullptr); in TEST_F()
318 EXPECT_EQ(metadata->geometry.metadata_slot_count, 2); in TEST_F()
347 unique_ptr<LpMetadata> metadata = ReadMetadata(opener, "super", 0); in TEST_F() local
352 off_t offset = GetPrimaryMetadataOffset(metadata->geometry, 0); in TEST_F()
358 offset = GetBackupMetadataOffset(metadata->geometry, 0); in TEST_F()
644 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 …]
Dreader.cpp167 static bool ReadMetadataHeader(Reader* reader, LpMetadata* metadata) { in ReadMetadataHeader() argument
169 LpMetadataHeader& header = metadata->header; in ReadMetadataHeader()
249 std::unique_ptr<LpMetadata> metadata = std::make_unique<LpMetadata>(); in ParseMetadata() local
251 metadata->geometry = geometry; in ParseMetadata()
252 if (!ReadMetadataHeader(reader, metadata.get())) { in ParseMetadata()
256 LpMetadataHeader& header = metadata->header; in ParseMetadata()
284 if (metadata->header.minor_version >= LP_METADATA_VERSION_FOR_UPDATED_ATTR) { in ParseMetadata()
313 metadata->partitions.push_back(partition); in ParseMetadata()
328 metadata->extents.push_back(extent); in ParseMetadata()
337 metadata->groups.push_back(group); in ParseMetadata()
[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/media/camera/src/
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/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/core/fs_mgr/libfiemap/
Dmetadata.cpp53 auto metadata = ReadFromImageFile(metadata_file); in OpenMetadata() local
54 if (!metadata) { in OpenMetadata()
58 return metadata; in OpenMetadata()
86 auto metadata = OpenMetadata(metadata_dir); in OpenOrCreateMetadata() local
87 if (!metadata) { in OpenOrCreateMetadata()
90 builder = MetadataBuilder::New(*metadata.get(), &opener); in OpenOrCreateMetadata()
168 auto metadata = OpenMetadata(metadata_dir); in RemoveImageMetadata() local
169 if (!metadata) { in RemoveImageMetadata()
174 auto builder = MetadataBuilder::New(*metadata.get(), &opener); in RemoveImageMetadata()
208 auto metadata = OpenMetadata(metadata_dir); in AddAttributes() local
[all …]
Dimage_manager.cpp119 auto metadata = OpenMetadata(metadata_dir_); in GetAllBackingImages() local
120 if (metadata) { in GetAllBackingImages()
121 for (auto&& partition : metadata->partitions) { in GetAllBackingImages()
132 auto metadata = OpenMetadata(metadata_dir_); in BackingImageExists() local
133 if (!metadata) { in BackingImageExists()
136 return !!FindPartition(*metadata.get(), name); in BackingImageExists()
287 auto metadata = OpenMetadata(metadata_dir_); in MapWithDmLinear() local
288 if (!metadata) { in MapWithDmLinear()
292 auto super = android::fs_mgr::GetMetadataSuperBlockDevice(*metadata.get()); in MapWithDmLinear()
297 .metadata = metadata.get(), in MapWithDmLinear()
[all …]
/system/bt/gd/l2cap/le/cert/
Dle_l2cap_test.py20 from cert.metadata import metadata
155 …@metadata(pts_test_id="L2CAP/LE/CPU/BV-01-C", pts_test_name="Send Connection Parameter Update Requ…
167 …@metadata(pts_test_id="L2CAP/LE/CPU/BV-02-C", pts_test_name="Accept Connection Parameter Update Re…
180 …@metadata(pts_test_id="L2CAP/LE/CPU/BI-01-C", pts_test_name="Reject Connection Parameter Update Pa…
193 …@metadata(pts_test_id="L2CAP/LE/CPU/BI-02-C", pts_test_name="Reject Connection Parameter Update Re…
203 @metadata(pts_test_id="L2CAP/COS/CFC/BV-01-C", pts_test_name="Segmentation")
217 @metadata(pts_test_id="L2CAP/COS/CFC/BV-02-C", pts_test_name="No Segmentation")
235 @metadata(pts_test_id="L2CAP/COS/CFC/BV-03-C", pts_test_name="Reassembling")
247 @metadata(pts_test_id="L2CAP/COS/CFC/BV-04-C", pts_test_name="Data Receiving")
265 …@metadata(pts_test_id="L2CAP/COS/CFC/BV-05-C", pts_test_name="Multiple Channels with Interleaved D…
[all …]
/system/incremental_delivery/libdataloader/include/
Ddataloader_inline.h69 RawMetadata metadata(file->metadata.data, file->metadata.data + file->metadata.size); in createInstallationFile()
70 return DataLoaderInstallationFile(location, std::move(name), size, std::move(metadata)); in createInstallationFile()
114 RawMetadata&& metadata) in DataLoaderInstallationFile() argument
115 : mLocation(location), mName(std::move(name)), mSize(size), mMetadata(std::move(metadata)) {} in DataLoaderInstallationFile()
126 RawMetadata metadata(INCFS_MAX_FILE_ATTR_SIZE); in getRawMetadata()
127 size_t size = metadata.size(); in getRawMetadata()
128 if (DataLoader_FilesystemConnector_getRawMetadata(this, fid, metadata.data(), &size) < 0) { in getRawMetadata()
131 metadata.resize(size); in getRawMetadata()
132 return metadata; in getRawMetadata()
/system/tools/hidl/metadata/
DAndroid.bp31 "hidl.metadata.test@1.0::IBar",
38 "hidl.metadata.test@1.0::IBaz",
39 "hidl.metadata.test@1.0::IFoo",
56 cmd: "$(location hidl_metadata_parser) $(in) > $(genDir)/metadata.cpp",
62 out: ["metadata.cpp"],
/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,
/system/core/fastboot/device/
Dutility.cpp113 static const LpMetadataPartition* FindLogicalPartition(const LpMetadata& metadata, in FindLogicalPartition() argument
115 for (const auto& partition : metadata.partitions) { in FindLogicalPartition()
131 std::unique_ptr<LpMetadata> metadata = ReadMetadata(path->c_str(), slot_number); in LogicalPartitionExists() local
132 if (!metadata) { in LogicalPartitionExists()
135 const LpMetadataPartition* partition = FindLogicalPartition(*metadata.get(), name); in LogicalPartitionExists()
179 if (auto metadata = ReadMetadata(super_name, current_slot)) { in ListPartitions() local
180 metadata_list.emplace_back(std::move(metadata)); in ListPartitions()
186 if (auto metadata = ReadMetadata(other_super, other_slot)) { in ListPartitions() local
187 metadata_list.emplace_back(std::move(metadata)); in ListPartitions()
191 for (const auto& metadata : metadata_list) { in ListPartitions() local
[all …]
/system/bt/gd/l2cap/classic/cert/
Dl2cap_test.py30 from cert.metadata import metadata
164 @metadata(pts_test_id="L2CAP/COS/CED/BV-01-C", pts_test_name="Request Connection")
173 @metadata(pts_test_id="L2CAP/COS/CED/BV-03-C", pts_test_name="Send data")
184 @metadata(pts_test_id="L2CAP/COS/CED/BV-04-C", pts_test_name="Disconnect")
195 @metadata(pts_test_id="L2CAP/COS/CED/BV-05-C", pts_test_name="Accept connection")
206 @metadata(pts_test_id="L2CAP/COS/CED/BV-07-C", pts_test_name="Accept Disconnect")
217 @metadata(pts_test_id="L2CAP/COS/CED/BV-08-C", pts_test_name="Disconnect on Timeout")
230 @metadata(pts_test_id="L2CAP/COS/CED/BV-09-C", pts_test_name="Receive Multi-Command Packet")
244 @metadata(pts_test_id="L2CAP/COS/CED/BV-11-C", pts_test_name="Configure MTU size")
255 @metadata(pts_test_id="L2CAP/COS/CFD/BV-01-C", pts_test_name="Continuation Flag")
[all …]
/system/media/camera/docs/
DHidlMetadata.mako30 * Autogenerated from camera metadata definitions in
35 package android.hardware.camera.metadata@${hal_major_version()}.${hal_minor_version()};
39 import android.hardware.camera.metadata@${hal_major_version()}.${i};
45 % for idx, section in enumerate(find_all_sections_added_in_hal(metadata, hal_major_version(), hal_m…
49 * Top level hierarchy definitions for camera metadata. *_INFO sections are for
50 * the static metadata that can be retrived without opening the camera device.
56 …android.hardware.camera.metadata@${hal_major_version()}.${hal_minor_version()-1}::CameraMetadataSe…
74 …l_major_version()) == hal_minor_version() else 'android.hardware.camera.metadata@%d.%d::CameraMeta…
75 % for i in find_all_sections_added_in_hal(metadata, hal_major_version(), hal_minor_version()):
88 // No new metadata sections added in this revision
[all …]
Dndk_camera_metadata_tags.mako59 % for i in find_all_sections(metadata):
71 % for i in find_all_sections(metadata):
78 * Main enum for camera metadata tags.
81 % for sec in find_all_sections(metadata):
96 ${entry.description | ndkdoc(metadata)}\
103 % if metadata.is_entry_this_kind(entry, 'static'):
106 % if metadata.is_entry_this_kind(entry, 'dynamic'):
109 % if metadata.is_entry_this_kind(entry, 'controls'):
115 ${entry.applied_ndk_details | ndkdoc(metadata)}\
137 % for sec in find_all_sections(metadata):
[all …]
Dcamera_metadata_tag_info.mako35 % for i in find_all_sections(metadata):
41 % for i in find_all_sections(metadata):
47 % for sec in find_all_sections(metadata):
59 % for i in find_all_sections(metadata):
64 static int32_t tag_permission_needed[${permission_needed_count(metadata)}] = {
65 % for sec in find_all_sections(metadata):
80 % for sec in find_all_sections(metadata):
110 enum_values = metadata.find_all(find_values)
/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
/system/incremental_delivery/libdataloader/
DManagedDataLoader.cpp143 jbyteArray metadata = env->NewByteArray(file.metadata.size); in toJavaArrayList() local
144 if (metadata != nullptr) { in toJavaArrayList()
145 env->SetByteArrayRegion(metadata, 0, file.metadata.size, in toJavaArrayList()
146 (const jbyte*)file.metadata.data); in toJavaArrayList()
150 name, size, metadata, nullptr); in toJavaArrayList()
/system/core/fs_mgr/include/
Dfs_mgr_dm_linear.h47 bool CreateLogicalPartitions(const LpMetadata& metadata, const std::string& block_device);
58 const LpMetadata* metadata = nullptr; member
90 std::unique_ptr<LpMetadata> metadata; member

12345678