Home
last modified time | relevance | path

Searched refs:idx (Results 1 – 25 of 55) sorted by relevance

123

/dalvik/opcode-gen/
Dopcode-gen.awk286 function defineOpcode(line, count, parts, idx) {
290 idx = parseHex(parts[1]);
291 if (idx < 0) return -1;
294 hex[idx] = parts[1];
295 name[idx] = parts[2];
296 format[idx] = parts[3];
297 hasResult[idx] = (parts[4] == "n") ? "false" : "true";
298 indexType[idx] = parts[5];
299 flags[idx] = parts[6];
303 constName[idx] = toupper(name[idx]);
[all …]
/dalvik/dx/src/com/android/dx/util/
DBits.java58 public static boolean get(int[] bits, int idx) { in get() argument
59 int arrayIdx = idx >> 5; in get()
60 int bit = 1 << (idx & 0x1f); in get()
71 public static void set(int[] bits, int idx, boolean value) { in set() argument
72 int arrayIdx = idx >> 5; in set()
73 int bit = 1 << (idx & 0x1f); in set()
88 public static void set(int[] bits, int idx) { in set() argument
89 int arrayIdx = idx >> 5; in set()
90 int bit = 1 << (idx & 0x1f); in set()
100 public static void clear(int[] bits, int idx) { in clear() argument
[all …]
DBitIntSet.java108 private int idx = Bits.findFirst(bits, 0); in iterator()
113 return idx >= 0; in iterator()
123 int ret = idx; in iterator()
125 idx = Bits.findFirst(bits, idx+1); in iterator()
/dalvik/dexgen/src/com/android/dexgen/util/
DBits.java58 public static boolean get(int[] bits, int idx) { in get() argument
59 int arrayIdx = idx >> 5; in get()
60 int bit = 1 << (idx & 0x1f); in get()
71 public static void set(int[] bits, int idx, boolean value) { in set() argument
72 int arrayIdx = idx >> 5; in set()
73 int bit = 1 << (idx & 0x1f); in set()
88 public static void set(int[] bits, int idx) { in set() argument
89 int arrayIdx = idx >> 5; in set()
90 int bit = 1 << (idx & 0x1f); in set()
100 public static void clear(int[] bits, int idx) { in clear() argument
[all …]
DBitIntSet.java102 private int idx = Bits.findFirst(bits, 0); in iterator()
106 return idx >= 0; in iterator()
115 int ret = idx; in iterator()
117 idx = Bits.findFirst(bits, idx+1); in iterator()
/dalvik/dx/src/com/android/dx/cf/code/
DOneLocalsArray.java111 public void set(int idx, TypeBearer type) { in set() argument
121 if (idx < 0) { in set()
127 locals[idx + 1] = null; in set()
130 locals[idx] = type; in set()
132 if (idx != 0) { in set()
133 TypeBearer prev = locals[idx - 1]; in set()
135 locals[idx - 1] = null; in set()
148 public void invalidate(int idx) { in invalidate() argument
150 locals[idx] = null; in invalidate()
155 public TypeBearer getOrNull(int idx) { in getOrNull() argument
[all …]
DBytecodeArray.java320 int idx = bytes.getUnsignedByte(offset + 1); in parseInstruction() local
321 Constant cst = pool.get(idx); in parseInstruction()
328 int idx = bytes.getUnsignedShort(offset + 1); in parseInstruction() local
329 Constant cst = pool.get(idx); in parseInstruction()
336 int idx = bytes.getUnsignedShort(offset + 1); in parseInstruction() local
337 Constant cst = pool.get(idx); in parseInstruction()
342 int idx = bytes.getUnsignedByte(offset + 1); in parseInstruction() local
343 visitor.visitLocal(ByteOps.ILOAD, offset, 2, idx, in parseInstruction()
348 int idx = bytes.getUnsignedByte(offset + 1); in parseInstruction() local
349 visitor.visitLocal(ByteOps.ILOAD, offset, 2, idx, in parseInstruction()
[all …]
DLocalsArray.java85 public abstract void set(int idx, TypeBearer type); in set() argument
102 public abstract void invalidate(int idx); in invalidate() argument
111 public abstract TypeBearer getOrNull(int idx); in getOrNull() argument
123 public abstract TypeBearer get(int idx); in get() argument
136 public abstract TypeBearer getCategory1(int idx); in getCategory1() argument
148 public abstract TypeBearer getCategory2(int idx); in getCategory2() argument
DLocalsArraySet.java195 public void set(int idx, TypeBearer type) { in set() argument
198 primary.set(idx, type); in set()
202 la.set(idx, type); in set()
215 public void invalidate(int idx) { in invalidate() argument
218 primary.invalidate(idx); in invalidate()
222 la.invalidate(idx); in invalidate()
229 public TypeBearer getOrNull(int idx) { in getOrNull() argument
230 return primary.getOrNull(idx); in getOrNull()
235 public TypeBearer get(int idx) { in get() argument
236 return primary.get(idx); in get()
[all …]
DByteBlockList.java55 int idx = indexOfLabel(label); in labelToBlock() local
57 if (idx < 0) { in labelToBlock()
62 return get(idx); in labelToBlock()
DExecutionStack.java85 String idx = (i == limit) ? "top0" : Hex.u2(limit - i); in annotate() local
87 ex.addContext("stack[" + idx + "]: " + in annotate()
284 int idx = stackPtr - n - 1; in change() local
285 TypeBearer orig = stack[idx]; in change()
294 stack[idx] = type; in change()
/dalvik/dx/src/com/android/dx/dex/file/
DClassDefsSection.java132 int idx = 0; in orderItems() local
143 idx = orderItems0(type, idx, sz - idx); in orderItems()
157 private int orderItems0(Type type, int idx, int maxDepth) { in orderItems0() argument
161 return idx; in orderItems0()
173 idx = orderItems0(superclass, idx, maxDepth); in orderItems0()
179 idx = orderItems0(interfaces.getType(i), idx, maxDepth); in orderItems0()
182 c.setIndex(idx); in orderItems0()
184 return idx + 1; in orderItems0()
DTypeIdItem.java61 int idx = file.getStringIds().indexOf(descriptor); in writeTo() local
65 out.annotate(4, " descriptor_idx: " + Hex.u4(idx)); in writeTo()
68 out.writeInt(idx); in writeTo()
DMemberIdsSection.java45 int idx = 0; in orderItems() local
52 ((MemberIdItem) i).setIndex(idx); in orderItems()
53 idx++; in orderItems()
/dalvik/dexgen/src/com/android/dexgen/dex/file/
DClassDefsSection.java133 int idx = 0; in orderItems() local
144 idx = orderItems0(type, idx, sz - idx); in orderItems()
158 private int orderItems0(Type type, int idx, int maxDepth) { in orderItems0() argument
162 return idx; in orderItems0()
174 idx = orderItems0(superclass, idx, maxDepth); in orderItems0()
180 idx = orderItems0(interfaces.getType(i), idx, maxDepth); in orderItems0()
183 c.setIndex(idx); in orderItems0()
185 return idx + 1; in orderItems0()
DMemberIdsSection.java37 int idx = 0; in orderItems() local
40 ((MemberIdItem) i).setIndex(idx); in orderItems()
41 idx++; in orderItems()
DTypeIdItem.java63 int idx = file.getStringIds().indexOf(descriptor); in writeTo() local
67 out.annotate(4, " descriptor_idx: " + Hex.u4(idx)); in writeTo()
70 out.writeInt(idx); in writeTo()
/dalvik/libdex/
DDexFile.h718 DEX_INLINE const DexStringId* dexGetStringId(const DexFile* pDexFile, u4 idx) { in dexGetStringId() argument
719 assert(idx < pDexFile->pHeader->stringIdsSize); in dexGetStringId()
720 return &pDexFile->pStringIds[idx]; in dexGetStringId()
723 DEX_INLINE const char* dexStringById(const DexFile* pDexFile, u4 idx) { in dexStringById() argument
724 const DexStringId* pStringId = dexGetStringId(pDexFile, idx); in dexStringById()
730 const char* dexStringAndSizeById(const DexFile* pDexFile, u4 idx,
734 DEX_INLINE const DexTypeId* dexGetTypeId(const DexFile* pDexFile, u4 idx) { in dexGetTypeId() argument
735 assert(idx < pDexFile->pHeader->typeIdsSize); in dexGetTypeId()
736 return &pDexFile->pTypeIds[idx]; in dexGetTypeId()
743 DEX_INLINE const char* dexStringByTypeIdx(const DexFile* pDexFile, u4 idx) { in dexStringByTypeIdx() argument
[all …]
DDexFile.cpp104 const char* dexStringAndSizeById(const DexFile* pDexFile, u4 idx, in dexStringAndSizeById() argument
106 const DexStringId* pStringId = dexGetStringId(pDexFile, idx); in dexStringAndSizeById()
183 int idx = hash & mask; in classLookupAdd() local
190 while (pLookup->table[idx].classDescriptorOffset != 0) { in classLookupAdd()
191 idx = (idx + 1) & mask; in classLookupAdd()
197 pLookup->table[idx].classDescriptorHash = hash; in classLookupAdd()
198 pLookup->table[idx].classDescriptorOffset = stringOff; in classLookupAdd()
199 pLookup->table[idx].classDefOffset = classDefOff; in classLookupAdd()
443 int idx, mask; in dexFindClass() local
447 idx = hash & mask; in dexFindClass()
[all …]
DDexProto.cpp143 u4 idx = dexTypeListGetIdx(typeList, i); in dexProtoGetMethodDescriptor() local
144 length += strlen(dexStringByTypeIdx(dexFile, idx)); in dexProtoGetMethodDescriptor()
155 u4 idx = dexTypeListGetIdx(typeList, i); in dexProtoGetMethodDescriptor() local
156 const char* desc = dexStringByTypeIdx(dexFile, idx); in dexProtoGetMethodDescriptor()
504 u4 idx = dexTypeListGetIdx(pIterator->parameters, cursor); in dexParameterIteratorNextIndex() local
506 return idx; in dexParameterIteratorNextIndex()
516 u4 idx = dexParameterIteratorNextIndex(pIterator); in dexParameterIteratorNextDescriptor() local
518 if (idx == kDexNoIndex) { in dexParameterIteratorNextDescriptor()
522 return dexStringByTypeIdx(pIterator->proto->dexFile, idx); in dexParameterIteratorNextDescriptor()
DDexSwapVerify.cpp1490 u4 idx = annotationItemTypeIdx(annotation); in crossVerifyAnnotationSetItem() local
1494 } else if (lastIdx >= idx) { in crossVerifyAnnotationSetItem()
1496 lastIdx, idx); in crossVerifyAnnotationSetItem()
1500 lastIdx = idx; in crossVerifyAnnotationSetItem()
2098 u4 idx; in intraVerifyDebugInfoItem() local
2105 idx = readAndVerifyUnsignedLeb128(&data, fileEnd, &okay); in intraVerifyDebugInfoItem()
2107 if (idx != 0) { in intraVerifyDebugInfoItem()
2108 idx--; in intraVerifyDebugInfoItem()
2109 CHECK_INDEX(idx, state->pHeader->stringIdsSize); in intraVerifyDebugInfoItem()
2111 idx = readAndVerifyUnsignedLeb128(&data, fileEnd, &okay); in intraVerifyDebugInfoItem()
[all …]
/dalvik/tools/dexdeps/src/com/android/dexdeps/
DDexData.java325 private String classNameFromTypeIndex(int idx) { in classNameFromTypeIndex() argument
326 return mStrings[mTypeIds[idx].descriptorIdx]; in classNameFromTypeIndex()
333 private String[] argArrayFromProtoIndex(int idx) { in argArrayFromProtoIndex() argument
334 ProtoIdItem protoId = mProtoIds[idx]; in argArrayFromProtoIndex()
348 private String returnTypeFromProtoIndex(int idx) { in returnTypeFromProtoIndex() argument
349 ProtoIdItem protoId = mProtoIds[idx]; in returnTypeFromProtoIndex()
379 int idx = 0; in getExternalReferences() local
382 classRefs[idx++] = sparseRefs[i]; in getExternalReferences()
385 assert idx == count; in getExternalReferences()
510 int idx; in readString() local
[all …]
DMain.java205 int idx; in parseArgs() local
207 for (idx = 0; idx < args.length; idx++) { in parseArgs()
208 String arg = args[idx]; in parseArgs()
230 int fileCount = args.length - idx; in parseArgs()
236 System.arraycopy(args, idx, mInputFileNames, 0, fileCount); in parseArgs()
/dalvik/dexgen/src/com/android/dexgen/rop/cst/
DCstInteger.java64 int idx = (value & 0x7fffffff) % cache.length; in make() local
65 CstInteger obj = cache[idx]; in make()
72 cache[idx] = obj; in make()
/dalvik/dx/src/com/android/dx/rop/cst/
DCstInteger.java64 int idx = (value & 0x7fffffff) % cache.length; in make() local
65 CstInteger obj = cache[idx]; in make()
72 cache[idx] = obj; in make()

123