Searched defs:offset (Results 1 - 25 of 70) sorted by relevance

123

/dalvik/libdex/
H A DDexDataMap.h44 * 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 DDexDataMap.cpp72 * 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 DDexOptData.cpp86 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 DCallSiteId.java28 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 DMutf8.java87 * 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 DClassDef.java25 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 DRawAttribute.java58 * @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 DValueAwareMachine.java43 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 DSsaDumper.java75 public void endParsingMember(ByteArray bytes, int offset, String name, argument
/dalvik/dx/src/com/android/dx/cf/direct/
H A DAttributeFactory.java64 * @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 DAttributeListParser.java36 /** 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 DFieldListParser.java39 * @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 DMethodListParser.java39 * @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 DMemberListParser.java41 /** 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 DParseObserver.java38 * @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 DCallSiteItem.java56 protected void place0(Section addedTo, int offset) { argument
/dalvik/dexgen/src/com/android/dexgen/dex/file/
H A DAnnotationSetItem.java126 protected void place0(Section addedTo, int offset) { argument
146 int offset = item.getAbsoluteOffset();
150 Hex.u4(offset));
154 out.writeInt(offset);
H A DCatchStructs.java146 // 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 DDebugInfoItem.java72 protected void place0(Section addedTo, int offset) { argument
H A DEncodedArrayItem.java101 protected void place0(Section addedTo, int offset) { argument
H A DOffsettedItem.java23 * 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 DUniformListItem.java159 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 DCstUtf8.java166 * @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 DHex.java241 * @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 DOutput.java101 * @param offset {@code >= 0;} offset into {@code bytes} for the first
105 public void write(byte[] bytes, int offset, int length); argument

Completed in 434 milliseconds

123