/dalvik/dx/src/com/android/dx/util/ |
D | Bits.java | 58 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 …]
|
D | BitIntSet.java | 102 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/dexgen/src/com/android/dexgen/util/ |
D | Bits.java | 58 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 …]
|
D | BitIntSet.java | 102 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/opcode-gen/ |
D | opcode-gen.awk | 286 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/cf/code/ |
D | OneLocalsArray.java | 105 public void set(int idx, TypeBearer type) { in set() argument 115 if (idx < 0) { in set() 121 locals[idx + 1] = null; in set() 124 locals[idx] = type; in set() 126 if (idx != 0) { in set() 127 TypeBearer prev = locals[idx - 1]; in set() 129 locals[idx - 1] = null; in set() 140 public void invalidate(int idx) { in invalidate() argument 142 locals[idx] = null; in invalidate() 146 public TypeBearer getOrNull(int idx) { in getOrNull() argument [all …]
|
D | LocalsArray.java | 85 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
|
D | BytecodeArray.java | 321 int idx = bytes.getUnsignedByte(offset + 1); in parseInstruction() local 322 Constant cst = pool.get(idx); in parseInstruction() 329 int idx = bytes.getUnsignedShort(offset + 1); in parseInstruction() local 330 Constant cst = pool.get(idx); in parseInstruction() 337 int idx = bytes.getUnsignedShort(offset + 1); in parseInstruction() local 338 Constant cst = pool.get(idx); in parseInstruction() 343 int idx = bytes.getUnsignedByte(offset + 1); in parseInstruction() local 344 visitor.visitLocal(ByteOps.ILOAD, offset, 2, idx, in parseInstruction() 349 int idx = bytes.getUnsignedByte(offset + 1); in parseInstruction() local 350 visitor.visitLocal(ByteOps.ILOAD, offset, 2, idx, in parseInstruction() [all …]
|
D | ByteBlockList.java | 55 int idx = indexOfLabel(label); in labelToBlock() local 57 if (idx < 0) { in labelToBlock() 62 return get(idx); in labelToBlock()
|
D | LocalsArraySet.java | 194 public void set(int idx, TypeBearer type) { in set() argument 197 primary.set(idx, type); in set() 201 la.set(idx, type); in set() 214 public void invalidate(int idx) { in invalidate() argument 217 primary.invalidate(idx); in invalidate() 221 la.invalidate(idx); in invalidate() 228 public TypeBearer getOrNull(int idx) { in getOrNull() argument 229 return primary.getOrNull(idx); in getOrNull() 234 public TypeBearer get(int idx) { in get() argument 235 return primary.get(idx); in get() [all …]
|
D | ExecutionStack.java | 85 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/ |
D | ClassDefsSection.java | 132 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()
|
D | TypeIdItem.java | 61 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()
|
D | MemberIdsSection.java | 46 int idx = 0; in orderItems() local 53 ((MemberIdItem) i).setIndex(idx); in orderItems() 54 idx++; in orderItems()
|
/dalvik/dexgen/src/com/android/dexgen/dex/file/ |
D | ClassDefsSection.java | 133 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()
|
D | MemberIdsSection.java | 37 int idx = 0; in orderItems() local 40 ((MemberIdItem) i).setIndex(idx); in orderItems() 41 idx++; in orderItems()
|
D | TypeIdItem.java | 63 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()
|
D | ProtoIdsSection.java | 133 int idx = 0; in orderItems() local 136 ((ProtoIdItem) i).setIndex(idx); in orderItems() 137 idx++; in orderItems()
|
/dalvik/libdex/ |
D | DexFile.h | 707 DEX_INLINE const DexStringId* dexGetStringId(const DexFile* pDexFile, u4 idx) { in dexGetStringId() argument 708 assert(idx < pDexFile->pHeader->stringIdsSize); in dexGetStringId() 709 return &pDexFile->pStringIds[idx]; in dexGetStringId() 712 DEX_INLINE const char* dexStringById(const DexFile* pDexFile, u4 idx) { in dexStringById() argument 713 const DexStringId* pStringId = dexGetStringId(pDexFile, idx); in dexStringById() 719 const char* dexStringAndSizeById(const DexFile* pDexFile, u4 idx, 723 DEX_INLINE const DexTypeId* dexGetTypeId(const DexFile* pDexFile, u4 idx) { in dexGetTypeId() argument 724 assert(idx < pDexFile->pHeader->typeIdsSize); in dexGetTypeId() 725 return &pDexFile->pTypeIds[idx]; in dexGetTypeId() 732 DEX_INLINE const char* dexStringByTypeIdx(const DexFile* pDexFile, u4 idx) { in dexStringByTypeIdx() argument [all …]
|
D | DexFile.cpp | 105 const char* dexStringAndSizeById(const DexFile* pDexFile, u4 idx, in dexStringAndSizeById() argument 107 const DexStringId* pStringId = dexGetStringId(pDexFile, idx); in dexStringAndSizeById() 186 int idx = hash & mask; in classLookupAdd() local 193 while (pLookup->table[idx].classDescriptorOffset != 0) { in classLookupAdd() 194 idx = (idx + 1) & mask; in classLookupAdd() 200 pLookup->table[idx].classDescriptorHash = hash; in classLookupAdd() 201 pLookup->table[idx].classDescriptorOffset = stringOff; in classLookupAdd() 202 pLookup->table[idx].classDefOffset = classDefOff; in classLookupAdd() 446 int idx, mask; in dexFindClass() local 450 idx = hash & mask; in dexFindClass() [all …]
|
D | DexProto.cpp | 143 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()
|
/dalvik/tools/dexdeps/src/com/android/dexdeps/ |
D | DexData.java | 324 private String classNameFromTypeIndex(int idx) { in classNameFromTypeIndex() argument 325 return mStrings[mTypeIds[idx].descriptorIdx]; in classNameFromTypeIndex() 332 private String[] argArrayFromProtoIndex(int idx) { in argArrayFromProtoIndex() argument 333 ProtoIdItem protoId = mProtoIds[idx]; in argArrayFromProtoIndex() 347 private String returnTypeFromProtoIndex(int idx) { in returnTypeFromProtoIndex() argument 348 ProtoIdItem protoId = mProtoIds[idx]; in returnTypeFromProtoIndex() 378 int idx = 0; in getExternalReferences() local 381 classRefs[idx++] = sparseRefs[i]; in getExternalReferences() 384 assert idx == count; in getExternalReferences() 509 int idx; in readString() local [all …]
|
D | Main.java | 205 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/ |
D | CstInteger.java | 64 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/ |
D | CstInteger.java | 64 int idx = (value & 0x7fffffff) % cache.length; in make() local 65 CstInteger obj = cache[idx]; in make() 72 cache[idx] = obj; in make()
|