Home
last modified time | relevance | path

Searched refs:writer (Results 1 – 25 of 1927) sorted by relevance

12345678910>>...78

/external/smali/baksmali/src/main/java/org/jf/baksmali/Adaptors/Format/
DInstructionMethodItem.java84 private String writeInvalidItemIndex(InvalidItemIndex ex, int type, IndentingWriter writer) in writeInvalidItemIndex() argument
86 writer.write("#"); in writeInvalidItemIndex()
87 writer.write(ex.getMessage()); in writeInvalidItemIndex()
88 writer.write("\n"); in writeInvalidItemIndex()
93 void writeTo(IndentingWriter writer) throws IOException; in writeTo() argument
97 public boolean writeTo(IndentingWriter writer) throws IOException { in writeTo() argument
109 writer.write("#was invalid verification error type: "); in writeTo()
110 writer.printSignedIntAsDec(verificationError); in writeTo()
111 writer.write("\n"); in writeTo()
139 writer); in writeTo()
[all …]
/external/grpc-grpc/src/core/lib/json/
Djson_writer.cc25 static void json_writer_output_char(grpc_json_writer* writer, char c) { in json_writer_output_char() argument
26 writer->vtable->output_char(writer->userdata, c); in json_writer_output_char()
29 static void json_writer_output_string(grpc_json_writer* writer, in json_writer_output_string() argument
31 writer->vtable->output_string(writer->userdata, str); in json_writer_output_string()
34 static void json_writer_output_string_with_len(grpc_json_writer* writer, in json_writer_output_string_with_len() argument
36 writer->vtable->output_string_with_len(writer->userdata, str, len); in json_writer_output_string_with_len()
39 void grpc_json_writer_init(grpc_json_writer* writer, int indent, in grpc_json_writer_init() argument
41 memset(writer, 0, sizeof(*writer)); in grpc_json_writer_init()
42 writer->container_empty = 1; in grpc_json_writer_init()
43 writer->indent = indent; in grpc_json_writer_init()
[all …]
/external/perfetto/src/base/
Dstring_writer_unittest.cc28 base::StringWriter writer(buffer, sizeof(buffer)); in TEST() local
29 writer.AppendChar('0'); in TEST()
30 ASSERT_EQ(writer.GetStringView().ToStdString(), "0"); in TEST()
33 base::StringWriter writer(buffer, sizeof(buffer)); in TEST() local
34 writer.AppendInt(132545); in TEST()
35 ASSERT_EQ(writer.GetStringView().ToStdString(), "132545"); in TEST()
38 base::StringWriter writer(buffer, sizeof(buffer)); in TEST() local
39 writer.AppendUnsignedInt(523); in TEST()
40 ASSERT_EQ(writer.GetStringView().ToStdString(), "523"); in TEST()
43 base::StringWriter writer(buffer, sizeof(buffer)); in TEST() local
[all …]
/external/oj-libjdwp/make/src/classes/build/tools/jdwpgen/
DOutNode.java46 void genProcessMethod(PrintWriter writer, int depth) { in genProcessMethod() argument
47 writer.println(); in genProcessMethod()
48 indent(writer, depth); in genProcessMethod()
49 writer.print( in genProcessMethod()
53 writer.println(", "); in genProcessMethod()
54 indent(writer, depth+5); in genProcessMethod()
55 writer.print(tn.javaParam()); in genProcessMethod()
57 writer.println(")"); in genProcessMethod()
58 indent(writer, depth+6); in genProcessMethod()
59 writer.println("throws JDWPException {"); in genProcessMethod()
[all …]
DAbstractGroupNode.java32 void document(PrintWriter writer) { in document() argument
34 node.document(writer); in document()
42 void genJava(PrintWriter writer, int depth) { in genJava() argument
43 genJavaClass(writer, depth); in genJava()
46 void genJavaWriteMethod(PrintWriter writer, int depth) { in genJavaWriteMethod() argument
47 genJavaWriteMethod(writer, depth, "private "); in genJavaWriteMethod()
50 void genJavaWriteMethod(PrintWriter writer, int depth, String modifier) { in genJavaWriteMethod() argument
51 writer.println(); in genJavaWriteMethod()
52 indent(writer, depth); in genJavaWriteMethod()
53 writer.print(modifier); in genJavaWriteMethod()
[all …]
DAltNode.java48 void document(PrintWriter writer) { in document() argument
49 docRowStart(writer); in document()
50 writer.println("<td colspan=" + in document()
52 writer.println("Case " + nameNode.name + " - if <i>" + in document()
55 writer.println("<td>" + comment() + "&nbsp;"); in document()
57 super.document(writer); in document()
65 void genJavaClassSpecifics(PrintWriter writer, int depth) { in genJavaClassSpecifics() argument
66 indent(writer, depth); in genJavaClassSpecifics()
67 writer.print("static final " + select.typeNode.javaType()); in genJavaClassSpecifics()
68 writer.println(" ALT_ID = " + nameNode.value() + ";"); in genJavaClassSpecifics()
[all …]
DSelectNode.java68 void document(PrintWriter writer) { in document() argument
69 typeNode.document(writer); in document()
70 super.document(writer); in document()
87 void genJavaClassSpecifics(PrintWriter writer, int depth) { in genJavaClassSpecifics() argument
88 indent(writer, depth); in genJavaClassSpecifics()
89 writer.println("abstract static class " + commonBaseClass() + " {"); in genJavaClassSpecifics()
91 indent(writer, depth+1); in genJavaClassSpecifics()
92 writer.println("abstract void write(PacketStream ps);"); in genJavaClassSpecifics()
94 indent(writer, depth+1); in genJavaClassSpecifics()
95 writer.println("abstract " + typeNode.javaParam() + "();"); in genJavaClassSpecifics()
[all …]
/external/libxml2/
Dxmlwriter.c108 static int xmlTextWriterOutputNSDecl(xmlTextWriterPtr writer);
120 static int xmlTextWriterWriteIndent(xmlTextWriterPtr writer);
122 xmlTextWriterHandleStateDependencies(xmlTextWriterPtr writer,
477 xmlFreeTextWriter(xmlTextWriterPtr writer) in xmlFreeTextWriter() argument
479 if (writer == NULL) in xmlFreeTextWriter()
482 if (writer->out != NULL) in xmlFreeTextWriter()
483 xmlOutputBufferClose(writer->out); in xmlFreeTextWriter()
485 if (writer->nodes != NULL) in xmlFreeTextWriter()
486 xmlListDelete(writer->nodes); in xmlFreeTextWriter()
488 if (writer->nsstack != NULL) in xmlFreeTextWriter()
[all …]
/external/flatbuffers/src/
Didl_gen_kotlin.cpp227 void GenEnum(EnumDef &enum_def, CodeWriter &writer) const { in GenEnum()
230 GenerateComment(enum_def.doc_comment, writer, &comment_config); in GenEnum()
232 writer += "@Suppress(\"unused\")"; in GenEnum()
233 writer += "@ExperimentalUnsignedTypes"; in GenEnum()
234 writer += "class " + Esc(enum_def.name) + " private constructor() {"; in GenEnum()
235 writer.IncrementIdentLevel(); in GenEnum()
237 GenerateCompanionObject(writer, [&]() { in GenEnum()
245 writer.SetValue("name", Esc(ev.name)); in GenEnum()
246 writer.SetValue("type", field_type); in GenEnum()
247 writer.SetValue("val", val + suffix); in GenEnum()
[all …]
/external/deqp/framework/qphelper/
DqpXmlWriter.c46 static deBool writeEscaped (qpXmlWriter* writer, const char* str) in writeEscaped() argument
113 fprintf(writer->outputFile, "%s", buf); in writeEscaped()
118 if (writer->flushAfterWrite) in writeEscaped()
119 fflush(writer->outputFile); in writeEscaped()
126 qpXmlWriter* writer = (qpXmlWriter*)deCalloc(sizeof(qpXmlWriter)); in qpXmlWriter_createFileWriter() local
127 if (!writer) in qpXmlWriter_createFileWriter()
132 writer->outputFile = outputFile; in qpXmlWriter_createFileWriter()
133 writer->flushAfterWrite = flushAfterWrite; in qpXmlWriter_createFileWriter()
135 return writer; in qpXmlWriter_createFileWriter()
138 void qpXmlWriter_destroy (qpXmlWriter* writer) in qpXmlWriter_destroy() argument
[all …]
/external/skqp/tools/debugger/
DSkDrawCommand.cpp259 void SkDrawCommand::toJSON(SkJSONWriter& writer, UrlDataManager& urlDataManager) const { in toJSON() argument
260 writer.appendString(SKDEBUGCANVAS_ATTRIBUTE_COMMAND, this->GetCommandString(fOpType)); in toJSON()
261 writer.appendBool(SKDEBUGCANVAS_ATTRIBUTE_VISIBLE, this->isVisible()); in toJSON()
457 void apply_paint_blend_mode(const SkPaint& paint, SkJSONWriter& writer) { in apply_paint_blend_mode() argument
461 writer.appendString(SKDEBUGCANVAS_ATTRIBUTE_BLENDMODE, in apply_paint_blend_mode()
468 void SkDrawCommand::MakeJsonColor(SkJSONWriter& writer, const SkColor color) { in MakeJsonColor() argument
469 writer.beginArray(nullptr, false); in MakeJsonColor()
470 writer.appendS32(SkColorGetA(color)); in MakeJsonColor()
471 writer.appendS32(SkColorGetR(color)); in MakeJsonColor()
472 writer.appendS32(SkColorGetG(color)); in MakeJsonColor()
[all …]
/external/libxml2/doc/examples/
DtestWriter.c72 xmlTextWriterPtr writer; in testXmlwriterFilename() local
76 writer = xmlNewTextWriterFilename(uri, 0); in testXmlwriterFilename()
77 if (writer == NULL) { in testXmlwriterFilename()
85 rc = xmlTextWriterStartDocument(writer, NULL, MY_ENCODING, NULL); in testXmlwriterFilename()
94 rc = xmlTextWriterStartElement(writer, BAD_CAST "EXAMPLE"); in testXmlwriterFilename()
107 rc = xmlTextWriterWriteComment(writer, tmp); in testXmlwriterFilename()
116 rc = xmlTextWriterStartElement(writer, BAD_CAST "ORDER"); in testXmlwriterFilename()
124 rc = xmlTextWriterWriteAttribute(writer, BAD_CAST "version", in testXmlwriterFilename()
133 rc = xmlTextWriterWriteAttribute(writer, BAD_CAST "xml:lang", in testXmlwriterFilename()
143 rc = xmlTextWriterWriteFormatComment(writer, in testXmlwriterFilename()
[all …]
/external/fonttools/Tests/misc/
DxmlWriter_test.py13 writer = XMLWriter(BytesIO())
14 writer.comment("This&that are <comments>")
15 self.assertEqual(HEADER + b"<!-- This&amp;that are &lt;comments&gt; -->", writer.file.getvalue())
18 writer = XMLWriter(BytesIO())
19 writer.comment("Hello world\nHow are you?")
21 writer.file.getvalue())
24 writer = XMLWriter(BytesIO())
26 writer.file.getvalue())
30 writer = XMLWriter(BytesIO(), encoding="utf8")
32 writer.file.getvalue())
[all …]
/external/skia/tools/debugger/
DDrawCommand.cpp262 void DrawCommand::toJSON(SkJSONWriter& writer, UrlDataManager& urlDataManager) const { in toJSON() argument
263 writer.appendString(DEBUGCANVAS_ATTRIBUTE_COMMAND, this->GetCommandString(fOpType)); in toJSON()
264 writer.appendBool(DEBUGCANVAS_ATTRIBUTE_VISIBLE, this->isVisible()); in toJSON()
386 void apply_paint_blend_mode(const SkPaint& paint, SkJSONWriter& writer) { in apply_paint_blend_mode() argument
390 writer.appendString(DEBUGCANVAS_ATTRIBUTE_BLENDMODE, in apply_paint_blend_mode()
397 void DrawCommand::MakeJsonColor(SkJSONWriter& writer, const SkColor color) { in MakeJsonColor() argument
398 writer.beginArray(nullptr, false); in MakeJsonColor()
399 writer.appendS32(SkColorGetA(color)); in MakeJsonColor()
400 writer.appendS32(SkColorGetR(color)); in MakeJsonColor()
401 writer.appendS32(SkColorGetG(color)); in MakeJsonColor()
[all …]
/external/skqp/tests/
DWriter32Test.cpp14 static void check_contents(skiatest::Reporter* reporter, const SkWriter32& writer, in check_contents() argument
17 REPORTER_ASSERT(reporter, writer.bytesWritten() == size); in check_contents()
18 writer.flatten(storage.get()); in check_contents()
27 SkWriter32 writer(storage, sizeof(storage)); in test_reserve() local
28 writer.reserve(40); in test_reserve()
33 SkWriter32 writer(storage, sizeof(storage)); in test_string_null() local
36 writer.writeString(nullptr); in test_string_null()
38 check_contents(reporter, writer, expected, sizeof(expected)); in test_string_null()
42 SkSWriter32<32> writer; in test_rewind() local
45 REPORTER_ASSERT(reporter, 0 == writer.bytesWritten()); in test_rewind()
[all …]
/external/testng/src/main/java/org/testng/reporters/
DEmailableReporter2.java37 protected PrintWriter writer; field in EmailableReporter2
48 writer = createWriter(outputDirectory); in generateReport()
62 writer.close(); in generateReport()
72writer.println("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \"http://www.w3.org/TR/xhtml11… in writeDocumentStart()
73 writer.print("<html xmlns=\"http://www.w3.org/1999/xhtml\">"); in writeDocumentStart()
77 writer.print("<head>"); in writeHead()
78 writer.print("<title>TestNG Report</title>"); in writeHead()
80 writer.print("</head>"); in writeHead()
84 writer.print("<style type=\"text/css\">"); in writeStylesheet()
85 writer.print("table {margin-bottom:10px;border-collapse:collapse;empty-cells:show}"); in writeStylesheet()
[all …]
/external/protobuf/js/binary/
Dwriter_test.js60 var writer = new jspb.BinaryWriter();
64 writer.writeMessage(-1, dummyMessage, goog.nullFunction);
68 writer = new jspb.BinaryWriter();
69 assertFails(function() {writer.writeUint64(-1, 1);});
72 writer = new jspb.BinaryWriter();
74 assertFails(function() {writer.writeInt32(1, -Infinity);});
75 assertFails(function() {writer.writeInt32(1, Infinity);});
77 assertFails(function() {writer.writeInt64(1, -Infinity);});
78 assertFails(function() {writer.writeInt64(1, Infinity);});
80 assertFails(function() {writer.writeUint32(1, -1);});
[all …]
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/
DInstructionWriter.java32 package org.jf.dexlib2.writer;
56 @Nonnull private final DexDataWriter writer; field in InstructionWriter
72 @Nonnull DexDataWriter writer, in makeInstructionWriter() argument
82 … opcodes, writer, stringSection, typeSection, fieldSection, methodSection, protoSection, in makeInstructionWriter()
87 @Nonnull DexDataWriter writer, in InstructionWriter() argument
96 this.writer = writer; in InstructionWriter()
116 writer.write(getOpcodeValue(instruction.getOpcode())); in write()
117 writer.write(instruction.getCodeOffset()); in write()
125 writer.write(getOpcodeValue(instruction.getOpcode())); in write()
126 writer.write(0); in write()
[all …]
/external/skia/tests/
DWriter32Test.cpp14 static void check_contents(skiatest::Reporter* reporter, const SkWriter32& writer, in check_contents() argument
17 REPORTER_ASSERT(reporter, writer.bytesWritten() == size); in check_contents()
18 writer.flatten(storage.get()); in check_contents()
27 SkWriter32 writer(storage, sizeof(storage)); in test_reserve() local
28 writer.reserve(40); in test_reserve()
33 SkWriter32 writer(storage, sizeof(storage)); in test_string_null() local
36 writer.writeString(nullptr); in test_string_null()
38 check_contents(reporter, writer, expected, sizeof(expected)); in test_string_null()
42 SkSWriter32<32> writer; in test_rewind() local
45 REPORTER_ASSERT(reporter, 0 == writer.bytesWritten()); in test_rewind()
[all …]
/external/libchrome/base/files/
Dimportant_file_writer_unittest.cc69 void ObserveNextWriteCallbacks(ImportantFileWriter* writer);
94 ImportantFileWriter* writer) { in ObserveNextWriteCallbacks() argument
95 writer->RegisterOnNextWriteCallbacks( in ObserveNextWriteCallbacks()
134 ImportantFileWriter writer(file_, ThreadTaskRunnerHandle::Get()); in TEST_F() local
135 EXPECT_FALSE(PathExists(writer.path())); in TEST_F()
137 writer.WriteNow(std::make_unique<std::string>("foo")); in TEST_F()
141 ASSERT_TRUE(PathExists(writer.path())); in TEST_F()
142 EXPECT_EQ("foo", GetFileContent(writer.path())); in TEST_F()
146 ImportantFileWriter writer(file_, ThreadTaskRunnerHandle::Get()); in TEST_F() local
147 EXPECT_FALSE(PathExists(writer.path())); in TEST_F()
[all …]
/external/protobuf/csharp/src/Google.Protobuf/
DJsonFormatter.cs146 var writer = new StringWriter(); in Format()
147 Format(message, writer); in Format()
148 return writer.ToString(); in Format()
157 public void Format(IMessage message, TextWriter writer) in Format() argument
160 ProtoPreconditions.CheckNotNull(writer, nameof(writer)); in Format()
164 WriteWellKnownTypeValue(writer, message.Descriptor, message); in Format()
168 WriteMessage(writer, message); in Format()
195 private void WriteMessage(TextWriter writer, IMessage message) in WriteMessage() argument
199 WriteNull(writer); in WriteMessage()
207 writer.Write(customDiagnosticMessage.ToDiagnosticString()); in WriteMessage()
[all …]
/external/robolectric-shadows/processor/src/main/java/org/robolectric/annotation/processing/generator/
DShadowProviderGenerator.java52 try (PrintWriter writer = new PrintWriter(jfo.openWriter())) { in generate() argument
53 generate(writer); in generate()
61 void generate(PrintWriter writer) { in generate() argument
62 writer.print("package " + shadowPackage + ";\n"); in generate()
64 writer.println("import " + name + ';'); in generate()
66 writer.println(); in generate()
67 writer.println("/**"); in generate()
68writer.println(" * Shadow mapper. Automatically generated by the Robolectric Annotation Processor.… in generate()
69 writer.println(" */"); in generate()
70 writer.println("@Generated(\"" + RobolectricProcessor.class.getCanonicalName() + "\")"); in generate()
[all …]
/external/skia/src/gpu/
DGrShaderCaps.cpp86 void GrShaderCaps::dumpJSON(SkJSONWriter* writer) const { in dumpJSON()
87 writer->beginObject(); in dumpJSON()
89 writer->appendBool("Shader Derivative Support", fShaderDerivativeSupport); in dumpJSON()
90 writer->appendBool("Geometry Shader Support", fGeometryShaderSupport); in dumpJSON()
91 writer->appendBool("Geometry Shader Invocations Support", fGSInvocationsSupport); in dumpJSON()
92 writer->appendBool("Dst Read In Shader Support", fDstReadInShaderSupport); in dumpJSON()
93 writer->appendBool("Dual Source Blending Support", fDualSourceBlendingSupport); in dumpJSON()
94 writer->appendBool("Integer Support", fIntegerSupport); in dumpJSON()
95 writer->appendBool("Nonsquare Matrix Support", fNonsquareMatrixSupport); in dumpJSON()
107 writer->appendBool("FB Fetch Support", fFBFetchSupport); in dumpJSON()
[all …]
/external/tensorflow/tensorflow/java/src/gen/cc/
Dsource_writer_test.cc28 SourceBufferWriter writer; in TEST() local
29 writer.Append("You say goodbye and I say hello!"); in TEST()
32 ASSERT_STREQ(expected, writer.str().data()); in TEST()
36 SourceBufferWriter writer; in TEST() local
37 writer.Append("You say goodbye\nand I say hello!"); in TEST()
40 ASSERT_STREQ(expected, writer.str().data()); in TEST()
44 SourceBufferWriter writer; in TEST() local
45 writer.Indent(2).Append("You say goodbye\nand I say hello!"); in TEST()
48 ASSERT_STREQ(expected, writer.str().data()); in TEST()
52 SourceBufferWriter writer; in TEST() local
[all …]
/external/protobuf/js/compatibility_tests/v3.1.0/binary/
Dwriter_test.js61 var writer = new jspb.BinaryWriter();
65 writer.writeMessage(-1, dummyMessage, goog.nullFunction);
69 writer = new jspb.BinaryWriter();
70 assertFails(function() {writer.writeUint64(-1, 1);});
73 writer = new jspb.BinaryWriter();
75 assertFails(function() {writer.writeInt32(1, -Infinity);});
76 assertFails(function() {writer.writeInt32(1, Infinity);});
78 assertFails(function() {writer.writeInt64(1, -Infinity);});
79 assertFails(function() {writer.writeInt64(1, Infinity);});
81 assertFails(function() {writer.writeUint32(1, -1);});
[all …]

12345678910>>...78