/external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/reference/ |
DexBackedFieldReference.java | 41 @Nonnull public final DexBackedDexFile dexFile; 44 public DexBackedFieldReference(@Nonnull DexBackedDexFile dexFile, int fieldIndex) { 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.getType(dexFile.readUshort(fieldIdItemOffset + FieldIdItem.TYPE_OFFSET)) [all...] |
DexBackedTypeReference.java | 40 @Nonnull public final DexBackedDexFile dexFile; 43 public DexBackedTypeReference(@Nonnull DexBackedDexFile dexFile, 45 this.dexFile = dexFile; 50 return dexFile.getType(typeIndex);
|
DexBackedMethodReference.java | 46 @Nonnull public final DexBackedDexFile dexFile; 50 public DexBackedMethodReference(@Nonnull DexBackedDexFile dexFile, int methodIndex) { 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.readSmallUint(protoIdItemOffset + ProtoIdItem.PARAMETERS_OFFSET) [all...] |
DexBackedStringReference.java | 40 @Nonnull public final DexBackedDexFile dexFile; 45 this.dexFile = dexBuf; 51 return dexFile.getString(stringIndex);
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/instruction/ |
DexBackedInstruction.java | 44 @Nonnull public final DexBackedDexFile dexFile; 48 public DexBackedInstruction(@Nonnull DexBackedDexFile dexFile, 51 this.dexFile = dexFile; 74 private static DexBackedInstruction buildInstruction(@Nonnull DexBackedDexFile dexFile, @Nullable Opcode opcode, 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, opcode, instructionStartOffset) [all...] |
DexBackedInstruction22b.java | 41 public DexBackedInstruction22b(@Nonnull DexBackedDexFile dexFile, 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); }
|
DexBackedInstruction23x.java | 41 public DexBackedInstruction23x(@Nonnull DexBackedDexFile dexFile, 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); }
|
DexBackedInstruction3rmi.java | 41 public DexBackedInstruction3rmi(@Nonnull DexBackedDexFile dexFile, 44 super(dexFile, opcode, instructionStart); 48 return dexFile.readUbyte(instructionStart + 1); 53 return dexFile.readUshort(instructionStart + 4); 58 return dexFile.readUshort(instructionStart + 2);
|
DexBackedInstruction3rms.java | 41 public DexBackedInstruction3rms(@Nonnull DexBackedDexFile dexFile, 44 super(dexFile, opcode, instructionStart); 48 return dexFile.readUbyte(instructionStart + 1); 53 return dexFile.readUshort(instructionStart + 4); 58 return dexFile.readUshort(instructionStart + 2);
|
DexBackedInstruction35c.java | 44 public DexBackedInstruction35c(@Nonnull DexBackedDexFile dexFile, 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.readUshort(instructionStart + 2)) [all...] |
DexBackedInstruction3rc.java | 43 public DexBackedInstruction3rc(@Nonnull DexBackedDexFile dexFile, 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));
|
DexBackedInstruction12x.java | 42 public DexBackedInstruction12x(@Nonnull DexBackedDexFile dexFile, 45 super(dexFile, opcode, instructionStart); 50 return NibbleUtils.extractLowUnsignedNibble(dexFile.readByte(instructionStart + 1)); 55 return NibbleUtils.extractHighUnsignedNibble(dexFile.readByte(instructionStart + 1));
|
DexBackedInstruction21ih.java | 41 public DexBackedInstruction21ih(@Nonnull DexBackedDexFile dexFile, 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); }
|
DexBackedInstruction21lh.java | 41 public DexBackedInstruction21lh(@Nonnull DexBackedDexFile dexFile, 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); }
|
DexBackedInstruction21s.java | 41 public DexBackedInstruction21s(@Nonnull DexBackedDexFile dexFile, 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); }
|
DexBackedInstruction21t.java | 41 public DexBackedInstruction21t(@Nonnull DexBackedDexFile dexFile, 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); }
|
DexBackedInstruction22x.java | 41 public DexBackedInstruction22x(@Nonnull DexBackedDexFile dexFile, 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/ |
DexReader.java | 37 public DexReader(@Nonnull DexBackedDexFile dexFile, int offset) { 38 super(dexFile, offset);
|
DexBackedTryBlock.java | 42 @Nonnull public final DexBackedDexFile dexFile; 46 public DexBackedTryBlock(@Nonnull DexBackedDexFile dexFile, 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, reader.getOffset(), sizeWithCatchAll) [all...] |
DexBackedTypedExceptionHandler.java | 37 @Nonnull private final DexBackedDexFile dexFile; 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/ |
FieldIdItem.java | 57 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) { 71 int fieldOffset = dexFile.getFieldIdItemOffset(fieldIndex); 72 int classIndex = dexFile.readUshort(fieldOffset + CLASS_OFFSET); 73 String classType = dexFile.getType(classIndex) [all...] |
MethodIdItem.java | 57 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) { 71 int methodOffset = dexFile.getMethodIdItemOffset(methodIndex); 72 int classIndex = dexFile.readUshort(methodOffset + CLASS_OFFSET); 73 String classType = dexFile.getType(classIndex) [all...] |
HeaderItem.java | 92 @Nonnull private RawDexFile dexFile; 94 public HeaderItem(@Nonnull RawDexFile dexFile) { 95 this.dexFile = dexFile; 99 return dexFile.readSmallUint(CHECKSUM_OFFSET); 103 return dexFile.readByteRange(SIGNATURE_OFFSET, SIGNATURE_SIZE); 107 return dexFile.readSmallUint(MAP_OFFSET); 111 return dexFile.readSmallUint(HEADER_SIZE_OFFSET); 115 return dexFile.readSmallUint(STRING_COUNT_OFFSET); 119 return dexFile.readSmallUint(STRING_START_OFFSET) [all...] |
AnnotationDirectoryItem.java | 59 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.readSmallUint(out.getCursor()) [all...] |
ProtoIdItem.java | 57 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) { 72 String protoString = asString(dexFile, protoIndex); 81 public static String asString(@Nonnull DexBackedDexFile dexFile, int protoIndex) { 82 int offset = dexFile.getProtoIdItemOffset(protoIndex) [all...] |