/dalvik/dx/src/com/android/dex/ |
H A D | CallSiteId.java | 28 private final int offset; field in class:CallSiteId 30 public CallSiteId(Dex dex, int offset) { argument 32 this.offset = offset; 37 return Unsigned.compare(offset, o.offset); 41 return offset; 45 out.writeInt(offset); 51 return String.valueOf(offset); 53 return dex.protoIds().get(offset) [all...] |
H A D | Mutf8.java | 87 * dst}, starting at {@code offset}. 89 public static void encode(byte[] dst, int offset, String s) { argument 94 dst[offset++] = (byte) ch; 96 dst[offset++] = (byte) (0xc0 | (0x1f & (ch >> 6))); 97 dst[offset++] = (byte) (0x80 | (0x3f & ch)); 99 dst[offset++] = (byte) (0xe0 | (0x0f & (ch >> 12))); 100 dst[offset++] = (byte) (0x80 | (0x3f & (ch >> 6))); 101 dst[offset++] = (byte) (0x80 | (0x3f & ch));
|
H A D | ClassDef.java | 25 private final int offset; field in class:ClassDef 35 public ClassDef(Dex buffer, int offset, int typeIndex, int accessFlags, argument 39 this.offset = offset; 51 return offset;
|
H A D | Code.java | 88 * this is distinct from the its catch handler <strong>offset</strong>. 99 final int offset; field in class:Code.CatchHandler 101 public CatchHandler(int[] typeIndexes, int[] addresses, int catchAllAddress, int offset) { argument 105 this.offset = offset; 121 return offset;
|
/dalvik/libdex/ |
H A D | DexDataMap.h | 44 * Add a new element to the map. The offset must be greater than the 47 void dexDataMapAdd(DexDataMap* map, u4 offset, u2 type); 50 * Get the type associated with the given offset. This returns -1 if 51 * there is no entry for the given offset. 53 int dexDataMapGet(DexDataMap* map, u4 offset); 56 * Verify that there is an entry in the map, mapping the given offset to 60 bool dexDataMapVerify(DexDataMap* map, u4 offset, u2 type); 63 * Like dexDataMapVerify(), but also accept a 0 offset as valid. 65 DEX_INLINE bool dexDataMapVerify0Ok(DexDataMap* map, u4 offset, u2 type) { argument 66 if (offset [all...] |
H A D | DexDataMap.cpp | 72 * Add a new element to the map. The offset must be greater than the 75 void dexDataMapAdd(DexDataMap* map, u4 offset, u2 type) { argument 80 (map->offsets[map->count - 1] >= offset)) { 81 ALOGE("Out-of-order data map offset: %#x then %#x", 82 map->offsets[map->count - 1], offset); 86 map->offsets[map->count] = offset; 92 * Get the type associated with the given offset. This returns -1 if 93 * there is no entry for the given offset. 95 int dexDataMapGet(DexDataMap* map, u4 offset) { argument 107 if (offset < gues 126 dexDataMapVerify(DexDataMap* map, u4 offset, u2 type) argument [all...] |
H A D | DexCatch.h | 35 /* Get the first handler offset for the given DexCode. 81 /* Initialize a DexCatchIterator to a particular handler offset. */ 83 const DexCode* pCode, u4 offset) 86 dexGetCatchHandlerData(pCode) + offset); 108 /* Get the handler offset just past the end of the one just iterated over. 123 int offset = -1; local 144 offset = tries[0].handlerOff; 148 offset = dexFindCatchHandlerOffset0(triesSize, dexGetTries(pCode), 153 if (offset < 0) { 157 dexCatchIteratorInit(pIterator, pCode, offset); 82 dexCatchIteratorInit(DexCatchIterator* pIterator, const DexCode* pCode, u4 offset) argument [all...] |
/dalvik/dx/src/com/android/dx/cf/iface/ |
H A D | ParseObserver.java | 38 * @param offset offset into {@code bytes} for the start of the 43 public void startParsingMember(ByteArray bytes, int offset, String name, argument 50 * @param offset offset into {@code bytes} for the end of the 56 public void endParsingMember(ByteArray bytes, int offset, String name, argument 63 * @param offset offset into {@code bytes} for what was parsed 67 public void parsed(ByteArray bytes, int offset, int len, String human); argument
|
/dalvik/dx/src/com/android/dx/cf/code/ |
H A D | BasicBlocker.java | 57 * {@code non-null, sparse;} for each instruction offset to a branch of 63 * {@code non-null, sparse;} for each instruction offset to a throwing 68 /** offset of the previously parsed bytecode */ 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); 133 targetLists[offset] = IntList.EMPTY; 137 visitCommon(offset, length, false); 138 visitThrowing(offset, lengt 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 376 addWorkIfNecessary(int offset, boolean blockStart) argument 395 visitCommon(int offset, int length, boolean nextIsLive) argument 428 visitThrowing(int offset, int length, boolean nextIsLive) argument 443 setPreviousOffset(int offset) argument [all...] |
H A D | BytecodeArray.java | 113 * Don't record the previous offset here, so that we get to see the 121 * Finds the offset to each instruction in the bytecode array. The 122 * result is a bit set with the offset of each opcode-per-se flipped on. 144 * the indicated offset (that is, the bit index), repeating until the 158 int offset = Bits.findFirst(workSet, 0); 159 if (offset < 0) { 162 Bits.clear(workSet, offset); 163 parseInstruction(offset, visitor); 164 visitor.setPreviousOffset(offset); 169 * Parses the instruction at the indicated offset 218 parseInstruction(int offset, Visitor visitor) argument 828 parseTableswitch(int offset, Visitor visitor) argument 871 parseLookupswitch(int offset, Visitor visitor) argument 909 parseNewarray(int offset, Visitor visitor) argument 1098 parseWide(int offset, Visitor visitor) argument 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 1277 setPreviousOffset(int offset) 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 1341 setPreviousOffset(int offset) argument 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 1420 setPreviousOffset(int offset) argument [all...] |
/dalvik/dexgen/src/com/android/dexgen/dex/file/ |
H A D | OffsettedItem.java | 23 * An item in a Dalvik file which is referenced by absolute offset. 41 * {@code >= -1;} assigned offset of the item from the start of its section, 44 private int offset; field in class:OffsettedItem 47 * Gets the absolute offset of the given item, returning {@code 0} 51 * @return {@code >= 0;} the item's absolute offset, or {@code 0} 63 * Constructs an instance. The offset is initially unassigned. 80 this.offset = -1; 182 * Gets the relative item offset. The offset is from the start of 185 * @return {@code >= 0;} the offset 223 place(Section addedTo, int offset) argument 301 place0(Section addedTo, int offset) argument [all...] |
/dalvik/dx/src/com/android/dx/dex/file/ |
H A D | OffsettedItem.java | 23 * An item in a Dalvik file which is referenced by absolute offset. 41 * {@code >= -1;} assigned offset of the item from the start of its section, 44 private int offset; field in class:OffsettedItem 47 * Gets the absolute offset of the given item, returning {@code 0} 51 * @return {@code >= 0;} the item's absolute offset, or {@code 0} 63 * Constructs an instance. The offset is initially unassigned. 80 this.offset = -1; 182 * Gets the relative item offset. The offset is from the start of 185 * @return {@code >= 0;} the offset 223 place(Section addedTo, int offset) argument 301 place0(Section addedTo, int offset) argument [all...] |
/dalvik/dx/src/com/android/dx/cf/direct/ |
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 91 observer.parsed(bytes, offset, length, 92 header(offset) + (argComment ? " // " : " ") + 97 public void visitConstant(int opcode, int offset, in 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 187 setPreviousOffset(int offset) argument 201 header(int offset) 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, lengt 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...] |
H A D | AttributeFactory.java | 64 * @param offset offset into {@code dcf}'s {@code bytes} 69 public final Attribute parse(DirectClassFile cf, int context, int offset, argument 84 int nameIdx = bytes.getUnsignedShort(offset); 85 int length = bytes.getInt(offset + 2); 90 observer.parsed(bytes, offset, 2, 92 observer.parsed(bytes, offset + 2, 4, 96 return parse0(cf, context, name.getString(), offset + 6, length, 101 "attribute at offset " + Hex.u4(offset)); 121 parse0(DirectClassFile cf, int context, String name, int offset, int length, ParseObserver observer) argument [all...] |
H A D | AttributeListParser.java | 36 /** offset in the byte array of the classfile to the start of the list */ 37 private final int offset; field in class:AttributeListParser 45 /** {@code >= -1;} the end offset of this list in the byte array of the 57 * @param offset offset in {@code bytes} to the start of the list 60 public AttributeListParser(DirectClassFile cf, int context, int offset, argument 70 int size = cf.getBytes().getUnsignedShort(offset); 74 this.offset = offset; 90 * Gets the end offset o [all...] |
/dalvik/dx/tests/093-ssa-invoke-range/ |
H A D | Blort.java | 58 int offset = 1; 62 methodThatNeedsInvokeRange(src, 0, dest, offset, 5, 0); 63 return offset; 65 long offset = System.currentTimeMillis();; 66 return offset;
|
/dalvik/dx/src/com/android/dx/command/dump/ |
H A D | BaseDumper.java | 66 /** the offset of the next byte to dump */ 130 public void parsed(ByteArray bytes, int offset, int len, String human) { argument 131 offset = bytes.underlyingOffset(offset, getBytes()); 135 if (offset < at) { 136 println("<dump skipped backwards to " + Hex.u4(offset) + ">"); 137 at = offset; 138 } else if (offset > at) { 139 String hex = rawBytes ? hexDump(at, offset - at) : ""; 140 print(twoColumns(hex, "<skipped to " + Hex.u4(offset) 150 startParsingMember(ByteArray bytes, int offset, String name, String descriptor) argument 156 endParsingMember(ByteArray bytes, int offset, String name, String descriptor, Member member) argument 177 setAt(ByteArray arr, int offset) argument 267 hexDump(int offset, int len) argument [all...] |
/dalvik/dexgen/src/com/android/dexgen/dex/code/form/ |
H A D | Form10t.java | 73 int offset = insn.getTargetOffset(); 75 // Note: A zero offset would fit, but it is prohibited by the spec. 76 return (offset != 0) && signedFitsInByte(offset); 88 int offset = ((TargetInsn) insn).getTargetOffset(); 90 write(out, opcodeUnit(insn, (offset & 0xff)));
|
H A D | Form20t.java | 73 int offset = insn.getTargetOffset(); 75 // Note: A zero offset would fit, but it is prohibited by the spec. 76 return (offset != 0) && signedFitsInShort(offset); 88 int offset = ((TargetInsn) insn).getTargetOffset(); 90 write(out, opcodeUnit(insn, 0), (short) offset);
|
H A D | Form21t.java | 78 int offset = insn.getTargetOffset(); 80 // Note: A zero offset would fit, but it is prohibited by the spec. 81 return (offset != 0) && signedFitsInShort(offset); 94 int offset = ((TargetInsn) insn).getTargetOffset(); 98 (short) offset);
|
H A D | Form22t.java | 80 int offset = insn.getTargetOffset(); 82 // Note: A zero offset would fit, but it is prohibited by the spec. 83 return (offset != 0) && signedFitsInShort(offset); 96 int offset = ((TargetInsn) insn).getTargetOffset(); 101 (short) offset);
|
/dalvik/dx/src/com/android/dx/dex/code/form/ |
H A D | Form10t.java | 73 int offset = insn.getTargetOffset(); 75 // Note: A zero offset would fit, but it is prohibited by the spec. 76 return (offset != 0) && signedFitsInByte(offset); 82 int offset = ((TargetInsn) insn).getTargetOffset(); 84 write(out, opcodeUnit(insn, (offset & 0xff)));
|
H A D | Form20t.java | 73 int offset = insn.getTargetOffset(); 75 // Note: A zero offset would fit, but it is prohibited by the spec. 76 return (offset != 0) && signedFitsInShort(offset); 82 int offset = ((TargetInsn) insn).getTargetOffset(); 84 write(out, opcodeUnit(insn, 0), (short) offset);
|
/dalvik/dx/src/com/android/dx/cf/attrib/ |
H A D | RawAttribute.java | 58 * @param offset offset in {@code data} to the attribute data 62 public RawAttribute(String name, ByteArray data, int offset, argument 64 this(name, data.slice(offset, offset + length), pool);
|