Home
last modified time | relevance | path

Searched refs:length (Results 1 – 25 of 196) sorted by relevance

12345678

/dalvik/dx/src/com/android/dx/cf/direct/
DStdAttributeFactory.java85 int offset, int length, ParseObserver observer) { in parse0() argument
89 return bootstrapMethods(cf, offset, length, observer); in parse0()
92 return deprecated(cf, offset, length, observer); in parse0()
95 return enclosingMethod(cf, offset, length, observer); in parse0()
98 return innerClasses(cf, offset, length, observer); in parse0()
101 return runtimeInvisibleAnnotations(cf, offset, length, in parse0()
105 return runtimeVisibleAnnotations(cf, offset, length, in parse0()
109 return synthetic(cf, offset, length, observer); in parse0()
112 return signature(cf, offset, length, observer); in parse0()
115 return sourceDebugExtension(cf, offset, length, observer); in parse0()
[all …]
DCodeObserver.java66 public void visitInvalid(int opcode, int offset, int length) { in visitInvalid() argument
67 observer.parsed(bytes, offset, length, header(offset)); in visitInvalid()
72 public void visitNoArgs(int opcode, int offset, int length, Type type) { in visitNoArgs() argument
73 observer.parsed(bytes, offset, length, header(offset)); in visitNoArgs()
78 public void visitLocal(int opcode, int offset, int length, in visitLocal() argument
80 String idxStr = (length <= 3) ? Hex.u1(idx) : Hex.u2(idx); in visitLocal()
81 boolean argComment = (length == 1); in visitLocal()
86 ((length <= 3) ? Hex.s1(value) : Hex.s2(value)); in visitLocal()
94 observer.parsed(bytes, offset, length, in visitLocal()
101 public void visitConstant(int opcode, int offset, int length, in visitConstant() argument
[all …]
/dalvik/dx/src/com/android/dx/cf/code/
DBasicBlocker.java126 public void visitInvalid(int opcode, int offset, int length) { in visitInvalid() argument
127 visitCommon(offset, length, true); in visitInvalid()
132 public void visitNoArgs(int opcode, int offset, int length, Type type) { in visitNoArgs() argument
136 visitCommon(offset, length, false); in visitNoArgs()
141 visitCommon(offset, length, false); in visitNoArgs()
142 visitThrowing(offset, length, false); in visitNoArgs()
168 visitCommon(offset, length, true); in visitNoArgs()
169 visitThrowing(offset, length, true); in visitNoArgs()
178 visitCommon(offset, length, true); in visitNoArgs()
180 visitThrowing(offset, length, true); in visitNoArgs()
[all …]
DLocalVariableList.java145 public void set(int n, int startPc, int length, CstString name, in set() argument
147 set0(n, new Item(startPc, length, name, descriptor, signature, index)); in set()
207 private final int length; field in LocalVariableList.Item
235 public Item(int startPc, int length, CstString name, in Item() argument
241 if (length < 0) { in Item()
259 this.length = length; in Item()
281 return length; in getLength()
339 return new Item(startPc, length, name, descriptor, newSignature, in withSignature()
355 (pc < (startPc + length)); in matchesPcAndIndex()
368 && (length == other.length) in matchesAllButType()
/dalvik/dx/junit-tests/com/android/dx/util/
DByteArrayAnnotatedOutputTest.java27 int length = 100; in testArrayZeroedOut() local
28 byte[] data = new byte[length]; in testArrayZeroedOut()
33 output.writeZeroes(length); in testArrayZeroedOut()
35 for (int i = 0; i < length; i++) { in testArrayZeroedOut()
42 int length = 16; in testArrayAligned() local
43 byte[] data = new byte[length]; in testArrayAligned()
50 output.alignTo(length); in testArrayAligned()
52 for (int i = 0; i < length; i++) { in testArrayAligned()
DBitIntSetTest.java102 for (int i = 0; i < values.length; i++) { in test_expand()
108 for (int i = 0; i < values.length; i++) { in test_expand()
119 for (int i = 0; i < valuesA.length; i++) { in test_merge()
126 for (int i = 0; i < valuesB.length; i++) { in test_merge()
132 for (int i = 0; i < valuesA.length; i++) { in test_merge()
136 for (int i = 0; i < valuesB.length; i++) { in test_merge()
145 for (int i = 0; i < valuesA.length; i++) { in test_mergeWithListIntSet()
152 for (int i = 0; i < valuesB.length; i++) { in test_mergeWithListIntSet()
158 for (int i = 0; i < valuesA.length; i++) { in test_mergeWithListIntSet()
162 for (int i = 0; i < valuesB.length; i++) { in test_mergeWithListIntSet()
[all …]
DListIntSetTest.java107 for (int i = 0; i < valuesA.length; i++) { in test_mergeA()
114 for (int i = 0; i < valuesB.length; i++) { in test_mergeA()
120 for (int i = 0; i < valuesA.length; i++) { in test_mergeA()
124 for (int i = 0; i < valuesB.length; i++) { in test_mergeA()
134 for (int i = 0; i < valuesA.length; i++) { in test_mergeB()
141 for (int i = 0; i < valuesB.length; i++) { in test_mergeB()
147 for (int i = 0; i < valuesA.length; i++) { in test_mergeB()
151 for (int i = 0; i < valuesB.length; i++) { in test_mergeB()
161 for (int i = 0; i < valuesA.length; i++) { in test_mergeWithBitIntSet()
168 for (int i = 0; i < valuesB.length; i++) { in test_mergeWithBitIntSet()
[all …]
/dalvik/dx/src/com/android/dex/
DClassData.java50 Field[] result = new Field[staticFields.length + instanceFields.length]; in allFields()
51 System.arraycopy(staticFields, 0, result, 0, staticFields.length); in allFields()
52 System.arraycopy(instanceFields, 0, result, staticFields.length, instanceFields.length); in allFields()
57 Method[] result = new Method[directMethods.length + virtualMethods.length]; in allMethods()
58 System.arraycopy(directMethods, 0, result, 0, directMethods.length); in allMethods()
59 System.arraycopy(virtualMethods, 0, result, directMethods.length, virtualMethods.length); in allMethods()
DEncodedValue.java46 int size = Math.min(data.length, other.data.length); in compareTo()
52 return data.length - other.data.length; in compareTo()
57 return Integer.toHexString(data[0] & 0xff) + "...(" + data.length + ")"; in toString()
/dalvik/dx/tests/087-ssa-local-vars/
DBlort.java17 for (int i = 0; i < stringArray.length; i++) in arrayCopyTest()
21 System.arraycopy(stringArray, 0, objectArray, 0, stringArray.length); in arrayCopyTest()
23 System.arraycopy(objectArray, 0, stringArray, 0, stringArray.length); in arrayCopyTest()
27 System.arraycopy(objectArray, 0, stringArray, 0,stringArray.length); in arrayCopyTest()
63 current.length(); in parseHeaderGroup()
66 if (l == -1 || current.length() < 1) { in parseHeaderGroup()
72 while (i < current.length()) { in parseHeaderGroup()
80 && previous.length() + 1 + current.length() - i > maxLineLen) { in parseHeaderGroup()
84 previous.append(current, i, current.length() - i); in parseHeaderGroup()
/dalvik/dexgen/src/com/android/dexgen/util/
DByteArray.java61 if (end > bytes.length) { in ByteArray()
76 this(bytes, 0, bytes.length); in ByteArray()
207 if ((out.length - offset) < size) { in getBytes()
314 public int read(byte[] arr, int offset, int length) { in read() argument
315 if ((offset + length) > arr.length) { in read()
316 length = arr.length - offset; in read()
320 if (length > maxLength) { in read()
321 length = maxLength; in read()
324 System.arraycopy(bytes, cursor + start, arr, offset, length); in read()
325 cursor += length; in read()
[all …]
DFileUtils.java66 long longLength = file.length(); in readFile()
67 int length = (int) longLength; in readFile() local
68 if (length != longLength) { in readFile()
72 byte[] result = new byte[length]; in readFile()
79 while (length > 0) { in readFile()
80 int amt = in.read(result, at, length); in readFile()
85 length -= amt; in readFile()
DByteArrayAnnotatedOutput.java154 } else if (end > data.length) { in writeByte()
170 } else if (end > data.length) { in writeShort()
187 } else if (end > data.length) { in writeInt()
206 } else if (end > data.length) { in writeLong()
270 } else if (end > data.length) { in write()
280 public void write(byte[] bytes, int offset, int length) { in write() argument
282 int end = writeAt + length; in write()
283 int bytesEnd = offset + length; in write()
286 if (((offset | length | end) < 0) || (bytesEnd > bytes.length)) { in write()
288 bytes.length + "; " + in write()
[all …]
DHex.java249 public static String dump(byte[] arr, int offset, int length, in dump() argument
251 int end = offset + length; in dump()
254 if (((offset | length | end) < 0) || (end > arr.length)) { in dump()
256 arr.length + "; " + in dump()
264 if (length == 0) { in dump()
268 StringBuffer sb = new StringBuffer(length * 4 + 6); in dump()
272 while (length > 0) { in dump()
294 length--; in dump()
/dalvik/dx/src/com/android/dx/util/
DByteArray.java62 if (end > bytes.length) { in ByteArray()
77 this(bytes, 0, bytes.length); in ByteArray()
204 if ((out.length - offset) < size) { in getBytes()
313 public int read(byte[] arr, int offset, int length) { in read() argument
314 if ((offset + length) > arr.length) { in read()
315 length = arr.length - offset; in read()
319 if (length > maxLength) { in read()
320 length = maxLength; in read()
323 System.arraycopy(bytes, cursor + start, arr, offset, length); in read()
324 cursor += length; in read()
[all …]
DHex.java249 public static String dump(byte[] arr, int offset, int length, in dump() argument
251 int end = offset + length; in dump()
254 if (((offset | length | end) < 0) || (end > arr.length)) { in dump()
256 arr.length + "; " + in dump()
264 if (length == 0) { in dump()
268 StringBuilder sb = new StringBuilder(length * 4 + 6); in dump()
272 while (length > 0) { in dump()
294 length--; in dump()
DByteArrayAnnotatedOutput.java170 } else if (end > data.length) { in writeByte()
187 } else if (end > data.length) { in writeShort()
205 } else if (end > data.length) { in writeInt()
225 } else if (end > data.length) { in writeLong()
276 } else if (end > data.length) { in write()
287 public void write(byte[] bytes, int offset, int length) { in write() argument
289 int end = writeAt + length; in write()
290 int bytesEnd = offset + length; in write()
293 if (((offset | length | end) < 0) || (bytesEnd > bytes.length)) { in write()
295 bytes.length + "; " + in write()
[all …]
/dalvik/dx/src/com/android/dex/util/
DFileUtils.java62 long longLength = file.length(); in readFile()
63 int length = (int) longLength; in readFile() local
64 if (length != longLength) { in readFile()
68 byte[] result = new byte[length]; in readFile()
73 while (length > 0) { in readFile()
74 int amt = in.read(result, at, length); in readFile()
79 length -= amt; in readFile()
/dalvik/dx/src/com/android/dx/rop/code/
DRegisterSpecSet.java62 int len = specs.length; in equals()
64 if ((len != otherSpecs.length) || (size() != otherSet.size())) { in equals()
87 int len = specs.length; in hashCode()
102 int len = specs.length; in toString()
132 return specs.length; in getMaxSize()
144 int len = specs.length; in size()
198 int length = specs.length; in findMatchingLocal() local
200 for (int reg = 0; reg < length; reg++) { in findMatchingLocal()
223 int length = specs.length; in localItemToSpec() local
225 for (int reg = 0; reg < length; reg++) { in localItemToSpec()
[all …]
/dalvik/dexgen/src/com/android/dexgen/rop/code/
DRegisterSpecSet.java63 int len = specs.length; in equals()
65 if ((len != otherSpecs.length) || (size() != otherSet.size())) { in equals()
88 int len = specs.length; in hashCode()
103 int len = specs.length; in toString()
133 return specs.length; in getMaxSize()
145 int len = specs.length; in size()
199 int length = specs.length; in findMatchingLocal() local
201 for (int reg = 0; reg < length; reg++) { in findMatchingLocal()
224 int length = specs.length; in localItemToSpec() local
226 for (int reg = 0; reg < length; reg++) { in localItemToSpec()
[all …]
/dalvik/dx/src/com/android/dx/rop/cst/
DCstString.java47 int len = string.length(); in stringToUtf8Bytes()
80 int length = bytes.size(); in utf8BytesToString() local
81 char[] chars = new char[length]; // This is sized to avoid a realloc. in utf8BytesToString()
84 for (int at = 0; length > 0; /*at*/) { in utf8BytesToString()
91 length--; in utf8BytesToString()
102 length -= 2; in utf8BytesToString()
103 if (length < 0) { in utf8BytesToString()
124 length -= 3; in utf8BytesToString()
125 if (length < 0) { in utf8BytesToString()
246 int len = string.length(); in toHuman()
[all …]
/dalvik/dexgen/src/com/android/dexgen/rop/cst/
DCstUtf8.java47 int len = string.length(); in stringToUtf8Bytes()
80 int length = bytes.size(); in utf8BytesToString() local
81 char[] chars = new char[length]; // This is sized to avoid a realloc. in utf8BytesToString()
84 for (int at = 0; length > 0; /*at*/) { in utf8BytesToString()
91 length--; in utf8BytesToString()
102 length -= 2; in utf8BytesToString()
103 if (length < 0) { in utf8BytesToString()
124 length -= 3; in utf8BytesToString()
125 if (length < 0) { in utf8BytesToString()
245 int len = string.length(); in toHuman()
[all …]
/dalvik/dx/src/com/android/dx/io/instructions/
DInvokePolymorphicDecodedInstruction.java44 return registers.length; in getRegisterCount()
62 return registers.length > 0 ? registers[0] : 0; in getC()
67 return registers.length > 1 ? registers[1] : 0; in getD()
72 return registers.length > 2 ? registers[2] : 0; in getE()
76 return registers.length > 3 ? registers[3] : 0; in getF()
80 return registers.length > 4 ? registers[4] : 0; in getG()
/dalvik/docs/
Dprettify.js99 for (var i = words.length; --i >= 0;) {
231 for (var i = 0; i < preceders.length; ++i) {
321 for (var i = 0; i < node.attributes.length; ++i) {
389 for (var i = 0, n = plainText.length; i < n; ++i) {
402 for (; nSpaces >= 0; nSpaces -= SPACES.length) {
450 for (var i = 0, n = matches.length; i < n; ++i) {
452 if (match.length > 1 && match.charAt(0) === '<') {
456 sourceBuf.push(match.substring(9, match.length - 3));
457 sourceBufLen += match.length - 12;
495 sourceBufLen += literalText.length;
[all …]
/dalvik/dx/tests/014-field-attrib-ConstantValue/
Dsmall-class.txt56 00000002 # length
66 00000002 # length
76 00000002 # length
86 00000002 # length
96 00000002 # length
106 00000002 # length
116 00000002 # length
126 00000002 # length
136 00000002 # length

12345678