/dalvik/dx/junit-tests/com/android/dx/util/ |
D | BitsTest.java | 25 for (int i = 1; i <= 32; i++) { in test_makeBitSet() 26 assertEquals(label(i), 1, Bits.makeBitSet(i).length); in test_makeBitSet() 29 for (int i = 33; i <= 64; i++) { in test_makeBitSet() 30 assertEquals(label(i), 2, Bits.makeBitSet(i).length); in test_makeBitSet() 33 for (int i = 65; i < 4000; i += 101) { in test_makeBitSet() 34 int expect = i >> 5; in test_makeBitSet() 35 if ((expect * 32) < i) { in test_makeBitSet() 38 assertEquals(label(i), expect, Bits.makeBitSet(i).length); in test_makeBitSet() 43 for (int i = 0; i < 4000; i += 59) { in test_getMax() 44 int expect = i >> 5; in test_getMax() [all …]
|
D | BitIntSetTest.java | 102 for (int i = 0; i < values.length; i++) { in test_expand() 103 set.add(values[i]); in test_expand() 108 for (int i = 0; i < values.length; i++) { in test_expand() 110 assertEquals(values[i], iter.next()); in test_expand() 119 for (int i = 0; i < valuesA.length; i++) { in test_merge() 120 setA.add(valuesA[i]); in test_merge() 126 for (int i = 0; i < valuesB.length; i++) { in test_merge() 127 setB.add(valuesB[i]); in test_merge() 132 for (int i = 0; i < valuesA.length; i++) { in test_merge() 133 assertTrue(setA.has(valuesA[i])); in test_merge() [all …]
|
D | ListIntSetTest.java | 107 for (int i = 0; i < valuesA.length; i++) { in test_mergeA() 108 setA.add(valuesA[i]); in test_mergeA() 114 for (int i = 0; i < valuesB.length; i++) { in test_mergeA() 115 setB.add(valuesB[i]); in test_mergeA() 120 for (int i = 0; i < valuesA.length; i++) { in test_mergeA() 121 assertTrue(setA.has(valuesA[i])); in test_mergeA() 124 for (int i = 0; i < valuesB.length; i++) { in test_mergeA() 125 assertTrue(setA.has(valuesB[i])); in test_mergeA() 134 for (int i = 0; i < valuesA.length; i++) { in test_mergeB() 135 setA.add(valuesA[i]); in test_mergeB() [all …]
|
D | IntListTest.java | 25 for (int i = 0; i < sz; i++) { in test_contains() 26 list.add(i * 2); in test_contains() 28 for (int i = (sz * 2) - 1; i >= 0; i--) { in test_contains() 29 boolean contains = list.contains(i); in test_contains() 30 if ((i & 1) == 0) { in test_contains() 31 assertTrue(label(sz, i), contains); in test_contains() 33 assertFalse(label(sz, i), contains); in test_contains()
|
/dalvik/opcode-gen/ |
D | opcode-gen.awk | 52 i = match($0, /BEGIN\([a-z-]*\)/); 53 emission = substr($0, i + 6, RLENGTH - 7); 71 for (i = 0; i <= MAX_OPCODE; i++) { 72 if (isUnused(i) || isOptimized(i)) continue; 74 constName[i], hex[i]); 81 for (i = 0; i <= MAX_OPCODE; i++) { 82 if (isUnused(i) || isOptimized(i)) continue; 83 if (isFirst[i] == "true") { 84 printf(" // Opcodes.%s\n", constName[i]); 92 for (i = 0; i <= MAX_OPCODE; i++) { [all …]
|
/dalvik/dx/src/com/android/dx/ssa/ |
D | DomFront.java | 65 for (int i = 0; i < szNodes; i++) { in DomFront() 66 domInfos[i] = new DomInfo(); in DomFront() 79 for (int i = 0; i < szNodes; i++) { in run() 80 SsaBasicBlock node = nodes.get(i); in run() 81 System.out.println("pred[" + i + "]: " in run() 89 for (int i = 0; i < szNodes; i++) { in run() 90 DomInfo info = domInfos[i]; in run() 91 System.out.println("idom[" + i + "]: " in run() 102 for (int i = 0; i < szNodes; i++) { in run() 103 domInfos[i].dominanceFrontiers in run() [all …]
|
/dalvik/tools/dexdeps/src/com/android/dexdeps/ |
D | DexData.java | 143 for (int i = 0; i < count; i++) { in loadStrings() 144 stringOffsets[i] = readInt(); in loadStrings() 150 for (int i = 0; i < count; i++) { in loadStrings() 151 seek(stringOffsets[i]); // should be a no-op in loadStrings() 152 mStrings[i] = readString(); in loadStrings() 166 for (int i = 0; i < count; i++) { in loadTypeIds() 167 mTypeIds[i] = new TypeIdItem(); in loadTypeIds() 168 mTypeIds[i].descriptorIdx = readInt(); in loadTypeIds() 188 for (int i = 0; i < count; i++) { in loadProtoIds() 189 mProtoIds[i] = new ProtoIdItem(); in loadProtoIds() [all …]
|
/dalvik/dx/src/com/android/dx/util/ |
D | LabeledList.java | 49 for (int i = 0; i < sz; i++) { in LabeledList() 50 Object one = old.get0(i); in LabeledList() 52 set0(i, one); in LabeledList() 66 int i; in getMaxLabel() local 67 for (i = sz - 1; (i >= 0) && (labelToIndex.get(i) < 0); i--) in getMaxLabel() 70 int newSize = i + 1; in getMaxLabel() 95 for (int i = 0; i <= (label - origSz); i++) { in addLabelIndex() 131 for (int i = 0; i < sz; i++) { in getLabelsInOrder() 132 LabeledItem li = (LabeledItem) get0(i); in getLabelsInOrder() 134 throw new NullPointerException("null at index " + i); in getLabelsInOrder() [all …]
|
D | Hex.java | 38 for (int i = 0; i < 16; i++) { in u8() 39 result[15 - i] = Character.forDigit((int) v & 0x0f, 16); in u8() 54 for (int i = 0; i < 8; i++) { in u4() 55 result[7 - i] = Character.forDigit(v & 0x0f, 16); in u4() 70 for (int i = 0; i < 6; i++) { in u3() 71 result[5 - i] = Character.forDigit(v & 0x0f, 16); in u3() 86 for (int i = 0; i < 4; i++) { in u2() 87 result[3 - i] = Character.forDigit(v & 0x0f, 16); in u2() 118 for (int i = 0; i < 2; i++) { in u1() 119 result[1 - i] = Character.forDigit(v & 0x0f, 16); in u1() [all …]
|
D | Bits.java | 116 for (int i = 0; i < len; i++) { in isEmpty() 117 if (bits[i] != 0) { in isEmpty() 135 for (int i = 0; i < len; i++) { in bitCount() 136 count += Integer.bitCount(bits[i]); in bitCount() 210 for (int i = 0; i < b.length; i++) { in or() 211 a[i] |= b[i]; in or() 223 for (int i = 0; i < bitsLength; i++) { in toHuman() 224 if (Bits.get(bits, i)) { in toHuman() 229 sb.append(i); in toHuman()
|
/dalvik/dexgen/src/com/android/dexgen/util/ |
D | Hex.java | 38 for (int i = 0; i < 16; i++) { in u8() 39 result[15 - i] = Character.forDigit((int) v & 0x0f, 16); in u8() 54 for (int i = 0; i < 8; i++) { in u4() 55 result[7 - i] = Character.forDigit(v & 0x0f, 16); in u4() 70 for (int i = 0; i < 6; i++) { in u3() 71 result[5 - i] = Character.forDigit(v & 0x0f, 16); in u3() 86 for (int i = 0; i < 4; i++) { in u2() 87 result[3 - i] = Character.forDigit(v & 0x0f, 16); in u2() 118 for (int i = 0; i < 2; i++) { in u1() 119 result[1 - i] = Character.forDigit(v & 0x0f, 16); in u1() [all …]
|
D | LabeledList.java | 50 for (int i = 0; i < sz; i++) { in LabeledList() 51 Object one = old.get0(i); in LabeledList() 53 set0(i, one); in LabeledList() 67 int i; in getMaxLabel() local 68 for (i = sz - 1; (i >= 0) && (labelToIndex.get(i) < 0); i--) in getMaxLabel() 71 int newSize = i+1; in getMaxLabel() 94 for (int i = 0; i <= (label - origSz); i++) { in addLabelIndex() 133 for (int i = 0; i < szItems; i++) { in rebuildLabelToIndex() 134 LabeledItem li = (LabeledItem)get0(i); in rebuildLabelToIndex() 137 labelToIndex.set(li.getLabel(), i); in rebuildLabelToIndex() local
|
D | Bits.java | 116 for (int i = 0; i < len; i++) { in isEmpty() 117 if (bits[i] != 0) { in isEmpty() 135 for (int i = 0; i < len; i++) { in bitCount() 136 count += Integer.bitCount(bits[i]); in bitCount() 210 for (int i = 0; i < b.length; i++) { in or() 211 a[i] |= b[i]; in or() 223 for (int i = 0; i < bitsLength; i++) { in toHuman() 224 if (Bits.get(bits, i)) { in toHuman() 229 sb.append(i); in toHuman()
|
/dalvik/dexgen/src/com/android/dexgen/rop/code/ |
D | RegisterSpecList.java | 114 for (int i = 0; i < sz; i++) { in getWordCount() 115 result += getType(i).getCategory(); in getWordCount() 146 for (int i = 0; i < sz; i++) { in specForRegister() 149 rs = get(i); in specForRegister() 167 for (int i = 0; i < sz; i++) { in indexOfRegister() 170 rs = get(i); in indexOfRegister() 173 return i; in indexOfRegister() 202 for (int i = 0; i < sz; i++) { in getRegistersSize() 203 RegisterSpec spec = (RegisterSpec) get0(i); in getRegistersSize() 227 for (int i = 0; i < sz; i++) { in withFirst() [all …]
|
D | RegisterSpecSet.java | 69 for (int i = 0; i < len; i++) { in equals() 70 RegisterSpec s1 = specs[i]; in equals() 71 RegisterSpec s2 = otherSpecs[i]; in equals() 91 for (int i = 0; i < len; i++) { in hashCode() 92 RegisterSpec spec = specs[i]; in hashCode() 109 for (int i = 0; i < len; i++) { in toString() 110 RegisterSpec spec = specs[i]; in toString() 148 for (int i = 0; i < len; i++) { in size() 149 if (specs[i] != null) { in size() 301 for (int i = 0; i < max; i++) { in putAll() [all …]
|
D | InsnList.java | 75 for (int i = 0; i < sz; i++) { in forEach() 76 get(i).accept(visitor); in forEach() 95 for (int i = 0; i < sz; i++) { in contentEquals() 96 if (!get(i).contentEquals(b.get(i))) { in contentEquals() 117 for (int i = 0; i < sz; i++) { in withRegisterOffset() 118 Insn one = (Insn) get0(i); in withRegisterOffset() 120 result.set0(i, one.withRegisterOffset(delta)); in withRegisterOffset()
|
/dalvik/dx/src/com/android/dx/rop/code/ |
D | RegisterSpecSet.java | 68 for (int i = 0; i < len; i++) { in equals() 69 RegisterSpec s1 = specs[i]; in equals() 70 RegisterSpec s2 = otherSpecs[i]; in equals() 90 for (int i = 0; i < len; i++) { in hashCode() 91 RegisterSpec spec = specs[i]; in hashCode() 108 for (int i = 0; i < len; i++) { in toString() 109 RegisterSpec spec = specs[i]; in toString() 147 for (int i = 0; i < len; i++) { in size() 148 if (specs[i] != null) { in size() 300 for (int i = 0; i < max; i++) { in putAll() [all …]
|
D | InsnList.java | 75 for (int i = 0; i < sz; i++) { in forEach() 76 get(i).accept(visitor); in forEach() 95 for (int i = 0; i < sz; i++) { in contentEquals() 96 if (!get(i).contentEquals(b.get(i))) { in contentEquals() 117 for (int i = 0; i < sz; i++) { in withRegisterOffset() 118 Insn one = (Insn) get0(i); in withRegisterOffset() 120 result.set0(i, one.withRegisterOffset(delta)); in withRegisterOffset()
|
D | RegisterSpecList.java | 115 for (int i = 0; i < sz; i++) { in getWordCount() 116 result += getType(i).getCategory(); in getWordCount() 147 for (int i = 0; i < sz; i++) { in specForRegister() 150 rs = get(i); in specForRegister() 168 for (int i = 0; i < sz; i++) { in indexOfRegister() 171 rs = get(i); in indexOfRegister() 174 return i; in indexOfRegister() 203 for (int i = 0; i < sz; i++) { in getRegistersSize() 204 RegisterSpec spec = (RegisterSpec) get0(i); in getRegistersSize() 228 for (int i = 0; i < sz; i++) { in withFirst() [all …]
|
/dalvik/dexgen/src/com/android/dexgen/dex/code/ |
D | ArrayData.java | 121 for (int i = 0; i < sz; i++) { in writeTo() 122 Constant cst = values.get(i); in writeTo() 128 for (int i = 0; i < sz; i++) { in writeTo() 129 Constant cst = values.get(i); in writeTo() 135 for (int i = 0; i < sz; i++) { in writeTo() 136 Constant cst = values.get(i); in writeTo() 142 for (int i = 0; i < sz; i++) { in writeTo() 143 Constant cst = values.get(i); in writeTo() 170 for (int i = 0; i < sz; i++) { in argString() 172 sb.append(i); in argString() [all …]
|
/dalvik/dx/tests/044-dex-math-ops/ |
D | Blort.java | 19 private volatile int i; field in Blort 25 i = -i1; in blort() 26 i = ~i1; in blort() 27 i = i1 + i2; in blort() 28 i = i1 - i2; in blort() 29 i = i1 * i2; in blort() 30 i = i1 / i2; in blort() 31 i = i1 % i2; in blort() 32 i = i1 & i2; in blort() 33 i = i1 | i2; in blort() [all …]
|
/dalvik/dx/src/com/android/dx/dex/code/ |
D | ArrayData.java | 123 for (int i = 0; i < sz; i++) { in writeTo() 124 Constant cst = values.get(i); in writeTo() 130 for (int i = 0; i < sz; i++) { in writeTo() 131 Constant cst = values.get(i); in writeTo() 137 for (int i = 0; i < sz; i++) { in writeTo() 138 Constant cst = values.get(i); in writeTo() 144 for (int i = 0; i < sz; i++) { in writeTo() 145 Constant cst = values.get(i); in writeTo() 172 for (int i = 0; i < sz; i++) { in argString() 174 sb.append(i); in argString() [all …]
|
/dalvik/dexgen/src/com/android/dexgen/rop/ |
D | LineNumberList.java | 48 for (int i = 0; i < sz1; i++) { in concat() 49 result.set(i, list1.get(i)); in concat() 52 for (int i = 0; i < sz2; i++) { in concat() 53 result.set(sz1 + i, list2.get(i)); in concat() 121 for (int i = 0; i < sz; i++) { in pcToLine() 122 Item one = get(i); in pcToLine()
|
/dalvik/dx/src/com/android/dx/cf/code/ |
D | LineNumberList.java | 48 for (int i = 0; i < sz1; i++) { in concat() 49 result.set(i, list1.get(i)); in concat() 52 for (int i = 0; i < sz2; i++) { in concat() 53 result.set(sz1 + i, list2.get(i)); in concat() 121 for (int i = 0; i < sz; i++) { in pcToLine() 122 Item one = get(i); in pcToLine()
|
/dalvik/dx/tests/053-dex-instance-var-access/ |
D | Blort.java | 40 public void test2(boolean b, int i, Object o) { in test2() argument 42 insByte = (byte) i; in test2() 43 insChar = (char) i; in test2() 44 insShort = (short) i; in test2() 45 insInt = i; in test2() 46 insLong = i; in test2() 47 insFloat = i; in test2() 48 insDouble = i; in test2()
|