Searched defs:writer (Results 1 - 20 of 20) 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.cpp98 CodeWriterPtr writer = GetStringWriter(&actual_output); local
99 node.Write(writer.get());
H A Daidl.cpp250 CodeWriter* writer,
253 writer->Write("%s : \\\n", output_file.c_str());
254 writer->Write(" %s", Join(aidl_sources, " \\\n ").c_str());
255 writer->Write("\n");
258 writer->Write("\n");
262 writer->Write("%s :\n", src.c_str());
275 CodeWriterPtr writer = io_delegate.GetCodeWriter(dep_file_name); local
276 if (!writer) {
288 write_common_dep_file(output_file_name, source_aidl, writer.get(),
305 CodeWriterPtr writer local
248 write_common_dep_file(const string& output_file, const vector<string>& aidl_sources, CodeWriter* writer, const bool ninja) argument
750 unique_ptr<CodeWriter> writer = local
[all...]
H A Dgenerate_cpp.cpp842 unique_ptr<CodeWriter> writer = io_delegate.GetCodeWriter( local
844 interface_src->Write(writer.get());
845 client_src->Write(writer.get());
846 server_src->Write(writer.get());
848 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)));
191 DirectFileWriter writer; local
192 TEST_AND_RETURN_FALSE_ERRNO(writer.Open(payload_file.c_str(),
195 ScopedFileWriterCloser writer_closer(&writer);
198 TEST_AND_RETURN_FALSE_ERRNO(writer.Write(kDeltaMagic, sizeof(kDeltaMagic)));
201 TEST_AND_RETURN_FALSE(WriteUint64AsBigEndian(&writer, major_version_));
204 TEST_AND_RETURN_FALSE(WriteUint64AsBigEndian(&writer,
213 TEST_AND_RETURN_FALSE_ERRNO(writer.Write(&metadata_signature_size,
224 writer
284 DirectFileWriter writer; local
[all...]
/system/extras/simpleperf/
H A Drecord_file_test.cpp56 std::unique_ptr<RecordFileWriter> writer = RecordFileWriter::CreateInstance(tmpfile_.path); local
57 ASSERT_TRUE(writer != nullptr);
61 ASSERT_TRUE(writer->WriteAttrSection(attr_ids_));
66 ASSERT_TRUE(writer->WriteRecord(mmap_record));
69 ASSERT_TRUE(writer->BeginWriteFeatures(1));
77 ASSERT_TRUE(writer->WriteBuildIdFeature(build_id_records));
78 ASSERT_TRUE(writer->EndWriteFeatures());
79 ASSERT_TRUE(writer->Close());
104 std::unique_ptr<RecordFileWriter> writer = RecordFileWriter::CreateInstance(tmpfile_.path); local
105 ASSERT_TRUE(writer !
139 std::unique_ptr<RecordFileWriter> writer = RecordFileWriter::CreateInstance(tmpfile_.path); local
163 std::unique_ptr<RecordFileWriter> writer = RecordFileWriter::CreateInstance(tmpfile_.path); local
[all...]
H A Dcmd_record.cpp705 std::unique_ptr<RecordFileWriter> writer = local
707 if (writer == nullptr) {
711 if (!writer->WriteAttrSection(event_selection_set_.GetEventAttrWithId())) {
714 return writer;
/system/nvram/messages/
H A Dmessage_codec.cpp30 ProtoWriter* writer,
34 return encoder.Encode(writer);
39 ProtoWriter writer(&counting_stream);
40 return EncodeData(&writer) ? counting_stream.bytes_written() : 0;
43 bool MessageEncoderBase::Encode(ProtoWriter* writer) { argument
54 // * Reserve bytes in |writer| for the encoded size. Once |Encode()|
67 return writer->WriteLengthHeader(GetSize()) && EncodeData(writer);
70 bool MessageEncoderBase::EncodeData(ProtoWriter* writer) { argument
73 writer
29 Encode(const void* object, ProtoWriter* writer, const FieldDescriptor* descriptors, size_t num_descriptors) argument
[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.h92 void SetTestFileWriter(FileWriter* writer) { argument
93 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));
285 download_action.SetTestFileWriter(&writer);
369 DirectFileWriter writer; local
370 EXPECT_EQ(0, writer.Open("/dev/null", O_WRONLY | O_CREAT, 0));
386 download_action.SetTestFileWriter(&writer);
456 TestDirectFileWriter writer; local
[all...]
H A Ddelta_performer.cc920 std::unique_ptr<ExtentWriter> writer = local
925 writer.reset(new BzipExtentWriter(std::move(writer)));
927 writer.reset(new XzExtentWriter(std::move(writer)));
936 TEST_AND_RETURN_FALSE(writer->Init(target_fd_, extents, block_size_));
937 TEST_AND_RETURN_FALSE(writer->Write(buffer_.data(), operation.data_length()));
938 TEST_AND_RETURN_FALSE(writer->End());
/system/libufdt/utils/src/
H A Dmkdtimg_create.c58 struct dt_image_writer *writer = dt_image_writer_start(img_fp, entry_count); local
72 if (dt_image_writer_add_entry(writer, arg) != 0) {
80 set_entry_options(writer, option, value) :
81 set_global_options(writer, option, value);
88 if (dt_image_writer_end(writer) != 0) {
H A Dmkdtimg_cfg_create.c75 struct dt_image_writer *writer = dt_image_writer_start(img_fp, entry_count); local
91 if (dt_image_writer_add_entry(writer, trimmed) != 0) {
105 set_entry_options(writer, option, value) :
106 set_global_options(writer, option, value);
113 if (dt_image_writer_end(writer) != 0) {
H A Dmkdtimg_core.c241 struct dt_image_writer *writer = NULL; local
244 writer = malloc(sizeof(struct dt_image_writer));
245 if (!writer) goto error;
250 writer->img_fp = img_fp;
251 init_dt_global_options(&writer->global_options);
252 init_dt_options(&writer->entry_options);
253 writer->entry_filename[0] = '\0';
254 writer->entry_count = entry_count;
255 writer->entry_offset = sizeof(struct dt_table_header);
256 writer
293 set_global_options(struct dt_image_writer *writer, const char *option, const char *value) argument
306 set_entry_options(struct dt_image_writer *writer, const char *option, const char *value) argument
311 search_fdt_info( struct dt_image_writer *writer, const char *filename) argument
322 add_fdt_info( struct dt_image_writer *writer, const char *filename, uint32_t dt_offset) argument
335 flush_entry_to_img(struct dt_image_writer *writer) argument
358 dt_image_writer_add_entry(struct dt_image_writer *writer, const char *fdt_filename) argument
377 dt_image_writer_end(struct dt_image_writer *writer) argument
[all...]
/system/nvram/messages/include/nvram/messages/
H A Dproto.hpp107 // * |static bool Encode(const Type& object, ProtoWriter* writer)| writes the
108 // encoded form of |object| to |writer|.
134 NVRAM_NOINLINE bool EncodeField(const Type& value, ProtoWriter* writer) { argument
135 return Codec::Encode(value, writer);
153 static bool Encode(const Blob& blob, ProtoWriter* writer) { argument
154 return writer->WriteLengthDelimited(blob.data(), blob.size());
189 static bool Encode(const Type& value, ProtoWriter* writer) { argument
190 return writer->WriteVarint(static_cast<uint64_t>(value));
209 static bool Encode(const Vector<ElementType>& vector, ProtoWriter* writer) { argument
211 if (!EncodeField<ElementCodec>(elem, writer)) {
230 Encode(const Optional<ValueType>& value, ProtoWriter* writer) argument
317 Encode(const TaggedUnionType& object, ProtoWriter* writer) argument
336 EncodeMember(const void* object, ProtoWriter* writer) argument
395 Encode(const StructType& object, ProtoWriter* writer) argument
436 Encode(const StructType& object, ProtoWriter* writer) argument
[all...]
/system/core/adb/
H A Dfdevent_test.cpp120 int writer = fd_pair1[1]; local
129 ASSERT_TRUE(WriteFdExactly(writer, read_buffer.c_str(), read_buffer.size()));
135 ASSERT_EQ(0, adb_close(writer));
/system/core/libziparchive/
H A Dzip_writer.cc100 ZipWriter::ZipWriter(ZipWriter&& writer) argument
101 : file_(writer.file_),
102 seekable_(writer.seekable_),
103 current_offset_(writer.current_offset_),
104 state_(writer.state_),
105 files_(std::move(writer.files_)),
106 z_stream_(std::move(writer.z_stream_)),
107 buffer_(std::move(writer.buffer_)) {
108 writer.file_ = nullptr;
109 writer
112 operator =(ZipWriter&& writer) argument
[all...]
H A Dzip_archive.cc869 Writer* writer, uint64_t* crc_out) {
940 if (!writer->Append(&write_buf[0], write_size)) {
971 static int32_t CopyEntryToWriter(MappedZipFile& mapped_zip, const ZipEntry* entry, Writer* writer, argument
990 if (!writer->Append(&buf[0], block_size)) {
1002 int32_t ExtractToWriter(ZipArchiveHandle handle, ZipEntry* entry, Writer* writer) { argument
1016 return_value = CopyEntryToWriter(archive->mapped_zip, entry, writer, &crc);
1018 return_value = InflateEntryToWriter(archive->mapped_zip, entry, writer, &crc);
1038 std::unique_ptr<Writer> writer(new MemoryWriter(begin, size));
1039 return ExtractToWriter(handle, entry, writer.get());
1043 std::unique_ptr<Writer> writer(FileWrite
868 InflateEntryToWriter(MappedZipFile& mapped_zip, const ZipEntry* entry, Writer* writer, uint64_t* crc_out) argument
[all...]

Completed in 312 milliseconds