Searched refs:index (Results 1 - 25 of 48) sorted by relevance

12

/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...]
/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 DCallSiteIdsSection.java62 int index = 0;
64 callSiteId.setIndex(index++);
H A DMethodHandlesSection.java47 int index = 0;
49 item.setIndex(index++);
H A DValueEncoder.java165 int index = file.getProtoIds().indexOf(((CstProtoRef) cst).getPrototype());
166 EncodedValueCodec.writeUnsignedIntegralValue(out, type, (long) index);
170 int index = file.getMethodHandles().indexOf((CstMethodHandle) cst);
171 EncodedValueCodec.writeUnsignedIntegralValue(out, type, (long) index);
175 int index = file.getStringIds().indexOf((CstString) cst);
176 EncodedValueCodec.writeUnsignedIntegralValue(out, type, (long) index);
180 int index = file.getTypeIds().indexOf((CstType) cst);
181 EncodedValueCodec.writeUnsignedIntegralValue(out, type, (long) index);
185 int index = file.getFieldIds().indexOf((CstFieldRef) cst);
186 EncodedValueCodec.writeUnsignedIntegralValue(out, type, (long) 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...]
/dalvik/dx/src/com/android/dx/dex/code/
H A DCstInsn.java34 * {@code >= -1;} the constant pool index for {@link #constant}, or
37 private int index; field in class:CstInsn
40 * {@code >= -1;} the constant pool index for the class reference in
47 * initially unknown ({@code -1}) as is the constant pool index.
65 this.index = -1;
75 if (index >= 0) {
76 result.setIndex(index);
92 if (index >= 0) {
93 result.setIndex(index);
113 * Gets the constant's index
143 setIndex(int index) argument
190 setClassIndex(int index) argument
[all...]
H A DMultiCstInsn.java38 private final int[] index; field in class:MultiCstInsn
41 * {@code >= NOT_SET;} the constant pool index for the class reference in
48 * initially unknown ({@code -1}) as is the constant pool index.
66 this.index = new int[constants.length];
67 for (int i = 0; i < this.index.length; ++i) {
71 this.index[i] = NOT_SET;
77 RegisterSpecList registers, Constant[] constants, int[] index,
81 this.index = index;
89 this.constants, this.index, thi
76 MultiCstInsn(Dop opcode, SourcePosition position, RegisterSpecList registers, Constant[] constants, int[] index, int classIndex) argument
152 setIndex(int position, int index) argument
201 setClassIndex(int index) argument
[all...]
/dalvik/dx/src/com/android/dx/ssa/
H A DLocalVariableInfo.java74 * the given index.
76 * @param index {@code >= 0;} the block index
79 public void setStarts(int index, RegisterSpecSet specs) { argument
87 blockStarts[index] = specs;
90 throw new IllegalArgumentException("bogus index");
96 * given index. If there was not already an associated set, then this
101 * @param index {@code >= 0;} the block index
108 public boolean mergeStarts(int index, RegisterSpecSe argument
138 getStarts(int index) argument
165 mutableCopyOfStarts(int index) argument
242 getStarts0(int index) argument
[all...]
H A DSsaBasicBlock.java53 /** {@code non-null;} predecessor set (by block list index) */
56 /** {@code non-null;} successor set (by block list index) */
66 * block list index of primary successor, or {@code -1} for no primary
77 /** our index into parent.getBlock() */
78 private final int index; field in class:SsaBasicBlock
110 * @param basicBlockIndex index this block will have
117 this.index = basicBlockIndex;
132 * @param basicBlockIndex index this block will have
313 * @return the block index of this block
316 return 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/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...]
/dalvik/dx/src/com/android/dx/io/instructions/
H A DZeroRegisterDecodedInstruction.java29 int index, IndexType indexType, int target, long literal) {
30 super(format, opcode, index, indexType, target, literal);
28 ZeroRegisterDecodedInstruction(InstructionCodec format, int opcode, int index, IndexType indexType, int target, long literal) argument
H A DOneRegisterDecodedInstruction.java32 int index, IndexType indexType, int target, long literal,
34 super(format, opcode, index, indexType, target, literal);
31 OneRegisterDecodedInstruction(InstructionCodec format, int opcode, int index, IndexType indexType, int target, long literal, int a) argument
H A DRegisterRangeDecodedInstruction.java36 int index, IndexType indexType, int target, long literal,
38 super(format, opcode, index, indexType, target, literal);
35 RegisterRangeDecodedInstruction(InstructionCodec format, int opcode, int index, IndexType indexType, int target, long literal, int a, int registerCount) argument
H A DTwoRegisterDecodedInstruction.java35 int index, IndexType indexType, int target, long literal,
37 super(format, opcode, index, indexType, target, literal);
34 TwoRegisterDecodedInstruction(InstructionCodec format, int opcode, int index, IndexType indexType, int target, long literal, int a, int b) argument
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
H A DThreeRegisterDecodedInstruction.java38 int index, IndexType indexType, int target, long literal,
40 super(format, opcode, index, indexType, target, literal);
37 ThreeRegisterDecodedInstruction(InstructionCodec format, int opcode, int index, IndexType indexType, int target, long literal, int a, int b, int c) argument
/dalvik/dx/tests/141-invoke-polymorphic-varhandles/
H A DVarHandleDexTest.java176 int index = 4;
178 String s0 = (String) vw.compareAndExchangeAcquire(words, index, expectedValue, newValue);
179 vw.compareAndExchangeAcquire(words, index, expectedValue, newValue);
180 String s1 = (String) vw.compareAndExchange(words, index, expectedValue, newValue);
181 vw.compareAndExchange(words, index, expectedValue, newValue);
182 String s2 = (String) vw.compareAndExchangeRelease(words, index, expectedValue, newValue);
183 vw.compareAndExchangeRelease(words, index, expectedValue, newValue);
185 boolean r0 = vw.compareAndSet(words, index, expectedValue, newValue);
186 vw.compareAndSet(words, index, expectedValue, newValue);
187 boolean r1 = vw.weakCompareAndSetAcquire(words, index, expectedValu
[all...]
/dalvik/dexgen/src/com/android/dexgen/util/
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/src/com/android/dx/util/
H A DListIntSet.java40 int index = ints.binarysearch(value);
42 if (index < 0) {
43 ints.insert(-(index + 1), value);
50 int index = ints.indexOf(value);
52 if (index >= 0) {
53 ints.removeIndex(index);
/dalvik/libdex/
H A DDexClass.h37 u4 fieldIdx; /* index to a field_id_item */
43 u4 methodIdx; /* index to a method_id_item */
138 u4 index = *lastIndex + readUnsignedLeb128(pData); local
141 pField->fieldIdx = index;
142 *lastIndex = index;
154 u4 index = *lastIndex + readUnsignedLeb128(pData); local
158 pMethod->methodIdx = index;
159 *lastIndex = index;
/dalvik/dx/tests/118-find-usages/
H A DFoo.java49 @Override public T get(int index) { argument
/dalvik/dx/src/com/android/dx/command/grep/
H A DGrep.java69 private void encounterString(int index) { argument
70 if (stringIds.contains(index)) {
71 out.println(location() + " " + dex.strings().get(index));

Completed in 422 milliseconds

12