/external/protobuf/src/google/protobuf/compiler/ |
zip_writer.h | 71 class ZipWriter { 73 ZipWriter(io::ZeroCopyOutputStream* raw_output); 74 ~ZipWriter();
|
zip_writer.cc | 135 ZipWriter::ZipWriter(io::ZeroCopyOutputStream* raw_output) 137 ZipWriter::~ZipWriter() {} 139 bool ZipWriter::Write(const string& filename, const string& contents) { 169 bool ZipWriter::WriteDirectory() {
|
command_line_interface.cc | 409 // Create the ZipWriter 411 ZipWriter zip_writer(&stream); [all...] |
/system/core/include/ziparchive/ |
zip_writer.h | 37 * ZipWriter writer(file); 39 * writer.StartEntry("test.txt", ZipWriter::kCompress | ZipWriter::kAlign); 51 class ZipWriter { 69 * Create a ZipWriter that will write into a FILE stream. The file should be opened with 70 * open mode of "wb" or "w+b". ZipWriter does not take ownership of the file stream. The 73 explicit ZipWriter(FILE* f); 76 ZipWriter(ZipWriter&& zipWriter); [all...] |
/system/core/libziparchive/ |
zip_writer.cc | 48 // The ZipWriter is in a bad state. 73 const char* ZipWriter::ErrorCodeString(int32_t error_code) { 85 ZipWriter::ZipWriter(FILE* f) : file_(f), current_offset_(0), state_(State::kWritingZip), 89 ZipWriter::ZipWriter(ZipWriter&& writer) : file_(writer.file_), 99 ZipWriter& ZipWriter::operator=(ZipWriter&& writer) [all...] |
zip_writer_test.cc | 26 struct zipwriter : public ::testing::Test { struct in inherits:::testing::Test 44 TEST_F(zipwriter, WriteUncompressedZipWithOneFile) { 45 ZipWriter writer(file_); 76 TEST_F(zipwriter, WriteUncompressedZipWithMultipleFiles) { 77 ZipWriter writer(file_); 126 TEST_F(zipwriter, WriteUncompressedZipFileWithAlignedFlag) { 127 ZipWriter writer(file_); 129 ASSERT_EQ(0, writer.StartEntry("align.txt", ZipWriter::kAlign32)); 169 TEST_F(zipwriter, WriteUncompressedZipFileWithAlignedFlagAndTime) { 170 ZipWriter writer(file_) [all...] |
/bionic/tests/libs/ |
bionic_tests_zipalign.cpp | 74 ZipWriter writer(zip_dst); 83 flags |= ZipWriter::kCompress; 88 fprintf(stderr, "StartAlignedEntry failed: %s\n", ZipWriter::ErrorCodeString(error)); 97 fprintf(stderr, "WriteBytes failed: %s\n", ZipWriter::ErrorCodeString(error)); 107 fprintf(stderr, "FinishEntry failed: %s\n", ZipWriter::ErrorCodeString(error)); 113 fprintf(stderr, "Finish failed: %s\n", ZipWriter::ErrorCodeString(error));
|
/frameworks/base/tools/aapt2/flatten/ |
Archive.cpp | 97 std::unique_ptr<ZipWriter> mWriter; 105 mWriter = util::make_unique<ZipWriter>(mFile.get()); 116 zipFlags |= ZipWriter::kCompress; 120 zipFlags |= ZipWriter::kAlign32;
|
/frameworks/native/cmds/dumpstate/ |
dumpstate.cpp | 61 static std::unique_ptr<ZipWriter> zip_writer; 599 ZipWriter::kCompress, get_mtime(fd, now)); 602 ZipWriter::ErrorCodeString(err)); 617 MYLOGE("zip_writer->WriteBytes(): %s\n", ZipWriter::ErrorCodeString(err)); 624 MYLOGE("zip_writer->FinishEntry(): %s\n", ZipWriter::ErrorCodeString(err)); 664 int32_t err = zip_writer->StartEntryWithTime(entry_name.c_str(), ZipWriter::kCompress, now); 667 ZipWriter::ErrorCodeString(err)); 674 ZipWriter::ErrorCodeString(err)); 680 MYLOGE("zip_writer->FinishEntry(): %s\n", ZipWriter::ErrorCodeString(err)); [all...] |