/libcore/libart/src/main/java/java/lang/ |
DexCache.java | 35 import com.android.dex.Dex; 40 * A dex cache holds resolved copies of strings, fields, methods, and classes from the dexfile. 43 /** Lazily initialized dex file wrapper. Volatile to avoid double-check locking issues. */ 44 private volatile Dex dex; field in class:DexCache 49 /** The location of the associated dex file. */ 54 * fields defined in other dex files. 60 * methods defined in other dex files. 66 * types defined in other dex files [all...] |
/dalvik/dx/tests/119-merge-conflict/com/android/dx/merge/ |
MergeConflictTest.java | 19 import com.android.dex.Dex; 20 import com.android.dex.DexException; 27 Dex a = resourceToDexBuffer("/testdata/A.dex"); 28 Dex b = resourceToDexBuffer("/testdata/B.dex"); 31 Dex ab = new DexMerger(a, b, CollisionPolicy.FAIL).merge(); 39 assertEquals("Multiple dex files define Ltestdata/A;", expected.getMessage()); 43 private Dex resourceToDexBuffer(String resource) throws IOException [all...] |
/dalvik/dx/src/com/android/dx/command/findusages/ |
Main.java | 19 import com.android.dex.Dex; 30 Dex dex = new Dex(new File(dexFile)); local 32 new FindUsages(dex, declaredBy, memberName, out).findUsages();
|
FindUsages.java | 19 import com.android.dex.ClassData; 20 import com.android.dex.ClassDef; 21 import com.android.dex.Dex; 22 import com.android.dex.FieldId; 23 import com.android.dex.MethodId; 35 private final Dex dex; field in class:FindUsages 44 public FindUsages(final Dex dex, String declaredBy, String memberName, final PrintWriter out) [all...] |
/dalvik/dx/src/com/android/dx/command/grep/ |
Main.java | 19 import com.android.dex.Dex; 30 Dex dex = new Dex(new File(dexFile)); local 31 int count = new Grep(dex, Pattern.compile(pattern), new PrintWriter(System.out)).grep();
|
Grep.java | 19 import com.android.dex.ClassData; 20 import com.android.dex.ClassDef; 21 import com.android.dex.Dex; 22 import com.android.dex.EncodedValueReader; 23 import com.android.dex.MethodId; 32 private final Dex dex; field in class:Grep 42 public Grep(final Dex dex, Pattern pattern, final PrintWriter out) [all...] |
/libcore/dex/src/main/java/com/android/dex/ |
Annotation.java | 17 package com.android.dex; 19 import static com.android.dex.EncodedValueReader.ENCODED_ANNOTATION; 25 private final Dex dex; field in class:Annotation 29 public Annotation(Dex dex, byte visibility, EncodedValue encodedAnnotation) { 30 this.dex = dex; 49 public void writeTo(Dex.Section out) { 59 return dex == nul [all...] |
FieldId.java | 17 package com.android.dex; 19 import com.android.dex.util.Unsigned; 22 private final Dex dex; field in class:FieldId 27 public FieldId(Dex dex, int declaringClassIndex, int typeIndex, int nameIndex) { 28 this.dex = dex; 56 public void writeTo(Dex.Section out) { 63 if (dex == null) [all...] |
MethodId.java | 17 package com.android.dex; 19 import com.android.dex.util.Unsigned; 22 private final Dex dex; field in class:MethodId 27 public MethodId(Dex dex, int declaringClassIndex, int protoIndex, int nameIndex) { 28 this.dex = dex; 56 public void writeTo(Dex.Section out) { 63 if (dex == null) [all...] |
ProtoId.java | 17 package com.android.dex; 19 import com.android.dex.util.Unsigned; 22 private final Dex dex; field in class:ProtoId 27 public ProtoId(Dex dex, int shortyIndex, int returnTypeIndex, int parametersOffset) { 28 this.dex = dex; 53 public void writeTo(Dex.Section out) { 60 if (dex == null) [all...] |
TypeList.java | 17 package com.android.dex; 19 import com.android.dex.util.Unsigned; 23 public static final TypeList EMPTY = new TypeList(null, Dex.EMPTY_SHORT_ARRAY); 25 private final Dex dex; field in class:TypeList 28 public TypeList(Dex dex, short[] types) { 29 this.dex = dex; 50 result.append(dex != null ? dex.typeNames().get(types[i]) : types[i]) [all...] |
ClassDef.java | 17 package com.android.dex; 24 private final Dex buffer; 35 public ClassDef(Dex buffer, int offset, int typeIndex, int accessFlags,
|
EncodedValue.java | 17 package com.android.dex; 19 import com.android.dex.util.ByteArrayByteInput; 20 import com.android.dex.util.ByteInput; 40 public void writeTo(Dex.Section out) {
|
TableOfContents.java | 17 package com.android.dex; 68 public void readFrom(Dex dex) throws IOException { 69 readHeader(dex.open(0)); 70 readMap(dex.open(mapList.off)); 74 private void readHeader(Dex.Section headerIn) throws UnsupportedEncodingException { 97 throw new DexException("Cannot merge dex files that do not contain a map"); 115 private void readMap(Dex.Section in) throws IOException { 166 public void writeHeader(Dex.Section out) throws IOException { 192 public void writeMap(Dex.Section out) throws IOException [all...] |
Dex.java | 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 [all...] |
/libcore/libart/src/main/java/java/lang/reflect/ |
ArtField.java | 35 import com.android.dex.Dex; 69 // Proxy classes have 1 synthesized static field with no valid dex index 75 Dex dex = declaringClass.getDex(); local 76 int nameIndex = dex.nameIndexFromFieldIndex(fieldDexIndex); 77 return declaringClass.getDexCacheString(dex, nameIndex); 92 Dex dex = declaringClass.getDex(); local 93 int typeIndex = dex.typeIndexFromFieldIndex(fieldDexIndex) [all...] |
ArtMethod.java | 35 import com.android.dex.Dex; 69 /* ART: dex cache fast access */ 94 Dex dex = artMethod.getDeclaringClass().getDex(); local 95 int nameIndex = dex.nameIndexFromMethodIndex(artMethod.getDexMethodIndex()); 96 // Note, in the case of a Proxy the dex cache strings are equal. 97 return artMethod.getDexCacheString(dex, nameIndex); 106 Dex dex = artMethod.getDeclaringClass().getDex() local 129 Dex dex = getDeclaringClass().getDex(); local 143 Dex dex = declaringClass.getDex(); local 155 Dex dex = getDeclaringClass().getDex(); local [all...] |
/dalvik/dx/src/com/android/dx/merge/ |
SortableType.java | 19 import com.android.dex.ClassDef; 20 import com.android.dex.Dex; 46 private final Dex dex; field in class:SortableType 50 public SortableType(Dex dex, ClassDef classDef) { 51 this.dex = dex; 55 public Dex getDex() [all...] |
DexMerger.java | 19 import com.android.dex.Annotation; 20 import com.android.dex.ClassData; 21 import com.android.dex.ClassDef; 22 import com.android.dex.Code; 23 import com.android.dex.Dex; 24 import com.android.dex.DexException; 25 import com.android.dex.FieldId; 26 import com.android.dex.MethodId; 27 import com.android.dex.ProtoId [all...] |
/prebuilts/runtime/common/dex/ |
dex-host-prebuilt.jar | |
/dalvik/dx/tests/115-merge/com/android/dx/merge/ |
DexMergeTest.java | 19 import com.android.dex.Dex; 35 * Test that DexMerge works by merging dex files, and then loading them into 42 "/testdata/Basic.dex", 43 "/testdata/FillArrayData.dex"); 62 "/testdata/Basic.dex", 63 "/testdata/TryCatchFinally.dex"); 74 "/testdata/Basic.dex", 75 "/testdata/StaticValues.dex"); 98 "/testdata/Basic.dex", [all...] |
/libcore/luni/src/main/java/libcore/reflect/ |
AnnotationAccess.java | 19 import com.android.dex.ClassDef; 20 import com.android.dex.Dex; 21 import com.android.dex.EncodedValueReader; 22 import com.android.dex.FieldId; 23 import com.android.dex.MethodId; 24 import com.android.dex.ProtoId; 25 import com.android.dex.TypeList; 44 * Look up annotations from a dex file. 51 * Classes like arrays, primitives and proxies will not have a Dex file 187 Dex dex = dexClass.getDex(); local 269 Dex dex = declaringClass.getDex(); local 278 Dex dex = declaringClass.getDex(); local 290 Dex dex = declaringClass.getDex(); local 357 Dex dex = annotationClass.getDex(); local 394 Dex dex = c.getDex(); local 412 Dex dex = c.getDex(); local 429 Dex dex = c.getDex(); local 447 Dex dex = dexClass.getDex(); local 470 Dex dex = dexClass.getDex(); local 484 Dex dex = c.getDex(); local 499 Dex dex = c.getDex(); local 518 Dex dex = c.getDex(); local 647 Dex dex = context.getDex(); local [all...] |
/dalvik/dx/src/com/android/dx/io/ |
DexIndexPrinter.java | 19 import com.android.dex.ClassDef; 20 import com.android.dex.Dex; 21 import com.android.dex.FieldId; 22 import com.android.dex.MethodId; 23 import com.android.dex.ProtoId; 24 import com.android.dex.TableOfContents; 29 * Executable that prints all indices of a dex file. 32 private final Dex dex; field in class:DexIndexPrinter [all...] |
/dalvik/dx/src/com/android/dx/command/dexer/ |
Main.java | 19 import com.android.dex.Dex; 20 import com.android.dex.DexException; 21 import com.android.dex.DexFormat; 22 import com.android.dex.util.FileUtils; 32 import com.android.dx.dex.DexOptions; 33 import com.android.dx.dex.cf.CfOptions; 34 import com.android.dx.dex.cf.CfTranslator; 35 import com.android.dx.dex.cf.CodeStatistics; 36 import com.android.dx.dex.code.PositionList [all...] |
/libcore/libdvm/src/main/java/java/lang/ |
Class.java | 35 import com.android.dex.Dex; 81 * uses internally for identifying the class (for example in a DEX file). 126 * Class def index from dex file. An index of -1 indicates that there is no class definition, 131 /** The type index of this class within the dex file that defines it. */ 150 * Returns the dex file from which this class was loaded. 153 public native Dex getDex(); 155 /** Lazily compute indices in to Dex */ 158 Dex dex = getDex() local 1305 Dex dex = getDex(); local [all...] |