/dalvik/tests/003-omnibus-opcodes/src/ |
D | Goto.java | 21 static int filler(int i) { in filler() argument 22 return i+1; in filler() 28 int i = 0; in smallGoto() local 31 i += filler(i); in smallGoto() 33 i -= filler(i); in smallGoto() 36 return i; in smallGoto() 42 int i = 0; in mediumGoto() local 45 i += filler(i); in mediumGoto() 47 i -= filler(i); i -= filler(i); i -= filler(i); i -= filler(i); in mediumGoto() 48 i -= filler(i); i -= filler(i); i -= filler(i); i -= filler(i); in mediumGoto() [all …]
|
D | FloatMath.java | 13 int i; in convTest() local 18 i = (int) f; in convTest() 19 assert(i == 1234); in convTest() 22 i = (int) f; in convTest() 23 assert(i == -1234); in convTest() 41 i = (int) d; in convTest() 42 assert(i == 1234); in convTest() 45 i = (int) d; in convTest() 46 assert(i == -1234); in convTest() 63 i = 7654; in convTest() [all …]
|
/dalvik/dx/src/com/android/dx/util/_tests/ |
D | _Bits.java | 31 for (int i = 1; i <= 32; i++) { in test_makeBitSet() 32 assertEquals(label(i), 1, Bits.makeBitSet(i).length); in test_makeBitSet() 35 for (int i = 33; i <= 64; i++) { in test_makeBitSet() 36 assertEquals(label(i), 2, Bits.makeBitSet(i).length); in test_makeBitSet() 39 for (int i = 65; i < 4000; i += 101) { in test_makeBitSet() 40 int expect = i >> 5; in test_makeBitSet() 41 if ((expect * 32) < i) { in test_makeBitSet() 44 assertEquals(label(i), expect, Bits.makeBitSet(i).length); in test_makeBitSet() 49 for (int i = 0; i < 4000; i += 59) { in test_getMax() 50 int expect = i >> 5; in test_getMax() [all …]
|
D | _BitIntSet.java | 107 for (int i = 0; i < values.length; i++) { in test_expand() 108 set.add(values[i]); in test_expand() 113 for (int i = 0; i < values.length; i++) { in test_expand() 115 assertEquals(values[i], iter.next()); in test_expand() 124 for (int i = 0; i < valuesA.length; i++) { in test_merge() 125 setA.add(valuesA[i]); in test_merge() 131 for (int i = 0; i < valuesB.length; i++) { in test_merge() 132 setB.add(valuesB[i]); in test_merge() 137 for (int i = 0; i < valuesA.length; i++) { in test_merge() 138 assertTrue(setA.has(valuesA[i])); in test_merge() [all …]
|
D | _ListIntSet.java | 112 for (int i = 0; i < valuesA.length; i++) { in test_mergeA() 113 setA.add(valuesA[i]); in test_mergeA() 119 for (int i = 0; i < valuesB.length; i++) { in test_mergeA() 120 setB.add(valuesB[i]); in test_mergeA() 125 for (int i = 0; i < valuesA.length; i++) { in test_mergeA() 126 assertTrue(setA.has(valuesA[i])); in test_mergeA() 129 for (int i = 0; i < valuesB.length; i++) { in test_mergeA() 130 assertTrue(setA.has(valuesB[i])); in test_mergeA() 139 for (int i = 0; i < valuesA.length; i++) { in test_mergeB() 140 setA.add(valuesA[i]); in test_mergeB() [all …]
|
/dalvik/vm/compiler/ |
D | Ralloc.c | 31 int i; in computeLiveRange() local 41 for (i=0; i< ssaRep->numUses; i++) { in computeLiveRange() 42 int reg = ssaRep->uses[i]; in computeLiveRange() 46 for (i=0; i< ssaRep->numDefs; i++) { in computeLiveRange() 47 int reg = ssaRep->defs[i]; in computeLiveRange() 73 int i; in inferTypes() local 74 for (i=0; ssaRep->fpUse && i< ssaRep->numUses; i++) { in inferTypes() 75 if (ssaRep->fpUse[i]) in inferTypes() 76 cUnit->regLocation[ssaRep->uses[i]].fp = true; in inferTypes() 78 for (i=0; ssaRep->fpDef && i< ssaRep->numDefs; i++) { in inferTypes() [all …]
|
/dalvik/tests/023-many-interfaces/ |
D | iface-gen.c | 14 int i; in createFiles() local 16 for (i = 0; i < count; i++) { in createFiles() 19 sprintf(nameBuf, "src/Interface%03d.java", i); in createFiles() 26 fprintf(fp, "interface Interface%03d {\n", i); in createFiles() 27 if ((i & 0x01) != 0) in createFiles() 28 fprintf(fp, " int func%03d();\n", i); in createFiles() 35 for (i = 0; i < count; i++) { in createFiles() 36 fprintf(fp, " Interface%03d%s\n", i, (i == count-1) ? "" : ","); in createFiles() 39 for (i = 1; i < count; i += 2) { in createFiles() 40 fprintf(fp, " public int func%03d() { return %d; }\n", i, i); in createFiles()
|
/dalvik/dx/src/com/android/dx/ssa/ |
D | DomFront.java | 69 for (int i = 0; i < szNodes; i++) { in DomFront() 70 domInfos[i] = new DomInfo(); in DomFront() 83 for (int i = 0; i < szNodes; i++) { in run() 84 SsaBasicBlock node = nodes.get(i); in run() 85 System.out.println("pred[" + i + "]: " in run() 93 for (int i = 0; i < szNodes; i++) { in run() 94 DomInfo info = domInfos[i]; in run() 95 System.out.println("idom[" + i + "]: " in run() 106 for (int i = 0; i < szNodes; i++) { in run() 107 domInfos[i].dominanceFrontiers in run() [all …]
|
/dalvik/tools/dexdeps/src/com/android/dexdeps/ |
D | DexData.java | 136 for (int i = 0; i < count; i++) { in loadStrings() 137 stringOffsets[i] = readInt(); in loadStrings() 143 for (int i = 0; i < count; i++) { in loadStrings() 144 seek(stringOffsets[i]); // should be a no-op in loadStrings() 145 mStrings[i] = readString(); in loadStrings() 159 for (int i = 0; i < count; i++) { in loadTypeIds() 160 mTypeIds[i] = new TypeIdItem(); in loadTypeIds() 161 mTypeIds[i].descriptorIdx = readInt(); in loadTypeIds() 181 for (int i = 0; i < count; i++) { in loadProtoIds() 182 mProtoIds[i] = new ProtoIdItem(); in loadProtoIds() [all …]
|
/dalvik/dx/src/com/android/dx/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/dx/src/com/android/dx/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/tests/027-arithmetic/src/ |
D | Main.java | 58 int i; in convTest() local 63 i = (int) f; in convTest() 64 System.out.println("f=" + f + " --> i=" + i); in convTest() 67 i = (int) f; in convTest() 68 System.out.println("f=" + f + " --> i=" + i); in convTest() 72 i = (int) d; in convTest() 73 System.out.println("d=" + d + " --> i=" + i); in convTest() 76 i = (int) d; in convTest() 77 System.out.println("d=" + d + " --> i=" + i); in convTest() 89 i = 7654; in convTest() [all …]
|
/dalvik/tools/gdbjithelper/ |
D | gdbjithelper.c | 82 unsigned int i; in dumpCode() local 84 for (i = 0; i < NUM_DUMPED_WORDS; i++) { in dumpCode() 85 printf("%p codePC[%d]: %#010x\n", pc + i, i, pc[i]); in dumpCode() 88 for (i = 0; i < NUM_DUMPED_WORDS; i++) { in dumpCode() 89 printf("%p codeLR[%d]: %#010x\n", lr + i, i, lr[i]); in dumpCode()
|
/dalvik/tests/027-arithmetic/ |
D | expected.txt | 1 f=1234.5677 --> i=1234 2 f=-1234.5677 --> i=-1234 3 d=1234.5678 --> i=1234 4 d=-1234.5678 --> i=-1234 7 i=7654 --> l=7654 8 i=-7654 --> l=-7654 9 l=5678956789 --> i=1383989493 10 l=-5678956789 --> i=-1383989493 11 i=1234 --> f=1234.0 12 i=-1234 --> f=-1234.0 [all …]
|
/dalvik/tests/057-iteration-performance/src/ |
D | Main.java | 90 for (int i = 0; i < BODIES; i++) { in printTimings() 93 case PER_COLUMN: n = timings[i][0]; break; in printTimings() 97 bases[i] = n; in printTimings() 100 for (int i = 0; i < LOOPS; i++) { in printTimings() 103 i, in printTimings() 104 timings[0][i] / bases[0], in printTimings() 105 timings[1][i] / bases[1], in printTimings() 106 timings[2][i] / bases[2], in printTimings() 107 timings[3][i] / bases[3], in printTimings() 108 timings[4][i] / bases[4], in printTimings() [all …]
|
/dalvik/tests/083-jit-regressions/src/ |
D | Main.java | 35 for (int i = 0; i < 100000; i++) { in b2296099Test() 39 + " after " + i + " iterations"); in b2296099Test() 41 for (int i = 0; i < 100000; i++) { in b2296099Test() 45 + " after " + i + " iterations"); in b2296099Test() 50 static int rotateLeft(int i, int distance) { in rotateLeft() argument 51 return ((i << distance) | (i >>> (-distance))); in rotateLeft() 86 for (int i = 0; i < 1000; i++) { in b2487514Test() 91 for (int i = 0; i < 1000; i++) { in b2487514Test()
|
/dalvik/vm/compiler/codegen/arm/ |
D | RallocUtil.c | 73 int i; in dvmCompilerResetRegPool() local 74 for (i=0; i < cUnit->regPool->numCoreTemps; i++) { in dvmCompilerResetRegPool() 75 cUnit->regPool->coreTemps[i].inUse = false; in dvmCompilerResetRegPool() 77 for (i=0; i < cUnit->regPool->numFPTemps; i++) { in dvmCompilerResetRegPool() 78 cUnit->regPool->FPTemps[i].inUse = false; in dvmCompilerResetRegPool() 85 int i; in dvmCompilerInitPool() local 86 for (i=0; i < num; i++) { in dvmCompilerInitPool() 87 regs[i].reg = regNums[i]; in dvmCompilerInitPool() 88 regs[i].inUse = false; in dvmCompilerInitPool() 89 regs[i].pair = false; in dvmCompilerInitPool() [all …]
|
/dalvik/vm/ |
D | Init.c | 556 int i; in freeAssertionCtrl() local 558 for (i = 0; i < gDvm.assertionCtrlCount; i++) in freeAssertionCtrl() 559 free(gDvm.assertionCtrl[i].pkgOrClass); in freeAssertionCtrl() 611 int i; in processXjitop() local 612 for (i = 0; i < 32; i++) { in processXjitop() 613 gDvmJit.opList[i] = 0xff; in processXjitop() 669 int i; in dvmProcessOptions() local 672 for (i = 0; i < argc; i++) in dvmProcessOptions() 673 LOGV(" %d: '%s'\n", i, argv[i]); in dvmProcessOptions() 689 for (i = 0; i < argc; i++) { in dvmProcessOptions() [all …]
|
/dalvik/dx/src/com/android/dx/dex/code/ |
D | ArrayData.java | 120 for (int i = 0; i < sz; i++) { in writeTo() 121 Constant cst = values.get(i); in writeTo() 127 for (int i = 0; i < sz; i++) { in writeTo() 128 Constant cst = values.get(i); in writeTo() 134 for (int i = 0; i < sz; i++) { in writeTo() 135 Constant cst = values.get(i); in writeTo() 141 for (int i = 0; i < sz; i++) { in writeTo() 142 Constant cst = values.get(i); in writeTo() 169 for (int i = 0; i < sz; i++) { in argString() 171 sb.append(i); in argString() [all …]
|
/dalvik/dx/src/junit/framework/ |
D | ComparisonFailure.java | 36 int i= 0; in getMessage() local 37 for(; i < end; i++) { in getMessage() 38 if (fExpected.charAt(i) != fActual.charAt(i)) in getMessage() 43 for (; k >= i && j >= i; k--,j--) { in getMessage() 50 if (j < i && k < i) { in getMessage() 54 expected= fExpected.substring(i, j+1); in getMessage() 55 actual= fActual.substring(i, k+1); in getMessage() 56 if (i <= end && i > 0) { in getMessage()
|
/dalvik/tests/021-string2/src/junit/framework/ |
D | ComparisonFailure.java | 36 int i= 0; in getMessage() local 37 for(; i < end; i++) { in getMessage() 38 if (fExpected.charAt(i) != fActual.charAt(i)) in getMessage() 43 for (; k >= i && j >= i; k--,j--) { in getMessage() 50 if (j < i && k < i) { in getMessage() 54 expected= fExpected.substring(i, j+1); in getMessage() 55 actual= fActual.substring(i, k+1); in getMessage() 56 if (i <= end && i > 0) { in getMessage()
|