/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;");
|
/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));
|
/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/ |
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,
|
DexSwapVerify.cpp | 21 #include "DexFile.h" 77 const DexFile* pDexFile; // set after intraitem verification [all...] |
/libcore/dalvik/src/main/java/dalvik/system/ |
DexPathList.java | 204 DexFile dex = null; 233 * the DexFile constructor if the zip file turns 252 * Constructs a {@code DexFile} instance, as appropriate depending 255 private static DexFile loadDexFile(File file, File optimizedDirectory) 258 return new DexFile(file); 261 return DexFile.loadDex(file.getPath(), optimizedPath, 0); 312 DexFile dex = element.dexFile; 390 public final DexFile dexFile; [all...] |
/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...] |
/frameworks/base/test-runner/src/android/test/ |
ClassPathPackageInfoSource.java | 22 import dalvik.system.DexFile; 210 DexFile dexFile = null; 212 dexFile = new DexFile(apkPath); 213 Enumeration<String> apkClassNames = dexFile.entries(); 236 if (dexFile != null) { 238 // dexFile.close();
|
/sdk/sdkmanager/libs/sdklib/src/com/android/sdklib/build/ |
ApkBuilderMain.java | 49 File dexFile = null; 80 if (dexFile != null) { 89 dexFile = new File(args[index++]); 128 ApkBuilder builder = new ApkBuilder(outApk, zipArchives.get(0), dexFile,
|
ApkBuilder.java | 375 * @param dexFile the file representing the dex file. This can be null for apk with no code. 381 public ApkBuilder(File apkFile, File resFile, File dexFile, String debugStoreOsPath, 386 init(apkFile, resFile, dexFile, info.key, info.certificate, verboseStream); 388 init(apkFile, resFile, dexFile, null /*key*/, null/*certificate*/, verboseStream); 405 * @param dexFile the file representing the dex file. This can be null for apk with no code. 412 public ApkBuilder(File apkFile, File resFile, File dexFile, PrivateKey key, 414 init(apkFile, resFile, dexFile, key, certificate, verboseStream); 425 private void init(File apkFile, File resFile, File dexFile, PrivateKey key, 431 if (dexFile != null) { 432 checkInputFile(mDexFile = dexFile); [all...] |
/sdk/anttasks/src/com/android/ant/ |
ApkBuilderTask.java | 215 File dexFile = null; 223 dexFile = new File(dexFiles[0]); 236 inputPaths.add(new InputPath(dexFile)); 334 dexFile,
|
/cts/tools/vm-tests-tf/src/util/build/ |
BuildDalvikSuite.java | 387 BuildStep.BuildFile dexFile = new BuildStep.BuildFile( 390 DFHBuildStep buildStep = new DFHBuildStep(inputFile, dexFile); 394 JarBuildStep jarBuildStep = new JarBuildStep(dexFile, 406 BuildStep.BuildFile dexFile = new BuildStep.BuildFile( 409 DasmBuildStep buildStep = new DasmBuildStep(inputFile, dexFile); 414 JarBuildStep jarBuildStep = new JarBuildStep(dexFile,
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/project/ |
ExportHelper.java | 142 File dexFile = File.createTempFile(TEMP_PREFIX, AdtConstants.DOT_DEX); 143 dexFile.deleteOnExit(); 204 helper.executeDx(javaProject, dxInput, dexFile.getAbsolutePath()); 210 dexFile.getAbsolutePath(),
|
/cts/tools/vm-tests/src/util/build/ |
BuildDalvikSuite.java | 540 BuildStep.BuildFile dexFile = new BuildStep.BuildFile( 543 DFHBuildStep buildStep = new DFHBuildStep(inputFile, dexFile); 547 JarBuildStep jarBuildStep = new JarBuildStep(dexFile, 559 BuildStep.BuildFile dexFile = new BuildStep.BuildFile( 562 DasmBuildStep buildStep = new DasmBuildStep(inputFile, dexFile); 567 JarBuildStep jarBuildStep = new JarBuildStep(dexFile,
|
/cts/tools/signature-tools/src/signature/converter/dex/ |
DexUtil.java | 40 import dex.structure.DexFile; 583 public static Set<DexFile> getDexFiles(Set<String> fileNames) 585 Set<DexFile> parsedFiles = new HashSet<DexFile>(); 587 for (String dexFile : fileNames) { 589 DexBuffer dexBuffer = new DexBuffer(dexFile);
|
DexToSigConverter.java | 93 import dex.structure.DexFile; 128 public SigApi convertApi(String apiName, Set<DexFile> dexFiles, 138 * Converts the given {@link DexFile}s into the corresponding (packages 145 /* package */Set<IPackage> convertPackages(Set<DexFile> parsedFiles) { 153 for (DexFile dexFile : parsedFiles) { 154 List<DexClass> definedClasses = dexFile.getDefinedClasses(); [all...] |
/cts/tools/dasm/src/dasm/ |
DAsm.java | 34 import com.android.dx.dex.file.DexFile; 89 DexFile dexFile; 332 dexFile.add(classDef); [all...] |