/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 | 320 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 …]
|
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/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/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 | 48 int idx = 0; in orderItems() local 55 ((MemberIdItem) i).setIndex(idx); in orderItems() 56 idx++; in orderItems()
|
D | ProtoIdsSection.java | 132 int idx = 0; in orderItems() local 135 ((ProtoIdItem) i).setIndex(idx); in orderItems() 136 idx++; in orderItems()
|
/dalvik/libdex/ |
D | DexFile.h | 666 DEX_INLINE const DexStringId* dexGetStringId(const DexFile* pDexFile, u4 idx) { in dexGetStringId() argument 667 assert(idx < pDexFile->pHeader->stringIdsSize); in dexGetStringId() 668 return &pDexFile->pStringIds[idx]; in dexGetStringId() 671 DEX_INLINE const char* dexStringById(const DexFile* pDexFile, u4 idx) { in dexStringById() argument 672 const DexStringId* pStringId = dexGetStringId(pDexFile, idx); in dexStringById() 678 const char* dexStringAndSizeById(const DexFile* pDexFile, u4 idx, 682 DEX_INLINE const DexTypeId* dexGetTypeId(const DexFile* pDexFile, u4 idx) { in dexGetTypeId() argument 683 assert(idx < pDexFile->pHeader->typeIdsSize); in dexGetTypeId() 684 return &pDexFile->pTypeIds[idx]; in dexGetTypeId() 691 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 …]
|
/dalvik/tools/dexdeps/src/com/android/dexdeps/ |
D | Main.java | 185 int idx; in parseArgs() local 187 for (idx = 0; idx < args.length; idx++) { in parseArgs() 188 String arg = args[idx]; in parseArgs() 210 int fileCount = args.length - idx; in parseArgs() 216 System.arraycopy(args, idx, mInputFileNames, 0, fileCount); in parseArgs()
|
D | DexData.java | 323 private String classNameFromTypeIndex(int idx) { in classNameFromTypeIndex() argument 324 return mStrings[mTypeIds[idx].descriptorIdx]; in classNameFromTypeIndex() 331 private String[] argArrayFromProtoIndex(int idx) { in argArrayFromProtoIndex() argument 332 ProtoIdItem protoId = mProtoIds[idx]; in argArrayFromProtoIndex() 346 private String returnTypeFromProtoIndex(int idx) { in returnTypeFromProtoIndex() argument 347 ProtoIdItem protoId = mProtoIds[idx]; in returnTypeFromProtoIndex() 377 int idx = 0; in getExternalReferences() local 380 classRefs[idx++] = sparseRefs[i]; in getExternalReferences() 383 assert idx == count; in getExternalReferences() 508 int idx; in readString() local [all …]
|
/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()
|