Searched defs:writer (Results 1 - 16 of 16) sorted by relevance

/system/tools/aidl/
H A Dast_java_unittest.cpp56 CodeWriterPtr writer = GetStringWriter(&actual_output); local
57 a_class.Write(writer.get());
H A Dast_cpp_unittest.cpp97 CodeWriterPtr writer = GetStringWriter(&actual_output); local
98 node.Write(writer.get());
H A Daidl.cpp244 CodeWriter* writer) {
246 writer->Write("%s : \\\n", output_file.c_str());
247 writer->Write(" %s", Join(aidl_sources, " \\\n ").c_str());
248 writer->Write("\n\n");
253 writer->Write("%s :\n", src.c_str());
265 CodeWriterPtr writer = io_delegate.GetCodeWriter(dep_file_name); local
266 if (!writer) {
278 write_common_dep_file(output_file_name, source_aidl, writer.get());
294 CodeWriterPtr writer = io_delegate.GetCodeWriter(dep_file_name); local
295 if (!writer) {
242 write_common_dep_file(const string& output_file, const vector<string>& aidl_sources, CodeWriter* writer) argument
704 unique_ptr<CodeWriter> writer = local
[all...]
H A Dgenerate_cpp.cpp791 unique_ptr<CodeWriter> writer = io_delegate.GetCodeWriter( local
793 interface_src->Write(writer.get());
794 client_src->Write(writer.get());
795 server_src->Write(writer.get());
797 const bool success = writer->Close();
/system/update_engine/payload_generator/
H A Dinplace_generator.h64 Block() : reader(Vertex::kInvalidIndex), writer(Vertex::kInvalidIndex) {}
66 Vertex::Index writer; member in struct:chromeos_update_engine::InplaceGenerator::Block
176 // The |blocks| vector contains a reader and writer for each block on the
177 // filesystem that's being in-place updated. We populate the reader/writer
180 // in |blocks| and set the reader/writer field to the vertex passed.
190 // This method will also register the vertex as the reader or writer of the
H A Dpayload_file.cc53 bool WriteUint64AsBigEndian(FileWriter* writer, const uint64_t value) { argument
55 TEST_AND_RETURN_FALSE(writer->Write(&value_be, sizeof(value_be)));
189 DirectFileWriter writer; local
190 TEST_AND_RETURN_FALSE_ERRNO(writer.Open(payload_file.c_str(),
193 ScopedFileWriterCloser writer_closer(&writer);
196 TEST_AND_RETURN_FALSE(writer.Write(kDeltaMagic, sizeof(kDeltaMagic)));
199 TEST_AND_RETURN_FALSE(WriteUint64AsBigEndian(&writer, major_version_));
202 TEST_AND_RETURN_FALSE(WriteUint64AsBigEndian(&writer,
211 TEST_AND_RETURN_FALSE(writer.Write(&metadata_signature_size,
221 TEST_AND_RETURN_FALSE(writer
282 DirectFileWriter writer; local
[all...]
/system/update_engine/payload_consumer/
H A Dfile_writer.h64 // Direct file writer is probably the simplest FileWriter implementation.
88 explicit ScopedFileWriterCloser(FileWriter* writer) : writer_(writer) {} argument
H A Ddownload_action.h93 void SetTestFileWriter(FileWriter* writer) { argument
94 writer_ = writer;
H A Ddownload_action_unittest.cc137 TestDirectFileWriter writer; local
139 0, writer.Open(output_temp_file.path().c_str(), O_WRONLY | O_CREAT, 0));
140 writer.set_fail_write(fail_write);
169 download_action.SetTestFileWriter(&writer);
269 DirectFileWriter writer; local
270 EXPECT_EQ(0, writer.Open(temp_file.path().c_str(), O_WRONLY | O_CREAT, 0));
284 download_action.SetTestFileWriter(&writer);
368 DirectFileWriter writer; local
369 EXPECT_EQ(0, writer.Open("/dev/null", O_WRONLY | O_CREAT, 0));
384 download_action.SetTestFileWriter(&writer);
451 TestDirectFileWriter writer; local
[all...]
H A Ddelta_performer.cc868 std::unique_ptr<ExtentWriter> writer = local
873 writer.reset(new BzipExtentWriter(std::move(writer)));
875 writer.reset(new XzExtentWriter(std::move(writer)));
884 TEST_AND_RETURN_FALSE(writer->Init(target_fd_, extents, block_size_));
885 TEST_AND_RETURN_FALSE(writer->Write(buffer_.data(), operation.data_length()));
886 TEST_AND_RETURN_FALSE(writer->End());
/system/extras/simpleperf/
H A Drecord_file_test.cpp55 std::unique_ptr<RecordFileWriter> writer = RecordFileWriter::CreateInstance(tmpfile_.path); local
56 ASSERT_TRUE(writer != nullptr);
60 ASSERT_TRUE(writer->WriteAttrSection(attr_ids_));
65 ASSERT_TRUE(writer->WriteData(mmap_record.BinaryFormat()));
68 ASSERT_TRUE(writer->WriteFeatureHeader(1));
75 ASSERT_TRUE(writer->WriteBuildIdFeature({build_id_record}));
76 ASSERT_TRUE(writer->Close());
103 std::unique_ptr<RecordFileWriter> writer = RecordFileWriter::CreateInstance(tmpfile_.path); local
104 ASSERT_TRUE(writer != nullptr);
110 ASSERT_TRUE(writer
139 std::unique_ptr<RecordFileWriter> writer = RecordFileWriter::CreateInstance(tmpfile_.path); local
[all...]
H A Dcmd_record.cpp508 std::unique_ptr<RecordFileWriter> writer = RecordFileWriter::CreateInstance(filename); local
509 if (writer == nullptr) {
526 if (!writer->WriteAttrSection(attr_ids)) {
529 return writer;
/system/core/adb/
H A Dfdevent_test.cpp120 int writer = fd_pair1[1]; local
130 ASSERT_TRUE(WriteFdExactly(writer, read_buffer.c_str(), read_buffer.size()));
136 ASSERT_EQ(0, adb_close(writer));
/system/core/libziparchive/
H A Dzip_writer.cc89 ZipWriter::ZipWriter(ZipWriter&& writer) : file_(writer.file_), argument
90 current_offset_(writer.current_offset_),
91 state_(writer.state_),
92 files_(std::move(writer.files_)),
93 z_stream_(std::move(writer.z_stream_)),
94 buffer_(std::move(writer.buffer_)){
95 writer.file_ = nullptr;
96 writer.state_ = State::kError;
99 ZipWriter& ZipWriter::operator=(ZipWriter&& writer) { argument
[all...]
H A Dzip_archive.cc883 Writer* writer, uint64_t* crc_out) {
956 if (!writer->Append(&write_buf[0], write_size)) {
980 static int32_t CopyEntryToWriter(int fd, const ZipEntry* entry, Writer* writer, argument
999 if (!writer->Append(&buf[0], block_size)) {
1012 ZipEntry* entry, Writer* writer) {
1026 return_value = CopyEntryToWriter(archive->fd, entry, writer, &crc);
1028 return_value = InflateEntryToWriter(archive->fd, entry, writer, &crc);
1050 std::unique_ptr<Writer> writer(new MemoryWriter(begin, size));
1051 return ExtractToWriter(handle, entry, writer.get());
1056 std::unique_ptr<Writer> writer(FileWrite
882 InflateEntryToWriter(int fd, const ZipEntry* entry, Writer* writer, uint64_t* crc_out) argument
1011 ExtractToWriter(ZipArchiveHandle handle, ZipEntry* entry, Writer* writer) argument
[all...]
/system/update_engine/common/
H A Dutils.cc183 DirectFileWriter writer; local
184 TEST_AND_RETURN_FALSE_ERRNO(0 == writer.Open(path,
187 ScopedFileWriterCloser closer(&writer);
188 TEST_AND_RETURN_FALSE_ERRNO(writer.Write(data, data_len));

Completed in 293 milliseconds