Searched refs:index (Results 1 - 25 of 95) sorted by last modified time

1234

/dalvik/dexdump/
H A DDexDump.cpp704 * representation for the index in the given instruction. This will
715 u4 index; local
718 /* TODO: Make the index *always* be in field B, to simplify this code. */
728 index = pDecInsn->vB;
732 index = pDecInsn->vB;
737 index = pDecInsn->vC;
741 index = 0;
752 outSize = snprintf(buf, bufSize, "<unknown-index>");
759 outSize = snprintf(buf, bufSize, "<no-index>");
766 outSize = snprintf(buf, bufSize, "<index
[all...]
/dalvik/dexgen/src/com/android/dexgen/dex/code/
H A DCstInsn.java32 * {@code >= -1;} the constant pool index for {@link #constant}, or
35 private int index; field in class:CstInsn
38 * {@code >= -1;} the constant pool index for the class reference in
45 * initially unknown ({@code -1}) as is the constant pool index.
63 this.index = -1;
73 if (index >= 0) {
74 result.setIndex(index);
90 if (index >= 0) {
91 result.setIndex(index);
111 * Gets the constant's index
141 setIndex(int index) argument
188 setClassIndex(int index) argument
[all...]
H A DInsnFormat.java295 int index = ci.getIndex();
300 if (index < 65536) {
301 sb.append(Hex.u2(index));
303 sb.append(Hex.u4(index));
380 * Helper method to extract the callout-argument index from an
384 * @return {@code >= 0;} the callout argument index
H A DOutputFinisher.java221 * @param at {@code >= 0;} what index to insert at
262 int index = size - which - 1;
266 targetInsn = (TargetInsn) insns.get(index);
279 insns.set(index, targetInsn.withNewTargetAndReversed(newTarget));
307 int index = callback.getIndex(cst);
309 if (index >= 0) {
310 insn.setIndex(index);
316 index = callback.getIndex(definer);
317 if (index >= 0) {
318 insn.setClassIndex(index);
[all...]
/dalvik/dexgen/src/com/android/dexgen/dex/file/
H A DIndexedItem.java20 * An item in a Dalvik file which is referenced by index.
23 /** {@code >= -1;} assigned index of the item, or {@code -1} if not
25 private int index; field in class:IndexedItem
28 * Constructs an instance. The index is initially unassigned.
31 index = -1;
35 * Gets whether or not this instance has been assigned an index.
37 * @return {@code true} iff this instance has been assigned an index
40 return (index >= 0);
44 * Gets the item index.
46 * @return {@code >= 0;} the index
64 setIndex(int index) argument
[all...]
H A DMixedItemSection.java226 * Writes an index of contents of the items in this instance of the
228 * then the index is preceded by the given intro string.
238 TreeMap<String, OffsettedItem> index =
244 index.put(label, item);
248 if (index.size() == 0) {
254 for (Map.Entry<String, OffsettedItem> entry : index.entrySet()) {
H A DValueEncoder.java158 int index = file.getStringIds().indexOf((CstString) cst);
159 writeUnsignedIntegralValue(type, (long) index);
163 int index = file.getTypeIds().indexOf((CstType) cst);
164 writeUnsignedIntegralValue(type, (long) index);
168 int index = file.getFieldIds().indexOf((CstFieldRef) cst);
169 writeUnsignedIntegralValue(type, (long) index);
173 int index = file.getMethodIds().indexOf((CstMethodRef) cst);
174 writeUnsignedIntegralValue(type, (long) index);
179 int index = file.getFieldIds().indexOf(fieldRef);
180 writeUnsignedIntegralValue(type, (long) index);
[all...]
/dalvik/dexgen/src/com/android/dexgen/util/
H A DLabeledList.java27 * Sparse array indexed by label to FixedSizeList index.
79 * Removes a label from the label-to-index mapping
87 * Adds a label and index to the label-to-index mapping
89 * @param index index of block.
91 protected void addLabelIndex(int label, int index) { argument
98 labelToIndex.set(label, index);
102 * Gets the index of the first item in the list with the given
106 * @return {@code >= -1;} the index o
[all...]
H A DListIntSet.java39 int index = ints.binarysearch(value);
41 if (index < 0) {
42 ints.insert(-(index + 1), value);
48 int index = ints.indexOf(value);
50 if (index >= 0) {
51 ints.removeIndex(index);
/dalvik/dx/etc/
H A Djasmin.jarMETA-INF/ META-INF/MANIFEST.MF jas/ jas/AnnotDefAttr.class AnnotDefAttr.java package jas ...
/dalvik/dx/src/com/android/dx/cf/code/
H A DLocalVariableList.java69 * any element whose {name, index, start, length} matches an
117 * Sets the item at the given index.
131 * Sets the item at the given index.
143 * @param index {@code >= 0;} the variable's local index
146 CstString descriptor, CstString signature, int index) {
147 set0(n, new Item(startPc, length, name, descriptor, signature, index));
176 * and local index, if any. <b>Note:</b> In standard classfiles, a
181 * @param index {@code >= 0;} the local variable index
145 set(int n, int startPc, int length, CstString name, CstString descriptor, CstString signature, int index) argument
185 pcAndIndexToLocal(int pc, int index) argument
219 private final int index; field in class:LocalVariableList.Item
235 Item(int startPc, int length, CstString name, CstString descriptor, CstString signature, int index) argument
352 matchesPcAndIndex(int pc, int index) argument
[all...]
H A DRopperMachine.java88 /** primary successor index */
221 * Gets the primary successor index. This is the index into the
228 * @return {@code >= -1;} the primary successor index
680 * (array, index, value), but the rop argument
681 * order is (value, array, index). The following
689 RegisterSpec index = sources.get(1);
693 sources.set(2, index);
/dalvik/dx/src/com/android/dx/cf/direct/
H A DStdAttributeFactory.java574 int index = in.readUnsignedShort();
587 descriptor, signature, index);
592 Hex.u2(index) + " " + name.toHuman() + " " +
/dalvik/dx/src/com/android/dx/command/dexer/
H A DMain.java940 int index = path.lastIndexOf("/./");
942 if (index != -1) {
943 return path.substring(index + 3);
1119 int index = path.lastIndexOf('/');
1120 if (index >= 0) {
1121 return path.substring(index + 1);
1252 /** The index of the next argument to process. */
1253 private int index; field in class:Main.Arguments.ArgumentsParser
1261 index = 0;
1277 if (index >
[all...]
/dalvik/dx/src/com/android/dx/command/grep/
H A DGrep.java68 private void encounterString(int index) { argument
69 if (stringIds.contains(index)) {
70 out.println(location() + " " + dex.strings().get(index));
/dalvik/dx/src/com/android/dx/dex/code/
H A DCstInsn.java32 * {@code >= -1;} the constant pool index for {@link #constant}, or
35 private int index; field in class:CstInsn
38 * {@code >= -1;} the constant pool index for the class reference in
45 * initially unknown ({@code -1}) as is the constant pool index.
63 this.index = -1;
73 if (index >= 0) {
74 result.setIndex(index);
90 if (index >= 0) {
91 result.setIndex(index);
111 * Gets the constant's index
141 setIndex(int index) argument
188 setClassIndex(int index) argument
[all...]
H A DInsnFormat.java356 int index = ci.getIndex();
361 if (index < 65536) {
362 sb.append(Hex.u2(index));
364 sb.append(Hex.u4(index));
459 * Helper method to extract the callout-argument index from an
463 * @return {@code >= 0;} the callout argument index
H A DOutputFinisher.java230 * @param at {@code >= 0;} what index to insert at
272 int index = size - which - 1;
276 targetInsn = (TargetInsn) insns.get(index);
289 insns.set(index, targetInsn.withNewTargetAndReversed(newTarget));
317 int index = callback.getIndex(cst);
319 if (index >= 0) {
320 insn.setIndex(index);
326 index = callback.getIndex(definer);
327 if (index >= 0) {
328 insn.setClassIndex(index);
[all...]
/dalvik/dx/src/com/android/dx/dex/file/
H A DIndexedItem.java20 * An item in a Dalvik file which is referenced by index.
23 /** {@code >= -1;} assigned index of the item, or {@code -1} if not
25 private int index; field in class:IndexedItem
28 * Constructs an instance. The index is initially unassigned.
31 index = -1;
35 * Gets whether or not this instance has been assigned an index.
37 * @return {@code true} iff this instance has been assigned an index
40 return (index >= 0);
44 * Gets the item index.
46 * @return {@code >= 0;} the index
64 setIndex(int index) argument
[all...]
H A DMixedItemSection.java225 * Writes an index of contents of the items in this instance of the
227 * then the index is preceded by the given intro string.
237 TreeMap<String, OffsettedItem> index =
243 index.put(label, item);
247 if (index.size() == 0) {
253 for (Map.Entry<String, OffsettedItem> entry : index.entrySet()) {
H A DValueEncoder.java157 int index = file.getStringIds().indexOf((CstString) cst);
158 EncodedValueCodec.writeUnsignedIntegralValue(out, type, (long) index);
162 int index = file.getTypeIds().indexOf((CstType) cst);
163 EncodedValueCodec.writeUnsignedIntegralValue(out, type, (long) index);
167 int index = file.getFieldIds().indexOf((CstFieldRef) cst);
168 EncodedValueCodec.writeUnsignedIntegralValue(out, type, (long) index);
172 int index = file.getMethodIds().indexOf((CstMethodRef) cst);
173 EncodedValueCodec.writeUnsignedIntegralValue(out, type, (long) index);
178 int index = file.getFieldIds().indexOf(fieldRef);
179 EncodedValueCodec.writeUnsignedIntegralValue(out, type, (long) index);
[all...]
/dalvik/dx/src/com/android/dx/io/
H A DDexIndexPrinter.java52 int index = 0;
54 System.out.println("string " + index + ": " + string);
55 index++;
60 int index = 0;
62 System.out.println("type " + index + ": " + dex.strings().get(type));
63 index++;
68 int index = 0;
70 System.out.println("proto " + index + ": " + protoId);
71 index++;
76 int index
[all...]
/dalvik/dx/src/com/android/dx/io/instructions/
H A DDecodedInstruction.java28 * numeric opcode, an optional index type, and any additional
46 /** constant index argument */
47 private final int index; field in class:DecodedInstruction
49 /** null-ok; index type */
102 int index, IndexType indexType, int target, long literal) {
113 this.index = index;
135 return index;
139 * Gets the index, as a code unit.
142 return (short) index;
101 DecodedInstruction(InstructionCodec format, int opcode, int index, IndexType indexType, int target, long literal) argument
[all...]
H A DFiveRegisterDecodedInstruction.java44 int index, IndexType indexType, int target, long literal,
46 super(format, opcode, index, indexType, target, literal);
43 FiveRegisterDecodedInstruction(InstructionCodec format, int opcode, int index, IndexType indexType, int target, long literal, int a, int b, int c, int d, int e) argument
H A DFourRegisterDecodedInstruction.java41 int index, IndexType indexType, int target, long literal,
43 super(format, opcode, index, indexType, target, literal);
40 FourRegisterDecodedInstruction(InstructionCodec format, int opcode, int index, IndexType indexType, int target, long literal, int a, int b, int c, int d) argument

Completed in 3129 milliseconds

1234