Searched refs:writer (Results 1 – 6 of 6) sorted by relevance
/bootable/recovery/tests/unit/ |
D | package_test.cpp | 45 ZipWriter writer(file_ptr); in SetUp() local 47 ASSERT_EQ(0, writer.StartEntry(entry.c_str(), ZipWriter::kCompress)); in SetUp() 48 ASSERT_EQ(0, writer.WriteBytes(entry.c_str(), entry.size())); in SetUp() 49 ASSERT_EQ(0, writer.FinishEntry()); in SetUp() 51 writer.Finish(); in SetUp()
|
D | install_test.cpp | 43 ZipWriter writer(zip_file); in BuildZipArchive() local 45 ASSERT_EQ(0, writer.StartEntry(name.c_str(), compression_type)); in BuildZipArchive() 46 ASSERT_EQ(0, writer.WriteBytes(content.data(), content.size())); in BuildZipArchive() 47 ASSERT_EQ(0, writer.FinishEntry()); in BuildZipArchive() 49 ASSERT_EQ(0, writer.Finish()); in BuildZipArchive()
|
/bootable/recovery/tests/unit/host/ |
D | update_simulator_test.cpp | 55 ZipWriter writer(zip_file); in AddZipEntries() local 57 ASSERT_EQ(0, writer.StartEntry(pair.first.c_str(), 0)); in AddZipEntries() 58 ASSERT_EQ(0, writer.WriteBytes(pair.second.data(), pair.second.size())); in AddZipEntries() 59 ASSERT_EQ(0, writer.FinishEntry()); in AddZipEntries() 61 ASSERT_EQ(0, writer.Finish()); in AddZipEntries()
|
D | imgdiff_test.cpp | 682 ZipWriter* writer) { in construct_store_entry() argument 685 ASSERT_EQ(0, writer->StartEntry(std::get<0>(t).c_str(), 0)); in construct_store_entry() 687 ASSERT_EQ(0, writer->WriteBytes(content.data(), content.size())); in construct_store_entry() 688 ASSERT_EQ(0, writer->FinishEntry()); in construct_store_entry() 693 ZipWriter* writer, const std::string& data) { in construct_deflate_entry() argument 696 ASSERT_EQ(0, writer->StartEntry(std::get<0>(t).c_str(), ZipWriter::kCompress)); in construct_deflate_entry() 697 ASSERT_EQ(0, writer->WriteBytes(data.data() + std::get<1>(t) * 4096, std::get<2>(t) * 4096)); in construct_deflate_entry() 698 ASSERT_EQ(0, writer->FinishEntry()); in construct_deflate_entry()
|
/bootable/recovery/updater/ |
D | blockimg.cpp | 354 std::unique_ptr<RangeSinkWriter> writer; member 368 while (nti->writer == nullptr) { in receive_new_data() 380 size_t write_now = std::min(size, nti->writer->AvailableSpace()); in receive_new_data() 381 if (nti->writer->Write(data, write_now) != write_now) { in receive_new_data() 389 if (nti->writer->Finished()) { in receive_new_data() 393 nti->writer = nullptr; in receive_new_data() 408 while (nti->writer == nullptr) { in receive_brotli_new_data() 421 size_t buffer_size = std::min<size_t>(32768, nti->writer->AvailableSpace()); in receive_brotli_new_data() 445 if (nti->writer->Write(buffer, write_now) != write_now) { in receive_brotli_new_data() 453 if (nti->writer->Finished()) { in receive_brotli_new_data() [all …]
|
/bootable/recovery/fonts/ |
D | OFL.txt | 45 writer or other person who contributed to the Font Software.
|