Searched refs:writer (Results 1 - 25 of 340) sorted by relevance

1234567891011>>

/external/smali/baksmali/src/main/java/org/jf/baksmali/Adaptors/Format/
H A DInstructionMethodItem.java59 public boolean writeTo(IndentingWriter writer) throws IOException { argument
62 writeOpcode(writer);
63 writer.write(' ');
64 writeTargetLabel(writer);
67 writeOpcode(writer);
70 writeOpcode(writer);
71 writer.write(' ');
72 writeFirstRegister(writer);
73 writer.write(", ");
74 writeLiteral(writer);
215 writeOpcode(IndentingWriter writer) argument
219 writeTargetLabel(IndentingWriter writer) argument
225 writeRegister(IndentingWriter writer, int registerNumber) argument
229 writeFirstRegister(IndentingWriter writer) argument
233 writeSecondRegister(IndentingWriter writer) argument
237 writeThirdRegister(IndentingWriter writer) argument
241 writeInvokeRegisters(IndentingWriter writer) argument
286 writeInvokeRangeRegisters(IndentingWriter writer) argument
298 writeLiteral(IndentingWriter writer) argument
302 writeFieldOffset(IndentingWriter writer) argument
307 writeVtableIndex(IndentingWriter writer) argument
312 writeReference(IndentingWriter writer) argument
317 writeVerificationErrorType(IndentingWriter writer) argument
[all...]
H A DUnresolvedOdexInstructionMethodItem.java42 public boolean writeTo(IndentingWriter writer) throws IOException { argument
43 writeThrowTo(writer);
47 private void writeThrowTo(IndentingWriter writer) throws IOException { argument
48 writer.write("#Replaced unresolvable odex instruction with a throw\n");
49 writer.write("throw ");
50 writeRegister(writer, instruction.ObjectRegisterNum);
/external/smali/baksmali/src/main/java/org/jf/baksmali/Renderers/
H A DShortRenderer.java36 public static void writeTo(IndentingWriter writer, short val) throws IOException { argument
38 writer.write("-0x");
39 writer.printUnsignedLongAsHex(-val);
40 writer.write('s');
42 writer.write("0x");
43 writer.printUnsignedLongAsHex(val);
44 writer.write('s');
H A DByteRenderer.java36 public static void writeTo(IndentingWriter writer, byte val) throws IOException { argument
38 writer.write("-0x");
39 writer.printUnsignedLongAsHex(-val);
40 writer.write('t');
42 writer.write("0x");
43 writer.printUnsignedLongAsHex(val);
44 writer.write('t');
48 public static void writeUnsignedTo(IndentingWriter writer, byte val) throws IOException { argument
49 writer.write("0x");
50 writer
[all...]
H A DIntegerRenderer.java36 public static void writeTo(IndentingWriter writer, int val) throws IOException { argument
38 writer.write("-0x");
39 writer.printUnsignedLongAsHex(-((long) val));
41 writer.write("0x");
42 writer.printUnsignedLongAsHex(val);
46 public static void writeUnsignedTo(IndentingWriter writer, int val) throws IOException { argument
47 writer.write("0x");
48 writer.printUnsignedLongAsHex(val & 0xFFFFFFFFL);
H A DLongRenderer.java36 public static void writeTo(IndentingWriter writer, long val) throws IOException { argument
38 writer.write("-0x");
39 writer.printUnsignedLongAsHex(-val);
40 writer.write('L');
42 writer.write("0x");
43 writer.printUnsignedLongAsHex(val);
44 writer.write('L');
48 public static void writeSignedIntOrLongTo(IndentingWriter writer, long val) throws IOException { argument
50 writer.write("-0x");
51 writer
[all...]
H A DBooleanRenderer.java36 public static void writeTo(IndentingWriter writer, boolean val) throws IOException { argument
38 writer.write("true");
40 writer.write("false");
H A DFloatRenderer.java36 public static void writeTo(IndentingWriter writer, float val) throws IOException { argument
37 writer.write(Float.toString(val));
38 writer.write('f');
/external/smali/baksmali/src/main/java/org/jf/baksmali/Adaptors/
H A DDebugMethodItem.java51 protected static void writeLine(IndentingWriter writer, int line) throws IOException { argument
52 writer.write(".line ");
53 writer.printSignedIntAsDec(line);
56 protected static void writeEndPrologue(IndentingWriter writer) throws IOException { argument
57 writer.write(".prologue");
60 protected static void writeBeginEpilogue(IndentingWriter writer) throws IOException { argument
61 writer.write(".epilogue");
64 protected static void writeStartLocal(IndentingWriter writer, CodeItem codeItem, int register, argument
67 writer.write(".local ");
68 RegisterFormatter.writeTo(writer, codeIte
80 writeEndLocal(IndentingWriter writer, CodeItem codeItem, int register, StringIdItem name, TypeIdItem type, StringIdItem signature) argument
99 writeRestartLocal(IndentingWriter writer, CodeItem codeItem, int register, StringIdItem name, TypeIdItem type, StringIdItem signature) argument
118 writeSetFile(IndentingWriter writer, String fileName) argument
[all...]
H A DReferenceFormatter.java38 public static void writeReference(IndentingWriter writer, Item item) throws IOException { argument
41 writeMethodReference(writer, (MethodIdItem)item);
44 writeFieldReference(writer, (FieldIdItem)item);
47 writeStringReference(writer, (StringIdItem)item);
50 writeTypeReference(writer, (TypeIdItem)item);
55 public static void writeMethodReference(IndentingWriter writer, MethodIdItem item) throws IOException { argument
56 writer.write(item.getContainingClass().getTypeDescriptor());
57 writer.write("->");
58 writer.write(item.getMethodName().getStringValue());
59 writer
62 writeFieldReference(IndentingWriter writer, FieldIdItem item) argument
70 writeStringReference(IndentingWriter writer, StringIdItem item) argument
76 writeTypeReference(IndentingWriter writer, TypeIdItem item) argument
[all...]
H A DAnnotationFormatter.java41 public static void writeTo(IndentingWriter writer, AnnotationSetItem annotationSet) throws IOException { argument
45 writer.write('\n');
49 writeTo(writer, annotationItem);
53 public static void writeTo(IndentingWriter writer, AnnotationItem annotationItem) throws IOException { argument
54 writer.write(".annotation ");
55 writer.write(annotationItem.getVisibility().visibility);
56 writer.write(' ');
57 ReferenceFormatter.writeTypeReference(writer, annotationItem.getEncodedAnnotation().annotationType);
58 writer.write('\n');
60 AnnotationEncodedValueAdaptor.writeElementsTo(writer, annotationIte
[all...]
H A DRegisterFormatter.java48 * @param writer the <code>IndentingWriter</code> to write to
53 public static void writeRegisterRange(IndentingWriter writer, CodeItem codeItem, int startRegister, argument
65 writer.write("{p");
66 writer.printSignedIntAsDec(startRegister - (registerCount - parameterRegisterCount));
67 writer.write(" .. p");
68 writer.printSignedIntAsDec(lastRegister - (registerCount - parameterRegisterCount));
69 writer.write('}');
73 writer.write("{v");
74 writer.printSignedIntAsDec(startRegister);
75 writer
89 writeTo(IndentingWriter writer, CodeItem codeItem, int register) argument
[all...]
H A DFieldDefinition.java42 public static void writeTo(IndentingWriter writer, ClassDataItem.EncodedField encodedField, argument
58 writer.write("#the value of this static final field might be set in the static constructor\n");
61 writer.write(".field ");
62 writeAccessFlags(writer, encodedField);
63 writer.write(encodedField.field.getFieldName().getStringValue());
64 writer.write(':');
65 writer.write(encodedField.field.getFieldType().getTypeDescriptor());
67 writer.write(" = ");
68 EncodedValueAdaptor.writeTo(writer, initialValue);
71 writer
81 writeAccessFlags(IndentingWriter writer, ClassDataItem.EncodedField encodedField) argument
[all...]
/external/smali/baksmali/src/main/java/org/jf/baksmali/Adaptors/EncodedValue/
H A DAnnotationEncodedValueAdaptor.java39 public static void writeTo(IndentingWriter writer, AnnotationEncodedSubValue encodedAnnotation) argument
41 writer.write(".subannotation ");
42 ReferenceFormatter.writeTypeReference(writer, encodedAnnotation.annotationType);
43 writer.write('\n');
45 writeElementsTo(writer, encodedAnnotation);
46 writer.write(".end subannotation");
49 public static void writeElementsTo(IndentingWriter writer, AnnotationEncodedSubValue encodedAnnotation) argument
51 writer.indent(4);
53 writer.write(encodedAnnotation.names[i].getStringValue());
54 writer
[all...]
H A DArrayEncodedValueAdaptor.java38 public static void writeTo(IndentingWriter writer, ArrayEncodedValue encodedArray) throws IOException { argument
39 writer.write('{');
42 writer.write('}');
46 writer.write('\n');
47 writer.indent(4);
51 writer.write(",\n");
55 EncodedValueAdaptor.writeTo(writer, encodedValue);
57 writer.deindent(4);
58 writer.write("\n}");
H A DEncodedValueAdaptor.java39 public static void writeTo(IndentingWriter writer, EncodedValue encodedValue) throws IOException { argument
42 AnnotationEncodedValueAdaptor.writeTo(writer, (AnnotationEncodedValue)encodedValue);
45 ArrayEncodedValueAdaptor.writeTo(writer, (ArrayEncodedValue)encodedValue);
48 BooleanRenderer.writeTo(writer, ((BooleanEncodedValue)encodedValue).value);
51 ByteRenderer.writeTo(writer, ((ByteEncodedValue)encodedValue).value);
54 CharRenderer.writeTo(writer, ((CharEncodedValue)encodedValue).value);
57 DoubleRenderer.writeTo(writer, ((DoubleEncodedValue)encodedValue).value);
60 EnumEncodedValueAdaptor.writeTo(writer, ((EnumEncodedValue)encodedValue).value);
63 ReferenceFormatter.writeFieldReference(writer, ((FieldEncodedValue)encodedValue).value);
66 FloatRenderer.writeTo(writer, ((FloatEncodedValu
[all...]
/external/guava/guava-tests/test/com/google/common/io/
H A DAppendableWriterTest.java63 Writer writer = new AppendableWriter(builder);
65 writer.write("Hello".toCharArray());
66 writer.write(',');
67 writer.write(0xBEEF0020); // only lower 16 bits are important
68 writer.write("Wo");
69 writer.write("Whirled".toCharArray(), 3, 2);
70 writer.write("Mad! Mad, I say", 2, 2);
77 Writer writer = new AppendableWriter(builder);
79 writer.append("Hello,");
80 writer
[all...]
/external/dexmaker/src/dx/java/com/android/dx/util/
H A DWriters.java35 * returning the given writer if it already happens to be the right
38 * @param writer {@code non-null;} writer to (possibly) wrap
41 public static PrintWriter printWriterFor(Writer writer) { argument
42 if (writer instanceof PrintWriter) {
43 return (PrintWriter) writer;
46 return new PrintWriter(writer);
/external/chromium/chrome/common/
H A Dimportant_file_writer_unittest.cc60 ImportantFileWriter writer(file_,
62 EXPECT_FALSE(file_util::PathExists(writer.path()));
63 writer.WriteNow("foo");
66 ASSERT_TRUE(file_util::PathExists(writer.path()));
67 EXPECT_EQ("foo", GetFileContent(writer.path()));
71 ImportantFileWriter writer(file_,
73 writer.set_commit_interval(base::TimeDelta::FromMilliseconds(25));
74 EXPECT_FALSE(writer.HasPendingWrite());
76 writer.ScheduleWrite(&serializer);
77 EXPECT_TRUE(writer
[all...]
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.JavaExtensions/
H A DIOExtensions.cs51 public static void close( this TextWriter writer )
53 writer.Close();
57 public static void print<T>( this TextWriter writer, T value ) argument
59 writer.Write( value );
63 public static void println( this TextWriter writer )
65 writer.WriteLine();
69 public static void println<T>( this TextWriter writer, T value ) argument
71 writer.WriteLine( value );
75 public static void write<T>( this TextWriter writer, T value ) argument
77 writer
[all...]
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.JavaExtensions/
H A DIOExtensions.cs49 public static void close( this TextWriter writer )
51 writer.Close();
55 public static void print<T>( this TextWriter writer, T value ) argument
57 writer.Write( value );
61 public static void println( this TextWriter writer )
63 writer.WriteLine();
67 public static void println<T>( this TextWriter writer, T value ) argument
69 writer.WriteLine( value );
73 public static void write<T>( this TextWriter writer, T value ) argument
75 writer
[all...]
/external/libxml2/
H A Dxmlwriter.c3 * xmlwriter.c: XML text writer implementation
100 static int xmlTextWriterOutputNSDecl(xmlTextWriterPtr writer);
112 static int xmlTextWriterWriteIndent(xmlTextWriterPtr writer);
114 xmlTextWriterHandleStateDependencies(xmlTextWriterPtr writer,
119 * @ctxt: a writer context
123 * Handle a writer error
141 * @ctxt: a writer context
146 * Handle a writer error
167 * NOTE: the @out parameter will be deallocated when the writer is closed
305 * NOTE: the @ctxt context will be freed with the resulting writer
475 xmlFreeTextWriter(xmlTextWriterPtr writer) argument
517 xmlTextWriterStartDocument(xmlTextWriterPtr writer, const char *version, const char *encoding, const char *standalone) argument
637 xmlTextWriterEndDocument(xmlTextWriterPtr writer) argument
723 xmlTextWriterStartComment(xmlTextWriterPtr writer) argument
807 xmlTextWriterEndComment(xmlTextWriterPtr writer) argument
865 xmlTextWriterWriteFormatComment(xmlTextWriterPtr writer, const char *format, ...) argument
890 xmlTextWriterWriteVFormatComment(xmlTextWriterPtr writer, const char *format, va_list argptr) argument
922 xmlTextWriterWriteComment(xmlTextWriterPtr writer, const xmlChar * content) argument
954 xmlTextWriterStartElement(xmlTextWriterPtr writer, const xmlChar * name) argument
1051 xmlTextWriterStartElementNS(xmlTextWriterPtr writer, const xmlChar * prefix, const xmlChar * name, const xmlChar * namespaceURI) argument
1116 xmlTextWriterEndElement(xmlTextWriterPtr writer) argument
1208 xmlTextWriterFullEndElement(xmlTextWriterPtr writer) argument
1293 xmlTextWriterWriteFormatRaw(xmlTextWriterPtr writer, const char *format, ...) argument
1318 xmlTextWriterWriteVFormatRaw(xmlTextWriterPtr writer, const char *format, va_list argptr) argument
1349 xmlTextWriterWriteRawLen(xmlTextWriterPtr writer, const xmlChar * content, int len) argument
1403 xmlTextWriterWriteRaw(xmlTextWriterPtr writer, const xmlChar * content) argument
1419 xmlTextWriterWriteFormatString(xmlTextWriterPtr writer, const char *format, ...) argument
1447 xmlTextWriterWriteVFormatString(xmlTextWriterPtr writer, const char *format, va_list argptr) argument
1476 xmlTextWriterWriteString(xmlTextWriterPtr writer, const xmlChar * content) argument
1621 xmlTextWriterWriteBase64(xmlTextWriterPtr writer, const char *data, int start, int len) argument
1714 xmlTextWriterWriteBinHex(xmlTextWriterPtr writer, const char *data, int start, int len) argument
1760 xmlTextWriterStartAttribute(xmlTextWriterPtr writer, const xmlChar * name) argument
1826 xmlTextWriterStartAttributeNS(xmlTextWriterPtr writer, const xmlChar * prefix, const xmlChar * name, const xmlChar * namespaceURI) argument
1915 xmlTextWriterEndAttribute(xmlTextWriterPtr writer) argument
1965 xmlTextWriterWriteFormatAttribute(xmlTextWriterPtr writer, const xmlChar * name, const char *format, ...) argument
1992 xmlTextWriterWriteVFormatAttribute(xmlTextWriterPtr writer, const xmlChar * name, const char *format, va_list argptr) argument
2023 xmlTextWriterWriteAttribute(xmlTextWriterPtr writer, const xmlChar * name, const xmlChar * content) argument
2060 xmlTextWriterWriteFormatAttributeNS(xmlTextWriterPtr writer, const xmlChar * prefix, const xmlChar * name, const xmlChar * namespaceURI, const char *format, ...) argument
2092 xmlTextWriterWriteVFormatAttributeNS(xmlTextWriterPtr writer, const xmlChar * prefix, const xmlChar * name, const xmlChar * namespaceURI, const char *format, va_list argptr) argument
2128 xmlTextWriterWriteAttributeNS(xmlTextWriterPtr writer, const xmlChar * prefix, const xmlChar * name, const xmlChar * namespaceURI, const xmlChar * content) argument
2168 xmlTextWriterWriteFormatElement(xmlTextWriterPtr writer, const xmlChar * name, const char *format, ...) argument
2195 xmlTextWriterWriteVFormatElement(xmlTextWriterPtr writer, const xmlChar * name, const char *format, va_list argptr) argument
2226 xmlTextWriterWriteElement(xmlTextWriterPtr writer, const xmlChar * name, const xmlChar * content) argument
2263 xmlTextWriterWriteFormatElementNS(xmlTextWriterPtr writer, const xmlChar * prefix, const xmlChar * name, const xmlChar * namespaceURI, const char *format, ...) argument
2295 xmlTextWriterWriteVFormatElementNS(xmlTextWriterPtr writer, const xmlChar * prefix, const xmlChar * name, const xmlChar * namespaceURI, const char *format, va_list argptr) argument
2331 xmlTextWriterWriteElementNS(xmlTextWriterPtr writer, const xmlChar * prefix, const xmlChar * name, const xmlChar * namespaceURI, const xmlChar * content) argument
2370 xmlTextWriterStartPI(xmlTextWriterPtr writer, const xmlChar * target) argument
2466 xmlTextWriterEndPI(xmlTextWriterPtr writer) argument
2520 xmlTextWriterWriteFormatPI(xmlTextWriterPtr writer, const xmlChar * target, const char *format, ...) argument
2546 xmlTextWriterWriteVFormatPI(xmlTextWriterPtr writer, const xmlChar * target, const char *format, va_list argptr) argument
2577 xmlTextWriterWritePI(xmlTextWriterPtr writer, const xmlChar * target, const xmlChar * content) argument
2611 xmlTextWriterStartCDATA(xmlTextWriterPtr writer) argument
2690 xmlTextWriterEndCDATA(xmlTextWriterPtr writer) argument
2735 xmlTextWriterWriteFormatCDATA(xmlTextWriterPtr writer, const char *format, ...) argument
2760 xmlTextWriterWriteVFormatCDATA(xmlTextWriterPtr writer, const char *format, va_list argptr) argument
2789 xmlTextWriterWriteCDATA(xmlTextWriterPtr writer, const xmlChar * content) argument
2825 xmlTextWriterStartDTD(xmlTextWriterPtr writer, const xmlChar * name, const xmlChar * pubid, const xmlChar * sysid) argument
2962 xmlTextWriterEndDTD(xmlTextWriterPtr writer) argument
3044 xmlTextWriterWriteFormatDTD(xmlTextWriterPtr writer, const xmlChar * name, const xmlChar * pubid, const xmlChar * sysid, const char *format, ...) argument
3075 xmlTextWriterWriteVFormatDTD(xmlTextWriterPtr writer, const xmlChar * name, const xmlChar * pubid, const xmlChar * sysid, const char *format, va_list argptr) argument
3110 xmlTextWriterWriteDTD(xmlTextWriterPtr writer, const xmlChar * name, const xmlChar * pubid, const xmlChar * sysid, const xmlChar * subset) argument
3147 xmlTextWriterStartDTDElement(xmlTextWriterPtr writer, const xmlChar * name) argument
3234 xmlTextWriterEndDTDElement(xmlTextWriterPtr writer) argument
3288 xmlTextWriterWriteFormatDTDElement(xmlTextWriterPtr writer, const xmlChar * name, const char *format, ...) argument
3315 xmlTextWriterWriteVFormatDTDElement(xmlTextWriterPtr writer, const xmlChar * name, const char *format, va_list argptr) argument
3346 xmlTextWriterWriteDTDElement(xmlTextWriterPtr writer, const xmlChar * name, const xmlChar * content) argument
3384 xmlTextWriterStartDTDAttlist(xmlTextWriterPtr writer, const xmlChar * name) argument
3471 xmlTextWriterEndDTDAttlist(xmlTextWriterPtr writer) argument
3525 xmlTextWriterWriteFormatDTDAttlist(xmlTextWriterPtr writer, const xmlChar * name, const char *format, ...) argument
3552 xmlTextWriterWriteVFormatDTDAttlist(xmlTextWriterPtr writer, const xmlChar * name, const char *format, va_list argptr) argument
3583 xmlTextWriterWriteDTDAttlist(xmlTextWriterPtr writer, const xmlChar * name, const xmlChar * content) argument
3622 xmlTextWriterStartDTDEntity(xmlTextWriterPtr writer, int pe, const xmlChar * name) argument
3722 xmlTextWriterEndDTDEntity(xmlTextWriterPtr writer) argument
3782 xmlTextWriterWriteFormatDTDInternalEntity(xmlTextWriterPtr writer, int pe, const xmlChar * name, const char *format, ...) argument
3812 xmlTextWriterWriteVFormatDTDInternalEntity(xmlTextWriterPtr writer, int pe, const xmlChar * name, const char *format, va_list argptr) argument
3849 xmlTextWriterWriteDTDEntity(xmlTextWriterPtr writer, int pe, const xmlChar * name, const xmlChar * pubid, const xmlChar * sysid, const xmlChar * ndataid, const xmlChar * content) argument
3882 xmlTextWriterWriteDTDInternalEntity(xmlTextWriterPtr writer, int pe, const xmlChar * name, const xmlChar * content) argument
3926 xmlTextWriterWriteDTDExternalEntity(xmlTextWriterPtr writer, int pe, const xmlChar * name, const xmlChar * pubid, const xmlChar * sysid, const xmlChar * ndataid) argument
3974 xmlTextWriterWriteDTDExternalEntityContents(xmlTextWriterPtr writer, const xmlChar * pubid, const xmlChar * sysid, const xmlChar * ndataid) argument
4106 xmlTextWriterWriteDTDNotation(xmlTextWriterPtr writer, const xmlChar * name, const xmlChar * pubid, const xmlChar * sysid) argument
4226 xmlTextWriterFlush(xmlTextWriterPtr writer) argument
4306 xmlTextWriterOutputNSDecl(xmlTextWriterPtr writer) argument
4572 xmlTextWriterSetIndent(xmlTextWriterPtr writer, int indent) argument
4593 xmlTextWriterSetIndentString(xmlTextWriterPtr writer, const xmlChar * str) argument
4617 xmlTextWriterWriteIndent(xmlTextWriterPtr writer) argument
4646 xmlTextWriterHandleStateDependencies(xmlTextWriterPtr writer, xmlTextWriterStackEntry * p) argument
[all...]
/external/proguard/src/proguard/
H A DDataEntryWriterFactory.java48 DataEntryWriter writer = null;
54 writer = createClassPathEntryWriter(entry, writer);
57 return writer;
93 DataEntryWriter writer = new DirectoryWriter(classPathEntry.getFile(),
100 writer = wrapInJarWriter(writer, isZip, zipFilter, ".zip", isJar || isWar || isEar);
101 writer = wrapInJarWriter(writer, isEar, earFilter, ".ear", isJar || isWar);
102 writer
123 wrapInJarWriter(DataEntryWriter writer, boolean isJar, List jarFilter, String jarExtension, boolean dontWrap) argument
[all...]
/external/skia/tests/
H A DWriter32Test.cpp15 static void test1(skiatest::Reporter* reporter, SkWriter32* writer) { argument
18 REPORTER_ASSERT(reporter, i*4 == writer->size());
19 writer->write32(data[i]);
20 uint32_t* addr = writer->peek32(i * 4);
25 REPORTER_ASSERT(reporter, sizeof(buffer) == writer->size());
26 writer->flatten(buffer);
30 static void test2(skiatest::Reporter* reporter, SkWriter32* writer) { argument
37 writer->writeString(gStr, i);
39 REPORTER_ASSERT(reporter, writer->size() == len);
42 writer
[all...]
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Debug/JavaExtensions/
H A DExceptionExtensions.cs40 public static void PrintStackTrace( Exception e, TextWriter writer )
42 writer.WriteLine( e.ToString() );
47 writer.WriteLine( " " + line );

Completed in 328 milliseconds

1234567891011>>