/dalvik/libdex/ |
H A D | SysUtil.h | 45 size_t length; /* length of data */ member in struct:MemMapping 48 size_t baseLength; /* length of mapping */ 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,
|
H A D | DexOptData.cpp | 49 bool dexParseOptData(const u1* data, size_t length, DexFile* pDexFile) argument 52 const void* pOptEnd = data + length; 68 /* Make sure that the opt data length is a whole number of words. */
|
H A D | SysUtil.cpp | 37 * Create an anonymous shared memory segment large enough to hold "length" 41 static void* sysCreateAnonShmem(size_t length) argument 46 ptr = mmap(NULL, length, PROT_READ | PROT_WRITE, 49 ALOGW("mmap(%d, RW, SHARED|ANON) failed: %s", (int) length, 64 int sysCreatePrivateMap(size_t length, MemMapping* pMap) argument 68 memPtr = sysCreateAnonShmem(length); 73 pMap->length = pMap->baseLength = length; 78 * Determine the current offset and remaining length of the open file. 83 size_t length; local 117 size_t length; local 155 size_t length; local 194 sysMapFileSegmentInShmem(int fd, off_t start, size_t length, MemMapping* pMap) argument 240 sysChangeMapAccess(void* addr, size_t length, int wantReadWrite, MemMapping* pMap) argument [all...] |
H A D | DexFile.cpp | 123 static void dexComputeSHA1Digest(const unsigned char* data, size_t length, argument 128 SHA1Update(&context, data, length); 289 DexFile* dexFileParse(const u1* data, size_t length, int flags) argument 296 if (length < sizeof(DexHeader)) { 322 if (!dexParseOptData(data, length, pDexFile)) 327 length -= pDexFile->pOptHeader->dexOffset; 328 if (pDexFile->pOptHeader->dexLength > length) { 330 pDexFile->pOptHeader->dexLength, (int) length); 333 length = pDexFile->pOptHeader->dexLength; 384 dexComputeSHA1Digest(data + nonSum, length [all...] |
/dalvik/dx/src/com/android/dx/cf/attrib/ |
H A D | RawAttribute.java | 59 * @param length length of the attribute data, in bytes 63 int length, ConstantPool pool) { 64 this(name, data.slice(offset, offset + length), pool); 62 RawAttribute(String name, ByteArray data, int offset, int length, ConstantPool pool) argument
|
/dalvik/dx/src/com/android/dx/cf/direct/ |
H A D | AttributeFactory.java | 85 int length = bytes.getInt(offset + 2); 93 "length: " + Hex.u4(length)); 96 return parse0(cf, context, name.getString(), offset + 6, length, 117 * @param length the length of the attribute data 122 int offset, int length, 126 Attribute result = new RawAttribute(name, bytes, offset, length, pool); 129 observer.parsed(bytes, offset, length, "attribute data"); 121 parse0(DirectClassFile cf, int context, String name, int offset, int length, ParseObserver observer) argument
|
H A D | AnnotationParser.java | 77 * @param length {@code >= 0;} number of bytes left in the attribute data 80 public AnnotationParser(DirectClassFile cf, int offset, int length, argument 89 this.bytes = cf.getBytes().slice(offset, offset + length); 453 * @param length {@code >= 0;} number of bytes parsed 456 private void parsed(int length, String message) { argument 457 observer.parsed(bytes, parseCursor, length, message); 458 parseCursor += length;
|
H A D | CodeObserver.java | 65 public void visitInvalid(int opcode, int offset, int length) { argument 66 observer.parsed(bytes, offset, length, header(offset)); 70 public void visitNoArgs(int opcode, int offset, int length, Type type) { argument 71 observer.parsed(bytes, offset, length, header(offset)); 75 public void visitLocal(int opcode, int offset, int length, argument 77 String idxStr = (length <= 3) ? Hex.u1(idx) : Hex.u2(idx); 78 boolean argComment = (length == 1); 83 ((length <= 3) ? Hex.s1(value) : Hex.s2(value)); 91 observer.parsed(bytes, offset, length, 97 public void visitConstant(int opcode, int offset, int length, argument 143 visitBranch(int opcode, int offset, int length, int target) argument 151 visitSwitch(int opcode, int offset, int length, SwitchList cases, int padding) argument 177 visitNewarray(int offset, int length, CstType cst, ArrayList<Constant> intVals) argument 226 visitLiteralInt(int opcode, int offset, int length, int value) argument 253 visitLiteralLong(int opcode, int offset, int length, long value) argument 277 visitLiteralFloat(int opcode, int offset, int length, int bits) argument 295 visitLiteralDouble(int opcode, int offset, int length, long bits) argument [all...] |
H A D | StdAttributeFactory.java | 85 int offset, int length, ParseObserver observer) { 89 return bootstrapMethods(cf, offset, length, observer); 92 return deprecated(cf, offset, length, observer); 95 return enclosingMethod(cf, offset, length, observer); 98 return innerClasses(cf, offset, length, observer); 101 return runtimeInvisibleAnnotations(cf, offset, length, 105 return runtimeVisibleAnnotations(cf, offset, length, 109 return synthetic(cf, offset, length, observer); 112 return signature(cf, offset, length, observer); 115 return sourceDebugExtension(cf, offset, length, observe 84 parse0(DirectClassFile cf, int context, String name, int offset, int length, ParseObserver observer) argument 205 annotationDefault(DirectClassFile cf, int offset, int length, ParseObserver observer) argument 221 bootstrapMethods(DirectClassFile cf, int offset, int length, ParseObserver observer) argument 246 code(DirectClassFile cf, int offset, int length, ParseObserver observer) argument 350 constantValue(DirectClassFile cf, int offset, int length, ParseObserver observer) argument 372 deprecated(DirectClassFile cf, int offset, int length, ParseObserver observer) argument 384 enclosingMethod(DirectClassFile cf, int offset, int length, ParseObserver observer) argument 413 exceptions(DirectClassFile cf, int offset, int length, ParseObserver observer) argument 441 innerClasses(DirectClassFile cf, int offset, int length, ParseObserver observer) argument 498 lineNumberTable(DirectClassFile cf, int offset, int length, ParseObserver observer) argument 539 localVariableTable(DirectClassFile cf, int offset, int length, ParseObserver observer) argument 562 localVariableTypeTable(DirectClassFile cf, int offset, int length, ParseObserver observer) argument 643 runtimeInvisibleAnnotations(DirectClassFile cf, int offset, int length, ParseObserver observer) argument 660 runtimeVisibleAnnotations(DirectClassFile cf, int offset, int length, ParseObserver observer) argument 677 runtimeInvisibleParameterAnnotations(DirectClassFile cf, int offset, int length, ParseObserver observer) argument 694 runtimeVisibleParameterAnnotations(DirectClassFile cf, int offset, int length, ParseObserver observer) argument 711 signature(DirectClassFile cf, int offset, int length, ParseObserver observer) argument 733 sourceDebugExtension(DirectClassFile cf, int offset, int length, ParseObserver observer) argument 750 sourceFile(DirectClassFile cf, int offset, int length, ParseObserver observer) argument 772 synthetic(DirectClassFile cf, int offset, int length, ParseObserver observer) argument 816 parseBootstrapMethods(ByteArray bytes, ConstantPool constantPool, CstType declaringClass, int numMethods, int offset, int length, ParseObserver observer) argument [all...] |
/dalvik/dx/tests/093-ssa-invoke-range/ |
H A D | Blort.java | 37 static void testTailParams(int destPos, int length) { argument 41 methodThatNeedsInvokeRange(src, 0, dest, 0, destPos, length);
|
/dalvik/dexgen/src/com/android/dexgen/util/ |
H A D | Hex.java | 237 * is always newline-terminated, unless the passed-in length was zero, 242 * @param length {@code >= 0;} number of bytes to dump 249 public static String dump(byte[] arr, int offset, int length, argument 251 int end = offset + length; 254 if (((offset | length | end) < 0) || (end > arr.length)) { 255 throw new IndexOutOfBoundsException("arr.length " + 256 arr.length + "; " + 264 if (length == 0) { 268 StringBuffer sb = new StringBuffer(length * [all...] |
H A D | Output.java | 103 * @param length {@code >= 0;} number of bytes to write 105 public void write(byte[] bytes, int offset, int length); argument 109 * a convenient shorthand for {@code write(bytes, 0, bytes.length)}.
|
H A D | ByteArray.java | 36 /** {@code >= 0, <= bytes.length}; size computed as 45 * @param end {@code >= start, <= bytes.length;} end index of 61 if (end > bytes.length) { 62 throw new IllegalArgumentException("end > bytes.length"); 76 this(bytes, 0, bytes.length); 207 if ((out.length - offset) < size) { 208 throw new IndexOutOfBoundsException("(out.length - offset) < " + 314 public int read(byte[] arr, int offset, int length) { argument 315 if ((offset + length) > arr.length) { [all...] |
H A D | ByteArrayAnnotatedOutput.java | 154 } else if (end > data.length) { 170 } else if (end > data.length) { 187 } else if (end > data.length) { 206 } else if (end > data.length) { 270 } else if (end > data.length) { 280 public void write(byte[] bytes, int offset, int length) { argument 282 int end = writeAt + length; 283 int bytesEnd = offset + length; 286 if (((offset | length | end) < 0) || (bytesEnd > bytes.length)) { [all...] |
/dalvik/dx/src/com/android/dx/util/ |
H A D | Hex.java | 237 * is always newline-terminated, unless the passed-in length was zero, 242 * @param length {@code >= 0;} number of bytes to dump 249 public static String dump(byte[] arr, int offset, int length, argument 251 int end = offset + length; 254 if (((offset | length | end) < 0) || (end > arr.length)) { 255 throw new IndexOutOfBoundsException("arr.length " + 256 arr.length + "; " + 264 if (length == 0) { 268 StringBuffer sb = new StringBuffer(length * [all...] |
H A D | Output.java | 105 * @param length {@code >= 0;} number of bytes to write 107 public void write(byte[] bytes, int offset, int length); argument 111 * a convenient shorthand for {@code write(bytes, 0, bytes.length)}.
|
H A D | ByteArray.java | 36 /** {@code >= 0, <= bytes.length}; size computed as 45 * @param end {@code >= start, <= bytes.length;} end index of 61 if (end > bytes.length) { 62 throw new IllegalArgumentException("end > bytes.length"); 76 this(bytes, 0, bytes.length); 207 if ((out.length - offset) < size) { 208 throw new IndexOutOfBoundsException("(out.length - offset) < " + 314 public int read(byte[] arr, int offset, int length) { argument 315 if ((offset + length) > arr.length) { [all...] |
H A D | ByteArrayAnnotatedOutput.java | 166 } else if (end > data.length) { 182 } else if (end > data.length) { 199 } else if (end > data.length) { 218 } else if (end > data.length) { 266 } else if (end > data.length) { 276 public void write(byte[] bytes, int offset, int length) { argument 278 int end = writeAt + length; 279 int bytesEnd = offset + length; 282 if (((offset | length | end) < 0) || (bytesEnd > bytes.length)) { [all...] |
/dalvik/dx/src/com/android/dx/cf/code/ |
H A D | LocalVariableList.java | 69 * any element whose {name, index, start, length} matches an 138 * @param length {@code >= 0;} the length (in bytecodes) of this variable's 145 public void set(int n, int startPc, int length, CstString name, argument 147 set0(n, new Item(startPc, length, name, descriptor, signature, index)); 206 /** {@code >= 0;} the length (in bytecodes) of this variable's scope */ 207 private final int length; field in class:LocalVariableList.Item 228 * @param length {@code >= 0;} the length (in bytecodes) of this variable's 235 public Item(int startPc, int length, CstStrin argument [all...] |
H A D | BasicBlocker.java | 123 public void visitInvalid(int opcode, int offset, int length) { argument 124 visitCommon(offset, length, true); 128 public void visitNoArgs(int opcode, int offset, int length, Type type) { argument 132 visitCommon(offset, length, false); 137 visitCommon(offset, length, false); 138 visitThrowing(offset, length, false); 164 visitCommon(offset, length, true); 165 visitThrowing(offset, length, true); 174 visitCommon(offset, length, true); 176 visitThrowing(offset, length, tru 188 visitLocal(int opcode, int offset, int length, int idx, Type type, int value) argument 199 visitConstant(int opcode, int offset, int length, Constant cst, int value) argument 216 visitBranch(int opcode, int offset, int length, int target) argument 247 visitSwitch(int opcode, int offset, int length, SwitchList cases, int padding) argument 261 visitNewarray(int offset, int length, CstType type, ArrayList<Constant> intVals) argument 395 visitCommon(int offset, int length, boolean nextIsLive) argument 428 visitThrowing(int offset, int length, boolean nextIsLive) argument [all...] |
H A D | BytecodeArray.java | 84 * @return {@code >= 0;} the length of the bytecode array 91 * Gets the total length of this structure in bytes, when included in 95 * @return {@code >= 4;} the total length, in bytes 134 int length = parseInstruction(at, null); 135 at += length; 216 * @return the length of the instruction, in bytes 826 * @return instruction length, in bytes 857 int length = at - offset; 858 visitor.visitSwitch(ByteOps.LOOKUPSWITCH, offset, length, cases, 861 return length; 1181 visitInvalid(int opcode, int offset, int length) argument 1192 visitNoArgs(int opcode, int offset, int length, Type type) argument 1206 visitLocal(int opcode, int offset, int length, int idx, Type type, int value) argument 1233 visitConstant(int opcode, int offset, int length, Constant cst, int value) argument 1244 visitBranch(int opcode, int offset, int length, int target) argument 1258 visitSwitch(int opcode, int offset, int length, SwitchList cases, int padding) argument 1270 visitNewarray(int offset, int length, CstType type, ArrayList<Constant> initVals) argument 1300 visitInvalid(int opcode, int offset, int length) argument 1305 visitNoArgs(int opcode, int offset, int length, Type type) argument 1311 visitLocal(int opcode, int offset, int length, int idx, Type type, int value) argument 1317 visitConstant(int opcode, int offset, int length, Constant cst, int value) argument 1323 visitBranch(int opcode, int offset, int length, int target) argument 1329 visitSwitch(int opcode, int offset, int length, SwitchList cases, int padding) argument 1335 visitNewarray(int offset, int length, CstType type, ArrayList<Constant> initValues) argument 1357 int length; field in class:BytecodeArray.ConstantParserVisitor 1370 visitInvalid(int opcode, int offset, int length) argument 1376 visitNoArgs(int opcode, int offset, int length, Type type) argument 1383 visitLocal(int opcode, int offset, int length, int idx, Type type, int value) argument 1390 visitConstant(int opcode, int offset, int length, Constant cst, int value) argument 1399 visitBranch(int opcode, int offset, int length, int target) argument 1406 visitSwitch(int opcode, int offset, int length, SwitchList cases, int padding) argument 1413 visitNewarray(int offset, int length, CstType type, ArrayList<Constant> initVals) argument [all...] |
H A D | Simulator.java | 103 int length = code.parseInstruction(off, visitor); 105 off += length; 119 * @return the length of the instruction, in bytes 241 public void visitInvalid(int opcode, int offset, int length) { argument 246 public void visitNoArgs(int opcode, int offset, int length, argument 535 visitInvalid(opcode, offset, length); 567 public void visitLocal(int opcode, int offset, int length, argument 577 * The reason we use (offset + length) for the localOffset 584 (opcode == ByteOps.ISTORE) ? (offset + length) : offset; 628 visitInvalid(opcode, offset, length); 637 visitConstant(int opcode, int offset, int length, Constant cst, int value) argument 750 visitBranch(int opcode, int offset, int length, int target) argument 799 visitSwitch(int opcode, int offset, int length, SwitchList cases, int padding) argument 808 visitNewarray(int offset, int length, CstType type, ArrayList<Constant> initValues) argument [all...] |
/dalvik/dexgen/src/com/android/dexgen/dex/file/ |
H A D | DebugInfoEncoder.java | 127 * @param length the number of bytes associated with this message 130 private void annotate(int length, String message) { argument 136 annotateTo.annotate(shouldConsume ? length : 0, message); 157 for (int i = 0 ; i < ret.length; i++) {
|
/dalvik/dx/src/com/android/dx/dex/file/ |
H A D | DebugInfoEncoder.java | 135 * @param length the number of bytes associated with this message 138 private void annotate(int length, String message) { argument 144 annotateTo.annotate(shouldConsume ? length : 0, message); 165 for (int i = 0 ; i < ret.length; i++) {
|
/dalvik/dx/src/com/android/dx/ssa/ |
H A D | EscapeAnalysis.java | 490 int length = ((CstLiteralBits) lengthReg).getIntBits(); 492 new ArrayList<RegisterSpec>(length); 496 replaceDef(def, prev, length, newRegs); 530 * @param length size of the new array 534 private void replaceDef(SsaInsn def, SsaInsn prev, int length, argument 539 for (int i = 0; i < length; i++) { 566 int length = newRegs.size(); 579 if (index < length) { 596 if (index < length) { 611 //CstInteger lengthReg = CstInteger.make(length); [all...] |