Searched refs:out (Results 51 - 75 of 221) sorted by relevance

123456789

/dalvik/dx/src/com/android/dx/dex/file/
H A DTypeListItem.java91 protected void writeTo0(DexFile file, AnnotatedOutput out) { argument
95 if (out.annotates()) {
96 out.annotate(0, offsetString() + " type_list");
97 out.annotate(HEADER_SIZE, " size: " + Hex.u4(sz));
101 out.annotate(ELEMENT_SIZE,
106 out.writeInt(sz);
109 out.writeShort(typeIds.indexOf(list.getType(i)));
H A DEncodedField.java116 public void debugPrint(PrintWriter out, boolean verbose) { argument
118 out.println(toString());
132 public int encode(DexFile file, AnnotatedOutput out, argument
138 if (out.annotates()) {
139 out.annotate(0, String.format(" [%x] %s", dumpSeq,
141 out.annotate(Leb128.unsignedLeb128Size(diff),
143 out.annotate(Leb128.unsignedLeb128Size(accessFlags),
148 out.writeUleb128(diff);
149 out.writeUleb128(accessFlags);
H A DStringIdItem.java97 public void writeTo(DexFile file, AnnotatedOutput out) { argument
100 if (out.annotates()) {
101 out.annotate(0, indexString() + ' ' + value.toQuoted(100));
102 out.annotate(4, " string_data_off: " + Hex.u4(dataOff));
105 out.writeInt(dataOff);
H A DTypeIdItem.java58 public void writeTo(DexFile file, AnnotatedOutput out) { argument
63 if (out.annotates()) {
64 out.annotate(0, indexString() + ' ' + descriptor.toHuman());
65 out.annotate(4, " descriptor_idx: " + Hex.u4(idx));
68 out.writeInt(idx);
H A DEncodedMethod.java139 public void debugPrint(PrintWriter out, boolean verbose) { argument
141 out.println(getRef().toHuman() + ": abstract or native");
143 code.debugPrint(out, " ", verbose);
158 public int encode(DexFile file, AnnotatedOutput out, argument
177 if (out.annotates()) {
178 out.annotate(0, String.format(" [%x] %s", dumpSeq,
180 out.annotate(Leb128.unsignedLeb128Size(diff),
182 out.annotate(Leb128.unsignedLeb128Size(accessFlags),
185 out.annotate(Leb128.unsignedLeb128Size(codeOff),
189 out
[all...]
H A DFieldIdsSection.java75 * @param out {@code non-null;} where to write
77 public void writeHeaderPart(AnnotatedOutput out) { argument
83 if (out.annotates()) {
84 out.annotate(4, "field_ids_size: " + Hex.u4(sz));
85 out.annotate(4, "field_ids_off: " + Hex.u4(offset));
88 out.writeInt(sz);
89 out.writeInt(offset);
H A DMethodIdsSection.java75 * @param out {@code non-null;} where to write
77 public void writeHeaderPart(AnnotatedOutput out) { argument
83 if (out.annotates()) {
84 out.annotate(4, "method_ids_size: " + Hex.u4(sz));
85 out.annotate(4, "method_ids_off: " + Hex.u4(offset));
88 out.writeInt(sz);
89 out.writeInt(offset);
H A DProtoIdsSection.java62 * @param out {@code non-null;} where to write
64 public void writeHeaderPart(AnnotatedOutput out) { argument
74 if (out.annotates()) {
75 out.annotate(4, "proto_ids_size: " + Hex.u4(sz));
76 out.annotate(4, "proto_ids_off: " + Hex.u4(offset));
79 out.writeInt(sz);
80 out.writeInt(offset);
H A DAnnotationSetItem.java134 protected void writeTo0(DexFile file, AnnotatedOutput out) { argument
135 boolean annotates = out.annotates();
139 out.annotate(0, offsetString() + " annotation set");
140 out.annotate(4, " size: " + Hex.u4(size));
143 out.writeInt(size);
150 out.annotate(4, " entries[" + Integer.toHexString(i) + "]: " +
152 items[i].annotateTo(out, " ");
155 out.writeInt(offset);
H A DCatchStructs.java104 * @param out {@code non-null;} where to dump
107 public void debugPrint(PrintWriter out, String prefix) { argument
108 annotateEntries(prefix, out, null);
137 ByteArrayAnnotatedOutput out = new ByteArrayAnnotatedOutput();
139 // Write out the handlers "header" consisting of its size in entries.
141 out.writeUleb128(handlerOffsets.size());
143 // Now write the lists out in order, noting the offset of each.
151 mapping.setValue(out.getCursor());
155 out.writeSleb128(-(listSize - 1));
158 out
192 writeTo(DexFile file, AnnotatedOutput out) argument
[all...]
H A DEncodedMember.java60 * @param out {@code non-null;} where to dump
63 public abstract void debugPrint(PrintWriter out, boolean verbose); argument
76 * @param out {@code non-null;} where to write to
83 public abstract int encode(DexFile file, AnnotatedOutput out, argument
/dalvik/dexgen/src/com/android/dexgen/dex/code/
H A DDalvInsnList.java122 * @param out {@code non-null;} where to write to
124 public void writeTo(AnnotatedOutput out) { argument
125 int startCursor = out.getCursor();
128 if (out.annotates()) {
129 boolean verbose = out.isVerbose();
137 s = insn.listingString(" ", out.getAnnotationWidth(),
144 out.annotate(codeBytes, s);
146 out.annotate(codeBytes, "");
154 insn.writeTo(out);
162 int written = (out
224 debugPrint(Writer out, String prefix, boolean verbose) argument
258 debugPrint(OutputStream out, String prefix, boolean verbose) argument
[all...]
/dalvik/dx/src/com/android/dx/dex/code/
H A DDalvInsnList.java122 * @param out {@code non-null;} where to write to
124 public void writeTo(AnnotatedOutput out) { argument
125 int startCursor = out.getCursor();
128 if (out.annotates()) {
129 boolean verbose = out.isVerbose();
137 s = insn.listingString(" ", out.getAnnotationWidth(),
144 out.annotate(codeBytes, s);
146 out.annotate(codeBytes, "");
154 insn.writeTo(out);
162 int written = (out
224 debugPrint(Writer out, String prefix, boolean verbose) argument
258 debugPrint(OutputStream out, String prefix, boolean verbose) argument
[all...]
/dalvik/dexgen/src/com/android/dexgen/dex/file/
H A DEncodedField.java117 public void debugPrint(PrintWriter out, boolean verbose) { argument
119 out.println(toString());
133 public int encode(DexFile file, AnnotatedOutput out, argument
139 if (out.annotates()) {
140 out.annotate(0, String.format(" [%x] %s", dumpSeq,
142 out.annotate(Leb128Utils.unsignedLeb128Size(diff),
144 out.annotate(Leb128Utils.unsignedLeb128Size(accessFlags),
149 out.writeUnsignedLeb128(diff);
150 out.writeUnsignedLeb128(accessFlags);
H A DStringIdItem.java28 /** size of instances when written out to a file, in bytes */
99 public void writeTo(DexFile file, AnnotatedOutput out) { argument
102 if (out.annotates()) {
103 out.annotate(0, indexString() + ' ' + value.toQuoted(100));
104 out.annotate(4, " string_data_off: " + Hex.u4(dataOff));
107 out.writeInt(dataOff);
H A DTypeIdItem.java28 /** size of instances when written out to a file, in bytes */
60 public void writeTo(DexFile file, AnnotatedOutput out) { argument
65 if (out.annotates()) {
66 out.annotate(0, indexString() + ' ' + descriptor.toHuman());
67 out.annotate(4, " descriptor_idx: " + Hex.u4(idx));
70 out.writeInt(idx);
H A DEncodedMethod.java140 public void debugPrint(PrintWriter out, boolean verbose) { argument
142 out.println(getRef().toHuman() + ": abstract or native");
144 code.debugPrint(out, " ", verbose);
159 public int encode(DexFile file, AnnotatedOutput out, argument
178 if (out.annotates()) {
179 out.annotate(0, String.format(" [%x] %s", dumpSeq,
181 out.annotate(Leb128Utils.unsignedLeb128Size(diff),
183 out.annotate(Leb128Utils.unsignedLeb128Size(accessFlags),
186 out.annotate(Leb128Utils.unsignedLeb128Size(codeOff),
190 out
[all...]
H A DFieldIdsSection.java75 * @param out {@code non-null;} where to write
77 public void writeHeaderPart(AnnotatedOutput out) { argument
83 if (out.annotates()) {
84 out.annotate(4, "field_ids_size: " + Hex.u4(sz));
85 out.annotate(4, "field_ids_off: " + Hex.u4(offset));
88 out.writeInt(sz);
89 out.writeInt(offset);
H A DMethodIdsSection.java75 * @param out {@code non-null;} where to write
77 public void writeHeaderPart(AnnotatedOutput out) { argument
83 if (out.annotates()) {
84 out.annotate(4, "method_ids_size: " + Hex.u4(sz));
85 out.annotate(4, "method_ids_off: " + Hex.u4(offset));
88 out.writeInt(sz);
89 out.writeInt(offset);
H A DProtoIdsSection.java63 * @param out {@code non-null;} where to write
65 public void writeHeaderPart(AnnotatedOutput out) { argument
75 if (out.annotates()) {
76 out.annotate(4, "proto_ids_size: " + Hex.u4(sz));
77 out.annotate(4, "proto_ids_off: " + Hex.u4(offset));
80 out.writeInt(sz);
81 out.writeInt(offset);
H A DAnnotationSetItem.java133 protected void writeTo0(DexFile file, AnnotatedOutput out) { argument
134 boolean annotates = out.annotates();
138 out.annotate(0, offsetString() + " annotation set");
139 out.annotate(4, " size: " + Hex.u4(size));
142 out.writeInt(size);
149 out.annotate(4, " entries[" + Integer.toHexString(i) + "]: " +
151 items[i].annotateTo(out, " ");
154 out.writeInt(offset);
H A DCatchStructs.java107 * @param out {@code non-null;} where to dump
110 public void debugPrint(PrintWriter out, String prefix) { argument
111 annotateEntries(prefix, out, null);
140 ByteArrayAnnotatedOutput out = new ByteArrayAnnotatedOutput();
142 // Write out the handlers "header" consisting of its size in entries.
144 out.writeUnsignedLeb128(handlerOffsets.size());
146 // Now write the lists out in order, noting the offset of each.
154 mapping.setValue(out.getCursor());
158 out.writeSignedLeb128(-(listSize - 1));
161 out
195 writeTo(DexFile file, AnnotatedOutput out) argument
[all...]
H A DEncodedMember.java61 * @param out {@code non-null;} where to dump
64 public abstract void debugPrint(PrintWriter out, boolean verbose); argument
77 * @param out {@code non-null;} where to write to
84 public abstract int encode(DexFile file, AnnotatedOutput out, argument
/dalvik/dx/tests/116-leb128/com/android/dx/util/
H A DLeb128UtilsTest.java63 ByteArrayAnnotatedOutput out = new ByteArrayAnnotatedOutput(5);
64 Leb128.writeSignedLeb128(out, value);
65 return out.toByteArray();
69 ByteArrayAnnotatedOutput out = new ByteArrayAnnotatedOutput(5);
70 Leb128.writeUnsignedLeb128(out, value);
71 return out.toByteArray();
/dalvik/hit/src/com/android/hit/
H A DMain.java60 System.out.println("------------------- " + thePackage);
65 System.out.println(" " + theClass.mClassName);
74 System.out.println("------------------- " + thePackage);
79 System.out.println(" " + theClass.mClassName);
87 System.out.println("There are " + instances.length + " Strings.");
94 System.out.println("There are " + instances.length

Completed in 357 milliseconds

123456789