/dalvik/dx/junit-tests/com/android/dx/util/ |
D | IntListTest.java | 23 for (int sz = 0; sz < 100; sz++) { in test_contains() 24 IntList list = new IntList(sz); in test_contains() 25 for (int i = 0; i < sz; i++) { in test_contains() 28 for (int i = (sz * 2) - 1; i >= 0; i--) { in test_contains() 31 assertTrue(label(sz, i), contains); in test_contains() 33 assertFalse(label(sz, i), contains); in test_contains() 36 assertFalse(label(sz, -1), list.contains(-1)); in test_contains() 37 assertFalse(label(sz, sz * 2), list.contains(sz * 2)); in test_contains()
|
/dalvik/dx/src/com/android/dx/dex/code/ |
D | SwitchData.java | 77 int sz = cases.size(); in SwitchData() local 79 if (sz != targets.length) { in SwitchData() 83 if (sz > 65535) { in SwitchData() 105 int sz = targets.length; in writeTo() local 108 int firstCase = (sz == 0) ? 0 : cases.get(0); in writeTo() 109 int lastCase = (sz == 0) ? 0 : cases.get(sz - 1); in writeTo() 133 out.writeShort(sz); in writeTo() 135 for (int i = 0; i < sz; i++) { in writeTo() 139 for (int i = 0; i < sz; i++) { in writeTo() 166 int sz = targets.length; in argString() local [all …]
|
D | ArrayData.java | 74 int sz = values.size(); in ArrayData() local 76 if (sz <= 0) { in ArrayData() 105 int sz = initLength; in codeSize() local 107 return 4 + ((sz * elemWidth) + 1) / 2; in codeSize() 113 int sz = values.size(); in writeTo() local 123 for (int i = 0; i < sz; i++) { in writeTo() 130 for (int i = 0; i < sz; i++) { in writeTo() 137 for (int i = 0; i < sz; i++) { in writeTo() 144 for (int i = 0; i < sz; i++) { in writeTo() 155 if (elemWidth == 1 && (sz % 2 != 0)) { in writeTo() [all …]
|
/dalvik/dexgen/src/com/android/dexgen/dex/code/ |
D | SwitchData.java | 76 int sz = cases.size(); in SwitchData() local 78 if (sz != targets.length) { in SwitchData() 82 if (sz > 65535) { in SwitchData() 104 int sz = targets.length; in writeTo() local 107 int firstCase = (sz == 0) ? 0 : cases.get(0); in writeTo() 108 int lastCase = (sz == 0) ? 0 : cases.get(sz - 1); in writeTo() 132 out.writeShort(sz); in writeTo() 134 for (int i = 0; i < sz; i++) { in writeTo() 138 for (int i = 0; i < sz; i++) { in writeTo() 165 int sz = targets.length; in argString() local [all …]
|
D | ArrayData.java | 72 int sz = values.size(); in ArrayData() local 74 if (sz <= 0) { in ArrayData() 103 int sz = initLength; in codeSize() local 105 return 4 + ((sz * elemWidth) + 1) / 2; in codeSize() 111 int sz = values.size(); in writeTo() local 121 for (int i = 0; i < sz; i++) { in writeTo() 128 for (int i = 0; i < sz; i++) { in writeTo() 135 for (int i = 0; i < sz; i++) { in writeTo() 142 for (int i = 0; i < sz; i++) { in writeTo() 153 if (elemWidth == 1 && (sz % 2 != 0)) { in writeTo() [all …]
|
D | DalvInsnList.java | 108 int sz = size(); in codeSize() local 110 if (sz == 0) { in codeSize() 114 DalvInsn last = get(sz - 1); in codeSize() 126 int sz = size(); in writeTo() local 131 for (int i = 0; i < sz; i++) { in writeTo() 151 for (int i = 0; i < sz; i++) { in writeTo() 187 int sz = size(); in getOutsSize() local 190 for (int i = 0; i < sz; i++) { in getOutsSize() 226 int sz = size(); in debugPrint() local 229 for (int i = 0; i < sz; i++) { in debugPrint()
|
/dalvik/dexgen/src/com/android/dexgen/rop/code/ |
D | RegisterSpecList.java | 111 int sz = size(); in getWordCount() local 114 for (int i = 0; i < sz; i++) { in getWordCount() 145 int sz = size(); in specForRegister() local 146 for (int i = 0; i < sz; i++) { in specForRegister() 166 int sz = size(); in indexOfRegister() local 167 for (int i = 0; i < sz; i++) { in indexOfRegister() 199 int sz = size(); in getRegistersSize() local 202 for (int i = 0; i < sz; i++) { in getRegistersSize() 224 int sz = size(); in withFirst() local 225 RegisterSpecList result = new RegisterSpecList(sz + 1); in withFirst() [all …]
|
D | InsnList.java | 73 int sz = size(); in forEach() local 75 for (int i = 0; i < sz; i++) { in forEach() 91 int sz = size(); in contentEquals() local 93 if (sz != b.size()) return false; in contentEquals() 95 for (int i = 0; i < sz; i++) { in contentEquals() 114 int sz = size(); in withRegisterOffset() local 115 InsnList result = new InsnList(sz); in withRegisterOffset() 117 for (int i = 0; i < sz; i++) { in withRegisterOffset()
|
/dalvik/dx/src/com/android/dx/dex/code/form/ |
D | Form35c.java | 103 int sz = regs.size(); in compatibleRegs() local 104 BitSet bits = new BitSet(sz); in compatibleRegs() 106 for (int i = 0; i < sz; i++) { in compatibleRegs() 126 int sz = regs.size(); in writeTo() local 127 int r0 = (sz > 0) ? regs.get(0).getReg() : 0; in writeTo() 128 int r1 = (sz > 1) ? regs.get(1).getReg() : 0; in writeTo() 129 int r2 = (sz > 2) ? regs.get(2).getReg() : 0; in writeTo() 130 int r3 = (sz > 3) ? regs.get(3).getReg() : 0; in writeTo() 131 int r4 = (sz > 4) ? regs.get(4).getReg() : 0; in writeTo() 135 makeByte(r4, sz)), // encode the fifth operand here in writeTo() [all …]
|
/dalvik/dx/src/com/android/dx/rop/code/ |
D | InsnList.java | 73 int sz = size(); in forEach() local 75 for (int i = 0; i < sz; i++) { in forEach() 91 int sz = size(); in contentEquals() local 93 if (sz != b.size()) return false; in contentEquals() 95 for (int i = 0; i < sz; i++) { in contentEquals() 114 int sz = size(); in withRegisterOffset() local 115 InsnList result = new InsnList(sz); in withRegisterOffset() 117 for (int i = 0; i < sz; i++) { in withRegisterOffset()
|
D | RegisterSpecList.java | 114 int sz = size(); in getWordCount() local 117 for (int i = 0; i < sz; i++) { in getWordCount() 149 int sz = size(); in specForRegister() local 150 for (int i = 0; i < sz; i++) { in specForRegister() 170 int sz = size(); in indexOfRegister() local 171 for (int i = 0; i < sz; i++) { in indexOfRegister() 203 int sz = size(); in getRegistersSize() local 206 for (int i = 0; i < sz; i++) { in getRegistersSize() 228 int sz = size(); in withFirst() local 229 RegisterSpecList result = new RegisterSpecList(sz + 1); in withFirst() [all …]
|
D | BasicBlockList.java | 108 int sz = size(); in getInstructionCount() local 111 for (int i = 0; i < sz; i++) { in getInstructionCount() 128 int sz = size(); in getEffectiveInstructionCount() local 131 for (int i = 0; i < sz; i++) { in getEffectiveInstructionCount() 174 int sz = size(); in forEachInsn() local 176 for (int i = 0; i < sz; i++) { in forEachInsn() 193 int sz = size(); in withRegisterOffset() local 194 BasicBlockList result = new BasicBlockList(sz); in withRegisterOffset() 196 for (int i = 0; i < sz; i++) { in withRegisterOffset() 388 int sz = sources.size(); in visit() local [all …]
|
/dalvik/dexgen/src/com/android/dexgen/dex/code/form/ |
D | Form35c.java | 107 int sz = regs.size(); in writeTo() local 108 int r0 = (sz > 0) ? regs.get(0).getReg() : 0; in writeTo() 109 int r1 = (sz > 1) ? regs.get(1).getReg() : 0; in writeTo() 110 int r2 = (sz > 2) ? regs.get(2).getReg() : 0; in writeTo() 111 int r3 = (sz > 3) ? regs.get(3).getReg() : 0; in writeTo() 112 int r4 = (sz > 4) ? regs.get(4).getReg() : 0; in writeTo() 116 makeByte(r4, sz)), // encode the fifth operand here in writeTo() 132 int sz = regs.size(); in wordCount() local 134 if (sz > MAX_NUM_OPS) { in wordCount() 141 for (int i = 0; i < sz; i++) { in wordCount() [all …]
|
D | Form45cc.java | 107 int sz = regs.size(); in writeTo() local 108 int r0 = (sz > 0) ? regs.get(0).getReg() : 0; in writeTo() 109 int r1 = (sz > 1) ? regs.get(1).getReg() : 0; in writeTo() 110 int r2 = (sz > 2) ? regs.get(2).getReg() : 0; in writeTo() 111 int r3 = (sz > 3) ? regs.get(3).getReg() : 0; in writeTo() 112 int r4 = (sz > 4) ? regs.get(4).getReg() : 0; in writeTo() 116 makeByte(r4, sz)), // encode the fifth operand here in writeTo() 132 int sz = regs.size(); in wordCount() local 134 if (sz > MAX_NUM_OPS) { in wordCount() 141 for (int i = 0; i < sz; i++) { in wordCount() [all …]
|
D | Form12x.java | 47 int sz = regs.size(); in insnArgString() local 55 return regs.get(sz - 2).regString() + ", " + in insnArgString() 56 regs.get(sz - 1).regString(); in insnArgString() 120 int sz = regs.size(); in writeTo() local 129 makeByte(regs.get(sz - 2).getReg(), in writeTo() 130 regs.get(sz - 1).getReg()))); in writeTo()
|
/dalvik/dexgen/src/com/android/dexgen/rop/ |
D | StdAttributeList.java | 43 int sz = size(); in byteLength() local 46 for (int i = 0; i < sz; i++) { in byteLength() 55 int sz = size(); in findFirst() local 57 for (int i = 0; i < sz; i++) { in findFirst() 69 int sz = size(); in findNext() local 73 for (at = 0; at < sz; at++) { in findNext() 85 for (at++; at < sz; at++) { in findNext()
|
D | ByteCatchList.java | 102 int sz = size(); in listFor() local 103 Item[] resultArr = new Item[sz]; in listFor() 106 for (int i = 0; i < sz; i++) { in listFor() 168 int sz = size(); in toTargetList() local 170 if (sz == 0) { in toTargetList() 185 IntList result = new IntList(sz + (hasDefault ? 1 : 0)); in toTargetList() 187 for (int i = 0; i < sz; i++) { in toTargetList() 205 int sz = size(); in toRopCatchList() local 206 if (sz == 0) { in toRopCatchList() 210 StdTypeList result = new StdTypeList(sz); in toRopCatchList() [all …]
|
/dalvik/dx/src/com/android/dx/cf/iface/ |
D | StdAttributeList.java | 45 int sz = size(); in byteLength() local 48 for (int i = 0; i < sz; i++) { in byteLength() 58 int sz = size(); in findFirst() local 60 for (int i = 0; i < sz; i++) { in findFirst() 73 int sz = size(); in findNext() local 77 for (at = 0; at < sz; at++) { in findNext() 89 for (at++; at < sz; at++) { in findNext()
|
/dalvik/dx/src/com/android/dx/cf/code/ |
D | ByteCatchList.java | 102 int sz = size(); in listFor() local 103 Item[] resultArr = new Item[sz]; in listFor() 106 for (int i = 0; i < sz; i++) { in listFor() 168 int sz = size(); in toTargetList() local 170 if (sz == 0) { in toTargetList() 185 IntList result = new IntList(sz + (hasDefault ? 1 : 0)); in toTargetList() 187 for (int i = 0; i < sz; i++) { in toTargetList() 205 int sz = size(); in toRopCatchList() local 206 if (sz == 0) { in toRopCatchList() 210 StdTypeList result = new StdTypeList(sz); in toRopCatchList() [all …]
|
/dalvik/dx/src/com/android/dx/dex/file/ |
D | ClassDefsSection.java | 91 int sz = classDefs.size(); in writeHeaderPart() local 92 int offset = (sz == 0) ? 0 : getFileOffset(); in writeHeaderPart() 95 out.annotate(4, "class_defs_size: " + Hex.u4(sz)); in writeHeaderPart() 99 out.writeInt(sz); in writeHeaderPart() 131 int sz = classDefs.size(); in orderItems() local 134 orderedDefs = new ArrayList<ClassDefItem>(sz); in orderItems() 143 idx = orderItems0(type, idx, sz - idx); in orderItems() 177 int sz = interfaces.size(); in orderItems0() local 178 for (int i = 0; i < sz; i++) { in orderItems0()
|
D | TypeListItem.java | 68 int sz = list.size(); in addContents() local 70 for (int i = 0; i < sz; i++) { in addContents() 94 int sz = list.size(); in writeTo0() local 98 out.annotate(HEADER_SIZE, " size: " + Hex.u4(sz)); in writeTo0() 99 for (int i = 0; i < sz; i++) { in writeTo0() 107 out.writeInt(sz); in writeTo0() 109 for (int i = 0; i < sz; i++) { in writeTo0()
|
/dalvik/dexgen/src/com/android/dexgen/dex/file/ |
D | ClassDefsSection.java | 92 int sz = classDefs.size(); in writeHeaderPart() local 93 int offset = (sz == 0) ? 0 : getFileOffset(); in writeHeaderPart() 96 out.annotate(4, "class_defs_size: " + Hex.u4(sz)); in writeHeaderPart() 100 out.writeInt(sz); in writeHeaderPart() 132 int sz = classDefs.size(); in orderItems() local 135 orderedDefs = new ArrayList<ClassDefItem>(sz); in orderItems() 144 idx = orderItems0(type, idx, sz - idx); in orderItems() 178 int sz = interfaces.size(); in orderItems0() local 179 for (int i = 0; i < sz; i++) { in orderItems0()
|
D | TypeListItem.java | 68 int sz = list.size(); in addContents() local 70 for (int i = 0; i < sz; i++) { in addContents() 94 int sz = list.size(); in writeTo0() local 98 out.annotate(HEADER_SIZE, " size: " + Hex.u4(sz)); in writeTo0() 99 for (int i = 0; i < sz; i++) { in writeTo0() 107 out.writeInt(sz); in writeTo0() 109 for (int i = 0; i < sz; i++) { in writeTo0()
|
/dalvik/dx/src/com/android/dx/util/ |
D | LabeledList.java | 47 int sz = old.size(); in LabeledList() local 49 for (int i = 0; i < sz; i++) { in LabeledList() 63 int sz = labelToIndex.size(); in getMaxLabel() local 67 for (i = sz - 1; (i >= 0) && (labelToIndex.get(i) < 0); i--) in getMaxLabel() 128 int sz = size(); in getLabelsInOrder() local 129 int[] result = new int[sz]; in getLabelsInOrder() 131 for (int i = 0; i < sz; i++) { in getLabelsInOrder()
|
/dalvik/dx/src/com/android/dx/ssa/ |
D | RegisterMapper.java | 49 int sz = sources.size(); in map() local 50 RegisterSpecList newSources = new RegisterSpecList(sz); in map() 52 for (int i = 0; i < sz; i++) { in map() 68 int sz = sources.getMaxSize(); in map() local 71 for (int i = 0; i < sz; i++) { in map()
|