/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 …]
|
/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 …]
|
/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/tests/011-array-copy/src/ |
D | Main.java | 32 for (int i = 0; i < stringArray.length; i++) in testObjectCopy() 33 stringArray[i] = new String(Integer.toString(i)); in testObjectCopy() 52 for (int i = 0; i < ARRAY_SIZE; i++) { in initByteArray() 53 array[i] = (byte) i; in initByteArray() 57 for (int i = 0; i < ARRAY_SIZE; i++) { in initShortArray() 58 array[i] = (short) i; in initShortArray() 62 for (int i = 0; i < ARRAY_SIZE; i++) { in initIntArray() 63 array[i] = (int) i; in initIntArray() 67 for (int i = 0; i < ARRAY_SIZE; i++) { in initLongArray() 68 array[i] = (long) i; in initLongArray() [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/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/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/vm/compiler/ |
D | Ralloc.cpp | 36 int i; in inferTypes() local 37 for (i=0; ssaRep->fpUse && i< ssaRep->numUses; i++) { in inferTypes() 38 if (ssaRep->fpUse[i]) in inferTypes() 39 cUnit->regLocation[ssaRep->uses[i]].fp = true; in inferTypes() 41 for (i=0; ssaRep->fpDef && i< ssaRep->numDefs; i++) { in inferTypes() 42 if (ssaRep->fpDef[i]) in inferTypes() 43 cUnit->regLocation[ssaRep->defs[i]].fp = true; in inferTypes() 59 int i; in dvmCompilerLocalRegAlloc() local 64 for (i=0; i< cUnit->numSSARegs; i++) { in dvmCompilerLocalRegAlloc() 65 loc[i] = freshLoc; in dvmCompilerLocalRegAlloc() [all …]
|
/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
|
/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 | 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 …]
|
/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/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/dx/src/com/android/dx/rop/code/ |
D | RegisterSpecList.java | 116 for (int i = 0; i < sz; i++) { in getWordCount() 117 result += getType(i).getCategory(); in getWordCount() 148 for (int i = 0; i < sz; i++) { in specForRegister() 151 rs = get(i); in specForRegister() 169 for (int i = 0; i < sz; i++) { in indexOfRegister() 172 rs = get(i); in indexOfRegister() 175 return i; in indexOfRegister() 204 for (int i = 0; i < sz; i++) { in getRegistersSize() 205 RegisterSpec spec = (RegisterSpec) get0(i); in getRegistersSize() 229 for (int i = 0; i < sz; i++) { in withFirst() [all …]
|
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 …]
|
/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/vm/compiler/codegen/ |
D | RallocUtil.cpp | 48 int i; in dvmCompilerResetRegPool() local 49 for (i=0; i < cUnit->regPool->numCoreTemps; i++) { in dvmCompilerResetRegPool() 50 cUnit->regPool->coreTemps[i].inUse = false; in dvmCompilerResetRegPool() 52 for (i=0; i < cUnit->regPool->numFPTemps; i++) { in dvmCompilerResetRegPool() 53 cUnit->regPool->FPTemps[i].inUse = false; in dvmCompilerResetRegPool() 60 int i; in dvmCompilerInitPool() local 61 for (i=0; i < num; i++) { in dvmCompilerInitPool() 62 regs[i].reg = regNums[i]; in dvmCompilerInitPool() 63 regs[i].inUse = false; in dvmCompilerInitPool() 64 regs[i].pair = false; in dvmCompilerInitPool() [all …]
|
/dalvik/vm/ |
D | Init.cpp | 543 int i; in freeAssertionCtrl() local 545 for (i = 0; i < gDvm.assertionCtrlCount; i++) in freeAssertionCtrl() 546 free(gDvm.assertionCtrl[i].pkgOrClass); in freeAssertionCtrl() 597 int i; in processXjitop() local 598 for (i = 0; i < (kNumPackedOpcodes+7)/8; i++) { in processXjitop() 599 gDvmJit.opList[i] = 0xff; in processXjitop() 655 int i; in processOptions() local 658 for (i = 0; i < argc; i++) in processOptions() 659 ALOGV(" %d: '%s'", i, argv[i]); in processOptions() 675 for (i = 0; i < argc; i++) { in processOptions() [all …]
|
/dalvik/dx/src/com/android/dx/io/ |
D | Annotation.java | 60 for (int i = 0; i < names.length; i++) { in writeTo() 61 out.writeUleb128(names[i]); in writeTo() 62 values[i].writeTo(out); in writeTo() 71 for (int i = 0; i < size; i++) { in compareTo() 72 if (names[i] != other.names[i]) { in compareTo() 73 return Unsigned.compare(names[i], other.names[i]); in compareTo() 75 int compare = values[i].compareTo(other.values[i]); in compareTo() 93 for (int i = 0; i < names.length; i++) { in toString() 94 if (i > 0) { in toString() 97 result.append(buffer.strings().get(names[i])); in toString() [all …]
|