Home
last modified time | relevance | path

Searched refs:dex (Results 1 – 25 of 40) sorted by relevance

12

/libcore/luni/src/main/java/libcore/reflect/
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;
169 com.android.dex.Annotation a = getAnnotation(element, annotationClass); in getDeclaredAnnotation()
183 private static com.android.dex.Annotation getAnnotation( in getAnnotation()
191 Dex dex = dexClass.getDex(); in getAnnotation() local
192 Dex.Section setIn = dex.open(annotationSetOffset); // annotation_set_item in getAnnotation()
[all …]
/libcore/dex/src/main/java/com/android/dex/
DMethodId.java17 package com.android.dex;
19 import com.android.dex.util.Unsigned;
22 private final Dex dex; field in MethodId
27 public MethodId(Dex dex, int declaringClassIndex, int protoIndex, int nameIndex) { in MethodId() argument
28 this.dex = dex; in MethodId()
63 if (dex == null) { in toString()
66 return dex.typeNames().get(declaringClassIndex) in toString()
67 + "." + dex.strings().get(nameIndex) in toString()
68 + dex.readTypeList(dex.protoIds().get(protoIndex).getParametersOffset()); in toString()
DProtoId.java17 package com.android.dex;
19 import com.android.dex.util.Unsigned;
22 private final Dex dex; field in ProtoId
27 public ProtoId(Dex dex, int shortyIndex, int returnTypeIndex, int parametersOffset) { in ProtoId() argument
28 this.dex = dex; in ProtoId()
60 if (dex == null) { in toString()
64 return dex.strings().get(shortyIndex) in toString()
65 + ": " + dex.typeNames().get(returnTypeIndex) in toString()
66 + " " + dex.readTypeList(parametersOffset); in toString()
DFieldId.java17 package com.android.dex;
19 import com.android.dex.util.Unsigned;
22 private final Dex dex; field in FieldId
27 public FieldId(Dex dex, int declaringClassIndex, int typeIndex, int nameIndex) { in FieldId() argument
28 this.dex = dex; in FieldId()
63 if (dex == null) { in toString()
66 return dex.typeNames().get(typeIndex) + "." + dex.strings().get(nameIndex); in toString()
DAnnotation.java17 package com.android.dex;
19 import static com.android.dex.EncodedValueReader.ENCODED_ANNOTATION;
25 private final Dex dex; field in Annotation
29 public Annotation(Dex dex, byte visibility, EncodedValue encodedAnnotation) { in Annotation() argument
30 this.dex = dex; in Annotation()
59 return dex == null in toString()
61 : visibility + " " + dex.typeNames().get(getTypeIndex()); in toString()
DTypeList.java17 package com.android.dex;
19 import com.android.dex.util.Unsigned;
25 private final Dex dex; field in TypeList
28 public TypeList(Dex dex, short[] types) { in TypeList() argument
29 this.dex = dex; in TypeList()
50 result.append(dex != null ? dex.typeNames().get(types[i]) : types[i]); in toString()
DEncodedValue.java17 package com.android.dex;
19 import com.android.dex.util.ByteArrayByteInput;
20 import com.android.dex.util.ByteInput;
DDexException.java17 package com.android.dex;
19 import com.android.dex.util.ExceptionWithContext;
DLeb128.java17 package com.android.dex;
19 import com.android.dex.util.ByteInput;
20 import com.android.dex.util.ByteOutput;
DEncodedValueCodec.java17 package com.android.dex;
19 import com.android.dex.util.ByteInput;
20 import com.android.dex.util.ByteOutput;
DDexIndexOverflowException.java17 package com.android.dex;
DMutf8.java17 package com.android.dex;
19 import com.android.dex.util.ByteInput;
DSizeOf.java17 package com.android.dex;
/libcore/luni/src/test/etc/loading-test2-jar/
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/libart/src/main/java/java/lang/
DDexCache.java35 import com.android.dex.Dex;
42 private volatile Dex dex; field in DexCache
78 Dex result = dex; in getDex()
81 result = dex; in getDex()
83 dex = result = getDexNative(); in getDex()
DClass.java35 import com.android.dex.Dex;
456 public String getDexCacheString(Dex dex, int dexStringIndex) { in getDexCacheString() argument
459 s = dex.strings().get(dexStringIndex).intern(); in getDexCacheString()
471 public Class<?> getDexCacheType(Dex dex, int dexTypeIndex) { in getDexCacheType() argument
474 int descriptorIndex = dex.typeIds().get(dexTypeIndex); in getDexCacheType()
475 String descriptor = getDexCacheString(dex, descriptorIndex); in getDexCacheType()
1016 Dex dex = getDex(); in getInterfaces() local
1017 if (dex == null) { in getInterfaces()
1020 short[] interfaces = dex.interfaceTypeIndicesFromClassDefIndex(dexClassDefIndex); in getInterfaces()
1023 result[i] = getDexCacheType(dex, interfaces[i]); in getInterfaces()
[all …]
/libcore/luni/src/test/etc/loading-test-jar/
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/libart/src/main/java/java/lang/reflect/
DAbstractMethod.java35 import com.android.dex.Dex;
158 Dex dex = declaringClassOfOverriddenMethod.getDex(); in getParameterTypes() local
159 short[] types = dex.parameterTypeIndicesFromMethodIndex(dexMethodIndex); in getParameterTypes()
166 parametersArray[i] = declaringClassOfOverriddenMethod.getDexCacheType(dex, types[i]); in getParameterTypes()
279 Dex dex = declaringClassOfOverriddenMethod.getDex(); in equalMethodParameters() local
280 short[] types = dex.parameterTypeIndicesFromMethodIndex(dexMethodIndex); in equalMethodParameters()
285 if (declaringClassOfOverriddenMethod.getDexCacheType(dex, types[i]) != params[i]) { in equalMethodParameters()
293 Dex dex = declaringClassOfOverriddenMethod.getDex(); in compareParameters() local
294 short[] types = dex.parameterTypeIndicesFromMethodIndex(dexMethodIndex); in compareParameters()
297 Class<?> aType = declaringClassOfOverriddenMethod.getDexCacheType(dex, types[i]); in compareParameters()
DMethod.java35 import com.android.dex.Dex;
133 Dex dex = declaringClassOfOverriddenMethod.getDex(); in getName() local
134 int nameIndex = dex.nameIndexFromMethodIndex(dexMethodIndex); in getName()
135 return declaringClassOfOverriddenMethod.getDexCacheString(dex, nameIndex); in getName()
180 Dex dex = declaringClassOfOverriddenMethod.getDex(); in getReturnType() local
181 int returnTypeIndex = dex.returnTypeIndexFromMethodIndex(dexMethodIndex); in getReturnType()
183 return declaringClassOfOverriddenMethod.getDexCacheType(dex, returnTypeIndex); in getReturnType()
DField.java35 import com.android.dex.Dex;
126 Dex dex = declaringClass.getDex(); in getName() local
127 int nameIndex = dex.nameIndexFromFieldIndex(dexFieldIndex); in getName()
128 return declaringClass.getDexCacheString(dex, nameIndex); in getName()
/libcore/dalvik/src/main/java/dalvik/system/
DDexPathList.java224 DexFile dex = null; in makePathElements() local
240 dex = loadDexFile(file, optimizedDirectory); in makePathElements()
248 dex = loadDexFile(file, optimizedDirectory); in makePathElements()
264 if ((zip != null) || (dex != null)) { in makePathElements()
265 elements.add(new Element(dir, false, zip, dex)); in makePathElements()
335 DexFile dex = element.dexFile; in findClass() local
337 if (dex != null) { in findClass()
338 Class clazz = dex.loadClassBinaryName(name, definingContext, suppressed); in findClass()
/libcore/dex/src/main/java/com/android/dex/util/
DByteInput.java17 package com.android.dex.util;
DByteOutput.java17 package com.android.dex.util;
DByteArrayByteInput.java17 package com.android.dex.util;
DUnsigned.java17 package com.android.dex.util;

12