/dalvik/dexgen/src/com/android/dexgen/util/ |
D | IntList.java | 32 private int size; field in IntList 93 size = 0; in IntList() 102 for (int i = 0; i < size; i++) { in hashCode() 126 if (size != otherList.size) { in equals() 130 for (int i = 0; i < size; i++) { in equals() 142 StringBuffer sb = new StringBuffer(size * 5 + 10); in toString() 146 for (int i = 0; i < size; i++) { in toString() 161 public int size() { in size() method in IntList 162 return size; in size() 172 if (n >= size) { in get() [all …]
|
D | LabeledList.java | 33 public LabeledList(int size) { in LabeledList() argument 34 super(size); in LabeledList() 36 labelToIndex = new IntList(size); in LabeledList() 45 super(old.size()); in LabeledList() 48 int sz = old.size(); in LabeledList() 64 int sz = labelToIndex.size(); in getMaxLabel() 92 int origSz = labelToIndex.size(); in addLabelIndex() 110 if (label >= labelToIndex.size()) { in indexOfLabel() 131 int szItems = size(); in rebuildLabelToIndex()
|
D | ByteArray.java | 38 private final int size; field in ByteArray 67 this.size = end - start; in ByteArray() 84 public int size() { in size() method in ByteArray 85 return size; in size() 207 if ((out.length - offset) < size) { in getBytes() 212 System.arraycopy(bytes, start, out, offset, size); in getBytes() 222 if ((s < 0) || (e < s) || (e > size)) { in checkOffsets() 224 "; actual size " + size); in checkOffsets() 305 if (cursor >= size) { in read() 319 int maxLength = size - cursor; in read() [all …]
|
/dalvik/dx/src/com/android/dx/util/ |
D | IntList.java | 32 private int size; field in IntList 93 size = 0; in IntList() 102 for (int i = 0; i < size; i++) { in hashCode() 126 if (size != otherList.size) { in equals() 130 for (int i = 0; i < size; i++) { in equals() 142 StringBuffer sb = new StringBuffer(size * 5 + 10); in toString() 146 for (int i = 0; i < size; i++) { in toString() 161 public int size() { in size() method in IntList 162 return size; in size() 172 if (n >= size) { in get() [all …]
|
D | LabeledList.java | 32 public LabeledList(int size) { in LabeledList() argument 33 super(size); in LabeledList() 35 labelToIndex = new IntList(size); in LabeledList() 44 super(old.size()); in LabeledList() 47 int sz = old.size(); in LabeledList() 63 int sz = labelToIndex.size(); in getMaxLabel() 93 int origSz = labelToIndex.size(); in addLabelIndex() 111 if (label >= labelToIndex.size()) { in indexOfLabel() 128 int sz = size(); in getLabelsInOrder() 157 int szItems = size(); in rebuildLabelToIndex()
|
D | ByteArray.java | 38 private final int size; field in ByteArray 67 this.size = end - start; in ByteArray() 84 public int size() { in size() method in ByteArray 85 return size; in size() 207 if ((out.length - offset) < size) { in getBytes() 212 System.arraycopy(bytes, start, out, offset, size); in getBytes() 222 if ((s < 0) || (e < s) || (e > size)) { in checkOffsets() 224 "; actual size " + size); in checkOffsets() 305 if (cursor >= size) { in read() 319 int maxLength = size - cursor; in read() [all …]
|
/dalvik/dx/src/com/android/dx/cf/code/ |
D | SwitchList.java | 39 private int size; field in SwitchList 46 public SwitchList(int size) { in SwitchList() argument 48 this.values = new IntList(size); in SwitchList() 49 this.targets = new IntList(size + 1); in SwitchList() 50 this.size = size; in SwitchList() 66 public int size() { in size() method in SwitchList 67 return size; in size() 98 return targets.get(size); in getDefaultTarget() 134 if (targets.size() != size) { in setDefaultTarget() 166 int sz = size; in removeSuperfluousDefaults() [all …]
|
/dalvik/dx/src/com/android/dx/io/ |
D | EncodedValueReader.java | 55 int size = Leb128Utils.readUnsignedLeb128(in); in readArray() local 56 visitArray(size); in readArray() 58 for (int i = 0; i < size; i++) { in readArray() 65 int size = Leb128Utils.readUnsignedLeb128(in); in readAnnotation() local 66 visitAnnotation(typeIndex, size); in readAnnotation() 68 for (int i = 0; i < size; i++) { in readAnnotation() 78 int size = arg + 1; in readValue() local 88 visitPrimitive(argAndType, type, arg, size); in readValue() 91 visitString(type, readIndex(in, size)); in readValue() 94 visitType(type, readIndex(in, size)); in readValue() [all …]
|
/dalvik/dexgen/src/com/android/dexgen/rop/annotation/ |
D | AnnotationsList.java | 41 int size = list1.size(); in combine() local 43 if (size != list2.size()) { in combine() 47 AnnotationsList result = new AnnotationsList(size); in combine() 49 for (int i = 0; i < size; i++) { in combine() 64 public AnnotationsList(int size) { in AnnotationsList() argument 65 super(size); in AnnotationsList()
|
/dalvik/dx/src/com/android/dx/rop/annotation/ |
D | AnnotationsList.java | 41 int size = list1.size(); in combine() local 43 if (size != list2.size()) { in combine() 47 AnnotationsList result = new AnnotationsList(size); in combine() 49 for (int i = 0; i < size; i++) { in combine() 64 public AnnotationsList(int size) { in AnnotationsList() argument 65 super(size); in AnnotationsList()
|
/dalvik/vm/hprof/ |
D | HprofHeap.cpp | 69 size_t size; in signatureToBasicTypeAndSize() local 73 case 'L': ret = hprof_basic_object; size = 4; break; in signatureToBasicTypeAndSize() 74 case 'Z': ret = hprof_basic_boolean; size = 1; break; in signatureToBasicTypeAndSize() 75 case 'C': ret = hprof_basic_char; size = 2; break; in signatureToBasicTypeAndSize() 76 case 'F': ret = hprof_basic_float; size = 4; break; in signatureToBasicTypeAndSize() 77 case 'D': ret = hprof_basic_double; size = 8; break; in signatureToBasicTypeAndSize() 78 case 'B': ret = hprof_basic_byte; size = 1; break; in signatureToBasicTypeAndSize() 79 case 'S': ret = hprof_basic_short; size = 2; break; in signatureToBasicTypeAndSize() 81 case 'I': ret = hprof_basic_int; size = 4; break; in signatureToBasicTypeAndSize() 82 case 'J': ret = hprof_basic_long; size = 8; break; in signatureToBasicTypeAndSize() [all …]
|
/dalvik/dx/src/com/android/dx/dex/file/ |
D | ClassDataItem.java | 181 int sz = directMethods.size() + virtualMethods.size(); in getMethods() 201 int sz = staticFields.size(); in debugPrint() 206 sz = instanceFields.size(); in debugPrint() 211 sz = directMethods.size(); in debugPrint() 217 sz = virtualMethods.size(); in debugPrint() 264 if ((staticValuesConstant == null) && (staticFields.size() != 0)) { in getStaticValuesConstant() 287 int size = staticFields.size(); in makeStaticValuesConstant() local 288 while (size > 0) { in makeStaticValuesConstant() 289 EncodedField field = staticFields.get(size - 1); in makeStaticValuesConstant() 299 size--; in makeStaticValuesConstant() [all …]
|
D | Statistics.java | 73 if (dataMap.size() == 0) { in writeAnnotation() 134 int size = item.writeSize(); in Data() local 138 this.totalSize = size; in Data() 139 this.largestSize = size; in Data() 140 this.smallestSize = size; in Data() 149 int size = item.writeSize(); in add() local 152 totalSize += size; in add() 154 if (size > largestSize) { in add() 155 largestSize = size; in add() 158 if (size < smallestSize) { in add() [all …]
|
/dalvik/dexgen/src/com/android/dexgen/dex/file/ |
D | ClassDataItem.java | 184 int sz = directMethods.size() + virtualMethods.size(); in getMethods() 204 int sz = staticFields.size(); in debugPrint() 209 sz = instanceFields.size(); in debugPrint() 214 sz = directMethods.size(); in debugPrint() 220 sz = virtualMethods.size(); in debugPrint() 267 if ((staticValuesConstant == null) && (staticFields.size() != 0)) { in getStaticValuesConstant() 290 int size = staticFields.size(); in makeStaticValuesConstant() local 291 while (size > 0) { in makeStaticValuesConstant() 292 EncodedField field = staticFields.get(size - 1); in makeStaticValuesConstant() 302 size--; in makeStaticValuesConstant() [all …]
|
D | Statistics.java | 73 if (dataMap.size() == 0) { in writeAnnotation() 134 int size = item.writeSize(); in Data() local 138 this.totalSize = size; in Data() 139 this.largestSize = size; in Data() 140 this.smallestSize = size; in Data() 149 int size = item.writeSize(); in add() local 152 totalSize += size; in add() 154 if (size > largestSize) { in add() 155 largestSize = size; in add() 158 if (size < smallestSize) { in add() [all …]
|
/dalvik/tests/080-oom-throw/src/ |
D | Main.java | 19 static int blowup(char[][] holder, int size) { in blowup() argument 22 for ( ; i < size; i++) in blowup() 28 return size; in blowup() 54 int size = 1 * 1024 * 1024; in triggerArrayOOM() local 55 char[][] holder = new char[size][]; in triggerArrayOOM() 57 int count = ArrayMemEater.blowup(holder, size); in triggerArrayOOM() 59 if (count < size) { in triggerArrayOOM()
|
/dalvik/dx/src/com/android/dx/dex/code/ |
D | CatchHandlerList.java | 36 public CatchHandlerList(int size) { in CatchHandlerList() argument 37 super(size); in CatchHandlerList() 68 int size = size(); in toHuman() local 74 for (int i = 0; i < size; i++) { in toHuman() 83 if ((i == (size - 1)) && catchesAll()) { in toHuman() 104 int size = size(); in catchesAll() local 106 if (size == 0) { in catchesAll() 110 Entry last = get(size - 1); in catchesAll() 142 int thisSize = size(); in compareTo() 143 int otherSize = other.size(); in compareTo()
|
D | OutputFinisher.java | 117 int size = specs.size(); in hasLocalInfo() local 118 for (int i = 0; i < size; i++) { in hasLocalInfo() 176 int size = specs.size(); in addConstants() local 177 for (int i = 0; i < size; i++) { in addConstants() 271 int size = insns.size(); in reverseBranch() local 272 int index = size - which - 1; in reverseBranch() 375 int size = insns.size(); in makeOpcodesArray() local 376 Dop[] result = new Dop[size]; in makeOpcodesArray() 378 for (int i = 0; i < size; i++) { in makeOpcodesArray() 409 int size = insns.size(); in reserveRegisters() local [all …]
|
/dalvik/dexgen/src/com/android/dexgen/dex/code/ |
D | CatchHandlerList.java | 36 public CatchHandlerList(int size) { in CatchHandlerList() argument 37 super(size); in CatchHandlerList() 68 int size = size(); in toHuman() local 74 for (int i = 0; i < size; i++) { in toHuman() 83 if ((i == (size - 1)) && catchesAll()) { in toHuman() 104 int size = size(); in catchesAll() local 106 if (size == 0) { in catchesAll() 110 Entry last = get(size - 1); in catchesAll() 142 int thisSize = size(); in compareTo() 143 int otherSize = other.size(); in compareTo()
|
D | OutputFinisher.java | 108 int size = specs.size(); in hasLocalInfo() local 109 for (int i = 0; i < size; i++) { in hasLocalInfo() 167 int size = specs.size(); in addConstants() local 168 for (int i = 0; i < size; i++) { in addConstants() 261 int size = insns.size(); in reverseBranch() local 262 int index = size - which - 1; in reverseBranch() 365 int size = insns.size(); in makeFormatsArray() local 366 InsnFormat[] result = new InsnFormat[size]; in makeFormatsArray() 368 for (int i = 0; i < size; i++) { in makeFormatsArray() 398 int size = insns.size(); in reserveRegisters() local [all …]
|
/dalvik/dexgen/src/com/android/dexgen/rop/code/ |
D | InsnList.java | 31 public InsnList(int size) { in InsnList() argument 32 super(size); in InsnList() 64 return get(size() - 1); in getLast() 73 int sz = size(); in forEach() 91 int sz = size(); in contentEquals() 93 if (sz != b.size()) return false; in contentEquals() 114 int sz = size(); in withRegisterOffset()
|
/dalvik/dx/src/com/android/dx/rop/code/ |
D | InsnList.java | 31 public InsnList(int size) { in InsnList() argument 32 super(size); in InsnList() 64 return get(size() - 1); in getLast() 73 int sz = size(); in forEach() 91 int sz = size(); in contentEquals() 93 if (sz != b.size()) return false; in contentEquals() 114 int sz = size(); in withRegisterOffset()
|
/dalvik/dx/src/com/android/dx/dex/ |
D | TableOfContents.java | 101 stringIds.size = headerIn.readInt(); in readHeader() 103 typeIds.size = headerIn.readInt(); in readHeader() 105 protoIds.size = headerIn.readInt(); in readHeader() 107 fieldIds.size = headerIn.readInt(); in readHeader() 109 methodIds.size = headerIn.readInt(); in readHeader() 111 classDefs.size = headerIn.readInt(); in readHeader() 124 int size = in.readInt(); in readMap() local 127 if ((section.size != 0 && section.size != size) in readMap() 132 section.size = size; in readMap() 178 out.writeInt(stringIds.size); in writeHeader() [all …]
|
/dalvik/dexgen/src/com/android/dexgen/rop/type/ |
D | StdTypeList.java | 234 int size = list.size(); in toHuman() local 236 if (size == 0) { in toHuman() 242 for (int i = 0; i < size; i++) { in toHuman() 261 int size = list.size(); in hashContents() local 264 for (int i = 0; i < size; i++) { in hashContents() 281 int size = list1.size(); in equalContents() local 283 if (list2.size() != size) { in equalContents() 287 for (int i = 0; i < size; i++) { in equalContents() 306 int size1 = list1.size(); in compareContents() 307 int size2 = list2.size(); in compareContents() [all …]
|
/dalvik/dx/src/com/android/dx/rop/type/ |
D | StdTypeList.java | 234 int size = list.size(); in toHuman() local 236 if (size == 0) { in toHuman() 242 for (int i = 0; i < size; i++) { in toHuman() 261 int size = list.size(); in hashContents() local 264 for (int i = 0; i < size; i++) { in hashContents() 281 int size = list1.size(); in equalContents() local 283 if (list2.size() != size) { in equalContents() 287 for (int i = 0; i < size; i++) { in equalContents() 306 int size1 = list1.size(); in compareContents() 307 int size2 = list2.size(); in compareContents() [all …]
|