/system/media/radio/src/ |
D | radio_metadata.c | 61 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 …]
|
D | RadioMetadataWrapper.cpp | 9 RadioMetadataWrapper::RadioMetadataWrapper(radio_metadata_t **metadata) in RadioMetadataWrapper() argument 10 : mMetadata(metadata) in RadioMetadataWrapper()
|
/system/core/fs_mgr/liblp/ |
D | writer.cpp | 50 LpMetadata metadata = input; in SerializeMetadata() local 51 LpMetadataHeader& header = metadata.header; in SerializeMetadata() 54 std::string partitions(reinterpret_cast<const char*>(metadata.partitions.data()), in SerializeMetadata() 55 metadata.partitions.size() * sizeof(LpMetadataPartition)); in SerializeMetadata() 56 std::string extents(reinterpret_cast<const char*>(metadata.extents.data()), in SerializeMetadata() 57 metadata.extents.size() * sizeof(LpMetadataExtent)); in SerializeMetadata() 58 std::string groups(reinterpret_cast<const char*>(metadata.groups.data()), in SerializeMetadata() 59 metadata.groups.size() * sizeof(LpMetadataPartitionGroup)); in SerializeMetadata() 60 std::string block_devices(reinterpret_cast<const char*>(metadata.block_devices.data()), in SerializeMetadata() 61 metadata.block_devices.size() * sizeof(LpMetadataBlockDevice)); in SerializeMetadata() [all …]
|
D | reader.cpp | 216 std::unique_ptr<LpMetadata> metadata = std::make_unique<LpMetadata>(); in ParseMetadata() local 217 if (!reader->ReadFully(&metadata->header, sizeof(metadata->header))) { in ParseMetadata() 218 PERROR << __PRETTY_FUNCTION__ << " read " << sizeof(metadata->header) << "bytes failed"; in ParseMetadata() 221 if (!ValidateMetadataHeader(metadata->header)) { in ParseMetadata() 224 metadata->geometry = geometry; in ParseMetadata() 226 LpMetadataHeader& header = metadata->header; in ParseMetadata() 272 metadata->partitions.push_back(partition); in ParseMetadata() 287 metadata->extents.push_back(extent); in ParseMetadata() 296 metadata->groups.push_back(group); in ParseMetadata() 305 metadata->block_devices.push_back(device); in ParseMetadata() [all …]
|
D | builder.cpp | 118 std::unique_ptr<LpMetadata> metadata = ReadMetadata(opener, super_partition, slot_number); in New() local 119 if (!metadata) { in New() 122 return New(*metadata.get(), &opener); in New() 140 std::unique_ptr<MetadataBuilder> MetadataBuilder::New(const LpMetadata& metadata, in New() argument 143 if (!builder->Init(metadata)) { in New() 162 auto metadata = ReadMetadata(opener, source_partition, source_slot_number); in NewForUpdate() local 163 if (!metadata) { in NewForUpdate() 171 auto super_device = GetMetadataSuperBlockDevice(*metadata.get()); in NewForUpdate() 173 return New(*metadata.get(), &opener); in NewForUpdate() 178 metadata->partitions.clear(); in NewForUpdate() [all …]
|
D | io_test.cpp | 258 unique_ptr<LpMetadata> metadata = ReadMetadata(opener, "super", 0); in TEST() local 259 ASSERT_NE(metadata, nullptr); in TEST() 261 ASSERT_TRUE(UpdatePartitionTable(opener, "super", *metadata.get(), i)); in TEST() 313 unique_ptr<LpMetadata> metadata = ReadMetadata(opener, "super", 0); in TEST() local 314 ASSERT_NE(metadata, nullptr); in TEST() 315 EXPECT_EQ(metadata->geometry.metadata_slot_count, 2); in TEST() 344 unique_ptr<LpMetadata> metadata = ReadMetadata(opener, "super", 0); in TEST() local 349 off_t offset = GetPrimaryMetadataOffset(metadata->geometry, 0); in TEST() 355 offset = GetBackupMetadataOffset(metadata->geometry, 0); in TEST() 641 auto metadata = ReadMetadata(opener, "super_b", 1); in TEST() local [all …]
|
D | utility.cpp | 96 const LpMetadataBlockDevice* GetMetadataSuperBlockDevice(const LpMetadata& metadata) { in GetMetadataSuperBlockDevice() argument 97 if (metadata.block_devices.empty()) { in GetMetadataSuperBlockDevice() 100 return &metadata.block_devices[0]; in GetMetadataSuperBlockDevice() 122 uint64_t GetTotalSuperPartitionSize(const LpMetadata& metadata) { in GetTotalSuperPartitionSize() argument 124 for (const auto& block_device : metadata.block_devices) { in GetTotalSuperPartitionSize() 130 std::vector<std::string> GetBlockDevicePartitionNames(const LpMetadata& metadata) { in GetBlockDevicePartitionNames() argument 132 for (const auto& block_device : metadata.block_devices) { in GetBlockDevicePartitionNames()
|
D | images.cpp | 81 std::string metadata = SerializeMetadata(input); in WriteToImageFile() local 83 std::string everything = geometry + metadata; in WriteToImageFile() 101 ImageBuilder::ImageBuilder(const LpMetadata& metadata, uint32_t block_size, in ImageBuilder() argument 103 : metadata_(metadata), in ImageBuilder() 104 geometry_(metadata.geometry), in ImageBuilder() 108 uint64_t total_size = GetTotalSuperPartitionSize(metadata); in ImageBuilder() 117 if (metadata.geometry.metadata_max_size % block_size != 0) { in ImageBuilder() 138 for (const auto& block_device : metadata.block_devices) { in ImageBuilder() 441 bool WriteToImageFile(const char* file, const LpMetadata& metadata, uint32_t block_size, in WriteToImageFile() argument 443 ImageBuilder builder(metadata, block_size, images, sparsify); in WriteToImageFile() [all …]
|
D | images.h | 32 bool WriteToImageFile(const char* file, const LpMetadata& metadata); 33 bool WriteToImageFile(int fd, const LpMetadata& metadata); 40 ImageBuilder(const LpMetadata& metadata, uint32_t block_size,
|
D | builder_test.cpp | 234 static constexpr uint64_t metadata = 1024; in TEST_F() local 236 unique_ptr<MetadataBuilder> builder = MetadataBuilder::New(total, metadata, slots); in TEST_F() 242 total - (metadata * slots + geometry) * 2 - LP_PARTITION_RESERVED_BYTES; in TEST_F() 677 unique_ptr<LpMetadata> metadata = builder->Export(); in TEST_F() local 678 ASSERT_NE(metadata, nullptr); in TEST_F() 679 ASSERT_EQ(metadata->block_devices.size(), 3); in TEST_F() 680 EXPECT_EQ(GetBlockDevicePartitionName(metadata->block_devices[0]), "system_a"); in TEST_F() 681 EXPECT_EQ(metadata->block_devices[0].size, 256_MiB); in TEST_F() 682 EXPECT_EQ(metadata->block_devices[0].alignment, 786432); in TEST_F() 683 EXPECT_EQ(metadata->block_devices[0].alignment_offset, 229376); in TEST_F() [all …]
|
/system/media/radio/include/system/ |
D | radio_metadata.h | 92 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/fs_mgr/ |
D | fs_mgr_dm_linear.cpp | 54 static bool GetPhysicalPartitionDevicePath(const LpMetadata& metadata, in GetPhysicalPartitionDevicePath() argument 65 if (GetMetadataSuperBlockDevice(metadata) == &block_device) { in GetPhysicalPartitionDevicePath() 75 static bool CreateDmTable(const LpMetadata& metadata, const LpMetadataPartition& partition, in CreateDmTable() argument 79 const auto& extent = metadata.extents[partition.first_extent_index + i]; in CreateDmTable() 86 const auto& block_device = metadata.block_devices[extent.target_source]; in CreateDmTable() 88 if (!GetPhysicalPartitionDevicePath(metadata, block_device, super_device, &path)) { in CreateDmTable() 111 static bool CreateLogicalPartition(const LpMetadata& metadata, const LpMetadataPartition& partition, in CreateLogicalPartition() argument 117 if (!CreateDmTable(metadata, partition, super_device, &table)) { in CreateLogicalPartition() 143 auto metadata = ReadMetadata(block_device.c_str(), slot); in CreateLogicalPartitions() local 144 if (!metadata) { in CreateLogicalPartitions() [all …]
|
/system/media/camera/src/ |
D | camera_metadata.c | 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() 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/ |
D | liblp.h | 51 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, 75 bool WriteToImageFile(const char* file, const LpMetadata& metadata, uint32_t block_size, 77 bool WriteToImageFile(const char* file, const LpMetadata& metadata); 86 bool WriteSplitImageFiles(const std::string& output_dir, const LpMetadata& metadata, 97 const LpMetadataBlockDevice* GetMetadataSuperBlockDevice(const LpMetadata& metadata); 100 uint64_t GetTotalSuperPartitionSize(const LpMetadata& metadata); 103 std::vector<std::string> GetBlockDevicePartitionNames(const LpMetadata& metadata);
|
/system/core/fastboot/device/ |
D | utility.cpp | 104 static const LpMetadataPartition* FindLogicalPartition(const LpMetadata& metadata, in FindLogicalPartition() argument 106 for (const auto& partition : metadata.partitions) { in FindLogicalPartition() 122 std::unique_ptr<LpMetadata> metadata = ReadMetadata(path->c_str(), slot_number); in LogicalPartitionExists() local 123 if (!metadata) { in LogicalPartitionExists() 126 const LpMetadataPartition* partition = FindLogicalPartition(*metadata.get(), name); in LogicalPartitionExists() 170 if (auto metadata = ReadMetadata(super_name, current_slot)) { in ListPartitions() local 171 metadata_list.emplace_back(std::move(metadata)); in ListPartitions() 177 if (auto metadata = ReadMetadata(other_super, other_slot)) { in ListPartitions() local 178 metadata_list.emplace_back(std::move(metadata)); in ListPartitions() 182 for (const auto& metadata : metadata_list) { in ListPartitions() local [all …]
|
/system/media/camera/include/system/ |
D | camera_metadata.h | 210 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/media/camera/docs/ |
D | HidlMetadata.mako | 30 * 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 …]
|
D | ndk_camera_metadata_tags.mako | 59 % 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 …]
|
D | camera_metadata_tag_info.mako | 35 % 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)
|
D | metadata_parser_xml.py | 106 def metadata(self): member in MetadataParserXml 125 self.metadata.insert_tag(tag['id'], tag.string) 134 self.metadata.insert_type(tp['name'], 'typedef', languages=languages) 149 insert = self.metadata.insert_entry 162 insert = self.metadata.insert_clone 169 self.metadata.construct_graph() 346 ctx = Context(buf, metadata=self.metadata, **helpers)
|
D | camera_metadata_tags.mako | 45 * Top level hierarchy definitions for camera metadata. *_INFO sections are for 46 * the static metadata that can be retrived without opening the camera device. 51 % for i in find_all_sections(metadata): 64 % for i in find_all_sections(metadata): 71 * Main enum for defining camera metadata tags. New entries must always go 77 % for sec in find_all_sections(metadata): 95 % for sec in find_all_sections(metadata):
|
/system/extras/partition_tools/ |
D | README.md | 12 * `-m,--metadata-size` - The maximum size that partition metadata may consume. A partition entry us… 13 * `-s,--metadata-slots` - The number of slots available for storing metadata. This should match the… 14 * `-p,--partition=DATA` - Add a partition to the metadata. At least one partition must be defined. … 29 --metadata-size 65536 \ 30 --metadata-slots 2 \ 38 lpdump displays pretty-printed partition metadata. It accepts a single argument, which can be: 43 It also accepts an optional argument `-s,--slot=N` which can dump a specific metadata slot (the def…
|
/system/bt/btcore/src/ |
D | module.cc | 42 static std::unordered_map<const module_t*, module_state_t> metadata; variable 54 metadata.clear(); in module_management_stop() 153 auto map_ptr = metadata.find(module); in get_module_state() 155 return (map_ptr != metadata.end()) ? map_ptr->second : MODULE_STATE_NONE; in get_module_state() 160 metadata[module] = state; in set_module_state()
|
/system/gsid/ |
D | gsid.rc | 7 mkdir /metadata/gsi 0771 root system 8 mkdir /metadata/gsi/dsu 0771 root system
|
/system/core/fs_mgr/include/ |
D | fs_mgr_dm_linear.h | 46 bool CreateLogicalPartitions(const LpMetadata& metadata, const std::string& block_device); 65 bool CreateLogicalPartition(const std::string& block_device, const LpMetadata& metadata,
|