/system/core/fs_mgr/libsnapshot/ |
D | snapshot_metadata_updater.cpp | 71 for (const auto& partition_update : partitions_) { in ShrinkPartitions() local 72 auto* existing_partition = builder_->FindPartition(partition_update.name); in ShrinkPartitions() 76 auto new_size = partition_update->new_partition_info().size(); in ShrinkPartitions() 105 [existing_partition](auto&& partition_update) { in DeletePartitions() argument 106 return partition_update.name == existing_partition->name(); in DeletePartitions() 123 for (const auto& partition_update : partitions_) { in MovePartitionsToDefault() local 124 auto* existing_partition = builder_->FindPartition(partition_update.name); in MovePartitionsToDefault() 128 if (existing_partition->group_name() == partition_update.group_name) { in MovePartitionsToDefault() 226 for (const auto& partition_update : partitions_) { in AddPartitions() local 227 if (builder_->FindPartition(partition_update.name) == nullptr) { in AddPartitions() [all …]
|
D | test_helpers.cpp | 204 void SetSize(PartitionUpdate* partition_update, uint64_t size) { in SetSize() argument 205 partition_update->mutable_new_partition_info()->set_size(size); in SetSize() 208 uint64_t GetSize(PartitionUpdate* partition_update) { in GetSize() argument 209 return partition_update->mutable_new_partition_info()->size(); in GetSize()
|
D | snapshot.cpp | 3458 for (const auto& partition_update : manifest.partitions()) { in CreateUpdateSnapshotsInternal() local 3459 auto suffixed_name = partition_update.partition_name() + target_suffix; in CreateUpdateSnapshotsInternal() 3460 auto&& [it, inserted] = partition_map.emplace(suffixed_name, &partition_update); in CreateUpdateSnapshotsInternal() 3462 LOG(ERROR) << "Duplicated partition " << partition_update.partition_name() in CreateUpdateSnapshotsInternal() 3468 if (partition_update.has_hash_tree_extent()) { in CreateUpdateSnapshotsInternal() 3469 extra_extents.push_back(partition_update.hash_tree_extent()); in CreateUpdateSnapshotsInternal() 3471 if (partition_update.has_fec_extent()) { in CreateUpdateSnapshotsInternal() 3472 extra_extents.push_back(partition_update.fec_extent()); in CreateUpdateSnapshotsInternal()
|
D | snapshot_test.cpp | 1312 void AddOperation(PartitionUpdate* partition_update, uint64_t size_bytes = 0) { in AddOperation() argument 1313 auto e = partition_update->add_operations()->add_dst_extents(); in AddOperation() 1316 size_bytes = GetSize(partition_update); in AddOperation()
|
/system/update_engine/payload_consumer/ |
D | partition_update_generator_android.cc | 98 auto partition_update = CreatePartitionUpdate( in GenerateOperationsForPartitionsNotInPayload() local 100 if (!partition_update.has_value()) { in GenerateOperationsForPartitionsNotInPayload() 104 partition_updates.push_back(partition_update.value()); in GenerateOperationsForPartitionsNotInPayload() 130 PartitionUpdate partition_update; in CreatePartitionUpdate() local 131 partition_update.set_partition_name(partition_name); in CreatePartitionUpdate() 132 auto old_partition_info = partition_update.mutable_old_partition_info(); in CreatePartitionUpdate() 142 auto new_partition_info = partition_update.mutable_new_partition_info(); in CreatePartitionUpdate() 146 auto copy_operation = partition_update.add_operations(); in CreatePartitionUpdate() 155 return partition_update; in CreatePartitionUpdate()
|
D | partition_writer_factory_android.cc | 28 const PartitionUpdate& partition_update, in CreatePartitionWriter() argument 40 partition_update, install_part, dynamic_control, block_size); in CreatePartitionWriter() 44 return std::make_unique<PartitionWriter>(partition_update, in CreatePartitionWriter()
|
D | partition_update_generator_android_unittest.cc | 88 const PartitionUpdate& partition_update) { in CheckPartitionUpdate() argument 89 ASSERT_EQ(name, partition_update.partition_name()); in CheckPartitionUpdate() 95 partition_update.old_partition_info().hash()); in CheckPartitionUpdate() 97 partition_update.new_partition_info().hash()); in CheckPartitionUpdate() 99 ASSERT_EQ(1, partition_update.operations_size()); in CheckPartitionUpdate() 100 const auto& operation = partition_update.operations(0); in CheckPartitionUpdate()
|
D | partition_writer_factory_chromeos.cc | 26 const PartitionUpdate& partition_update, in CreatePartitionWriter() argument 32 return std::make_unique<PartitionWriter>(partition_update, in CreatePartitionWriter()
|
D | partition_writer.h | 39 PartitionWriter(const PartitionUpdate& partition_update, 126 const PartitionUpdate& partition_update,
|
D | vabc_partition_writer.cc | 80 const PartitionUpdate& partition_update, in VABCPartitionWriter() argument 84 : partition_update_(partition_update), in VABCPartitionWriter() 96 LOG(INFO) << "Partition `" << partition_update.partition_name() << "` has " in VABCPartitionWriter()
|
D | vabc_partition_writer.h | 45 VABCPartitionWriter(const PartitionUpdate& partition_update,
|
D | partition_writer.cc | 111 const PartitionUpdate& partition_update, in PartitionWriter() argument 116 : partition_update_(partition_update), in PartitionWriter()
|
D | delta_performer.h | 198 const PartitionUpdate& partition_update,
|
D | delta_performer.cc | 806 for (const auto& partition_update : partitions_) { in ParseManifestPartitions() local 807 touched_partitions.insert(partition_update.partition_name()); in ParseManifestPartitions() 1622 const PartitionUpdate& partition_update, in CreatePartitionWriter() argument 1629 partition_update, in CreatePartitionWriter()
|
D | delta_performer_unittest.cc | 1117 const PartitionUpdate& partition_update, in CreatePartitionWriter() argument
|
/system/core/fs_mgr/libsnapshot/include_test/libsnapshot/ |
D | test_helpers.h | 215 void SetSize(PartitionUpdate* partition_update, uint64_t size); 218 uint64_t GetSize(PartitionUpdate* partition_update);
|