Searched defs:dexFile (Results 1 - 25 of 85) sorted by relevance

1234

/external/smali/baksmali/src/main/java/org/jf/baksmali/
H A Ddump.java43 public static void dump(DexBackedDexFile dexFile, String dumpFileName, int apiLevel) throws IOException { argument
55 RawDexFile rawDexFile = new RawDexFile(new Opcodes(apiLevel), dexFile);
H A Dbaksmali.java57 public static boolean disassembleDexFile(DexFile dexFile, final baksmaliOptions options) { argument
68 Iterables.concat(options.bootClassPathEntries, extraClassPathEntries), dexFile,
130 List<? extends ClassDef> classDefs = Ordering.natural().sortedCopy(dexFile.getClasses());
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/
H A DDexReader.java37 public DexReader(@Nonnull DexBackedDexFile dexFile, int offset) { argument
38 super(dexFile, offset);
H A DDexBackedAnnotation.java41 @Nonnull public final DexBackedDexFile dexFile; field in class:DexBackedAnnotation
47 public DexBackedAnnotation(@Nonnull DexBackedDexFile dexFile, argument
49 this.dexFile = dexFile;
51 DexReader reader = dexFile.readerAt(annotationOffset);
58 @Nonnull @Override public String getType() { return dexFile.getType(typeIndex); }
63 DexReader reader = dexFile.readerAt(elementsOffset);
66 return new VariableSizeSet<DexBackedAnnotationElement>(dexFile, reader.getOffset(), size) {
H A DDexBackedAnnotationElement.java41 @Nonnull private final DexBackedDexFile dexFile; field in class:DexBackedAnnotationElement
46 this.dexFile = reader.dexBuf;
51 @Nonnull @Override public String getName() { return dexFile.getString(nameIndex); }
H A DDexBackedMethodImplementation.java51 @Nonnull public final DexBackedDexFile dexFile; field in class:DexBackedMethodImplementation
55 public DexBackedMethodImplementation(@Nonnull DexBackedDexFile dexFile, argument
58 this.dexFile = dexFile;
63 @Override public int getRegisterCount() { return dexFile.readUshort(codeOffset); }
67 int instructionsSize = dexFile.readSmallUint(codeOffset + CodeItem.INSTRUCTION_COUNT_OFFSET);
74 return new VariableSizeLookaheadIterator<Instruction>(dexFile, instructionsStartOffset) {
90 final int triesSize = dexFile.readUshort(codeOffset + CodeItem.TRIES_SIZE_OFFSET);
92 int instructionsSize = dexFile.readSmallUint(codeOffset + CodeItem.INSTRUCTION_COUNT_OFFSET);
101 return new DexBackedTryBlock(dexFile,
[all...]
H A DDexBackedTryBlock.java42 @Nonnull public final DexBackedDexFile dexFile; field in class:DexBackedTryBlock
46 public DexBackedTryBlock(@Nonnull DexBackedDexFile dexFile, argument
49 this.dexFile = dexFile;
55 return dexFile.readSmallUint(tryItemOffset + CodeItem.TryItem.START_ADDRESS_OFFSET);
59 return dexFile.readUshort(tryItemOffset + CodeItem.TryItem.CODE_UNIT_COUNT_OFFSET);
65 DexReader reader = dexFile.readerAt(
66 handlersStartOffset + dexFile.readUshort(tryItemOffset + CodeItem.TryItem.HANDLER_OFFSET));
71 return new VariableSizeList<DexBackedTypedExceptionHandler>(dexFile, reader.getOffset(), encodedSize) {
81 return new VariableSizeList<DexBackedExceptionHandler>(dexFile, reade
[all...]
H A DDexBackedTypedExceptionHandler.java37 @Nonnull private final DexBackedDexFile dexFile; field in class:DexBackedTypedExceptionHandler
42 this.dexFile = reader.dexBuf;
47 @Nonnull @Override public String getExceptionType() { return dexFile.getType(typeId); }
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/instruction/
H A DDexBackedInstruction10t.java41 public DexBackedInstruction10t(@Nonnull DexBackedDexFile dexFile, argument
44 super(dexFile, opcode, instructionStart);
47 @Override public int getCodeOffset() { return dexFile.readByte(instructionStart + 1); }
H A DDexBackedInstruction10x.java41 public DexBackedInstruction10x(@Nonnull DexBackedDexFile dexFile, argument
44 super(dexFile, opcode, instructionStart);
H A DDexBackedInstruction11x.java41 public DexBackedInstruction11x(@Nonnull DexBackedDexFile dexFile, argument
44 super(dexFile, opcode, instructionStart);
47 @Override public int getRegisterA() { return dexFile.readUbyte(instructionStart + 1); }
H A DDexBackedInstruction20t.java41 public DexBackedInstruction20t(@Nonnull DexBackedDexFile dexFile, argument
44 super(dexFile, opcode, instructionStart);
47 @Override public int getCodeOffset() { return dexFile.readShort(instructionStart + 2); }
H A DDexBackedInstruction30t.java41 public DexBackedInstruction30t(@Nonnull DexBackedDexFile dexFile, argument
44 super(dexFile, opcode, instructionStart);
47 @Override public int getCodeOffset() { return dexFile.readInt(instructionStart + 2); }
H A DDexBackedUnknownInstruction.java41 public DexBackedUnknownInstruction(@Nonnull DexBackedDexFile dexFile, argument
43 super(dexFile, Opcode.NOP, instructionStart);
47 int opcode = dexFile.readUbyte(instructionStart);
49 opcode = dexFile.readUshort(instructionStart);
H A DDexBackedInstruction.java44 @Nonnull public final DexBackedDexFile dexFile; field in class:DexBackedInstruction
48 public DexBackedInstruction(@Nonnull DexBackedDexFile dexFile, argument
51 this.dexFile = dexFile;
74 private static DexBackedInstruction buildInstruction(@Nonnull DexBackedDexFile dexFile, @Nullable Opcode opcode, argument
77 return new DexBackedUnknownInstruction(dexFile, instructionStartOffset);
81 return new DexBackedInstruction10t(dexFile, opcode, instructionStartOffset);
83 return new DexBackedInstruction10x(dexFile, opcode, instructionStartOffset);
85 return new DexBackedInstruction11n(dexFile, opcode, instructionStartOffset);
87 return new DexBackedInstruction11x(dexFile, opcod
[all...]
H A DDexBackedInstruction11n.java42 public DexBackedInstruction11n(@Nonnull DexBackedDexFile dexFile, argument
45 super(dexFile, opcode, instructionStart);
50 return NibbleUtils.extractLowUnsignedNibble(dexFile.readByte(instructionStart + 1));
55 return NibbleUtils.extractHighSignedNibble(dexFile.readByte(instructionStart + 1));
H A DDexBackedInstruction12x.java42 public DexBackedInstruction12x(@Nonnull DexBackedDexFile dexFile, argument
45 super(dexFile, opcode, instructionStart);
50 return NibbleUtils.extractLowUnsignedNibble(dexFile.readByte(instructionStart + 1));
55 return NibbleUtils.extractHighUnsignedNibble(dexFile.readByte(instructionStart + 1));
H A DDexBackedInstruction20bc.java44 public DexBackedInstruction20bc(@Nonnull DexBackedDexFile dexFile, argument
47 super(dexFile, opcode, instructionStart);
50 @Override public int getVerificationError() { return dexFile.readUbyte(instructionStart + 1) & 0x3f; }
56 return DexBackedReference.makeReference(dexFile, referenceType, dexFile.readUshort(instructionStart + 2));
60 int referenceType = (dexFile.readUbyte(instructionStart + 1) >>> 6) + 1;
H A DDexBackedInstruction21c.java43 public DexBackedInstruction21c(@Nonnull DexBackedDexFile dexFile, argument
46 super(dexFile, opcode, instructionStart);
49 @Override public int getRegisterA() { return dexFile.readUbyte(instructionStart + 1); }
54 return DexBackedReference.makeReference(dexFile, opcode.referenceType, dexFile.readUshort(instructionStart + 2));
H A DDexBackedInstruction21ih.java41 public DexBackedInstruction21ih(@Nonnull DexBackedDexFile dexFile, argument
44 super(dexFile, opcode, instructionStart);
47 @Override public int getRegisterA() { return dexFile.readUbyte(instructionStart + 1); }
50 @Override public short getHatLiteral() { return (short)dexFile.readShort(instructionStart + 2); }
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/reference/
H A DDexBackedReference.java42 public static Reference makeReference(@Nonnull DexBackedDexFile dexFile, int referenceType, int referenceIndex) { argument
45 return new DexBackedStringReference(dexFile, referenceIndex);
47 return new DexBackedTypeReference(dexFile, referenceIndex);
49 return new DexBackedMethodReference(dexFile, referenceIndex);
51 return new DexBackedFieldReference(dexFile, referenceIndex);
H A DDexBackedStringReference.java40 @Nonnull public final DexBackedDexFile dexFile; field in class:DexBackedStringReference
45 this.dexFile = dexBuf;
51 return dexFile.getString(stringIndex);
H A DDexBackedTypeReference.java40 @Nonnull public final DexBackedDexFile dexFile; field in class:DexBackedTypeReference
43 public DexBackedTypeReference(@Nonnull DexBackedDexFile dexFile, argument
45 this.dexFile = dexFile;
50 return dexFile.getType(typeIndex);
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/immutable/
H A DImmutableDexFile.java54 public static ImmutableDexFile of(DexFile dexFile) { argument
55 if (dexFile instanceof ImmutableDexFile) {
56 return (ImmutableDexFile)dexFile;
58 return new ImmutableDexFile(dexFile.getClasses());
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/
H A DDexFileFactory.java53 public static DexBackedDexFile loadDexFile(File dexFile, int api) throws IOException { argument
54 return loadDexFile(dexFile, new Opcodes(api));
58 public static DexBackedDexFile loadDexFile(File dexFile, @Nonnull Opcodes opcodes) throws IOException { argument
62 zipFile = new ZipFile(dexFile);
68 throw new NoClassesDexException("zip file %s does not contain a classes.dex file", dexFile.getName());
73 "The classes.dex file in %s is too small to be a valid dex file", dexFile.getName());
75 throw new ExceptionWithContext("The classes.dex file in %s is too large to read in", dexFile.getName());
95 InputStream inputStream = new BufferedInputStream(new FileInputStream(dexFile));
111 throw new ExceptionWithContext("%s is not an apk, dex file or odex file.", dexFile.getPath());
114 public static void writeDexFile(String path, DexFile dexFile) throw argument
[all...]

Completed in 655 milliseconds

1234