Home
last modified time | relevance | path

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

123

/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()
DListIntSet.java110 private int idx = 0; in iterator()
114 return idx < ints.size(); in iterator()
123 return ints.get(idx++); in iterator()
/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()
DListIntSet.java116 private int idx = 0; in iterator()
121 return idx < ints.size(); in iterator()
131 return ints.get(idx++); in iterator()
/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/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 …]
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
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 …]
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()
DProtoIdsSection.java148 int idx = 0; in orderItems() local
151 ((ProtoIdItem) i).setIndex(idx); in orderItems()
152 idx++; in orderItems()
DStringIdsSection.java174 int idx = 0; in orderItems() local
177 s.setIndex(idx); in orderItems()
178 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()
DProtoIdsSection.java133 int idx = 0; in orderItems() local
136 ((ProtoIdItem) i).setIndex(idx); in orderItems()
137 idx++; in orderItems()
/dalvik/tools/dexdeps/src/com/android/dexdeps/
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