Searched refs:dexFile (Results 1 - 25 of 97) sorted by relevance

1234

/external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/reference/
H A DDexBackedFieldReference.java41 @Nonnull public final DexBackedDexFile dexFile; field in class:DexBackedFieldReference
44 public DexBackedFieldReference(@Nonnull DexBackedDexFile dexFile, int fieldIndex) { argument
45 this.dexFile = dexFile;
46 this.fieldIdItemOffset = dexFile.getFieldIdItemOffset(fieldIndex);
52 return dexFile.getType(dexFile.readUshort(fieldIdItemOffset + FieldIdItem.CLASS_OFFSET));
58 return dexFile.getString(dexFile.readSmallUint(fieldIdItemOffset + FieldIdItem.NAME_OFFSET));
64 return dexFile
[all...]
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);
H A DDexBackedMethodReference.java46 @Nonnull public final DexBackedDexFile dexFile; field in class:DexBackedMethodReference
50 public DexBackedMethodReference(@Nonnull DexBackedDexFile dexFile, int methodIndex) { argument
51 this.dexFile = dexFile;
52 this.methodIdItemOffset = dexFile.getMethodIdItemOffset(methodIndex);
58 return dexFile.getType(dexFile.readUshort(methodIdItemOffset + MethodIdItem.CLASS_OFFSET));
64 return dexFile.getString(dexFile.readSmallUint(methodIdItemOffset + MethodIdItem.NAME_OFFSET));
71 final int parametersOffset = dexFile
[all...]
H A DDexBackedStringReference.java40 @Nonnull public final DexBackedDexFile dexFile; field in class:DexBackedStringReference
45 this.dexFile = dexBuf;
51 return dexFile.getString(stringIndex);
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/instruction/
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 DDexBackedInstruction22b.java41 public DexBackedInstruction22b(@Nonnull DexBackedDexFile dexFile, argument
44 super(dexFile, opcode, instructionStart);
47 @Override public int getRegisterA() { return dexFile.readUbyte(instructionStart + 1); }
48 @Override public int getRegisterB() { return dexFile.readUbyte(instructionStart + 2); }
49 @Override public int getNarrowLiteral() { return dexFile.readByte(instructionStart + 3); }
H A DDexBackedInstruction23x.java41 public DexBackedInstruction23x(@Nonnull DexBackedDexFile dexFile, argument
44 super(dexFile, opcode, instructionStart);
47 @Override public int getRegisterA() { return dexFile.readUbyte(instructionStart + 1); }
48 @Override public int getRegisterB() { return dexFile.readUbyte(instructionStart + 2); }
49 @Override public int getRegisterC() { return dexFile.readUbyte(instructionStart + 3); }
H A DDexBackedInstruction3rmi.java41 public DexBackedInstruction3rmi(@Nonnull DexBackedDexFile dexFile, argument
44 super(dexFile, opcode, instructionStart);
48 return dexFile.readUbyte(instructionStart + 1);
53 return dexFile.readUshort(instructionStart + 4);
58 return dexFile.readUshort(instructionStart + 2);
H A DDexBackedInstruction3rms.java41 public DexBackedInstruction3rms(@Nonnull DexBackedDexFile dexFile, argument
44 super(dexFile, opcode, instructionStart);
48 return dexFile.readUbyte(instructionStart + 1);
53 return dexFile.readUshort(instructionStart + 4);
58 return dexFile.readUshort(instructionStart + 2);
H A DDexBackedInstruction35c.java44 public DexBackedInstruction35c(@Nonnull DexBackedDexFile dexFile, argument
47 super(dexFile, opcode, instructionStart);
51 return NibbleUtils.extractHighUnsignedNibble(dexFile.readUbyte(instructionStart + 1));
56 return NibbleUtils.extractLowUnsignedNibble(dexFile.readUbyte(instructionStart + 4));
61 return NibbleUtils.extractHighUnsignedNibble(dexFile.readUbyte(instructionStart + 4));
66 return NibbleUtils.extractLowUnsignedNibble(dexFile.readUbyte(instructionStart + 5));
71 return NibbleUtils.extractHighUnsignedNibble(dexFile.readUbyte(instructionStart + 5));
76 return NibbleUtils.extractLowUnsignedNibble(dexFile.readUbyte(instructionStart + 1));
82 return DexBackedReference.makeReference(dexFile, opcode.referenceType,
83 dexFile
[all...]
H A DDexBackedInstruction3rc.java43 public DexBackedInstruction3rc(@Nonnull DexBackedDexFile dexFile, argument
46 super(dexFile, opcode, instructionStart);
50 return dexFile.readUbyte(instructionStart + 1);
55 return dexFile.readUshort(instructionStart + 4);
61 return DexBackedReference.makeReference(dexFile, opcode.referenceType,
62 dexFile.readUshort(instructionStart + 2));
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 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); }
H A DDexBackedInstruction21lh.java41 public DexBackedInstruction21lh(@Nonnull DexBackedDexFile dexFile, argument
44 super(dexFile, opcode, instructionStart);
47 @Override public int getRegisterA() { return dexFile.readUbyte(instructionStart + 1); }
49 @Override public short getHatLiteral() { return (short)dexFile.readShort(instructionStart + 2); }
H A DDexBackedInstruction21s.java41 public DexBackedInstruction21s(@Nonnull DexBackedDexFile dexFile, argument
44 super(dexFile, opcode, instructionStart);
47 @Override public int getRegisterA() { return dexFile.readUbyte(instructionStart + 1); }
48 @Override public int getNarrowLiteral() { return dexFile.readShort(instructionStart + 2); }
H A DDexBackedInstruction21t.java41 public DexBackedInstruction21t(@Nonnull DexBackedDexFile dexFile, argument
44 super(dexFile, opcode, instructionStart);
47 @Override public int getRegisterA() { return dexFile.readUbyte(instructionStart + 1); }
48 @Override public int getCodeOffset() { return dexFile.readShort(instructionStart + 2); }
H A DDexBackedInstruction22x.java41 public DexBackedInstruction22x(@Nonnull DexBackedDexFile dexFile, argument
44 super(dexFile, opcode, instructionStart);
47 @Override public int getRegisterA() { return dexFile.readUbyte(instructionStart + 1); }
48 @Override public int getRegisterB() { return dexFile.readUshort(instructionStart + 2); }
/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 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/raw/
H A DFieldIdItem.java57 int classIndex = dexFile.readUshort(out.getCursor());
58 out.annotate(2, "class_idx = %s", TypeIdItem.getReferenceAnnotation(dexFile, classIndex));
60 int typeIndex = dexFile.readUshort(out.getCursor());
61 out.annotate(2, "return_type_idx = %s", TypeIdItem.getReferenceAnnotation(dexFile, typeIndex));
63 int nameIndex = dexFile.readSmallUint(out.getCursor());
64 out.annotate(4, "name_idx = %s", StringIdItem.getReferenceAnnotation(dexFile, nameIndex));
70 public static String asString(@Nonnull DexBackedDexFile dexFile, int fieldIndex) { argument
71 int fieldOffset = dexFile.getFieldIdItemOffset(fieldIndex);
72 int classIndex = dexFile.readUshort(fieldOffset + CLASS_OFFSET);
73 String classType = dexFile
85 getReferenceAnnotation(@onnull DexBackedDexFile dexFile, int fieldIndex) argument
95 getFields(@onnull RawDexFile dexFile) argument
[all...]
H A DMethodIdItem.java57 int classIndex = dexFile.readUshort(out.getCursor());
58 out.annotate(2, "class_idx = %s", TypeIdItem.getReferenceAnnotation(dexFile, classIndex));
60 int protoIndex = dexFile.readUshort(out.getCursor());
61 out.annotate(2, "proto_idx = %s", ProtoIdItem.getReferenceAnnotation(dexFile, protoIndex));
63 int nameIndex = dexFile.readSmallUint(out.getCursor());
64 out.annotate(4, "name_idx = %s", StringIdItem.getReferenceAnnotation(dexFile, nameIndex));
70 public static String asString(@Nonnull DexBackedDexFile dexFile, int methodIndex) { argument
71 int methodOffset = dexFile.getMethodIdItemOffset(methodIndex);
72 int classIndex = dexFile.readUshort(methodOffset + CLASS_OFFSET);
73 String classType = dexFile
85 getReferenceAnnotation(@onnull DexBackedDexFile dexFile, int methodIndex) argument
95 getMethods(@onnull RawDexFile dexFile) argument
[all...]
H A DHeaderItem.java87 @Nonnull private RawDexFile dexFile; field in class:HeaderItem
89 public HeaderItem(@Nonnull RawDexFile dexFile) { argument
90 this.dexFile = dexFile;
94 return dexFile.readSmallUint(CHECKSUM_OFFSET);
98 return dexFile.readByteRange(SIGNATURE_OFFSET, SIGNATURE_SIZE);
102 return dexFile.readSmallUint(MAP_OFFSET);
106 return dexFile.readSmallUint(HEADER_SIZE_OFFSET);
110 return dexFile.readSmallUint(STRING_COUNT_OFFSET);
114 return dexFile
[all...]
H A DAnnotationDirectoryItem.java59 int classAnnotationsOffset = dexFile.readSmallUint(out.getCursor());
61 AnnotationSetItem.getReferenceAnnotation(dexFile, classAnnotationsOffset));
63 int fieldsSize = dexFile.readSmallUint(out.getCursor());
66 int annotatedMethodsSize = dexFile.readSmallUint(out.getCursor());
69 int annotatedParameterSize = dexFile.readSmallUint(out.getCursor());
78 int fieldIndex = dexFile.readSmallUint(out.getCursor());
79 out.annotate(4, "%s", FieldIdItem.getReferenceAnnotation(dexFile, fieldIndex));
80 int annotationOffset = dexFile.readSmallUint(out.getCursor());
81 out.annotate(4, "%s", AnnotationSetItem.getReferenceAnnotation(dexFile, annotationOffset));
93 int methodIndex = dexFile
[all...]
H A DProtoIdItem.java57 int shortyIndex = dexFile.readSmallUint(out.getCursor());
58 out.annotate(4, "shorty_idx = %s", StringIdItem.getReferenceAnnotation(dexFile, shortyIndex));
60 int returnTypeIndex = dexFile.readSmallUint(out.getCursor());
61 out.annotate(4, "return_type_idx = %s", TypeIdItem.getReferenceAnnotation(dexFile, returnTypeIndex));
63 int parametersOffset = dexFile.readSmallUint(out.getCursor());
64 out.annotate(4, "parameters_off = %s", TypeListItem.getReferenceAnnotation(dexFile, parametersOffset));
70 public static String getReferenceAnnotation(@Nonnull DexBackedDexFile dexFile, int protoIndex) { argument
72 String protoString = asString(dexFile, protoIndex);
81 public static String asString(@Nonnull DexBackedDexFile dexFile, int protoIndex) { argument
82 int offset = dexFile
98 getProtos(@onnull RawDexFile dexFile) argument
[all...]

Completed in 1417 milliseconds

1234