/external/smali/baksmali/src/main/java/org/jf/baksmali/Adaptors/Format/ |
InstructionMethodItem.java | 60 public boolean writeTo(IndentingWriter writer) throws IOException { 63 writeOpcode(writer); 64 writer.write(' '); 65 writeTargetLabel(writer); 69 writer.write("#unknown opcode: 0x"); 70 writer.printUnsignedLongAsHex(((UnknownInstruction) instruction).getOriginalOpcode() & 0xFFFF); 71 writer.write('\n'); 73 writeOpcode(writer); 76 writeOpcode(writer); 77 writer.write(' ') [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');
|
ByteRenderer.java | 36 public static void writeTo(IndentingWriter writer, byte val) throws IOException { 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 { 49 writer.write("0x"); 50 writer.printUnsignedLongAsHex(val & 0xFF) [all...] |
IntegerRenderer.java | 36 public static void writeTo(IndentingWriter writer, int val) throws IOException { 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 { 47 writer.write("0x"); 48 writer.printUnsignedLongAsHex(val & 0xFFFFFFFFL);
|
LongRenderer.java | 36 public static void writeTo(IndentingWriter writer, long val) throws IOException { 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 { 50 writer.write("-0x"); 51 writer.printUnsignedLongAsHex(-val) [all...] |
/external/chromium_org/third_party/WebKit/Source/core/page/ |
PagePopupClient.cpp | 38 #define addLiteral(literal, writer) writer.addData(literal, sizeof(literal) - 1) 40 void PagePopupClient::addJavaScriptString(const String& str, DocumentWriter& writer) 42 addLiteral("\"", writer); 50 addString(builder.toString(), writer); 51 addLiteral("\"", writer); 54 void PagePopupClient::addProperty(const char* name, const String& value, DocumentWriter& writer) 56 writer.addData(name, strlen(name)); 57 addLiteral(": ", writer); 58 addJavaScriptString(value, writer); 66 addString(String::number(value), writer); local 74 addString(String::number(value), writer); local [all...] |
/external/smali/baksmali/src/main/java/org/jf/baksmali/Adaptors/ |
DebugMethodItem.java | 51 protected static void writeLine(IndentingWriter writer, int line) throws IOException { 52 writer.write(".line "); 53 writer.printSignedIntAsDec(line); 56 protected static void writeEndPrologue(IndentingWriter writer) throws IOException { 57 writer.write(".prologue"); 60 protected static void writeBeginEpilogue(IndentingWriter writer) throws IOException { 61 writer.write(".epilogue"); 64 protected static void writeStartLocal(IndentingWriter writer, CodeItem codeItem, int register, 67 writer.write(".local "); 68 RegisterFormatter.writeTo(writer, codeItem, register) [all...] |
ReferenceFormatter.java | 38 public static void writeReference(IndentingWriter writer, Item item) throws IOException { 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 { 56 writer.write(item.getContainingClass().getTypeDescriptor()); 57 writer.write("->"); 58 writer.write(item.getMethodName().getStringValue()); 59 writer.write(item.getPrototype().getPrototypeString()) [all...] |
AnnotationFormatter.java | 41 public static void writeTo(IndentingWriter writer, AnnotationSetItem annotationSet) throws IOException { 45 writer.write('\n'); 49 writeTo(writer, annotationItem); 53 public static void writeTo(IndentingWriter writer, AnnotationItem annotationItem) throws IOException { 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, annotationItem.getEncodedAnnotation()) [all...] |
RegisterFormatter.java | 48 * @param writer the <code>IndentingWriter</code> to write to 53 public static void writeRegisterRange(IndentingWriter writer, CodeItem codeItem, int startRegister, 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.write(" .. v") [all...] |
/external/chromium_org/net/quic/ |
quic_data_writer_test.cc | 14 QuicDataWriter writer(4); 16 writer.WriteUInt32(0xfefdfcfb); 17 EXPECT_TRUE(writer.WriteUInt8ToOffset(1, 0)); 18 EXPECT_TRUE(writer.WriteUInt8ToOffset(2, 1)); 19 EXPECT_TRUE(writer.WriteUInt8ToOffset(3, 2)); 20 EXPECT_TRUE(writer.WriteUInt8ToOffset(4, 3)); 22 char* data = writer.take(); 33 QuicDataWriter writer(4); 37 EXPECT_DEBUG_DEATH(writer.WriteUInt8ToOffset(5, 4), "Check failed"); 39 EXPECT_DEATH(writer.WriteUInt8ToOffset(5, 4), "Check failed") [all...] |
/external/smali/baksmali/src/main/java/org/jf/baksmali/Adaptors/EncodedValue/ |
AnnotationEncodedValueAdaptor.java | 39 public static void writeTo(IndentingWriter writer, AnnotationEncodedSubValue encodedAnnotation) 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) 51 writer.indent(4); 53 writer.write(encodedAnnotation.names[i].getStringValue()); 54 writer.write(" = ") [all...] |
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/net/tools/quic/test_tools/ |
quic_epoll_connection_helper_peer.cc | 15 QuicPacketWriter* writer) { 16 helper->writer_ = writer;
|
/external/guava/guava-tests/test/com/google/common/io/ |
AppendableWriterTest.java | 22 import java.io.Writer; 63 Writer writer = new AppendableWriter(builder); local 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) local 89 Writer writer = new AppendableWriter(spy); local 106 Writer writer = new AppendableWriter(builder); local [all...] |
/dalvik/dexgen/src/com/android/dexgen/util/ |
Writers.java | 20 import java.io.Writer; 23 * Utilities for dealing with {@code Writer}s. 34 * Makes a {@code PrintWriter} for the given {@code Writer}, 35 * 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) { 42 if (writer instanceof PrintWriter) { 43 return (PrintWriter) writer; [all...] |
/dalvik/dx/src/com/android/dx/util/ |
Writers.java | 20 import java.io.Writer; 23 * Utilities for dealing with {@code Writer}s. 34 * Makes a {@code PrintWriter} for the given {@code Writer}, 35 * 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) { 42 if (writer instanceof PrintWriter) { 43 return (PrintWriter) writer; [all...] |
/external/dexmaker/src/dx/java/com/android/dx/util/ |
Writers.java | 20 import java.io.Writer; 23 * Utilities for dealing with {@code Writer}s. 34 * Makes a {@code PrintWriter} for the given {@code Writer}, 35 * 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) { 42 if (writer instanceof PrintWriter) { 43 return (PrintWriter) writer; [all...] |
/external/chromium/chrome/common/ |
important_file_writer_unittest.cc | 60 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.HasPendingWrite()) [all...] |
/external/chromium_org/base/files/ |
important_file_writer_unittest.cc | 63 ImportantFileWriter writer(file_, MessageLoopProxy::current().get()); 64 EXPECT_FALSE(PathExists(writer.path())); 65 writer.WriteNow("foo"); 68 ASSERT_TRUE(PathExists(writer.path())); 69 EXPECT_EQ("foo", GetFileContent(writer.path())); 73 ImportantFileWriter writer(file_, MessageLoopProxy::current().get()); 74 writer.set_commit_interval(TimeDelta::FromMilliseconds(25)); 75 EXPECT_FALSE(writer.HasPendingWrite()); 77 writer.ScheduleWrite(&serializer); 78 EXPECT_TRUE(writer.HasPendingWrite()) [all...] |
/external/chromium_org/third_party/skia/src/core/ |
SkFlattenableSerialization.cpp | 16 SkOrderedWriteBuffer writer(1024); 17 writer.setFlags(SkOrderedWriteBuffer::kCrossProcess_Flag); 18 writer.writeFlattenable(flattenable); 19 uint32_t size = writer.bytesWritten(); 21 writer.writeToMemory(data);
|
/external/skia/src/core/ |
SkFlattenableSerialization.cpp | 16 SkOrderedWriteBuffer writer(1024); 17 writer.setFlags(SkOrderedWriteBuffer::kCrossProcess_Flag); 18 writer.writeFlattenable(flattenable); 19 uint32_t size = writer.bytesWritten(); 21 writer.writeToMemory(data);
|
/external/skia/tests/ |
Writer32Test.cpp | 16 static void check_contents(skiatest::Reporter* reporter, const SkWriter32& writer, 19 REPORTER_ASSERT(reporter, writer.bytesWritten() == size); 20 writer.flatten(storage.get()); 26 SkWriter32 writer(0, storage, sizeof(storage)); 33 writer.writeString(NULL); 35 check_contents(reporter, writer, null, sizeof(null)); 40 writer.reset(storage, sizeof(storage)); 44 writer.writeString(""); 46 check_contents(reporter, writer, empty, sizeof(empty)); 53 SkSWriter32<32> writer(32) [all...] |
/external/chromium_org/third_party/libxml/src/ |
xmlwriter.c | 3 * 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 [all...] |
/external/libxml2/ |
xmlwriter.c | 3 * 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 [all...] |