/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...] |
/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 | 66 public void visitInvalid(int opcode, int offset, int length) { argument 67 observer.parsed(bytes, offset, length, header(offset)); 72 public void visitNoArgs(int opcode, int offset, int length, Type type) { argument 73 observer.parsed(bytes, offset, length, header(offset)); 78 public void visitLocal(int opcode, int offset, int length, argument 80 String idxStr = (length <= 3) ? Hex.u1(idx) : Hex.u2(idx); 81 boolean argComment = (length == 1); 86 ((length <= 3) ? Hex.s1(value) : Hex.s2(value)); 94 observer.parsed(bytes, offset, length, 101 public void visitConstant(int opcode, int offset, int length, argument 148 visitBranch(int opcode, int offset, int length, int target) argument 157 visitSwitch(int opcode, int offset, int length, SwitchList cases, int padding) argument 184 visitNewarray(int offset, int length, CstType cst, ArrayList<Constant> intVals) argument 235 visitLiteralInt(int opcode, int offset, int length, int value) argument 262 visitLiteralLong(int opcode, int offset, int length, long value) argument 286 visitLiteralFloat(int opcode, int offset, int length, int bits) argument 304 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);
|
H A D | Blort.class | ... int f
static void testTailParams (int, int) int destPos
int length
int src
int dest
void testFlip () int src
int dest ... |
/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 StringBuilder sb = new StringBuilder(length * [all...] |
H A D | Output.java | 106 * @param length {@code >= 0;} number of bytes to write 108 public void write(byte[] bytes, int offset, int length); argument 112 * a convenient shorthand for {@code write(bytes, 0, bytes.length)}.
|
H A D | ByteArray.java | 37 /** {@code >= 0, <= bytes.length}; size computed as 46 * @param end {@code >= start, <= bytes.length;} end index of 62 if (end > bytes.length) { 63 throw new IllegalArgumentException("end > bytes.length"); 77 this(bytes, 0, bytes.length); 204 if ((out.length - offset) < size) { 205 throw new IndexOutOfBoundsException("(out.length - offset) < " + 313 public int read(byte[] arr, int offset, int length) { argument 314 if ((offset + length) > arr.length) { [all...] |
H A D | ByteArrayAnnotatedOutput.java | 170 } else if (end > data.length) { 187 } else if (end > data.length) { 205 } else if (end > data.length) { 225 } else if (end > data.length) { 276 } else if (end > data.length) { 287 public void write(byte[] bytes, int offset, int length) { argument 289 int end = writeAt + length; 290 int bytesEnd = offset + length; 293 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 | 126 public void visitInvalid(int opcode, int offset, int length) { argument 127 visitCommon(offset, length, true); 132 public void visitNoArgs(int opcode, int offset, int length, Type type) { argument 136 visitCommon(offset, length, false); 141 visitCommon(offset, length, false); 142 visitThrowing(offset, length, false); 168 visitCommon(offset, length, true); 169 visitThrowing(offset, length, true); 178 visitCommon(offset, length, true); 180 visitThrowing(offset, length, tru 193 visitLocal(int opcode, int offset, int length, int idx, Type type, int value) argument 205 visitConstant(int opcode, int offset, int length, Constant cst, int value) argument 224 visitBranch(int opcode, int offset, int length, int target) argument 256 visitSwitch(int opcode, int offset, int length, SwitchList cases, int padding) argument 271 visitNewarray(int offset, int length, CstType type, ArrayList<Constant> intVals) argument 405 visitCommon(int offset, int length, boolean nextIsLive) argument 438 visitThrowing(int offset, int length, boolean nextIsLive) argument [all...] |
H A D | BytecodeArray.java | 83 * @return {@code >= 0;} the length of the bytecode array 90 * Gets the total length of this structure in bytes, when included in 94 * @return {@code >= 4;} the total length, in bytes 133 int length = parseInstruction(at, null); 134 at += length; 215 * @return the length of the instruction, in bytes 825 * @return instruction length, in bytes 856 int length = at - offset; 857 visitor.visitSwitch(ByteOps.LOOKUPSWITCH, offset, length, cases, 860 return length; 1180 visitInvalid(int opcode, int offset, int length) argument 1191 visitNoArgs(int opcode, int offset, int length, Type type) argument 1205 visitLocal(int opcode, int offset, int length, int idx, Type type, int value) argument 1232 visitConstant(int opcode, int offset, int length, Constant cst, int value) argument 1243 visitBranch(int opcode, int offset, int length, int target) argument 1257 visitSwitch(int opcode, int offset, int length, SwitchList cases, int padding) argument 1269 visitNewarray(int offset, int length, CstType type, ArrayList<Constant> initVals) argument 1300 visitInvalid(int opcode, int offset, int length) argument 1306 visitNoArgs(int opcode, int offset, int length, Type type) argument 1313 visitLocal(int opcode, int offset, int length, int idx, Type type, int value) argument 1320 visitConstant(int opcode, int offset, int length, Constant cst, int value) argument 1327 visitBranch(int opcode, int offset, int length, int target) argument 1334 visitSwitch(int opcode, int offset, int length, SwitchList cases, int padding) argument 1341 visitNewarray(int offset, int length, CstType type, ArrayList<Constant> initValues) argument 1365 int length; field in class:BytecodeArray.ConstantParserVisitor 1378 visitInvalid(int opcode, int offset, int length) argument 1384 visitNoArgs(int opcode, int offset, int length, Type type) argument 1391 visitLocal(int opcode, int offset, int length, int idx, Type type, int value) argument 1398 visitConstant(int opcode, int offset, int length, Constant cst, int value) argument 1407 visitBranch(int opcode, int offset, int length, int target) argument 1414 visitSwitch(int opcode, int offset, int length, SwitchList cases, int padding) argument 1421 visitNewarray(int offset, int length, CstType type, ArrayList<Constant> initVals) argument [all...] |
H A D | Simulator.java | 117 int length = code.parseInstruction(off, visitor); 119 off += length; 133 * @return the length of the instruction, in bytes 256 public void visitInvalid(int opcode, int offset, int length) { argument 262 public void visitNoArgs(int opcode, int offset, int length, argument 550 visitInvalid(opcode, offset, length); 583 public void visitLocal(int opcode, int offset, int length, argument 593 * The reason we use (offset + length) for the localOffset 600 (opcode == ByteOps.ISTORE) ? (offset + length) : offset; 644 visitInvalid(opcode, offset, length); 654 visitConstant(int opcode, int offset, int length, Constant cst, int value) argument 756 visitBranch(int opcode, int offset, int length, int target) argument 806 visitSwitch(int opcode, int offset, int length, SwitchList cases, int padding) argument 816 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...] |