Lines Matching defs:dex

35 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 = getDeclaringClass().getDex();
130 short[] types = dex.parameterTypeIndicesFromMethodIndex(methodDexIndex);
136 // Note, in the case of a Proxy the dex cache types are equal.
137 parametersArray[i] = getDexCacheType(dex, types[i]);
143 Dex dex = declaringClass.getDex();
144 int returnTypeIndex = dex.returnTypeIndexFromMethodIndex(methodDexIndex);
145 // Note, in the case of a Proxy the dex cache types are equal.
146 return getDexCacheType(dex, returnTypeIndex);
155 Dex dex = getDeclaringClass().getDex();
156 short[] types = dex.parameterTypeIndicesFromMethodIndex(methodDexIndex);
159 Class<?> aType = getDexCacheType(dex, types[i]);
176 * Returns a string from the dex cache, computing the string from the dex file if necessary.
180 private String getDexCacheString(Dex dex, int dexStringIndex) {
183 s = dex.strings().get(dexStringIndex).intern();
190 * Returns a resolved type from the dex cache, computing the string from the dex file if
194 private Class<?> getDexCacheType(Dex dex, int dexTypeIndex) {
197 resolvedType = declaringClass.getDexCacheType(dex, dexTypeIndex);
211 // Proxy method's declaring class' dex cache refers to that of Proxy. The local cache in
212 // Method refers to the original interface's dex cache and is ensured to be resolved by