Home
last modified time | relevance | path

Searched refs:i (Results 1 – 25 of 284) sorted by relevance

12345678910>>...12

/dalvik/dx/junit-tests/com/android/dx/util/
DBitsTest.java25 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 …]
DBitIntSetTest.java102 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 …]
DListIntSetTest.java107 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 …]
DByteArrayAnnotatedOutputTest.java35 for (int i = 0; i < length; i++) { in testArrayZeroedOut()
36 assertEquals("Position " + i + " has not been zeroed out", 0, data[i]); in testArrayZeroedOut()
52 for (int i = 0; i < length; i++) { in testArrayAligned()
53 assertEquals("Position " + i + " has not been zeroed out", 0, data[i]); in testArrayAligned()
/dalvik/opcode-gen/
Dopcode-gen.awk52 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/
DDomFront.java65 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/dexgen/src/com/android/dexgen/util/
DHex.java38 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 …]
DLabeledList.java50 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
DBits.java116 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/dx/src/com/android/dx/util/
DHex.java38 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 …]
DLabeledList.java49 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 …]
DBits.java116 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/
DRegisterSpecList.java114 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 …]
DRegisterSpecSet.java69 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 …]
DInsnList.java75 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/tools/dexdeps/src/com/android/dexdeps/
DDexData.java154 for (int i = 0; i < count; i++) { in loadStrings()
155 seek(stringOffsets[i]); // should be a no-op in loadStrings()
156 mStrings[i] = readString(); in loadStrings()
171 for (int i = 0; i < count; i++) { in loadTypeIds()
172 mTypeIds[i] = new TypeIdItem(); in loadTypeIds()
173 mTypeIds[i].descriptorIdx = buffer.getInt(); in loadTypeIds()
194 for (int i = 0; i < count; i++) { in loadProtoIds()
195 mProtoIds[i] = new ProtoIdItem(); in loadProtoIds()
196 mProtoIds[i].shortyIdx = buffer.getInt(); in loadProtoIds()
197 mProtoIds[i].returnTypeIdx = buffer.getInt(); in loadProtoIds()
[all …]
/dalvik/dx/src/com/android/dx/rop/code/
DRegisterSpecSet.java68 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 …]
DInsnList.java75 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()
DRegisterSpecList.java117 for (int i = 0; i < sz; i++) { in getWordCount()
118 result += getType(i).getCategory(); in getWordCount()
150 for (int i = 0; i < sz; i++) { in specForRegister()
153 rs = get(i); in specForRegister()
171 for (int i = 0; i < sz; i++) { in indexOfRegister()
174 rs = get(i); in indexOfRegister()
177 return i; in indexOfRegister()
206 for (int i = 0; i < sz; i++) { in getRegistersSize()
207 RegisterSpec spec = (RegisterSpec) get0(i); in getRegistersSize()
231 for (int i = 0; i < sz; i++) { in withFirst()
[all …]
/dalvik/dexgen/src/com/android/dexgen/dex/code/
DArrayData.java121 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/src/com/android/dex/
DTypeList.java39 for (int i = 0; i < types.length && i < other.types.length; i++) { in compareTo()
40 if (types[i] != other.types[i]) { in compareTo()
41 return Unsigned.compare(types[i], other.types[i]); in compareTo()
51 for (int i = 0, typesLength = types.length; i < typesLength; i++) { in toString()
52 result.append(dex != null ? dex.typeNames().get(types[i]) : types[i]); in toString()
DEncodedValueCodec.java125 for (int i = zwidth; i >= 0; i--) { in readSignedInt()
141 for (int i = zwidth; i >= 0; i--) { in readUnsignedInt()
146 for (int i = zwidth; i >= 0; i--) { in readUnsignedInt()
160 for (int i = zwidth; i >= 0; i--) { in readSignedLong()
176 for (int i = zwidth; i >= 0; i--) { in readUnsignedLong()
181 for (int i = zwidth; i >= 0; i--) { in readUnsignedLong()
/dalvik/dx/src/com/android/dx/dex/code/
DArrayData.java123 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 …]
DOutputFinisher.java130 for (int i = 0; i < size; i++) { in hasLocalInfo()
131 if (hasLocalInfo(specs.get(i))) { in hasLocalInfo()
188 for (int i = 0; i < m.getNumberOfConstants(); i++) { in addConstants()
189 result.add(m.getConstant(i)); in addConstants()
194 for (int i = 0; i < size; i++) { in addConstants()
195 addConstants(result, specs.get(i)); in addConstants()
373 for (int i = 0; i < insn.getNumberOfConstants(); ++i) { in assignIndices()
374 Constant cst = insn.getConstant(i); in assignIndices()
376 insn.setIndex(i, index); in assignIndices()
435 for (int i = 0; i < size; i++) { in makeOpcodesArray()
[all …]
/dalvik/dx/tests/044-dex-math-ops/
DBlort.java19 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 …]

12345678910>>...12