Methods Summary |
---|
public com.android.dex.MethodId | adjust(com.android.dex.MethodId methodId)
return new MethodId(target,
adjustType(methodId.getDeclaringClassIndex()),
adjustProto(methodId.getProtoIndex()),
adjustString(methodId.getNameIndex()));
|
public com.android.dex.FieldId | adjust(com.android.dex.FieldId fieldId)
return new FieldId(target,
adjustType(fieldId.getDeclaringClassIndex()),
adjustType(fieldId.getTypeIndex()),
adjustString(fieldId.getNameIndex()));
|
public com.android.dex.ProtoId | adjust(com.android.dex.ProtoId protoId)
return new ProtoId(target,
adjustString(protoId.getShortyIndex()),
adjustType(protoId.getReturnTypeIndex()),
adjustTypeListOffset(protoId.getParametersOffset()));
|
public com.android.dex.ClassDef | adjust(com.android.dex.ClassDef classDef)
return new ClassDef(target, classDef.getOffset(), adjustType(classDef.getTypeIndex()),
classDef.getAccessFlags(), adjustType(classDef.getSupertypeIndex()),
adjustTypeListOffset(classDef.getInterfacesOffset()), classDef.getSourceFileIndex(),
classDef.getAnnotationsOffset(), classDef.getClassDataOffset(),
classDef.getStaticValuesOffset());
|
public SortableType | adjust(SortableType sortableType)
return new SortableType(sortableType.getDex(), adjust(sortableType.getClassDef()));
|
public com.android.dex.Annotation | adjust(com.android.dex.Annotation annotation)
ByteArrayAnnotatedOutput out = new ByteArrayAnnotatedOutput(32);
new EncodedValueTransformer(out).transformAnnotation(
annotation.getReader());
return new Annotation(target, annotation.getVisibility(),
new EncodedValue(out.toByteArray()));
|
public int | adjustAnnotation(int annotationOffset)
return annotationOffsets.get(annotationOffset);
|
public int | adjustAnnotationDirectory(int annotationDirectoryOffset)
return annotationDirectoryOffsets.get(annotationDirectoryOffset);
|
public int | adjustAnnotationSet(int annotationSetOffset)
return annotationSetOffsets.get(annotationSetOffset);
|
public int | adjustAnnotationSetRefList(int annotationSetRefListOffset)
return annotationSetRefListOffsets.get(annotationSetRefListOffset);
|
public com.android.dex.EncodedValue | adjustEncodedArray(com.android.dex.EncodedValue encodedArray)
ByteArrayAnnotatedOutput out = new ByteArrayAnnotatedOutput(32);
new EncodedValueTransformer(out).transformArray(
new EncodedValueReader(encodedArray, ENCODED_ARRAY));
return new EncodedValue(out.toByteArray());
|
public com.android.dex.EncodedValue | adjustEncodedValue(com.android.dex.EncodedValue encodedValue)
ByteArrayAnnotatedOutput out = new ByteArrayAnnotatedOutput(32);
new EncodedValueTransformer(out).transform(new EncodedValueReader(encodedValue));
return new EncodedValue(out.toByteArray());
|
public int | adjustField(int fieldIndex)
return fieldIds[fieldIndex] & 0xffff;
|
public int | adjustMethod(int methodIndex)
return methodIds[methodIndex] & 0xffff;
|
public int | adjustProto(int protoIndex)
return protoIds[protoIndex] & 0xffff;
|
public int | adjustStaticValues(int staticValuesOffset)
return staticValuesOffsets.get(staticValuesOffset);
|
public int | adjustString(int stringIndex)
return stringIndex == ClassDef.NO_INDEX ? ClassDef.NO_INDEX : stringIds[stringIndex];
|
public int | adjustType(int typeIndex)
return (typeIndex == ClassDef.NO_INDEX) ? ClassDef.NO_INDEX : (typeIds[typeIndex] & 0xffff);
|
public com.android.dex.TypeList | adjustTypeList(com.android.dex.TypeList typeList)
if (typeList == TypeList.EMPTY) {
return typeList;
}
short[] types = typeList.getTypes().clone();
for (int i = 0; i < types.length; i++) {
types[i] = (short) adjustType(types[i]);
}
return new TypeList(target, types);
|
public int | adjustTypeListOffset(int typeListOffset)
return typeListOffsets.get(typeListOffset);
|
public void | putAnnotationDirectoryOffset(int oldOffset, int newOffset)
if (oldOffset <= 0 || newOffset <= 0) {
throw new IllegalArgumentException();
}
annotationDirectoryOffsets.put(oldOffset, newOffset);
|
public void | putAnnotationOffset(int oldOffset, int newOffset)
if (oldOffset <= 0 || newOffset <= 0) {
throw new IllegalArgumentException();
}
annotationOffsets.put(oldOffset, newOffset);
|
public void | putAnnotationSetOffset(int oldOffset, int newOffset)
if (oldOffset <= 0 || newOffset <= 0) {
throw new IllegalArgumentException();
}
annotationSetOffsets.put(oldOffset, newOffset);
|
public void | putAnnotationSetRefListOffset(int oldOffset, int newOffset)
if (oldOffset <= 0 || newOffset <= 0) {
throw new IllegalArgumentException();
}
annotationSetRefListOffsets.put(oldOffset, newOffset);
|
public void | putStaticValuesOffset(int oldOffset, int newOffset)
if (oldOffset <= 0 || newOffset <= 0) {
throw new IllegalArgumentException();
}
staticValuesOffsets.put(oldOffset, newOffset);
|
public void | putTypeListOffset(int oldOffset, int newOffset)
if (oldOffset <= 0 || newOffset <= 0) {
throw new IllegalArgumentException();
}
typeListOffsets.put(oldOffset, newOffset);
|