Searched refs:dex (Results 1 - 25 of 37) 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 DDexIndexOverflowException.java17 package com.android.dex;
20 * Thrown when there's an index overflow writing a dex file.
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;
38 * A dex cache holds resolved copies of strings, fields, methods, and classes from the dexfile.
41 /** Lazily initialized dex file wrapper. Volatile to avoid double-check locking issues. */
42 private volatile Dex dex; field in class:DexCache
44 /** The location of the associated dex file. */
49 * methods defined in other dex files.
55 * fields defined in other dex files. Either an int array or long array.
61 * types defined in other dex files.
78 Dex result = dex;
81 result = dex;
[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.Dex;
20 import com.android.dex.EncodedValueReader;
21 import com.android.dex.FieldId;
22 import com.android.dex.MethodId;
23 import com.android.dex.ProtoId;
24 import com.android.dex.TypeList;
43 * Look up annotations from a dex file.
169 com.android.dex.Annotation a = getAnnotation(element, annotationClass);
183 private static com.android.dex.Annotation getAnnotation(
191 Dex dex
527 getAnnotationReader( Dex dex, AnnotatedElement element, String annotationName, int expectedFieldCount) argument
569 getOnlyAnnotationValue( Dex dex, AnnotatedElement element, String annotationName) argument
579 getAnnotationClass(Class<?> context, Dex dex, int typeIndex) argument
594 indexToMethod(Class<?> context, Dex dex, int methodIndex) argument
645 toAnnotationInstance(Class<?> context, Dex dex, Class<A> annotationClass, EncodedValueReader reader) argument
669 decodeValue(Class<?> context, Class<?> type, Dex dex, EncodedValueReader reader) argument
[all...]
/libcore/libart/src/main/java/java/lang/reflect/
H A DMethod.java35 import com.android.dex.Dex;
133 Dex dex = declaringClassOfOverriddenMethod.getDex();
134 int nameIndex = dex.nameIndexFromMethodIndex(dexMethodIndex);
135 return declaringClassOfOverriddenMethod.getDexCacheString(dex, nameIndex);
155 // TODO: use dex cache to speed looking up class
180 Dex dex = declaringClassOfOverriddenMethod.getDex();
181 int returnTypeIndex = dex.returnTypeIndexFromMethodIndex(dexMethodIndex);
182 // Note, in the case of a Proxy the dex cache types are equal.
183 return declaringClassOfOverriddenMethod.getDexCacheType(dex, returnTypeIndex);
H A DAbstractMethod.java35 import com.android.dex.Dex;
67 /** The method index of this method within its defining dex file */
134 * Returns the index of this method's ID in its dex file.
158 Dex dex = declaringClassOfOverriddenMethod.getDex();
159 short[] types = dex.parameterTypeIndicesFromMethodIndex(dexMethodIndex);
165 // Note, in the case of a Proxy the dex cache types are equal.
166 parametersArray[i] = declaringClassOfOverriddenMethod.getDexCacheType(dex, types[i]);
279 Dex dex = declaringClassOfOverriddenMethod.getDex();
280 short[] types = dex.parameterTypeIndicesFromMethodIndex(dexMethodIndex);
285 if (declaringClassOfOverriddenMethod.getDexCacheType(dex, type
[all...]
/libcore/dalvik/src/main/java/dalvik/system/
H A DDexPathList.java38 * One of the lists is a dex/resource path &mdash; typically referred
42 * top-level {@code classes.dex} file as well as arbitrary resources,
43 * or a plain {@code .dex} file (with no possibility of associated
50 private static final String DEX_SUFFIX = ".dex";
57 * List of dex/resource (class path) elements.
82 * @param dexPath list of dex/resource path elements, separated by
86 * @param optimizedDirectory directory where optimized {@code .dex} files
170 * Splits the given dex path string into elements using the path
211 * Makes an array of dex/resource path elements, one per element of
218 * Open all files and load the (direct or contained) dex file
[all...]

Completed in 335 milliseconds

12