Home
last modified time | relevance | path

Searched refs:partition_update (Results 1 – 16 of 16) sorted by relevance

/system/core/fs_mgr/libsnapshot/
Dsnapshot_metadata_updater.cpp71 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 …]
Dtest_helpers.cpp204 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()
Dsnapshot.cpp3458 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()
Dsnapshot_test.cpp1312 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/
Dpartition_update_generator_android.cc98 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()
Dpartition_writer_factory_android.cc28 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()
Dpartition_update_generator_android_unittest.cc88 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()
Dpartition_writer_factory_chromeos.cc26 const PartitionUpdate& partition_update, in CreatePartitionWriter() argument
32 return std::make_unique<PartitionWriter>(partition_update, in CreatePartitionWriter()
Dpartition_writer.h39 PartitionWriter(const PartitionUpdate& partition_update,
126 const PartitionUpdate& partition_update,
Dvabc_partition_writer.cc80 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()
Dvabc_partition_writer.h45 VABCPartitionWriter(const PartitionUpdate& partition_update,
Dpartition_writer.cc111 const PartitionUpdate& partition_update, in PartitionWriter() argument
116 : partition_update_(partition_update), in PartitionWriter()
Ddelta_performer.h198 const PartitionUpdate& partition_update,
Ddelta_performer.cc806 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()
Ddelta_performer_unittest.cc1117 const PartitionUpdate& partition_update, in CreatePartitionWriter() argument
/system/core/fs_mgr/libsnapshot/include_test/libsnapshot/
Dtest_helpers.h215 void SetSize(PartitionUpdate* partition_update, uint64_t size);
218 uint64_t GetSize(PartitionUpdate* partition_update);