/system/tools/aidl/ |
H A D | ast_java_unittest.cpp | 56 CodeWriterPtr writer = GetStringWriter(&actual_output); local 57 a_class.Write(writer.get());
|
H A D | ast_cpp_unittest.cpp | 98 CodeWriterPtr writer = GetStringWriter(&actual_output); local 99 node.Write(writer.get());
|
H A D | aidl.cpp | 250 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 755 unique_ptr<CodeWriter> writer = local [all...] |
H A D | generate_cpp.cpp | 870 unique_ptr<CodeWriter> writer = io_delegate.GetCodeWriter( local 872 interface_src->Write(writer.get()); 873 client_src->Write(writer.get()); 874 server_src->Write(writer.get()); 876 const bool success = writer->Close();
|
/system/update_engine/payload_generator/ |
H A D | inplace_generator.h | 64 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 D | payload_file.cc | 56 bool WriteUint64AsBigEndian(FileWriter* writer, const uint64_t value) { argument 58 TEST_AND_RETURN_FALSE(writer->Write(&value_be, sizeof(value_be))); 194 DirectFileWriter writer; local 195 TEST_AND_RETURN_FALSE_ERRNO(writer.Open(payload_file.c_str(), 198 ScopedFileWriterCloser writer_closer(&writer); 201 TEST_AND_RETURN_FALSE_ERRNO(writer.Write(kDeltaMagic, sizeof(kDeltaMagic))); 204 TEST_AND_RETURN_FALSE(WriteUint64AsBigEndian(&writer, major_version_)); 207 TEST_AND_RETURN_FALSE(WriteUint64AsBigEndian(&writer, 216 TEST_AND_RETURN_FALSE_ERRNO(writer.Write(&metadata_signature_size, 227 writer 287 DirectFileWriter writer; local [all...] |
/system/extras/simpleperf/ |
H A D | record_file_test.cpp | 56 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 D | cmd_record.cpp | 871 std::unique_ptr<RecordFileWriter> writer = local 873 if (writer == nullptr) { 877 if (!writer->WriteAttrSection(event_selection_set_.GetEventAttrWithId())) { 880 return writer;
|
/system/nvram/messages/ |
H A D | message_codec.cpp | 30 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 D | file_descriptor_utils.cc | 40 DirectExtentWriter* writer, 61 if (writer) { 63 writer->Write(buf.data(), read_blocks * block_size)); 85 DirectExtentWriter writer; local 86 TEST_AND_RETURN_FALSE(writer.Init(target, tgt_extents, block_size)); 90 CommonHashExtents(source, src_extents, &writer, block_size, hash_out)); 91 TEST_AND_RETURN_FALSE(writer.End()); 38 CommonHashExtents(FileDescriptorPtr source, const RepeatedPtrField<Extent>& src_extents, DirectExtentWriter* writer, uint64_t block_size, brillo::Blob* hash_out) argument
|
H A D | file_writer.h | 64 // Direct file writer is probably the simplest FileWriter implementation. 88 explicit ScopedFileWriterCloser(FileWriter* writer) : writer_(writer) {} argument
|
H A D | download_action.h | 93 void SetTestFileWriter(FileWriter* writer) { argument 94 writer_ = writer;
|
H A D | download_action_unittest.cc | 137 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); 170 download_action.SetTestFileWriter(&writer); 357 DirectFileWriter writer; local 358 EXPECT_EQ(0, writer.Open(temp_file.path().c_str(), O_WRONLY | O_CREAT, 0)); 374 download_action.SetTestFileWriter(&writer); 458 DirectFileWriter writer; local 459 EXPECT_EQ(0, writer.Open("/dev/null", O_WRONLY | O_CREAT, 0)); 476 download_action.SetTestFileWriter(&writer); 546 TestDirectFileWriter writer; local [all...] |
H A D | delta_performer.cc | 873 std::unique_ptr<ExtentWriter> writer = std::make_unique<ZeroPadExtentWriter>( local 877 writer.reset(new BzipExtentWriter(std::move(writer))); 879 writer.reset(new XzExtentWriter(std::move(writer))); 883 writer->Init(target_fd_, operation.dst_extents(), block_size_)); 884 TEST_AND_RETURN_FALSE(writer->Write(buffer_.data(), operation.data_length())); 885 TEST_AND_RETURN_FALSE(writer->End()); 1113 BsdiffExtentFile(std::unique_ptr<ExtentWriter> writer, size_t size) argument 1114 : BsdiffExtentFile(nullptr, std::move(writer), siz 1157 BsdiffExtentFile(std::unique_ptr<ExtentReader> reader, std::unique_ptr<ExtentWriter> writer, size_t size) argument 1201 auto writer = std::make_unique<DirectExtentWriter>(); local 1227 PuffinExtentStream(std::unique_ptr<ExtentWriter> writer, uint64_t size) argument 1276 PuffinExtentStream(std::unique_ptr<ExtentReader> reader, std::unique_ptr<ExtentWriter> writer, uint64_t size) argument 1318 auto writer = std::make_unique<DirectExtentWriter>(); local [all...] |
/system/libufdt/utils/src/ |
H A D | mkdtimg_create.c | 58 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 D | mkdtimg_cfg_create.c | 75 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 D | mkdtimg_core.c | 244 struct dt_image_writer *writer = NULL; local 247 writer = malloc(sizeof(struct dt_image_writer)); 248 if (!writer) goto error; 253 writer->img_fp = img_fp; 254 init_dt_global_options(&writer->global_options); 255 init_dt_options(&writer->entry_options); 256 writer->entry_filename[0] = '\0'; 257 writer->entry_count = entry_count; 258 writer->entry_offset = sizeof(struct dt_table_header); 259 writer 296 set_global_options(struct dt_image_writer *writer, const char *option, const char *value) argument 311 set_entry_options(struct dt_image_writer *writer, const char *option, const char *value) argument 316 search_fdt_info( struct dt_image_writer *writer, const char *filename) argument 327 add_fdt_info( struct dt_image_writer *writer, const char *filename, uint32_t dt_offset) argument 340 flush_entry_to_img(struct dt_image_writer *writer) argument 363 dt_image_writer_add_entry(struct dt_image_writer *writer, const char *fdt_filename) argument 382 dt_image_writer_end(struct dt_image_writer *writer) argument [all...] |
/system/nvram/messages/include/nvram/messages/ |
H A D | proto.hpp | 107 // * |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 D | fdevent_test.cpp | 121 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/timezone/tzlookup_generator/src/main/java/com/android/libcore/timezone/tzlookup/ |
H A D | TzLookupFile.java | 90 StringWriter writer = new StringWriter(); 91 writeRaw(timeZones, writer); 92 String rawXml = writer.getBuffer().toString(); 133 static void writeXml(TimeZones timeZones, XMLStreamWriter writer) argument 135 writer.writeStartElement(TIMEZONES_ELEMENT); 136 writer.writeAttribute(IANA_VERSION_ATTRIBUTE, timeZones.ianaVersion); 137 CountryZones.writeXml(timeZones.countryZones, writer); 138 writer.writeEndElement(); 149 static void writeXml(CountryZones countryZones, XMLStreamWriter writer) argument 151 writer 180 writeXml(Country country, XMLStreamWriter writer) argument 214 writeXml(TimeZoneMapping timeZoneId, XMLStreamWriter writer) argument [all...] |
/system/core/libziparchive/ |
H A D | zip_writer.cc | 100 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 D | zip_archive_test.cc | 747 VectorWriter writer; local 751 zip_archive::Inflate(reader, compressed_length, uncompressed_length, &writer, &crc_out); 753 ASSERT_EQ(kATxtContents, writer.GetOutput()); 758 VectorWriter writer; local 760 zip_archive::Inflate(reader, compressed_length, uncompressed_length, &writer, nullptr); 762 ASSERT_EQ(kATxtContents, writer.GetOutput()); 766 BadWriter writer; local 768 zip_archive::Inflate(reader, compressed_length, uncompressed_length, &writer, nullptr); 774 VectorWriter writer; local 776 zip_archive::Inflate(reader, compressed_length, uncompressed_length, &writer, nullpt [all...] |
H A D | zip_archive.cc | 903 const uint32_t uncompressed_length, Writer* writer, uint64_t* crc_out) { 975 if (!writer->Append(&write_buf[0], write_size)) { 1009 zip_archive::Writer* writer, uint64_t* crc_out) { 1012 return zip_archive::Inflate(reader, entry->compressed_length, entry->uncompressed_length, writer, 1017 zip_archive::Writer* writer, uint64_t* crc_out) { 1038 if (!writer->Append(&buf[0], block_size)) { 1050 int32_t ExtractToWriter(ZipArchiveHandle handle, ZipEntry* entry, zip_archive::Writer* writer) { argument 1058 return_value = CopyEntryToWriter(archive->mapped_zip, entry, writer, &crc); 1060 return_value = InflateEntryToWriter(archive->mapped_zip, entry, writer, &crc); 1080 MemoryWriter writer(begi 902 Inflate(const Reader& reader, const uint32_t compressed_length, const uint32_t uncompressed_length, Writer* writer, uint64_t* crc_out) argument 1008 InflateEntryToWriter(MappedZipFile& mapped_zip, const ZipEntry* entry, zip_archive::Writer* writer, uint64_t* crc_out) argument 1016 CopyEntryToWriter(MappedZipFile& mapped_zip, const ZipEntry* entry, zip_archive::Writer* writer, uint64_t* crc_out) argument 1085 auto writer = FileWriter::Create(fd, entry); local [all...] |