Home
last modified time | relevance | path

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

12

/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/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.java166 int index = file.getProtoIds().indexOf(((CstProtoRef) cst).getPrototype()); in writeConstant() local
167 EncodedValueCodec.writeUnsignedIntegralValue(out, type, (long) index); in writeConstant()
171 int index = file.getMethodHandles().indexOf((CstMethodHandle) cst); in writeConstant() local
172 EncodedValueCodec.writeUnsignedIntegralValue(out, type, (long) index); in writeConstant()
176 int index = file.getStringIds().indexOf((CstString) cst); in writeConstant() local
177 EncodedValueCodec.writeUnsignedIntegralValue(out, type, (long) index); in writeConstant()
181 int index = file.getTypeIds().indexOf((CstType) cst); in writeConstant() local
182 EncodedValueCodec.writeUnsignedIntegralValue(out, type, (long) index); in writeConstant()
186 int index = file.getFieldIds().indexOf((CstFieldRef) cst); in writeConstant() local
187 EncodedValueCodec.writeUnsignedIntegralValue(out, type, (long) index); in writeConstant()
[all …]
/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.java294 int index = size - which - 1; in reverseBranch() local
298 targetInsn = (TargetInsn) insns.get(index); in reverseBranch()
311 insns.set(index, targetInsn.withNewTargetAndReversed(newTarget)); in reverseBranch()
341 int index = callback.getIndex(cst); in assignIndices() local
343 if (index >= 0) { in assignIndices()
344 insn.setIndex(index); in assignIndices()
350 index = callback.getIndex(definer); in assignIndices()
352 if (index >= 0) { in assignIndices()
353 insn.setClassIndex(index); in assignIndices()
368 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 int index; field in SsaBasicBlock
123 this.index = basicBlockIndex; in SsaBasicBlock()
322 return index; in getIndex()
420 newPred.successors.set(index) ; in insertNewPredecessor()
421 newPred.successorList.add(index); in insertNewPredecessor()
422 newPred.primarySuccessor = index; in insertNewPredecessor()
427 predecessors.set(newPred.index); in insertNewPredecessor()
435 predBlock.replaceSuccessor(index, newPred.index); in insertNewPredecessor()
455 if (!successors.get(other.index)) { in insertNewSuccessor()
461 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/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/libdex/
DDexClass.h138 u4 index = *lastIndex + readUnsignedLeb128(pData); in dexReadClassDataField() local
141 pField->fieldIdx = index; in dexReadClassDataField()
142 *lastIndex = index; in dexReadClassDataField()
154 u4 index = *lastIndex + readUnsignedLeb128(pData); in dexReadClassDataMethod() local
158 pMethod->methodIdx = index; in dexReadClassDataMethod()
159 *lastIndex = index; in dexReadClassDataMethod()
/dalvik/dx/src/com/android/dx/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/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()
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()
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()
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.java158 int index = in.read(); in FORMAT_20BC() local
160 this, opcode, index, IndexType.VARIES, in FORMAT_20BC()
263 int index = in.read(); in FORMAT_21C() local
266 this, opcode, index, indexType, in FORMAT_21C()
371 int index = in.read(); in FORMAT_22C() local
374 this, opcode, index, indexType, in FORMAT_22C()
393 int index = in.read(); in FORMAT_22CS() local
395 this, opcode, index, IndexType.FIELD_OFFSET, in FORMAT_22CS()
506 int index = in.readInt(); in FORMAT_31C() local
509 this, opcode, index, indexType, in FORMAT_31C()
[all …]
/dalvik/dx/src/com/android/dex/
DDex.java145 private static void checkBounds(int index, int length) { in checkBounds() argument
146 if (index < 0 || index >= length) { in checkBounds()
147 throw new IndexOutOfBoundsException("index:" + index + ", length=" + length); in checkBounds()
715 @Override 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()
727 @Override public Integer get(int index) { in get() argument
728 return descriptorIndexFromTypeIndex(index); in get()
737 @Override public String get(int index) { in get() argument
738 return strings.get(descriptorIndexFromTypeIndex(index)); in get()
[all …]

12