/system/media/audio_utils/ |
D | Metadata.cpp | 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() 49 reinterpret_cast<Data *>(metadata)->emplace(key, value); in audio_metadata_put_float() [all …]
|
/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 …]
|
/system/core/libstats/pull_lazy/ |
D | libstatspull_lazy.cpp | 140 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/core/fs_mgr/liblp/ |
D | writer.cpp | 51 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 …]
|
D | utility.cpp | 102 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 …]
|
D | io_test.cpp | 261 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 …]
|
D | builder.cpp | 177 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 …]
|
D | reader.cpp | 167 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/audio_utils/tests/ |
D | metadata_tests_c.c | 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()
|
D | metadata_tests.cpp | 26 using namespace android::audio_utils::metadata; 399 audio_metadata_t *metadata = audio_metadata_create(); in TEST() local 409 audio_metadata_put(metadata, "i32", (int32_t)1); in TEST() 410 audio_metadata_put(metadata, "i64", (int64_t)2); in TEST() 411 audio_metadata_put(metadata, "float", (float)3.1f); in TEST() 412 audio_metadata_put(metadata, "double", (double)4.11); in TEST() 415 audio_metadata_put(metadata, "data", data); in TEST() 422 audio_metadata_put(metadata, "complex", prime); in TEST() 433 ASSERT_EQ(0, audio_metadata_get(metadata, "i32", &i32Val)); in TEST() 435 ASSERT_EQ(0, audio_metadata_get(metadata, "i64", &i64Val)); in TEST() [all …]
|
/system/core/libstats/pull_rust/ |
D | stats_pull.rs | 31 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/ |
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/libstats/pull_lazy/tests/ |
D | libstatspull_lazy_test.cpp | 37 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/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, 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/ |
D | fs_mgr_dm_linear.cpp | 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() 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/ |
D | gsid.rc | 9 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/fs_mgr/libfiemap/ |
D | metadata.cpp | 53 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 …]
|
D | image_manager.cpp | 133 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/security/keystore2/src/ |
D | id_rotation.rs | 51 match fs::metadata(&self.timestamp_path) { in had_factory_reset_since_id_rotation() 52 Ok(metadata) => { in had_factory_reset_since_id_rotation() 53 let duration_since_factory_reset = metadata in had_factory_reset_since_id_rotation() 104 let metadata = fs::metadata(&temp_file_path)?; in test_had_factory_reset_since_id_rotation() localVariable 105 let mtime = metadata.modified()?; in test_had_factory_reset_since_id_rotation() 111 let atime = metadata.accessed()?; in test_had_factory_reset_since_id_rotation()
|
/system/bt/gd/l2cap/le/cert/ |
D | le_l2cap_test.py | 20 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/media/audio_utils/include/audio_utils/ |
D | Metadata.h | 89 namespace android::audio_utils::metadata { 820 if (!android::audio_utils::metadata::copyFromByteString( 978 int audio_metadata_put_int32(audio_metadata_t *metadata, const char *key, int32_t value); 989 int audio_metadata_put_int64(audio_metadata_t *metadata, const char *key, int64_t value); 1000 int audio_metadata_put_float(audio_metadata_t *metadata, const char *key, float value); 1011 int audio_metadata_put_double(audio_metadata_t *metadata, const char *key, double value); 1022 int audio_metadata_put_string(audio_metadata_t *metadata, const char *key, const char *value); 1033 int audio_metadata_put_data(audio_metadata_t *metadata, const char *key, audio_metadata_t *value); 1038 int audio_metadata_put_unknown(audio_metadata_t *metadata, const char *key, 1050 #define audio_metadata_put(metadata, key, value) _Generic((value), \ [all …]
|
/system/incremental_delivery/libdataloader/include/ |
D | dataloader_inline.h | 82 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/ |
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/core/fastboot/device/ |
D | utility.cpp | 116 static const LpMetadataPartition* FindLogicalPartition(const LpMetadata& metadata, in FindLogicalPartition() argument 118 for (const auto& partition : metadata.partitions) { in FindLogicalPartition() 134 std::unique_ptr<LpMetadata> metadata = ReadMetadata(path->c_str(), slot_number); in LogicalPartitionExists() local 135 if (!metadata) { in LogicalPartitionExists() 138 const LpMetadataPartition* partition = FindLogicalPartition(*metadata.get(), name); in LogicalPartitionExists() 182 if (auto metadata = ReadMetadata(super_name, current_slot)) { in ListPartitions() local 183 metadata_list.emplace_back(std::move(metadata)); in ListPartitions() 189 if (auto metadata = ReadMetadata(other_super, other_slot)) { in ListPartitions() local 190 metadata_list.emplace_back(std::move(metadata)); in ListPartitions() 194 for (const auto& metadata : metadata_list) { in ListPartitions() local [all …]
|