Home
last modified time | relevance | path

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

1234567891011

/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 …]
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 …]
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 …]
/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.java157 public void debugPrint(PrintWriter out, String prefix, boolean verbose) { in debugPrint() argument
158 out.println(ref.toHuman() + ":"); in debugPrint()
161 out.println("regs: " + Hex.u2(getRegistersSize()) + in debugPrint()
165 insns.debugPrint(out, prefix, verbose); in debugPrint()
170 out.print(prefix); in debugPrint()
171 out.println("catches"); in debugPrint()
172 catches.debugPrint(out, prefix2); in debugPrint()
176 out.print(prefix); in debugPrint()
177 out.println("debug info"); in debugPrint()
178 debugInfo.debugPrint(out, prefix2); in debugPrint()
[all …]
DValueEncoder.java109 private final AnnotatedOutput out; field in ValueEncoder
117 public ValueEncoder(DexFile file, AnnotatedOutput out) { in ValueEncoder() argument
122 if (out == null) { in ValueEncoder()
127 this.out = out; in ValueEncoder()
145 EncodedValueCodec.writeSignedIntegralValue(out, type, value); in writeConstant()
150 EncodedValueCodec.writeUnsignedIntegralValue(out, type, value); in writeConstant()
156 EncodedValueCodec.writeRightZeroExtendedValue(out, type, value); in writeConstant()
161 EncodedValueCodec.writeRightZeroExtendedValue(out, type, value); in writeConstant()
166 EncodedValueCodec.writeUnsignedIntegralValue(out, type, (long) index); in writeConstant()
171 EncodedValueCodec.writeUnsignedIntegralValue(out, type, (long) index); in writeConstant()
[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 …]
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 …]
DAnnotationItem.java157 ByteArrayAnnotatedOutput out = new ByteArrayAnnotatedOutput(); in place0() local
158 ValueEncoder encoder = new ValueEncoder(addedTo.getFile(), out); in place0()
161 encodedForm = out.toByteArray(); in place0()
175 public void annotateTo(AnnotatedOutput out, String prefix) { in annotateTo() argument
176 out.annotate(0, prefix + "visibility: " + in annotateTo()
178 out.annotate(0, prefix + "type: " + annotation.getType().toHuman()); in annotateTo()
184 out.annotate(0, prefix + name.toHuman() + ": " + in annotateTo()
191 protected void writeTo0(DexFile file, AnnotatedOutput out) { in writeTo0() argument
192 boolean annotates = out.annotates(); in writeTo0()
196 out.annotate(0, offsetString() + " annotation"); in writeTo0()
[all …]
DMethodHandleItem.java67 public void writeTo(DexFile file, AnnotatedOutput out) { in writeTo() argument
70 if (out.annotates()) { in writeTo()
71 out.annotate(0, indexString() + ' ' + methodHandle.toString()); in writeTo()
73 out.annotate(2, "type: " + Hex.u2(mhType) + typeComment); in writeTo()
74 out.annotate(2, "reserved: " + Hex.u2(0)); in writeTo()
77 out.annotate(2, "fieldId: " + Hex.u2(targetIndex) + targetComment); in writeTo()
79 out.annotate(2, "methodId: " + Hex.u2(targetIndex) + targetComment); in writeTo()
81 out.annotate(2, "reserved: " + Hex.u2(0)); in writeTo()
83 out.writeShort(mhType); in writeTo()
84 out.writeShort(0); in writeTo()
[all …]
/dalvik/dx/tests/137-dexmerger-dex38/src/invokecustom/
DInvokeCustom.java27 System.out.println("targetMethodTest4 from Super"); in targetMethodTest4()
37 System.out.println("InvokeCustom.<init>(" + i + ")"); in InvokeCustom()
41 System.out.println("Hello World!"); in targetMethodTest1()
46 System.out.println(z); in targetMethodTest2()
47 System.out.println(b); in targetMethodTest2()
48 System.out.println(c); in targetMethodTest2()
49 System.out.println(s); in targetMethodTest2()
50 System.out.println(i); in targetMethodTest2()
51 System.out.println(f); in targetMethodTest2()
52 System.out.println(l); in targetMethodTest2()
[all …]
/dalvik/dx/tests/135-invoke-custom/src/invokecustom/
DInvokeCustom.java31 System.out.println("targetMethodTest4 from Super"); in targetMethodTest4()
41 System.out.println("InvokeCustom.<init>(" + i + ")"); in InvokeCustom()
45 System.out.println("Hello World!"); in targetMethodTest1()
50 System.out.println(z); in targetMethodTest2()
51 System.out.println(b); in targetMethodTest2()
52 System.out.println(c); in targetMethodTest2()
53 System.out.println(s); in targetMethodTest2()
54 System.out.println(i); in targetMethodTest2()
55 System.out.println(f); in targetMethodTest2()
56 System.out.println(l); in targetMethodTest2()
[all …]
/dalvik/dx/tests/129-numthread-deterministic/
Drun44 mkdir out
45 dx -JXmx4g -JXms4g --dex --no-optimize --output=out classes
47 mkdir out-multi
48 dx -JXmx4g -JXms4g --dex --no-optimize --num-threads=4 --output=out-multi classes
50 diff -r out out-multi > unit-out.txt
54 cat unit-out.txt
/dalvik/dx/tests/130-numthread-multidex-deterministic/
Drun43 mkdir out
44 dx -JXmx4g -JXms4g --dex --no-optimize --multi-dex --output=out classes
46 mkdir out-multi
47 dx -JXmx4g -JXms4g --dex --no-optimize --multi-dex --num-threads=4 --output=out-multi classes
49 diff -r out out-multi > unit-out.txt
53 cat unit-out.txt
/dalvik/dx/src/com/android/dex/util/
DExceptionWithContext.java92 public void printStackTrace(PrintStream out) { in printStackTrace() argument
93 super.printStackTrace(out); in printStackTrace()
94 out.println(context); in printStackTrace()
99 public void printStackTrace(PrintWriter out) { in printStackTrace() argument
100 super.printStackTrace(out); in printStackTrace()
101 out.println(context); in printStackTrace()
134 public void printContext(PrintStream out) { in printContext() argument
135 out.println(getMessage()); in printContext()
136 out.print(context); in printContext()
144 public void printContext(PrintWriter out) { in printContext() argument
[all …]
/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 …]
/dalvik/dx/src/com/android/dx/io/instructions/
DInstructionCodec.java42 public void encode(DecodedInstruction insn, CodeOutput out) { in FORMAT_00X() argument
43 out.write(insn.getOpcodeUnit()); in FORMAT_00X()
59 public void encode(DecodedInstruction insn, CodeOutput out) { in FORMAT_10X() argument
60 out.write(insn.getOpcodeUnit()); in FORMAT_10X()
78 public void encode(DecodedInstruction insn, CodeOutput out) { in FORMAT_12X() argument
79 out.write( in FORMAT_12X()
99 public void encode(DecodedInstruction insn, CodeOutput out) { in FORMAT_11N() argument
100 out.write( in FORMAT_11N()
119 public void encode(DecodedInstruction insn, CodeOutput out) { in FORMAT_11X() argument
120 out.write(codeUnit(insn.getOpcode(), insn.getA())); in FORMAT_11X()
[all …]
/dalvik/dx/src/com/android/dex/
DTableOfContents.java174 public void writeHeader(Dex.Section out, int api) throws IOException { in writeHeader() argument
175 out.write(DexFormat.apiToMagic(api).getBytes("UTF-8")); in writeHeader()
176 out.writeInt(checksum); in writeHeader()
177 out.write(signature); in writeHeader()
178 out.writeInt(fileSize); in writeHeader()
179 out.writeInt(SizeOf.HEADER_ITEM); in writeHeader()
180 out.writeInt(DexFormat.ENDIAN_TAG); in writeHeader()
181 out.writeInt(linkSize); in writeHeader()
182 out.writeInt(linkOff); in writeHeader()
183 out.writeInt(mapList.off); in writeHeader()
[all …]
/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 …]
/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/dx/src/com/android/dx/dex/code/
DInsnFormat.java171 public abstract void writeTo(AnnotatedOutput out, DalvInsn insn); in writeTo() argument
544 protected static void write(AnnotatedOutput out, short c0) { in write() argument
545 out.writeShort(c0); in write()
555 protected static void write(AnnotatedOutput out, short c0, short c1) { in write() argument
556 out.writeShort(c0); in write()
557 out.writeShort(c1); in write()
568 protected static void write(AnnotatedOutput out, short c0, short c1, in write() argument
570 out.writeShort(c0); in write()
571 out.writeShort(c1); in write()
572 out.writeShort(c2); in write()
[all …]

1234567891011