Searched refs:dex (Results 1 - 25 of 39) sorted by relevance

12

/libcore/dex/src/main/java/com/android/dex/util/
H A DByteInput.java17 package com.android.dex.util;
H A DByteOutput.java17 package com.android.dex.util;
H A DByteArrayByteInput.java17 package com.android.dex.util;
H A DUnsigned.java17 package com.android.dex.util;
/libcore/dex/src/main/java/com/android/dex/
H A DAnnotation.java17 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) { argument
30 this.dex = dex;
59 return dex == null
61 : visibility + " " + dex.typeNames().get(getTypeIndex());
H A DDexException.java17 package com.android.dex;
19 import com.android.dex.util.ExceptionWithContext;
23 * processing a dex file.
H A DMethodId.java17 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) { argument
28 this.dex = dex;
63 if (dex == null) {
66 return dex.typeNames().get(declaringClassIndex)
67 + "." + dex.strings().get(nameIndex)
68 + dex
[all...]
H A DProtoId.java17 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) { argument
28 this.dex = dex;
60 if (dex == null) {
64 return dex.strings().get(shortyIndex)
65 + ": " + dex.typeNames().get(returnTypeIndex)
66 + " " + dex
[all...]
H A DFieldId.java17 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) { argument
28 this.dex = dex;
63 if (dex == null) {
66 return dex.typeNames().get(typeIndex) + "." + dex.strings().get(nameIndex);
H A DTypeList.java17 package com.android.dex;
19 import com.android.dex.util.Unsigned;
25 private final Dex dex; field in class:TypeList
28 public TypeList(Dex dex, short[] types) { argument
29 this.dex = dex;
50 result.append(dex != null ? dex.typeNames().get(types[i]) : types[i]);
H A DEncodedValue.java17 package com.android.dex;
19 import com.android.dex.util.ByteArrayByteInput;
20 import com.android.dex.util.ByteInput;
H A DSizeOf.java17 package com.android.dex;
H A DLeb128.java17 package com.android.dex;
19 import com.android.dex.util.ByteInput;
20 import com.android.dex.util.ByteOutput;
H A DEncodedValueCodec.java17 package com.android.dex;
19 import com.android.dex.util.ByteInput;
20 import com.android.dex.util.ByteOutput;
H A DDexFormat.java17 package com.android.dex;
20 * Constants that show up in and are otherwise related to {@code .dex}
36 * file name of the primary {@code .dex} file inside an
39 public static final String DEX_IN_JAR_NAME = "classes.dex";
41 /** common prefix for all dex file "magic numbers" */
42 public static final String MAGIC_PREFIX = "dex\n";
44 /** common suffix for all dex file "magic numbers" */
47 /** dex file version number for the current format variant */
50 /** dex file version number for API level 13 and earlier */
73 * or {@code -1} if the given array is not a well-formed dex fil
[all...]
H A DMutf8.java17 package com.android.dex;
19 import com.android.dex.util.ByteInput;
23 * Modified UTF-8 as described in the dex file format spec.
H A DClassData.java17 package com.android.dex;
/libcore/libart/src/main/java/java/lang/
H A DDexCache.java35 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.
83 Dex result = dex;
86 result = dex;
[all...]
/libcore/libart/src/main/java/java/lang/reflect/
H A DArtField.java35 import com.android.dex.Dex;
69 // Proxy classes have 1 synthesized static field with no valid dex index
75 Dex dex = declaringClass.getDex();
76 int nameIndex = dex.nameIndexFromFieldIndex(fieldDexIndex);
77 return declaringClass.getDexCacheString(dex, nameIndex);
92 Dex dex = declaringClass.getDex();
93 int typeIndex = dex.typeIndexFromFieldIndex(fieldDexIndex);
94 return declaringClass.getDexCacheType(dex, typeIndex);
H A DArtMethod.java35 import com.android.dex.Dex;
69 /* ART: dex cache fast access */
94 Dex dex = artMethod.getDeclaringClass().getDex();
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();
107 short[] types = dex.parameterTypeIndicesFromMethodIndex(artMethod.getDexMethodIndex());
112 if (artMethod.getDexCacheType(dex, types[i]) != params[i]) {
129 Dex dex
180 getDexCacheString(Dex dex, int dexStringIndex) argument
194 getDexCacheType(Dex dex, int dexTypeIndex) argument
[all...]
/libcore/luni/src/test/etc/loading-test2-jar/
H A Dbuild.sh39 rm -rf classes.dex
44 dx --dex --output=classes.dex classes
45 jar cf loading-test2.jar classes.dex -C resources .
48 mv classes.dex ${resourceDir}/loading-test2.dex
/libcore/luni/src/test/etc/loading-test-jar/
H A Dbuild.sh40 rm -rf classes.dex
50 dx --dex --output=classes.dex classes
51 jar cf loading-test.jar classes.dex -C resources .
55 mv classes.dex ${resourceDir}/loading-test.dex
/libcore/luni/src/main/java/libcore/reflect/
H A DAnnotationAccess.java19 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.
170 com.android.dex.Annotation a = getMethodAnnotation(element, annotationClass);
184 private static com.android.dex
541 getTypeIndex(Dex dex, Class<?> c) argument
556 getAnnotationReader( Dex dex, AnnotatedElement element, String annotationName, int expectedFieldCount) argument
598 getOnlyAnnotationValue( Dex dex, AnnotatedElement element, String annotationName) argument
608 getAnnotationClass(Class<?> context, Dex dex, int typeIndex) argument
623 indexToMethod(Class<?> context, Dex dex, int methodIndex) argument
674 toAnnotationInstance(Class<?> context, Dex dex, Class<A> annotationClass, EncodedValueReader reader) argument
698 decodeValue(Class<?> context, Class<?> type, Dex dex, EncodedValueReader reader) argument
[all...]
/libcore/dalvik/src/main/java/dalvik/system/
H A DDexPathList.java37 * One of the lists is a dex/resource path &mdash; typically referred
41 * top-level {@code classes.dex} file as well as arbitrary resources,
42 * or a plain {@code .dex} file (with no possibility of associated
49 private static final String DEX_SUFFIX = ".dex";
58 * List of dex/resource (class path) elements.
77 * @param dexPath list of dex/resource path elements, separated by
81 * @param optimizedDirectory directory where optimized {@code .dex} files
136 * Splits the given dex path string into elements using the path
203 * Makes an array of dex/resource path elements, one per element of
210 * Open all files and load the (direct or contained) dex file
[all...]
/libcore/libdvm/src/main/java/java/lang/
H A DClass.java35 import com.android.dex.Dex;
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.
158 Dex dex = getDex();
159 dexTypeIndex = dex.findTypeIndex(InternalNames.getInternalName(this));
164 dexClassDefIndex = dex.findClassDefIndexFromTypeIndex(dexTypeIndex);
1044 * Returns null. (On Android, a {@code ClassLoader} can load classes from multiple dex files.
1045 * All classes from any given dex file will have the same signers, but different dex
1323 getDexCacheType(Dex dex, int typeIndex) argument
1333 getDexCacheString(Dex dex, int dexStringIndex) argument
[all...]

Completed in 1187 milliseconds

12