/external/smali/baksmali/src/main/java/org/jf/baksmali/Adaptors/Format/ |
SparseSwitchMethodItem.java | 80 public boolean writeTo(IndentingWriter writer) throws IOException { 81 writer.write(".sparse-switch\n"); 82 writer.indent(4); 84 IntegerRenderer.writeTo(writer, target.Key); 85 writer.write(" -> "); 86 target.writeTargetTo(writer); 87 writer.write('\n'); 89 writer.deindent(4); 90 writer.write(".end sparse-switch"); 96 public abstract void writeTargetTo(IndentingWriter writer) throws IOException [all...] |
ArrayDataMethodItem.java | 44 public boolean writeTo(IndentingWriter writer) throws IOException { 45 writer.write(".array-data 0x"); 46 writer.printUnsignedLongAsHex(instruction.getElementWidth()); 47 writer.write('\n'); 49 writer.indent(4); 56 writer.write(' '); 58 ByteRenderer.writeUnsignedTo(writer, element.buffer[element.bufferIndex+i]); 60 writer.write('\n'); 62 writer.deindent(4); 63 writer.write(".end array-data") [all...] |
/external/proguard/src/proguard/ |
DataEntryWriterFactory.java | 48 DataEntryWriter writer = null; local 54 writer = createClassPathEntryWriter(entry, writer); 57 return writer; 93 DataEntryWriter writer = new DirectoryWriter(classPathEntry.getFile(), local 100 writer = wrapInJarWriter(writer, isZip, zipFilter, ".zip", isJar || isWar || isEar); 101 writer = wrapInJarWriter(writer, isEar, earFilter, ".ear", isJar || isWar); 102 writer = wrapInJarWriter(writer, isWar, warFilter, ".war", isJar) [all...] |
/frameworks/base/core/java/android/content/ |
CursorLoader.java | 232 public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { 233 super.dump(prefix, fd, writer, args); 234 writer.print(prefix); writer.print("mUri="); writer.println(mUri); 235 writer.print(prefix); writer.print("mProjection="); 236 writer.println(Arrays.toString(mProjection)); 237 writer.print(prefix); writer.print("mSelection="); writer.println(mSelection) [all...] |
/frameworks/support/v4/java/android/support/v4/content/ |
CursorLoader.java | 195 public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { 196 super.dump(prefix, fd, writer, args); 197 writer.print(prefix); writer.print("mUri="); writer.println(mUri); 198 writer.print(prefix); writer.print("mProjection="); 199 writer.println(Arrays.toString(mProjection)); 200 writer.print(prefix); writer.print("mSelection="); writer.println(mSelection) [all...] |
/libcore/luni/src/main/java/java/io/ |
Writer.java | 21 * The base class for all writers. A writer is a means of writing data to a 37 public abstract class Writer implements Appendable, Closeable, Flushable { 39 * The object used to synchronize access to the writer. 44 * Constructs a new {@code Writer} with {@code this} as the object used to 47 protected Writer() { 52 * Constructs a new {@code Writer} with {@code lock} used to synchronize 60 protected Writer(Object lock) { 68 * Closes this writer. Implementations of this method should free any 69 * resources associated with the writer. 72 * if an error occurs while closing this writer [all...] |
BufferedWriter.java | 24 * Wraps an existing {@link Writer} and <em>buffers</em> the output. Expensive 39 public class BufferedWriter extends Writer { 41 private Writer out; 51 * @param out the {@code Writer} the buffer writes to. 53 public BufferedWriter(Writer out) { 65 public BufferedWriter(Writer out, int size) { 75 * Closes this writer. The contents of the buffer are flushed, the target 76 * writer is closed, and the buffer is released. Only the first invocation 80 * if an error occurs while closing this writer. 113 * Flushes this writer. The contents of the buffer are committed to th [all...] |
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.JavaExtensions/ |
IOExtensions.cs | 51 public static void close( this TextWriter writer ) 53 writer.Close(); 57 public static void print<T>( this TextWriter writer, T value ) 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 ) 71 writer.WriteLine( value ); 75 public static void write<T>( this TextWriter writer, T value ) 77 writer.Write( value ) [all...] |
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.JavaExtensions/ |
IOExtensions.cs | 49 public static void close( this TextWriter writer ) 51 writer.Close(); 55 public static void print<T>( this TextWriter writer, T value ) 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 ) 69 writer.WriteLine( value ); 73 public static void write<T>( this TextWriter writer, T value ) 75 writer.Write( value ) [all...] |
/external/smack/src/org/jivesoftware/smack/util/ |
ObservableWriter.java | 27 * An ObservableWriter is a wrapper on a Writer that notifies to its listeners when 32 public class ObservableWriter extends Writer { 34 Writer wrappedWriter = null; 37 public ObservableWriter(Writer wrappedWriter) { 93 * Adds a writer listener to this writer that will be notified when 96 * @param writerListener a writer listener. 110 * Removes a writer listener from this writer. 112 * @param writerListener a writer listener [all...] |
/external/smali/baksmali/src/main/java/org/jf/baksmali/Adaptors/ |
CatchMethodItem.java | 79 public boolean writeTo(IndentingWriter writer) throws IOException { 81 writer.write(".catchall"); 83 writer.write(".catch "); 84 ReferenceFormatter.writeTypeReference(writer, exceptionType); 86 writer.write(" {"); 87 tryStartLabel.writeTo(writer); 88 writer.write(" .. "); 89 tryEndLabel.writeTo(writer); 90 writer.write("} "); 91 handlerLabel.writeTo(writer); [all...] |
MethodDefinition.java | 106 public void writeTo(IndentingWriter writer, AnnotationSetItem annotationSet, 110 writer.write(".method "); 111 writeAccessFlags(writer, encodedMethod); 112 writer.write(encodedMethod.method.getMethodName().getStringValue()); 113 writer.write(encodedMethod.method.getPrototype().getPrototypeString()); 114 writer.write('\n'); 116 writer.indent(4); 119 writer.write(".locals "); 121 writer.write(".registers "); 123 writer.printSignedIntAsDec(getRegisterCount(encodedMethod)) [all...] |
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/ |
CharArrayWriterTest.java | 38 assertEquals("Created incorrect writer", 0, cw.size()); 46 assertEquals("Created incorrect writer", 0, cw.size()); 115 assertEquals("Writer failed to write correct chars", "World", 138 assertEquals("Writer failed to write char", 'T', cr.read()); 149 assertEquals("Writer failed to write correct chars", "World", 169 * @tests java.io.CharArrayWriter#writeTo(java.io.Writer) 175 assertEquals("Writer failed to write correct chars", "HelloWorld", sw 203 CharArrayWriter writer = new CharArrayWriter(10); local 204 writer.append(testChar); 205 writer.flush() 215 CharArrayWriter writer = new CharArrayWriter(10); local 227 CharArrayWriter writer = new CharArrayWriter(10); local [all...] |
WriterTesterTest.java | 38 import java.io.Writer; 45 * Tests basic {@link Writer} behaviors for the luni implementations of the type. 78 @Override public Writer create() throws Exception { 90 private CharArrayWriter writer; field in class:WriterTesterTest.CharArrayWriterCharSinkTester 92 @Override public Writer create() throws Exception { 93 writer = new CharArrayWriter(); 94 return writer; 98 return writer.toCharArray(); 107 public Writer create() throws IOException { 134 private StringWriter writer; field in class:WriterTesterTest.StringWriterCharSinkTester [all...] |
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/h264/model/ |
SeqParameterSet.java | 311 CAVLCWriter writer = new CAVLCWriter(out); local 313 writer.writeNBit(profile_idc, 8, "SPS: profile_idc"); 314 writer.writeBool(constraint_set_0_flag, "SPS: constraint_set_0_flag"); 315 writer.writeBool(constraint_set_1_flag, "SPS: constraint_set_1_flag"); 316 writer.writeBool(constraint_set_2_flag, "SPS: constraint_set_2_flag"); 317 writer.writeBool(constraint_set_3_flag, "SPS: constraint_set_3_flag"); 318 writer.writeNBit(0, 4, "SPS: reserved"); 319 writer.writeNBit(level_idc, 8, "SPS: level_idc"); 320 writer.writeUE(seq_parameter_set_id, "SPS: seq_parameter_set_id"); 324 writer.writeUE(chroma_format_idc.getId(), "SPS: chroma_format_idc") [all...] |
/external/chromium_org/third_party/skia/src/xml/ |
SkBML_XMLParser.cpp | 86 static void rattr(unsigned verb, SkStream& s, BMLW& rec, SkXMLWriter& writer) 118 writer.addAttribute(rec.fNames[nameIndex], rec.fValues[valueIndex]); 121 static void relem(unsigned verb, SkStream& s, BMLW& rec, SkXMLWriter& writer) 139 writer.startElement(rec.fElems[elemIndex]); 149 rattr(verb, s, rec, writer); 153 relem(verb, s, rec, writer); 156 writer.endElement(); 164 void BML_XMLParser::Read(SkStream& s, SkXMLWriter& writer) 167 writer.writeHeader(); 168 relem(rbyte(s), s, rec, writer); local [all...] |
/external/clang/lib/Serialization/ |
ASTWriterDecl.cpp | 36 ASTWriter &Writer; 45 ASTDeclWriter(ASTWriter &Writer, ASTContext &Context, RecordData &Record) 46 : Writer(Writer), Context(Context), Record(Record) { 143 Writer.AddTypeSourceInfo(DD->getTypeSourceInfo(), Record); 152 Writer.AddStmt(FD->getBody()); 157 Writer.AddDeclRef(cast_or_null<Decl>(D->getDeclContext()), Record); 158 Writer.AddDeclRef(cast_or_null<Decl>(D->getLexicalDeclContext()), Record); 162 Writer.WriteAttributes(ArrayRef<const Attr*>(D->getAttrs().begin(), 170 Record.push_back(Writer.inferSubmoduleIDFromLocation(D->getLocation())) [all...] |
/external/proguard/src/proguard/io/ |
DataEntryRewriter.java | 58 Writer writer = new BufferedWriter(new OutputStreamWriter(outputStream)); local 60 copyData(reader, writer); 62 writer.flush(); 69 * writer. 72 Writer writer) 97 writeUpdatedWord(writer, word.toString()); 101 writer.write(c); 106 writeUpdatedWord(writer, word.toString()) [all...] |
/external/skia/src/xml/ |
SkBML_XMLParser.cpp | 86 static void rattr(unsigned verb, SkStream& s, BMLW& rec, SkXMLWriter& writer) 118 writer.addAttribute(rec.fNames[nameIndex], rec.fValues[valueIndex]); 121 static void relem(unsigned verb, SkStream& s, BMLW& rec, SkXMLWriter& writer) 139 writer.startElement(rec.fElems[elemIndex]); 149 rattr(verb, s, rec, writer); 153 relem(verb, s, rec, writer); 156 writer.endElement(); 164 void BML_XMLParser::Read(SkStream& s, SkXMLWriter& writer) 167 writer.writeHeader(); 168 relem(rbyte(s), s, rec, writer); local [all...] |
/frameworks/testing/androidtestlib/src/com/android/test/runner/listener/ |
CoverageListener.java | 61 public void instrumentationRunFinished(PrintStream writer, Bundle results) { 62 generateCoverageReport(writer, results); 65 private void generateCoverageReport(PrintStream writer, Bundle results) { 80 writer.format("\nGenerated code coverage data to %s",mCoverageFilePath); 82 reportEmmaError(writer, "Is emma jar on classpath?", e); 84 reportEmmaError(writer, e); 86 reportEmmaError(writer, e); 88 reportEmmaError(writer, e); 90 reportEmmaError(writer, e); 92 reportEmmaError(writer, e) [all...] |
/external/smali/baksmali/src/main/java/org/jf/baksmali/Renderers/ |
ShortRenderer.java | 36 public static void writeTo(IndentingWriter writer, short val) throws IOException { 38 writer.write("-0x"); 39 writer.printUnsignedLongAsHex(-val); 40 writer.write('s'); 42 writer.write("0x"); 43 writer.printUnsignedLongAsHex(val); 44 writer.write('s');
|
/frameworks/base/core/java/android/util/ |
JsonWriter.java | 21 import java.io.Writer; 34 * writer as you walk the structure's contents, nesting arrays and objects as 72 * JsonWriter writer = new JsonWriter(new OutputStreamWriter(out, "UTF-8")); 73 * writer.setIndent(" "); 74 * writeMessagesArray(writer, messages); 75 * writer.close(); 78 * public void writeMessagesArray(JsonWriter writer, List<Message> messages) throws IOException { 79 * writer.beginArray(); 81 * writeMessage(writer, message); 83 * writer.endArray() [all...] |
/external/guava/guava/src/com/google/common/io/ |
AppendableWriter.java | 22 import java.io.Writer; 25 * Writer that places all output on an {@link Appendable} target. If the target 33 class AppendableWriter extends Writer { 38 * Creates a new writer that appends everything it writes to {@code target}. 47 * Abstract methods from Writer 93 @Override public Writer append(char c) throws IOException { 99 @Override public Writer append(CharSequence charSeq) throws IOException { 105 @Override public Writer append(CharSequence charSeq, int start, int end) 114 throw new IOException("Cannot write to a closed writer.");
|
/external/smali/baksmali/src/main/java/org/jf/baksmali/Adaptors/EncodedValue/ |
ArrayEncodedValueAdaptor.java | 38 public static void writeTo(IndentingWriter writer, ArrayEncodedValue encodedArray) throws IOException { 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}");
|
/external/chromium_org/cloud_print/gcp20/prototype/ |
dns_response_builder.cc | 59 net::BigEndianWriter writer(rdata.data(), rdata.size()); 60 success = writer.WriteU16(priority) && 61 writer.WriteU16(weight) && 62 writer.WriteU16(http_port) && 63 writer.WriteBytes(domain_name.data(), domain_name.size()); 65 DCHECK_EQ(writer.remaining(), 0); // For warranty of correct size allocation. 115 net::BigEndianWriter writer(message->data(), message->size()); 116 bool success = writer.WriteU16(header_.id) && 117 writer.WriteU16(header_.flags) && 118 writer.WriteU16(header_.qdcount) & [all...] |