/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 750 unique_ptr<CodeWriter> writer = local [all...] |
H A D | generate_cpp.cpp | 842 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 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 | 53 bool WriteUint64AsBigEndian(FileWriter* writer, const uint64_t value) { argument 55 TEST_AND_RETURN_FALSE(writer->Write(&value_be, sizeof(value_be))); 190 DirectFileWriter writer; local 191 TEST_AND_RETURN_FALSE_ERRNO(writer.Open(payload_file.c_str(), 194 ScopedFileWriterCloser writer_closer(&writer); 197 TEST_AND_RETURN_FALSE_ERRNO(writer.Write(kDeltaMagic, sizeof(kDeltaMagic))); 200 TEST_AND_RETURN_FALSE(WriteUint64AsBigEndian(&writer, major_version_)); 203 TEST_AND_RETURN_FALSE(WriteUint64AsBigEndian(&writer, 212 TEST_AND_RETURN_FALSE_ERRNO(writer.Write(&metadata_signature_size, 223 writer 283 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 [all...] |
H A D | cmd_record.cpp | 633 std::unique_ptr<RecordFileWriter> writer = local 635 if (writer == nullptr) { 639 if (!writer->WriteAttrSection(event_selection_set_.GetEventAttrWithId())) { 642 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_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 | 91 void SetTestFileWriter(FileWriter* writer) { argument 92 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); 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); 454 TestDirectFileWriter writer; local [all...] |
H A D | delta_performer.cc | 912 std::unique_ptr<ExtentWriter> writer = local 917 writer.reset(new BzipExtentWriter(std::move(writer))); 919 writer.reset(new XzExtentWriter(std::move(writer))); 928 TEST_AND_RETURN_FALSE(writer->Init(target_fd_, extents, block_size_)); 929 TEST_AND_RETURN_FALSE(writer->Write(buffer_.data(), operation.data_length())); 930 TEST_AND_RETURN_FALSE(writer->End()); 1297 DirectExtentWriter writer; local 1298 TEST_AND_RETURN_FALSE(writer [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 | 237 struct dt_image_writer *writer = malloc(sizeof(struct dt_image_writer)); local 238 if (!writer) goto error; 239 writer->past_filenames = calloc(entry_count, sizeof(*writer->past_filenames)); 240 if (!writer->past_filenames) goto error; 241 writer->past_dt_offsets = 242 calloc(entry_count, sizeof(*writer->past_dt_offsets)); 243 if (!writer->past_dt_offsets) goto error; 244 writer->img_fp = img_fp; 245 init_dt_global_options(&writer 284 set_global_options(struct dt_image_writer *writer, const char *option, const char *value) argument 297 set_entry_options(struct dt_image_writer *writer, const char *option, const char *value) argument 302 flush_entry_to_img(struct dt_image_writer *writer) argument 340 dt_image_writer_add_entry(struct dt_image_writer *writer, const char *fdt_filename) argument 359 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 | 120 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 D | zip_writer.cc | 99 ZipWriter::ZipWriter(ZipWriter&& writer) : file_(writer.file_), argument 100 seekable_(writer.seekable_), 101 current_offset_(writer.current_offset_), 102 state_(writer.state_), 103 files_(std::move(writer.files_)), 104 z_stream_(std::move(writer.z_stream_)), 105 buffer_(std::move(writer.buffer_)){ 106 writer.file_ = nullptr; 107 writer 110 operator =(ZipWriter&& writer) argument [all...] |
H A D | zip_archive.cc | 904 Writer* writer, uint64_t* crc_out) { 977 if (!writer->Append(&write_buf[0], write_size)) { 1001 static int32_t CopyEntryToWriter(MappedZipFile& mapped_zip, const ZipEntry* entry, Writer* writer, argument 1020 if (!writer->Append(&buf[0], block_size)) { 1033 ZipEntry* entry, Writer* writer) { 1047 return_value = CopyEntryToWriter(archive->mapped_zip, entry, writer, &crc); 1049 return_value = InflateEntryToWriter(archive->mapped_zip, entry, writer, &crc); 1071 std::unique_ptr<Writer> writer(new MemoryWriter(begin, size)); 1072 return ExtractToWriter(handle, entry, writer.get()); 1077 std::unique_ptr<Writer> writer(FileWrite 903 InflateEntryToWriter(MappedZipFile& mapped_zip, const ZipEntry* entry, Writer* writer, uint64_t* crc_out) argument 1032 ExtractToWriter(ZipArchiveHandle handle, ZipEntry* entry, Writer* writer) argument [all...] |