/dalvik/libdex/ |
D | SysUtil.cpp | 41 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 …]
|
D | SysUtil.h | 45 size_t length; /* length of data */ member 70 int sysMapFileSegmentInShmem(int fd, off_t start, size_t length, 78 int sysCreatePrivateMap(size_t length, MemMapping* pMap); 86 int sysChangeMapAccess(void* addr, size_t length, int wantReadWrite,
|
/dalvik/dx/src/com/android/dx/cf/direct/ |
D | CodeObserver.java | 65 public void visitInvalid(int opcode, int offset, int length) { in visitInvalid() argument 66 observer.parsed(bytes, offset, length, header(offset)); in visitInvalid() 70 public void visitNoArgs(int opcode, int offset, int length, Type type) { in visitNoArgs() argument 71 observer.parsed(bytes, offset, length, header(offset)); in visitNoArgs() 75 public void visitLocal(int opcode, int offset, int length, in visitLocal() argument 77 String idxStr = (length <= 3) ? Hex.u1(idx) : Hex.u2(idx); in visitLocal() 78 boolean argComment = (length == 1); in visitLocal() 83 ((length <= 3) ? Hex.s1(value) : Hex.s2(value)); in visitLocal() 91 observer.parsed(bytes, offset, length, in visitLocal() 97 public void visitConstant(int opcode, int offset, int length, in visitConstant() argument [all …]
|
D | StdAttributeFactory.java | 80 int offset, int length, ParseObserver observer) { in parse0() argument 84 return deprecated(cf, offset, length, observer); in parse0() 87 return enclosingMethod(cf, offset, length, observer); in parse0() 90 return innerClasses(cf, offset, length, observer); in parse0() 93 return runtimeInvisibleAnnotations(cf, offset, length, in parse0() 97 return runtimeVisibleAnnotations(cf, offset, length, in parse0() 101 return synthetic(cf, offset, length, observer); in parse0() 104 return signature(cf, offset, length, observer); in parse0() 107 return sourceFile(cf, offset, length, observer); in parse0() 113 return constantValue(cf, offset, length, observer); in parse0() [all …]
|
D | AttributeFactory.java | 85 int length = bytes.getInt(offset + 2); in parse() local 93 "length: " + Hex.u4(length)); in parse() 96 return parse0(cf, context, name.getString(), offset + 6, length, in parse() 122 int offset, int length, in parse0() argument 126 Attribute result = new RawAttribute(name, bytes, offset, length, pool); in parse0() 129 observer.parsed(bytes, offset, length, "attribute data"); in parse0()
|
/dalvik/dx/src/com/android/dx/cf/code/ |
D | BasicBlocker.java | 122 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 …]
|
D | LocalVariableList.java | 145 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/dexgen/src/com/android/dexgen/util/ |
D | FileUtils.java | 66 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()
|
D | ByteArray.java | 61 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 …]
|
D | Hex.java | 249 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()
|
D | ByteArrayAnnotatedOutput.java | 154 } 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 …]
|
/dalvik/dx/tests/087-ssa-local-vars/ |
D | Blort.java | 17 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/ |
D | ByteArray.java | 61 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 …]
|
D | Hex.java | 249 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()
|
D | ByteArrayAnnotatedOutput.java | 166 } else if (end > data.length) { in writeByte() 182 } else if (end > data.length) { in writeShort() 199 } else if (end > data.length) { in writeInt() 218 } else if (end > data.length) { in writeLong() 266 } else if (end > data.length) { in write() 276 public void write(byte[] bytes, int offset, int length) { in write() argument 278 int end = writeAt + length; in write() 279 int bytesEnd = offset + length; in write() 282 if (((offset | length | end) < 0) || (bytesEnd > bytes.length)) { in write() 284 bytes.length + "; " + in write() [all …]
|
/dalvik/dx/junit-tests/com/android/dx/util/ |
D | BitIntSetTest.java | 102 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 …]
|
D | ListIntSetTest.java | 107 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/dx/rop/code/ |
D | RegisterSpecSet.java | 62 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/ |
D | RegisterSpecSet.java | 63 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/hit/src/com/android/hit/ |
D | HprofParser.java | 115 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/ |
D | CstUtf8.java | 47 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/ |
D | CstString.java | 47 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/tests/014-field-attrib-ConstantValue/ |
D | small-class.txt | 56 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
|
/dalvik/docs/ |
D | prettify.js | 99 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/src/com/android/dx/io/instructions/ |
D | FillArrayDataPayloadDecodedInstruction.java | 52 this(format, opcode, data, data.length, 1); in FillArrayDataPayloadDecodedInstruction() 60 this(format, opcode, data, data.length, 2); in FillArrayDataPayloadDecodedInstruction() 68 this(format, opcode, data, data.length, 4); in FillArrayDataPayloadDecodedInstruction() 76 this(format, opcode, data, data.length, 8); in FillArrayDataPayloadDecodedInstruction()
|