/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 | DexOptData.cpp | 86 const u4 offset = ((const u1*) pOpt) - data; local 87 ALOGE("Bogus opt data content pointer at offset %u", offset); 102 const u4 offset = ((const u1*) pOpt) - data; local 103 ALOGE("Opt data area problem for chunk of size %u at offset %u", size, offset);
|
/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;
|
/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);
|
/dalvik/dx/src/com/android/dx/cf/code/ |
H A D | ValueAwareMachine.java | 43 public void run(Frame frame, int offset, int opcode) { argument 183 setResult(type.asUninitialized(offset));
|
/dalvik/dx/src/com/android/dx/command/dump/ |
H A D | SsaDumper.java | 75 public void endParsingMember(ByteArray bytes, int offset, String name, argument
|
/dalvik/dx/src/com/android/dx/cf/direct/ |
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...] |
H A D | FieldListParser.java | 39 * @param offset offset in {@code bytes} to the start of the list 42 public FieldListParser(DirectClassFile cf, CstType definer, int offset, argument 44 super(cf, definer, offset, attributeFactory);
|
H A D | MethodListParser.java | 39 * @param offset offset in {@code bytes} to the start of the list 43 int offset, AttributeFactory attributeFactory) { 44 super(cf, definer, offset, attributeFactory); 42 MethodListParser(DirectClassFile cf, CstType definer, int offset, AttributeFactory attributeFactory) argument
|
H A D | MemberListParser.java | 41 /** offset in the byte array of the classfile to the start of the list */ 42 private final int offset; field in class:MemberListParser 47 /** {@code >= -1;} the end offset of this list in the byte array of the 59 * @param offset offset in {@code bytes} to the start of the list 63 int offset, AttributeFactory attributeFactory) { 68 if (offset < 0) { 69 throw new IllegalArgumentException("offset < 0"); 78 this.offset = offset; 62 MemberListParser(DirectClassFile cf, CstType definer, int offset, AttributeFactory attributeFactory) 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/dex/file/ |
H A D | CallSiteItem.java | 56 protected void place0(Section addedTo, int offset) { argument
|
/dalvik/dexgen/src/com/android/dexgen/dex/file/ |
H A D | AnnotationSetItem.java | 126 protected void place0(Section addedTo, int offset) { argument 146 int offset = item.getAbsoluteOffset(); 150 Hex.u4(offset)); 154 out.writeInt(offset);
|
H A D | CatchStructs.java | 146 // Now write the lists out in order, noting the offset of each. 153 // Set the offset before we do any writing. 279 int offset = mapping.getValue(); 283 offset - lastOffset, subPrefix, printTo, annotateTo); 287 lastOffset = offset; 300 * @param offset {@code >= 0;} the offset of this handler 307 int offset, int size, String prefix, PrintWriter printTo, 309 String s = handlers.toHuman(prefix, Hex.u2(offset) + ": "); 306 annotateAndConsumeHandlers(CatchHandlerList handlers, int offset, int size, String prefix, PrintWriter printTo, AnnotatedOutput annotateTo) argument
|
H A D | DebugInfoItem.java | 72 protected void place0(Section addedTo, int offset) { argument
|
H A D | EncodedArrayItem.java | 101 protected void place0(Section addedTo, int offset) { argument
|
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...] |
H A D | UniformListItem.java | 159 protected void place0(Section addedTo, int offset) { argument 160 offset += headerSize(); 183 offset = i.place(addedTo, offset) + size;
|
/dalvik/dexgen/src/com/android/dexgen/rop/cst/ |
H A D | CstUtf8.java | 166 * @param offset the file offset 170 private static String throwBadUtf8(int value, int offset) { argument 172 " at offset " + Hex.u4(offset));
|
/dalvik/dexgen/src/com/android/dexgen/util/ |
H A D | Hex.java | 241 * @param offset {@code >= 0;} offset to the part to dump 243 * @param outOffset {@code >= 0;} first output offset to print 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)) { 257 offset + "..!" + end); 286 sb.append(Hex.u1(arr[offset])); 288 offset++;
|
H A D | Output.java | 101 * @param offset {@code >= 0;} offset into {@code bytes} for the first 105 public void write(byte[] bytes, int offset, int length); argument
|