/cts/tools/dex-tools/test/dex/reader/ |
DexFileReaderTests.java | 39 import dex.structure.DexFile; 55 DexFile dexFile = javaToDexUtil.getFrom(A); 56 assertEquals(1, dexFile.getDefinedClasses().size()); 58 DexClass class1 = getClass(dexFile, "La/b/c/A;"); 59 System.out.println(dexFile); 83 DexFile dexFile = javaToDexUtil.getFrom(T0); 84 assertEquals(1, dexFile.getDefinedClasses().size()); 85 DexClass clazz = dexFile.getDefinedClasses().get(0) [all...] |
LargeDexTests.java | 22 import dex.structure.DexFile; 45 DexFile dexFile = javaToDexUtil.getFrom(source); 46 assertEquals(1, dexFile.getDefinedClasses().size()); 47 DexClass clazz = dexFile.getDefinedClasses().get(0);
|
/cts/tools/signature-tools/test/signature/converter/dex/ |
DexUtilTest.java | 24 import dex.structure.DexFile; 73 DexFile dexFile = dexUtil.getFrom(new JavaSource("A", "public class A{}")); 74 DexClass dexClass = getClass(dexFile, "LA;"); 77 dexFile = dexUtil.getFrom(new JavaSource("B", "public class B<T>{}")); 78 dexClass = getClass(dexFile, "LB;"); 84 DexFile dexFile = dexUtil.getFrom(new JavaSource("A", "public class A{}")); 85 DexClass dexClass = getClass(dexFile, "LA;"); 88 dexFile = dexUtil.getFrom(new JavaSource("B", "public class B<T>{}")) [all...] |
DexTestConverter.java | 21 import dex.structure.DexFile; 42 DexFile dexFile = toDexUtil.getAllFrom(sources); 43 return converter.convertApi("Dex Tests", Collections.singleton(dexFile), visibility);
|
GenericSignatureParserTest.java | 25 import dex.structure.DexFile; 53 DexFile dexFile = dexUtil.getFrom(new JavaSource("B", "public class B<T>{}")); 54 DexClass dexClass = getClass(dexFile, "LB;");
|
/cts/tools/dex-tools/test/dex/reader/util/ |
JavaSourceToDexUtil.java | 36 import com.android.dx.dex.file.DexFile; 43 public dex.structure.DexFile getFrom(JavaSource source) throws IOException{ 47 public dex.structure.DexFile getFrom(JavaSource... source) throws IOException{ 51 public dex.structure.DexFile getAllFrom(Set<JavaSource> sources) throws IOException{ 56 * Converts java source code to a {@link dex.structure.DexFile} loaded by 62 public dex.structure.DexFile getFrom(Set<JavaSource> sources, 75 DexFile dexFile = new DexFile(); 79 dexFile.add(classDefItem) [all...] |
/cts/tools/dex-tools/src/dex/structure/ |
DexFile.java | 23 * {@code DexFile} represents a whole dex file, containing multiple classes. 25 public interface DexFile extends NamedElement { 29 * DexFile}. 32 * DexFile}
|
/dalvik/tests/087-gc-after-link/src/ |
Main.java | 72 Object dexFile = null; 78 * Find the DexFile class, and construct a DexFile object 82 loadClass("dalvik/system/DexFile"); 85 dexFile = ctor.newInstance(DEX_FILE); 93 meth.invoke(dexFile, name, this); 95 if (dexFile != null) { 96 /* close the DexFile to make CloseGuard happy */ 98 meth.invoke(dexFile);
|
/dalvik/libdex/ |
DexFile.h | 497 * Code should regard DexFile as opaque, using the API calls provided here 500 struct DexFile { 539 * On success, return a newly-allocated DexFile. 541 DexFile* dexFileParse(const u1* data, size_t length, int flags); 582 * Free a DexFile structure, along with any associated structures. 584 void dexFileFree(DexFile* pDexFile); 589 DexClassLookup* dexCreateClassLookup(DexFile* pDexFile); 594 const DexClassDef* dexFindClass(const DexFile* pFile, const char* descriptor); 597 * Set up the basic raw data pointers of a DexFile. This function isn't 600 void dexFileSetupBasicPointers(DexFile* pDexFile, const u1* data) [all...] |
DexDebugInfo.h | 24 #include "DexFile.h" 47 const DexFile* pDexFile,
|
DexOptData.h | 25 #include "libdex/DexFile.h" 34 bool dexParseOptData(const u1* data, size_t length, DexFile* pDexFile);
|
DexProto.cpp | 122 return dexGetProtoId(pProto->dexFile, pProto->protoIdx); 129 return dexStringById(pProto->dexFile, protoId->shortyIdx); 135 const DexFile* dexFile = pProto->dexFile; 137 const DexTypeList* typeList = dexGetProtoParameters(dexFile, protoId); 144 length += strlen(dexStringByTypeIdx(dexFile, idx)); 147 length += strlen(dexStringByTypeIdx(dexFile, protoId->returnTypeIdx)); 156 const char* desc = dexStringByTypeIdx(dexFile, idx); 163 strcpy(at, dexStringByTypeIdx(dexFile, protoId->returnTypeIdx)) [all...] |
DexProto.h | 24 #include "DexFile.h" 77 * particular DexFile. 80 const DexFile* dexFile; /* file the idx refers to */ 81 u4 protoIdx; /* index into proto_ids table of dexFile */ 88 const DexFile* pDexFile, const DexMethodId* pMethodId) 90 pProto->dexFile = pDexFile; 123 DEX_INLINE const char* dexGetDescriptorFromMethodId(const DexFile* pDexFile, 137 DEX_INLINE char* dexCopyDescriptorFromMethodId(const DexFile* pDexFile,
|
/cts/tools/dex-tools/src/dex/reader/ |
DexFileImpl.java | 24 import dex.structure.DexFile; 30 /* package */final class DexFileImpl implements DexFile { 57 * @see dex.reader.DexFile#getDefinedClasses() 87 return "DexFile";
|
/dalvik/dexgen/src/com/android/dexgen/dex/file/ |
Item.java | 58 * Populates a {@link DexFile} with items from within this instance. 67 public abstract void addContents(DexFile file); 71 * using the given {@link DexFile} to look things up as needed. 79 public abstract void writeTo(DexFile file, AnnotatedOutput out);
|
FieldIdItem.java | 42 public void addContents(DexFile file) { 60 protected int getTypoidIdx(DexFile file) {
|
MethodIdItem.java | 42 public void addContents(DexFile file) { 60 protected int getTypoidIdx(DexFile file) {
|
EncodedMember.java | 67 * Populates a {@link DexFile} with items from within this instance. 71 public abstract void addContents(DexFile file); 84 public abstract int encode(DexFile file, AnnotatedOutput out,
|
/dalvik/dx/src/com/android/dx/dex/file/ |
Item.java | 58 * Populates a {@link DexFile} with items from within this instance. 67 public abstract void addContents(DexFile file); 71 * using the given {@link DexFile} to look things up as needed. 79 public abstract void writeTo(DexFile file, AnnotatedOutput out);
|
FieldIdItem.java | 42 public void addContents(DexFile file) { 60 protected int getTypoidIdx(DexFile file) {
|
MethodIdItem.java | 42 public void addContents(DexFile file) { 60 protected int getTypoidIdx(DexFile file) {
|
EncodedMember.java | 67 * Populates a {@link DexFile} with items from within this instance. 71 public abstract void addContents(DexFile file); 84 public abstract int encode(DexFile file, AnnotatedOutput out,
|
/cts/tools/signature-tools/src/signature/converter/dex/ |
DexFactory.java | 19 import dex.structure.DexFile; 36 Set<DexFile> files = DexUtil.getDexFiles(fileNames);
|
/dalvik/dx/src/com/android/dx/command/findusages/ |
Main.java | 26 String dexFile = args[0]; 30 DexBuffer dex = new DexBuffer(new File(dexFile));
|
/dalvik/dx/src/com/android/dx/command/grep/ |
Main.java | 27 String dexFile = args[0]; 30 DexBuffer dex = new DexBuffer(new File(dexFile));
|