Home
last modified time | relevance | path

Searched refs:cow_writer (Results 1 – 15 of 15) sorted by relevance

/system/update_engine/payload_consumer/
Dcow_writer_file_descriptor_unittest.cc61 auto cow_writer = GetCowWriter(); in GetCowFd() local
62 return CowWriterFileDescriptor{std::move(cow_writer)}; in GetCowFd()
78 auto cow_writer = GetCowWriter(); in TEST_F() local
79 cow_writer->Initialize(); in TEST_F()
82 ASSERT_TRUE(cow_writer->AddRawBlocks(0, buffer.data(), buffer.size())); in TEST_F()
83 ASSERT_TRUE(cow_writer->AddZeroBlocks(1, 2)); in TEST_F()
84 ASSERT_TRUE(cow_writer->AddCopy(3, 1)); in TEST_F()
86 ASSERT_TRUE(cow_writer->AddLabel(23)); in TEST_F()
88 cow_writer->AddRawBlocks(4, verity_data.data(), verity_data.size())); in TEST_F()
89 ASSERT_TRUE(cow_writer->Finalize()); in TEST_F()
[all …]
Dvabc_partition_writer_unittest.cc100 auto cow_writer = in TEST_F() local
104 EXPECT_CALL(*cow_writer, Initialize()).WillOnce(Return(true)); in TEST_F()
105 EXPECT_CALL(*cow_writer, EmitSequenceData(_, _)) in TEST_F()
108 ON_CALL(*cow_writer, EmitCopy(_, _, _)).WillByDefault(Return(true)); in TEST_F()
109 ON_CALL(*cow_writer, EmitLabel(_)).WillByDefault(Return(true)); in TEST_F()
110 return cow_writer; in TEST_F()
125 auto cow_writer = in TEST_F() local
129 EXPECT_CALL(*cow_writer, Initialize()).WillOnce(Return(true)); in TEST_F()
130 EXPECT_CALL(*cow_writer, EmitSequenceData(_, _)) in TEST_F()
133 ON_CALL(*cow_writer, EmitCopy(_, _, _)).WillByDefault(Return(true)); in TEST_F()
[all …]
Dcow_writer_file_descriptor.cc29 std::unique_ptr<android::snapshot::ISnapshotWriter> cow_writer) in CowWriterFileDescriptor() argument
30 : cow_writer_(std::move(cow_writer)), in CowWriterFileDescriptor()
37 std::unique_ptr<android::snapshot::ISnapshotWriter> cow_writer, in CowWriterFileDescriptor() argument
39 : cow_writer_(std::move(cow_writer)), cow_reader_(std::move(cow_reader)) { in CowWriterFileDescriptor()
Dsnapshot_extent_writer.h32 explicit SnapshotExtentWriter(android::snapshot::ICowWriter* cow_writer) in SnapshotExtentWriter() argument
33 : cow_writer_(cow_writer) {} in SnapshotExtentWriter()
Dxor_extent_writer.h37 android::snapshot::ICowWriter* cow_writer, in XORExtentWriter() argument
43 cow_writer_(cow_writer), in XORExtentWriter()
Dcow_writer_file_descriptor.h32 std::unique_ptr<android::snapshot::ISnapshotWriter> cow_writer);
36 std::unique_ptr<android::snapshot::ISnapshotWriter> cow_writer,
Dvabc_partition_writer.h70 android::snapshot::ICowWriter* cow_writer);
Dvabc_partition_writer.cc206 ICowWriter* cow_writer) { in WriteMergeSequence() argument
255 return cow_writer->AddSequenceData(blocks_merge_order.size(), in WriteMergeSequence()
/system/update_engine/payload_generator/
Dcow_size_estimator.cc45 android::snapshot::CowWriter* cow_writer, in CowDryRun() argument
50 VABCPartitionWriter::WriteMergeSequence(merge_operations, cow_writer); in CowDryRun()
55 cow_writer->AddCopy(op.dst_extent().start_block(), in CowDryRun()
95 CHECK(cow_writer->AddXorBlocks(op.dst_extent().start_block(), in CowDryRun()
105 cow_writer->AddLabel(0); in CowDryRun()
108 cow_writer->AddLabel(0); in CowDryRun()
112 cow_writer->AddZeroBlocks(ext.start_block(), ext.num_blocks()); in CowDryRun()
116 cow_writer->AddLabel(0); in CowDryRun()
131 cow_writer->AddRawBlocks(ext.start_block(), data.data(), data.size()); in CowDryRun()
132 cow_writer->AddLabel(0); in CowDryRun()
[all …]
Dcow_size_estimator.h50 android::snapshot::CowWriter* cow_writer,
/system/update_engine/aosp/
Dcow_converter.cc64 android::snapshot::CowWriter cow_writer{ in ProcessPartition() local
66 TEST_AND_RETURN_FALSE(cow_writer.Initialize(output_fd)); in ProcessPartition()
72 &cow_writer, in ProcessPartition()
75 TEST_AND_RETURN_FALSE(cow_writer.Finalize()); in ProcessPartition()
Ddynamic_partition_control_android.cc1453 auto cow_writer = in OpenCowFd() local
1455 if (cow_writer == nullptr) { in OpenCowFd()
1458 if (!cow_writer->InitializeAppend(kEndOfInstallLabel)) { in OpenCowFd()
1462 auto reader = cow_writer->OpenReader(); in OpenCowFd()
1467 return std::make_unique<CowWriterFileDescriptor>(std::move(cow_writer), in OpenCowFd()
/system/core/fs_mgr/libsnapshot/
DAndroid.bp178 "libsnapshot_cow/cow_writer.cpp",
/system/update_engine/update_engine/
Dupdate_metadata.proto361 // See system/core/fs_mgr/libsnapshot/cow_writer.cpp for available options,
/system/update_engine/
Dupdate_metadata.proto361 // See system/core/fs_mgr/libsnapshot/cow_writer.cpp for available options,