Lines Matching refs:dex
17 package com.android.dex;
19 import com.android.dex.Code.CatchHandler;
20 import com.android.dex.Code.Try;
21 import com.android.dex.util.ByteInput;
22 import com.android.dex.util.ByteOutput;
23 import com.android.dex.util.FileUtils;
48 * The bytes of a dex file in memory for reading and writing. All int offsets
51 public final class Dex {
71 * Creates a new dex that reads from {@code data}. It is an error to modify
72 * {@code data} after using it to create a dex buffer.
74 public Dex(byte[] data) throws IOException {
78 private Dex(ByteBuffer data) throws IOException {
85 * Creates a new empty dex of the specified size.
87 public Dex(int byteCount) throws IOException {
93 * Creates a new dex buffer of the dex in {@code in}, and closes {@code in}.
95 public Dex(InputStream in) throws IOException {
104 * Creates a new dex buffer from the dex file {@code file}.
106 public Dex(File file) throws IOException {
118 } else if (file.getName().endsWith(".dex")) {
206 * Returns a copy of the the bytes of this dex.
268 * Returns the signature of all but the first 32 bytes of this dex. The
269 * first 32 bytes of dex files are not specified to be included in the
292 * Returns the checksum of all but the first 12 bytes of {@code dex}.
309 * Generates the signature and checksum of the dex file {@code out} and
396 return new TypeList(Dex.this, types);
425 return new FieldId(Dex.this, declaringClassIndex, typeIndex, nameIndex);
432 return new MethodId(Dex.this, declaringClassIndex, protoIndex, nameIndex);
439 return new ProtoId(Dex.this, shortyIndex, returnTypeIndex, parametersOffset);
452 return new ClassDef(Dex.this, offset, type, accessFlags, supertype,
474 * Unfortunately they're in the opposite order in the dex file
586 return new Annotation(Dex.this, visibility, new EncodedValue(getBytesFrom(start)));
763 private final Dex.Section in = open(tableOfContents.classDefs.off);