Home
last modified time | relevance | path

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

12345678910>>...14

/dalvik/libdex/
DSysUtil.cpp41 static void* sysCreateAnonShmem(size_t length) in sysCreateAnonShmem() argument
46 ptr = mmap(NULL, length, PROT_READ | PROT_WRITE, in sysCreateAnonShmem()
49 ALOGW("mmap(%d, RW, SHARED|ANON) failed: %s", (int) length, in sysCreateAnonShmem()
64 int sysCreatePrivateMap(size_t length, MemMapping* pMap) in sysCreatePrivateMap() argument
68 memPtr = sysCreateAnonShmem(length); in sysCreatePrivateMap()
73 pMap->length = pMap->baseLength = length; in sysCreatePrivateMap()
83 size_t length; in getFileStartAndLength() local
97 length = end - start; in getFileStartAndLength()
98 if (length == 0) { in getFileStartAndLength()
104 *length_ = length; in getFileStartAndLength()
[all …]
/dalvik/dx/src/com/android/dx/cf/direct/
DCodeObserver.java68 public void visitInvalid(int opcode, int offset, int length) { in visitInvalid() argument
69 observer.parsed(bytes, offset, length, header(offset)); in visitInvalid()
73 public void visitNoArgs(int opcode, int offset, int length, Type type) { in visitNoArgs() argument
74 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()
100 public void visitConstant(int opcode, int offset, int length, in visitConstant() argument
[all …]
DStdAttributeFactory.java81 int offset, int length, ParseObserver observer) { in parse0() argument
85 return deprecated(cf, offset, length, observer); in parse0()
88 return enclosingMethod(cf, offset, length, observer); in parse0()
91 return innerClasses(cf, offset, length, observer); in parse0()
94 return runtimeInvisibleAnnotations(cf, offset, length, in parse0()
98 return runtimeVisibleAnnotations(cf, offset, length, in parse0()
102 return synthetic(cf, offset, length, observer); in parse0()
105 return signature(cf, offset, length, observer); in parse0()
108 return sourceFile(cf, offset, length, observer); in parse0()
114 return constantValue(cf, offset, length, observer); in parse0()
[all …]
/dalvik/dx/src/com/android/dx/cf/code/
DBasicBlocker.java122 public void visitInvalid(int opcode, int offset, int length) { in visitInvalid() argument
123 visitCommon(offset, length, true); in visitInvalid()
127 public void visitNoArgs(int opcode, int offset, int length, Type type) { in visitNoArgs() argument
131 visitCommon(offset, length, false); in visitNoArgs()
136 visitCommon(offset, length, false); in visitNoArgs()
137 visitThrowing(offset, length, false); in visitNoArgs()
163 visitCommon(offset, length, true); in visitNoArgs()
164 visitThrowing(offset, length, true); in visitNoArgs()
173 visitCommon(offset, length, true); in visitNoArgs()
175 visitThrowing(offset, length, true); in visitNoArgs()
[all …]
/dalvik/dx/src/com/android/dx/io/
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.java45 int size = Math.min(data.length, other.data.length); in compareTo()
51 return data.length - other.data.length; in compareTo()
55 return Integer.toHexString(data[0] & 0xff) + "...(" + data.length + ")"; in toString()
/dalvik/dexgen/src/com/android/dexgen/util/
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()
77 while (length > 0) { in readFile()
78 int amt = in.read(result, at, length); in readFile()
83 length -= amt; in readFile()
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 …]
/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/dx/src/com/android/dx/util/
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()
77 while (length > 0) { in readFile()
78 int amt = in.read(result, at, length); in readFile()
83 length -= amt; in readFile()
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 …]
/dalvik/tests/096-array-copy-concurrent-gc/src/
DMain.java54 for (int i = 0; i < array.length; i+=2) { in stressArray()
62 for (int j = 0; j < array.length; j++) { in stressArray()
63 Object obj = array[array.length - 1]; in stressArray()
64 System.arraycopy(array, 0, array, 1, array.length - 1); in stressArray()
72 for (int j = 0; j < array.length; j++) { in stressArray()
74 System.arraycopy(array, 1, array, 0, array.length - 1); in stressArray()
75 array[array.length - 1] = obj; in stressArray()
/dalvik/vm/native/
Djava_lang_System.cpp194 int length = args[4]; in Dalvik_java_lang_System_arraycopy() local
217 if (srcPos < 0 || dstPos < 0 || length < 0 || in Dalvik_java_lang_System_arraycopy()
218 srcPos > (int) srcArray->length - length || in Dalvik_java_lang_System_arraycopy()
219 dstPos > (int) dstArray->length - length) in Dalvik_java_lang_System_arraycopy()
223 srcArray->length, srcPos, dstArray->length, dstPos, length); in Dalvik_java_lang_System_arraycopy()
246 srcArray->contents, srcPos, length); in Dalvik_java_lang_System_arraycopy()
254 length); in Dalvik_java_lang_System_arraycopy()
261 length * 2); in Dalvik_java_lang_System_arraycopy()
268 length * 4); in Dalvik_java_lang_System_arraycopy()
278 length * 8); in Dalvik_java_lang_System_arraycopy()
[all …]
Dorg_apache_harmony_dalvik_ddmc_DdmServer.cpp36 int length = args[3]; in Dalvik_org_apache_harmony_dalvik_ddmc_DdmServer_nativeSendChunk() local
38 assert(offset+length <= (int)data->length); in Dalvik_org_apache_harmony_dalvik_ddmc_DdmServer_nativeSendChunk()
40 dvmDbgDdmSendChunk(type, length, (const u1*)data->contents + offset); in Dalvik_org_apache_harmony_dalvik_ddmc_DdmServer_nativeSendChunk()
/dalvik/tests/011-array-copy/src/
DMain.java32 for (int i = 0; i < stringArray.length; i++) in testObjectCopy()
36 System.arraycopy(stringArray, 0, objectArray, 0, stringArray.length); in testObjectCopy()
38 System.arraycopy(objectArray, 0, stringArray, 0, stringArray.length); in testObjectCopy()
42 System.arraycopy(objectArray, 0, stringArray, 0,stringArray.length); in testObjectCopy()
76 static void makeCopies(int srcPos, int dstPos, int length) { in makeCopies() argument
87 System.arraycopy(byteArray, srcPos, byteArray, dstPos, length); in makeCopies()
88 System.arraycopy(shortArray, srcPos, shortArray, dstPos, length); in makeCopies()
89 System.arraycopy(intArray, srcPos, intArray, dstPos, length); in makeCopies()
90 System.arraycopy(longArray, srcPos, longArray, dstPos, length); in makeCopies()
108 System.out.println("copy: " + srcPos + "," + dstPos + "," + length + in makeCopies()
/dalvik/dx/junit-tests/com/android/dx/util/
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/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/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/vm/mterp/c/
DOP_NEW_ARRAY.cpp5 s4 length; in HANDLE_OPCODE() local
14 length = (s4) GET_REGISTER(vsrc1); in HANDLE_OPCODE()
15 if (length < 0) { in HANDLE_OPCODE()
16 dvmThrowNegativeArraySizeException(length); in HANDLE_OPCODE()
29 newArray = dvmAllocArrayByClass(arrayClass, length, ALLOC_DONT_TRACK); in HANDLE_OPCODE()
/dalvik/hit/src/com/android/hit/
DHprofParser.java115 int length = in.readInt(); in parse() local
119 loadString(length - 4); in parse()
135 loadHeapDump(length); in parse()
140 loadHeapDump(length); in parse()
145 skipFully(length); in parse()
182 private String readUTF8(int length) throws IOException { in readUTF8() argument
183 byte[] b = new byte[length]; in readUTF8()
190 private void loadString(int length) throws IOException { in loadString() argument
192 String string = readUTF8(length); in loadString()
237 private void loadHeapDump(int length) throws IOException { in loadHeapDump() argument
[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/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()
245 int len = string.length(); in toHuman()
[all …]
/dalvik/tests/021-string2/src/junit/framework/
DComparisonFailure.java34 int end= Math.min(fExpected.length(), fActual.length()); in getMessage()
41 int j= fExpected.length()-1; in getMessage()
42 int k= fActual.length()-1; in getMessage()
61 if (j < fExpected.length()-1) in getMessage()
63 if (k < fActual.length()-1) in getMessage()
/dalvik/tests/082-inline-execute/src/junit/framework/
DComparisonFailure.java34 int end= Math.min(fExpected.length(), fActual.length()); in getMessage()
41 int j= fExpected.length()-1; in getMessage()
42 int k= fActual.length()-1; in getMessage()
61 if (j < fExpected.length()-1) in getMessage()
63 if (k < fActual.length()-1) in getMessage()

12345678910>>...14