/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 | 59 * {@code non-null, sparse;} for each instruction offset to a branch of 65 * {@code non-null, sparse;} for each instruction offset to a throwing 70 /** offset of the previously parsed bytecode */ 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); 137 targetLists[offset] = IntList.EMPTY; 141 visitCommon(offset, length, false); 142 visitThrowing(offset, lengt 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 386 addWorkIfNecessary(int offset, boolean blockStart) argument 405 visitCommon(int offset, int length, boolean nextIsLive) argument 438 visitThrowing(int offset, int length, boolean nextIsLive) argument 454 setPreviousOffset(int offset) argument [all...] |
H A D | BytecodeArray.java | 112 * Don't record the previous offset here, so that we get to see the 120 * Finds the offset to each instruction in the bytecode array. The 121 * result is a bit set with the offset of each opcode-per-se flipped on. 143 * the indicated offset (that is, the bit index), repeating until the 157 int offset = Bits.findFirst(workSet, 0); 158 if (offset < 0) { 161 Bits.clear(workSet, offset); 162 parseInstruction(offset, visitor); 163 visitor.setPreviousOffset(offset); 168 * Parses the instruction at the indicated offset 217 parseInstruction(int offset, Visitor visitor) argument 827 parseTableswitch(int offset, Visitor visitor) argument 870 parseLookupswitch(int offset, Visitor visitor) argument 908 parseNewarray(int offset, Visitor visitor) argument 1097 parseWide(int offset, Visitor visitor) argument 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 1276 setPreviousOffset(int offset) 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 1348 setPreviousOffset(int offset) argument 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 1428 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; 183 * Gets the relative item offset. The offset is from the start of 186 * @return {@code >= 0;} the offset 224 place(Section addedTo, int offset) argument 302 place0(Section addedTo, int offset) argument [all...] |
/dalvik/dx/src/com/android/dx/cf/direct/ |
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 94 observer.parsed(bytes, offset, length, 95 header(offset) + (argComment ? " // " : " ") + 101 public void visitConstant(int opcode, int offset, in 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 195 setPreviousOffset(int offset) argument 210 header(int offset) 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, 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;
|
H A D | Blort.class | ... void testFlip () int src
int dest
long testMixedCategory (boolean) int offset
int src
int dest
long offset |
/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);
|