Home
last modified time | relevance | path

Searched refs:out (Results 1 – 25 of 234) sorted by relevance

12345678910

/dalvik/dexgen/src/com/android/dexgen/dex/file/
DHeaderItem.java66 public void writeTo(DexFile file, AnnotatedOutput out) { in writeTo() argument
74 if (out.annotates()) { in writeTo()
75 out.annotate(8, "magic: " + new CstUtf8(MAGIC).toQuoted()); in writeTo()
76 out.annotate(4, "checksum"); in writeTo()
77 out.annotate(20, "signature"); in writeTo()
78 out.annotate(4, "file_size: " + in writeTo()
80 out.annotate(4, "header_size: " + Hex.u4(HEADER_SIZE)); in writeTo()
81 out.annotate(4, "endian_tag: " + Hex.u4(ENDIAN_TAG)); in writeTo()
82 out.annotate(4, "link_size: 0"); in writeTo()
83 out.annotate(4, "link_off: 0"); in writeTo()
[all …]
DCodeItem.java165 public void debugPrint(PrintWriter out, String prefix, boolean verbose) { in debugPrint() argument
166 out.println(ref.toHuman() + ":"); in debugPrint()
169 out.println("regs: " + Hex.u2(getRegistersSize()) + in debugPrint()
173 insns.debugPrint(out, prefix, verbose); in debugPrint()
178 out.print(prefix); in debugPrint()
179 out.println("catches"); in debugPrint()
180 catches.debugPrint(out, prefix2); in debugPrint()
184 out.print(prefix); in debugPrint()
185 out.println("debug info"); in debugPrint()
186 debugInfo.debugPrint(out, prefix2); in debugPrint()
[all …]
DAnnotationsDirectoryItem.java284 protected void writeTo0(DexFile file, AnnotatedOutput out) { in writeTo0() argument
285 boolean annotates = out.annotates(); in writeTo0()
292 out.annotate(0, offsetString() + " annotations directory"); in writeTo0()
293 out.annotate(4, " class_annotations_off: " + Hex.u4(classOff)); in writeTo0()
294 out.annotate(4, " fields_size: " + in writeTo0()
296 out.annotate(4, " methods_size: " + in writeTo0()
298 out.annotate(4, " parameters_size: " + in writeTo0()
302 out.writeInt(classOff); in writeTo0()
303 out.writeInt(fieldsSize); in writeTo0()
304 out.writeInt(methodsSize); in writeTo0()
[all …]
DAnnotationItem.java155 ByteArrayAnnotatedOutput out = new ByteArrayAnnotatedOutput(); in place0() local
156 ValueEncoder encoder = new ValueEncoder(addedTo.getFile(), out); in place0()
159 encodedForm = out.toByteArray(); in place0()
173 public void annotateTo(AnnotatedOutput out, String prefix) { in annotateTo() argument
174 out.annotate(0, prefix + "visibility: " + in annotateTo()
176 out.annotate(0, prefix + "type: " + annotation.getType().toHuman()); in annotateTo()
182 out.annotate(0, prefix + name.toHuman() + ": " + in annotateTo()
189 protected void writeTo0(DexFile file, AnnotatedOutput out) { in writeTo0() argument
190 boolean annotates = out.annotates(); in writeTo0()
194 out.annotate(0, offsetString() + " annotation"); in writeTo0()
[all …]
DClassDataItem.java201 public void debugPrint(Writer out, boolean verbose) { in debugPrint() argument
202 PrintWriter pw = Writers.printWriterFor(out); in debugPrint()
330 ByteArrayAnnotatedOutput out = new ByteArrayAnnotatedOutput(); in place0() local
332 encodeOutput(addedTo.getFile(), out); in place0() local
333 encodedForm = out.toByteArray(); in place0()
343 private void encodeOutput(DexFile file, AnnotatedOutput out) { in encodeOutput() argument
344 boolean annotates = out.annotates(); in encodeOutput()
347 out.annotate(0, offsetString() + " class data for " + in encodeOutput()
351 encodeSize(file, out, "static_fields", staticFields.size()); in encodeOutput()
352 encodeSize(file, out, "instance_fields", instanceFields.size()); in encodeOutput()
[all …]
DSection.java146 public final void writeTo(AnnotatedOutput out) { in writeTo() argument
148 align(out); in writeTo()
150 int cursor = out.getCursor(); in writeTo()
160 if (out.annotates()) { in writeTo()
162 out.annotate(0, "\n" + name + ":"); in writeTo()
164 out.annotate(0, "\n"); in writeTo()
168 writeTo0(out); in writeTo()
263 protected final void align(AnnotatedOutput out) { in align() argument
264 out.alignTo(alignment); in align()
277 protected abstract void writeTo0(AnnotatedOutput out); in writeTo0() argument
DMemberIdItem.java63 public final void writeTo(DexFile file, AnnotatedOutput out) { in writeTo() argument
71 if (out.annotates()) { in writeTo()
72 out.annotate(0, indexString() + ' ' + cst.toHuman()); in writeTo()
73 out.annotate(2, " class_idx: " + Hex.u2(classIdx)); in writeTo()
74 out.annotate(2, String.format(" %-10s %s", getTypoidName() + ':', in writeTo()
76 out.annotate(4, " name_idx: " + Hex.u4(nameIdx)); in writeTo()
79 out.writeShort(classIdx); in writeTo()
80 out.writeShort(typoidIdx); in writeTo()
81 out.writeInt(nameIdx); in writeTo()
/dalvik/dx/src/com/android/dx/dex/file/
DHeaderItem.java56 public void writeTo(DexFile file, AnnotatedOutput out) { in writeTo() argument
66 if (out.annotates()) { in writeTo()
67 out.annotate(8, "magic: " + new CstString(magic).toQuoted()); in writeTo()
68 out.annotate(4, "checksum"); in writeTo()
69 out.annotate(20, "signature"); in writeTo()
70 out.annotate(4, "file_size: " + in writeTo()
72 out.annotate(4, "header_size: " + Hex.u4(SizeOf.HEADER_ITEM)); in writeTo()
73 out.annotate(4, "endian_tag: " + Hex.u4(DexFormat.ENDIAN_TAG)); in writeTo()
74 out.annotate(4, "link_size: 0"); in writeTo()
75 out.annotate(4, "link_off: 0"); in writeTo()
[all …]
DCodeItem.java156 public void debugPrint(PrintWriter out, String prefix, boolean verbose) { in debugPrint() argument
157 out.println(ref.toHuman() + ":"); in debugPrint()
160 out.println("regs: " + Hex.u2(getRegistersSize()) + in debugPrint()
164 insns.debugPrint(out, prefix, verbose); in debugPrint()
169 out.print(prefix); in debugPrint()
170 out.println("catches"); in debugPrint()
171 catches.debugPrint(out, prefix2); in debugPrint()
175 out.print(prefix); in debugPrint()
176 out.println("debug info"); in debugPrint()
177 debugInfo.debugPrint(out, prefix2); in debugPrint()
[all …]
DAnnotationsDirectoryItem.java288 protected void writeTo0(DexFile file, AnnotatedOutput out) { in writeTo0() argument
289 boolean annotates = out.annotates(); in writeTo0()
296 out.annotate(0, offsetString() + " annotations directory"); in writeTo0()
297 out.annotate(4, " class_annotations_off: " + Hex.u4(classOff)); in writeTo0()
298 out.annotate(4, " fields_size: " + in writeTo0()
300 out.annotate(4, " methods_size: " + in writeTo0()
302 out.annotate(4, " parameters_size: " + in writeTo0()
306 out.writeInt(classOff); in writeTo0()
307 out.writeInt(fieldsSize); in writeTo0()
308 out.writeInt(methodsSize); in writeTo0()
[all …]
DAnnotationItem.java155 ByteArrayAnnotatedOutput out = new ByteArrayAnnotatedOutput(); in place0() local
156 ValueEncoder encoder = new ValueEncoder(addedTo.getFile(), out); in place0()
159 encodedForm = out.toByteArray(); in place0()
173 public void annotateTo(AnnotatedOutput out, String prefix) { in annotateTo() argument
174 out.annotate(0, prefix + "visibility: " + in annotateTo()
176 out.annotate(0, prefix + "type: " + annotation.getType().toHuman()); in annotateTo()
182 out.annotate(0, prefix + name.toHuman() + ": " + in annotateTo()
189 protected void writeTo0(DexFile file, AnnotatedOutput out) { in writeTo0() argument
190 boolean annotates = out.annotates(); in writeTo0()
194 out.annotate(0, offsetString() + " annotation"); in writeTo0()
[all …]
DClassDataItem.java197 public void debugPrint(Writer out, boolean verbose) { in debugPrint() argument
198 PrintWriter pw = Writers.printWriterFor(out); in debugPrint()
326 ByteArrayAnnotatedOutput out = new ByteArrayAnnotatedOutput(); in place0() local
328 encodeOutput(addedTo.getFile(), out); in place0() local
329 encodedForm = out.toByteArray(); in place0()
339 private void encodeOutput(DexFile file, AnnotatedOutput out) { in encodeOutput() argument
340 boolean annotates = out.annotates(); in encodeOutput()
343 out.annotate(0, offsetString() + " class data for " + in encodeOutput()
347 encodeSize(file, out, "static_fields", staticFields.size()); in encodeOutput()
348 encodeSize(file, out, "instance_fields", instanceFields.size()); in encodeOutput()
[all …]
DSection.java145 public final void writeTo(AnnotatedOutput out) { in writeTo() argument
147 align(out); in writeTo()
149 int cursor = out.getCursor(); in writeTo()
159 if (out.annotates()) { in writeTo()
161 out.annotate(0, "\n" + name + ":"); in writeTo()
163 out.annotate(0, "\n"); in writeTo()
167 writeTo0(out); in writeTo()
262 protected final void align(AnnotatedOutput out) { in align() argument
263 out.alignTo(alignment); in align()
276 protected abstract void writeTo0(AnnotatedOutput out); in writeTo0() argument
DValueEncoder.java101 private final AnnotatedOutput out; field in ValueEncoder
109 public ValueEncoder(DexFile file, AnnotatedOutput out) { in ValueEncoder() argument
114 if (out == null) { in ValueEncoder()
119 this.out = out; in ValueEncoder()
137 EncodedValueCodec.writeSignedIntegralValue(out, type, value); in writeConstant()
142 EncodedValueCodec.writeUnsignedIntegralValue(out, type, value); in writeConstant()
148 EncodedValueCodec.writeRightZeroExtendedValue(out, type, value); in writeConstant()
153 EncodedValueCodec.writeRightZeroExtendedValue(out, type, value); in writeConstant()
158 EncodedValueCodec.writeUnsignedIntegralValue(out, type, (long) index); in writeConstant()
163 EncodedValueCodec.writeUnsignedIntegralValue(out, type, (long) index); in writeConstant()
[all …]
DDebugInfoItem.java97 public void annotateTo(DexFile file, AnnotatedOutput out, String prefix) { in annotateTo() argument
98 encode(file, prefix, null, out, false); in annotateTo()
107 public void debugPrint(PrintWriter out, String prefix) { in debugPrint() argument
108 encode(null, prefix, out, null, false); in debugPrint()
113 protected void writeTo0(DexFile file, AnnotatedOutput out) { in writeTo0() argument
114 if (out.annotates()) { in writeTo0()
120 out.annotate(offsetString() + " debug info"); in writeTo0()
121 encode(file, null, null, out, true); in writeTo0()
124 out.write(encoded); in writeTo0()
140 AnnotatedOutput out, boolean consume) { in encode() argument
[all …]
DMemberIdItem.java61 public final void writeTo(DexFile file, AnnotatedOutput out) { in writeTo() argument
69 if (out.annotates()) { in writeTo()
70 out.annotate(0, indexString() + ' ' + cst.toHuman()); in writeTo()
71 out.annotate(2, " class_idx: " + Hex.u2(classIdx)); in writeTo()
72 out.annotate(2, String.format(" %-10s %s", getTypoidName() + ':', in writeTo()
74 out.annotate(4, " name_idx: " + Hex.u4(nameIdx)); in writeTo()
77 out.writeShort(classIdx); in writeTo()
78 out.writeShort(typoidIdx); in writeTo()
79 out.writeInt(nameIdx); in writeTo()
/dalvik/dexgen/src/com/android/dexgen/util/
DExceptionWithContext.java93 public void printStackTrace(PrintStream out) { in printStackTrace() argument
94 super.printStackTrace(out); in printStackTrace()
95 out.println(context); in printStackTrace()
100 public void printStackTrace(PrintWriter out) { in printStackTrace() argument
101 super.printStackTrace(out); in printStackTrace()
102 out.println(context); in printStackTrace()
135 public void printContext(PrintStream out) { in printContext() argument
136 out.println(getMessage()); in printContext()
137 out.print(context); in printContext()
145 public void printContext(PrintWriter out) { in printContext() argument
[all …]
DTwoColumnOutput.java32 private final Writer out; field in TwoColumnOutput
88 public TwoColumnOutput(Writer out, int leftWidth, int rightWidth, in TwoColumnOutput() argument
90 if (out == null) { in TwoColumnOutput()
109 this.out = out; in TwoColumnOutput()
126 public TwoColumnOutput(OutputStream out, int leftWidth, int rightWidth, in TwoColumnOutput() argument
128 this(new OutputStreamWriter(out), leftWidth, rightWidth, spacer); in TwoColumnOutput()
184 out.write(leftBuf.substring(0, leftLen)); in outputFullLines()
188 writeSpaces(out, leftWidth - leftLen); in outputFullLines()
189 out.write(rightBuf.substring(0, rightLen)); in outputFullLines()
192 out.write('\n'); in outputFullLines()
[all …]
DIndentingWriter.java56 public IndentingWriter(Writer out, int width, String prefix) { in IndentingWriter() argument
57 super(out); in IndentingWriter()
59 if (out == null) { in IndentingWriter()
85 public IndentingWriter(Writer out, int width) { in IndentingWriter() argument
86 this(out, width, ""); in IndentingWriter()
106 out.write('\n'); in write()
116 out.write(prefix); in write()
121 out.write(' '); in write()
127 out.write(c); in write()
/dalvik/dx/src/com/android/dx/util/
DTwoColumnOutput.java32 private final Writer out; field in TwoColumnOutput
88 public TwoColumnOutput(Writer out, int leftWidth, int rightWidth, in TwoColumnOutput() argument
90 if (out == null) { in TwoColumnOutput()
109 this.out = out; in TwoColumnOutput()
126 public TwoColumnOutput(OutputStream out, int leftWidth, int rightWidth, in TwoColumnOutput() argument
128 this(new OutputStreamWriter(out), leftWidth, rightWidth, spacer); in TwoColumnOutput()
184 out.write(leftBuf.substring(0, leftLen)); in outputFullLines()
188 writeSpaces(out, leftWidth - leftLen); in outputFullLines()
189 out.write(rightBuf.substring(0, rightLen)); in outputFullLines()
192 out.write('\n'); in outputFullLines()
[all …]
DIndentingWriter.java56 public IndentingWriter(Writer out, int width, String prefix) { in IndentingWriter() argument
57 super(out); in IndentingWriter()
59 if (out == null) { in IndentingWriter()
85 public IndentingWriter(Writer out, int width) { in IndentingWriter() argument
86 this(out, width, ""); in IndentingWriter()
106 out.write('\n'); in write()
116 out.write(prefix); in write()
121 out.write(' '); in write()
127 out.write(c); in write()
/dalvik/dx/src/com/android/dx/io/instructions/
DInstructionCodec.java39 @Override public void encode(DecodedInstruction insn, CodeOutput out) { in FORMAT_00X() argument
40 out.write(insn.getOpcodeUnit()); in FORMAT_00X()
54 @Override public void encode(DecodedInstruction insn, CodeOutput out) { in FORMAT_10X() argument
55 out.write(insn.getOpcodeUnit()); in FORMAT_10X()
71 @Override public void encode(DecodedInstruction insn, CodeOutput out) { in FORMAT_12X() argument
72 out.write( in FORMAT_12X()
90 @Override public void encode(DecodedInstruction insn, CodeOutput out) { in FORMAT_11N() argument
91 out.write( in FORMAT_11N()
108 @Override public void encode(DecodedInstruction insn, CodeOutput out) { in FORMAT_11X() argument
109 out.write(codeUnit(insn.getOpcode(), insn.getA())); in FORMAT_11X()
[all …]
/dalvik/dx/tests/094-scala-locals/
Dexpected.txt10 live out:{}
17 live out:{}
24 live out:{}
31 live out:{}
38 live out:{}
44 live out:{}
50 live out:{}
56 live out:{}
62 live out:{}
68 live out:{}
[all …]
/dalvik/dexgen/src/com/android/dexgen/dex/code/
DInsnFormat.java158 public abstract void writeTo(AnnotatedOutput out, DalvInsn insn); in writeTo() argument
491 protected static void write(AnnotatedOutput out, short c0) { in write() argument
492 out.writeShort(c0); in write()
502 protected static void write(AnnotatedOutput out, short c0, short c1) { in write() argument
503 out.writeShort(c0); in write()
504 out.writeShort(c1); in write()
515 protected static void write(AnnotatedOutput out, short c0, short c1, in write() argument
517 out.writeShort(c0); in write()
518 out.writeShort(c1); in write()
519 out.writeShort(c2); in write()
[all …]
/dalvik/tools/dexdeps/src/com/android/dexdeps/
DOutput.java31 private static final PrintStream out = System.out; field in Output
36 out.println("File: " + fileName); in generateHeader0()
40 out.println(IN0 + "<external file=\"" + fileName + "\">"); in generateHeader0()
42 out.println(IN0 + "<external>"); in generateHeader0()
55 out.println(); in generateHeader()
63 out.println("</external>"); in generateFooter()
101 out.println("Classes:"); in printClassRefs()
107 out.println(descriptorToDot(ref.getName())); in printClassRefs()
115 out.println("\nFields:"); in printFieldRefs()
122 out.println(descriptorToDot(ref.getDeclClassName()) + in printFieldRefs()
[all …]

12345678910