Home
last modified time | relevance | path

Searched refs:index (Results 1 – 25 of 51) sorted by relevance

123

/dalvik/dx/src/com/android/dx/dex/file/
DIndexedItem.java25 private int index; field in IndexedItem
31 index = -1; in IndexedItem()
40 return (index >= 0); in hasIndex()
50 if (index < 0) { in getIndex()
54 return index; in getIndex()
64 public final void setIndex(int index) { in setIndex() argument
65 if (this.index != -1) { in setIndex()
69 this.index = index; in setIndex()
79 return '[' + Integer.toHexString(index) + ']'; in indexString()
DValueEncoder.java165 int index = file.getProtoIds().indexOf(((CstProtoRef) cst).getPrototype()); in writeConstant() local
166 EncodedValueCodec.writeUnsignedIntegralValue(out, type, (long) index); in writeConstant()
170 int index = file.getMethodHandles().indexOf((CstMethodHandle) cst); in writeConstant() local
171 EncodedValueCodec.writeUnsignedIntegralValue(out, type, (long) index); in writeConstant()
175 int index = file.getStringIds().indexOf((CstString) cst); in writeConstant() local
176 EncodedValueCodec.writeUnsignedIntegralValue(out, type, (long) index); in writeConstant()
180 int index = file.getTypeIds().indexOf((CstType) cst); in writeConstant() local
181 EncodedValueCodec.writeUnsignedIntegralValue(out, type, (long) index); in writeConstant()
185 int index = file.getFieldIds().indexOf((CstFieldRef) cst); in writeConstant() local
186 EncodedValueCodec.writeUnsignedIntegralValue(out, type, (long) index); in writeConstant()
[all …]
/dalvik/dexgen/src/com/android/dexgen/dex/file/
DIndexedItem.java25 private int index; field in IndexedItem
31 index = -1; in IndexedItem()
40 return (index >= 0); in hasIndex()
50 if (index < 0) { in getIndex()
54 return index; in getIndex()
64 public final void setIndex(int index) { in setIndex() argument
65 if (this.index != -1) { in setIndex()
69 this.index = index; in setIndex()
79 return '[' + Integer.toHexString(index) + ']'; in indexString()
DValueEncoder.java158 int index = file.getStringIds().indexOf((CstString) cst); in writeConstant() local
159 writeUnsignedIntegralValue(type, (long) index); in writeConstant()
163 int index = file.getTypeIds().indexOf((CstType) cst); in writeConstant() local
164 writeUnsignedIntegralValue(type, (long) index); in writeConstant()
168 int index = file.getFieldIds().indexOf((CstFieldRef) cst); in writeConstant() local
169 writeUnsignedIntegralValue(type, (long) index); in writeConstant()
173 int index = file.getMethodIds().indexOf((CstMethodRef) cst); in writeConstant() local
174 writeUnsignedIntegralValue(type, (long) index); in writeConstant()
179 int index = file.getFieldIds().indexOf(fieldRef); in writeConstant() local
180 writeUnsignedIntegralValue(type, (long) index); in writeConstant()
/dalvik/dexgen/src/com/android/dexgen/dex/code/
DCstInsn.java35 private int index; field in CstInsn
63 this.index = -1; in CstInsn()
73 if (index >= 0) { in withOpcode()
74 result.setIndex(index); in withOpcode()
90 if (index >= 0) { in withRegisters()
91 result.setIndex(index); in withRegisters()
117 if (index < 0) { in getIndex()
121 return index; in getIndex()
132 return (index >= 0); in hasIndex()
141 public void setIndex(int index) { in setIndex() argument
[all …]
/dalvik/dx/src/com/android/dx/dex/code/
DCstInsn.java37 private int index; field in CstInsn
65 this.index = -1; in CstInsn()
75 if (index >= 0) { in withOpcode()
76 result.setIndex(index); in withOpcode()
92 if (index >= 0) { in withRegisters()
93 result.setIndex(index); in withRegisters()
119 if (index < 0) { in getIndex()
123 return index; in getIndex()
134 return (index >= 0); in hasIndex()
143 public void setIndex(int index) { in setIndex() argument
[all …]
DMultiCstInsn.java38 private final int[] index; field in MultiCstInsn
66 this.index = new int[constants.length]; in MultiCstInsn()
67 for (int i = 0; i < this.index.length; ++i) { in MultiCstInsn()
71 this.index[i] = NOT_SET; in MultiCstInsn()
77 RegisterSpecList registers, Constant[] constants, int[] index, in MultiCstInsn() argument
81 this.index = index; in MultiCstInsn()
89 this.constants, this.index, this.classIndex); in withOpcode()
96 this.constants, this.index, this.classIndex); in withRegisters()
130 return index[position]; in getIndex()
142 return (index[position] != NOT_SET); in hasIndex()
[all …]
DOutputFinisher.java301 int index = size - which - 1; in reverseBranch() local
305 targetInsn = (TargetInsn) insns.get(index); in reverseBranch()
318 insns.set(index, targetInsn.withNewTargetAndReversed(newTarget)); in reverseBranch()
348 int index = callback.getIndex(cst); in assignIndices() local
350 if (index >= 0) { in assignIndices()
351 insn.setIndex(index); in assignIndices()
357 index = callback.getIndex(definer); in assignIndices()
359 if (index >= 0) { in assignIndices()
360 insn.setClassIndex(index); in assignIndices()
375 int index = callback.getIndex(cst); in assignIndices() local
[all …]
/dalvik/dx/src/com/android/dx/ssa/
DLocalVariableInfo.java79 public void setStarts(int index, RegisterSpecSet specs) { in setStarts() argument
87 blockStarts[index] = specs; in setStarts()
108 public boolean mergeStarts(int index, RegisterSpecSet specs) { in mergeStarts() argument
109 RegisterSpecSet start = getStarts0(index); in mergeStarts()
113 setStarts(index, specs); in mergeStarts()
125 setStarts(index, newStart); in mergeStarts()
138 public RegisterSpecSet getStarts(int index) { in getStarts() argument
139 RegisterSpecSet result = getStarts0(index); in getStarts()
165 public RegisterSpecSet mutableCopyOfStarts(int index) { in mutableCopyOfStarts() argument
166 RegisterSpecSet result = getStarts0(index); in mutableCopyOfStarts()
[all …]
DSsaBasicBlock.java78 private final int index; field in SsaBasicBlock
117 this.index = basicBlockIndex; in SsaBasicBlock()
316 return index; in getIndex()
414 newPred.successors.set(index) ; in insertNewPredecessor()
415 newPred.successorList.add(index); in insertNewPredecessor()
416 newPred.primarySuccessor = index; in insertNewPredecessor()
421 predecessors.set(newPred.index); in insertNewPredecessor()
429 predBlock.replaceSuccessor(index, newPred.index); in insertNewPredecessor()
449 if (!successors.get(other.index)) { in insertNewSuccessor()
455 newSucc.predecessors.set(this.index); in insertNewSuccessor()
[all …]
/dalvik/dx/src/com/android/dx/io/
DDexIndexPrinter.java52 int index = 0; in printStrings() local
54 System.out.println("string " + index + ": " + string); in printStrings()
55 index++; in printStrings()
60 int index = 0; in printTypeIds() local
62 System.out.println("type " + index + ": " + dex.strings().get(type)); in printTypeIds()
63 index++; in printTypeIds()
68 int index = 0; in printProtoIds() local
70 System.out.println("proto " + index + ": " + protoId); in printProtoIds()
71 index++; in printProtoIds()
76 int index = 0; in printFieldIds() local
[all …]
/dalvik/dx/tests/141-invoke-polymorphic-varhandles/
DVarHandleDexTest.java176 int index = 4; in main() local
178 … String s0 = (String) vw.compareAndExchangeAcquire(words, index, expectedValue, newValue); in main()
179 vw.compareAndExchangeAcquire(words, index, expectedValue, newValue); in main()
180 String s1 = (String) vw.compareAndExchange(words, index, expectedValue, newValue); in main()
181 vw.compareAndExchange(words, index, expectedValue, newValue); in main()
182 … String s2 = (String) vw.compareAndExchangeRelease(words, index, expectedValue, newValue); in main()
183 vw.compareAndExchangeRelease(words, index, expectedValue, newValue); in main()
185 boolean r0 = vw.compareAndSet(words, index, expectedValue, newValue); in main()
186 vw.compareAndSet(words, index, expectedValue, newValue); in main()
187 boolean r1 = vw.weakCompareAndSetAcquire(words, index, expectedValue, newValue); in main()
[all …]
/dalvik/dx/src/com/android/dx/cf/code/
DLocalVariableList.java146 CstString descriptor, CstString signature, int index) { in set() argument
147 set0(n, new Item(startPc, length, name, descriptor, signature, index)); in set()
185 public Item pcAndIndexToLocal(int pc, int index) { in pcAndIndexToLocal() argument
191 if ((one != null) && one.matchesPcAndIndex(pc, index)) { in pcAndIndexToLocal()
219 private final int index; field in LocalVariableList.Item
236 CstString descriptor, CstString signature, int index) { in Item() argument
254 if (index < 0) { in Item()
263 this.index = index; in Item()
318 return index; in getIndex()
340 index); in withSignature()
[all …]
/dalvik/dexgen/src/com/android/dexgen/util/
DListIntSet.java39 int index = ints.binarysearch(value); in add() local
41 if (index < 0) { in add()
42 ints.insert(-(index + 1), value); in add()
48 int index = ints.indexOf(value); in remove() local
50 if (index >= 0) { in remove()
51 ints.removeIndex(index); in remove()
/dalvik/dx/src/com/android/dx/util/
DListIntSet.java40 int index = ints.binarysearch(value); in add() local
42 if (index < 0) { in add()
43 ints.insert(-(index + 1), value); in add()
50 int index = ints.indexOf(value); in remove() local
52 if (index >= 0) { in remove()
53 ints.removeIndex(index); in remove()
/dalvik/dx/src/com/android/dx/io/instructions/
DZeroRegisterDecodedInstruction.java29 int index, IndexType indexType, int target, long literal) { in ZeroRegisterDecodedInstruction() argument
30 super(format, opcode, index, indexType, target, literal); in ZeroRegisterDecodedInstruction()
DOneRegisterDecodedInstruction.java32 int index, IndexType indexType, int target, long literal, in OneRegisterDecodedInstruction() argument
34 super(format, opcode, index, indexType, target, literal); in OneRegisterDecodedInstruction()
DRegisterRangeDecodedInstruction.java36 int index, IndexType indexType, int target, long literal, in RegisterRangeDecodedInstruction() argument
38 super(format, opcode, index, indexType, target, literal); in RegisterRangeDecodedInstruction()
DDecodedInstruction.java47 private final int index; field in DecodedInstruction
102 int index, IndexType indexType, int target, long literal) { in DecodedInstruction() argument
113 this.index = index; in DecodedInstruction()
135 return index; in getIndex()
142 return (short) index; in getIndexUnit()
DTwoRegisterDecodedInstruction.java35 int index, IndexType indexType, int target, long literal, in TwoRegisterDecodedInstruction() argument
37 super(format, opcode, index, indexType, target, literal); in TwoRegisterDecodedInstruction()
DThreeRegisterDecodedInstruction.java38 int index, IndexType indexType, int target, long literal, in ThreeRegisterDecodedInstruction() argument
40 super(format, opcode, index, indexType, target, literal); in ThreeRegisterDecodedInstruction()
DFourRegisterDecodedInstruction.java41 int index, IndexType indexType, int target, long literal, in FourRegisterDecodedInstruction() argument
43 super(format, opcode, index, indexType, target, literal); in FourRegisterDecodedInstruction()
DFiveRegisterDecodedInstruction.java44 int index, IndexType indexType, int target, long literal, in FiveRegisterDecodedInstruction() argument
46 super(format, opcode, index, indexType, target, literal); in FiveRegisterDecodedInstruction()
DInstructionCodec.java170 int index = in.read(); in FORMAT_20BC() local
172 this, opcode, index, IndexType.VARIES, in FORMAT_20BC()
285 int index = in.read(); in FORMAT_21C() local
288 this, opcode, index, indexType, in FORMAT_21C()
403 int index = in.read(); in FORMAT_22C() local
406 this, opcode, index, indexType, in FORMAT_22C()
427 int index = in.read(); in FORMAT_22CS() local
429 this, opcode, index, IndexType.FIELD_OFFSET, in FORMAT_22CS()
550 int index = in.readInt(); in FORMAT_31C() local
553 this, opcode, index, indexType, in FORMAT_31C()
[all …]
/dalvik/dx/src/com/android/dex/
DDex.java144 private static void checkBounds(int index, int length) { in checkBounds() argument
145 if (index < 0 || index >= length) { in checkBounds()
146 throw new IndexOutOfBoundsException("index:" + index + ", length=" + length); in checkBounds()
715 public String get(int index) { in get() argument
716 checkBounds(index, tableOfContents.stringIds.size); in get()
717 return open(tableOfContents.stringIds.off + (index * SizeOf.STRING_ID_ITEM)) in get()
729 public Integer get(int index) { in get() argument
730 return descriptorIndexFromTypeIndex(index); in get()
741 public String get(int index) { in get() argument
742 return strings.get(descriptorIndexFromTypeIndex(index)); in get()
[all …]

123