@Override protected TableOfContents.Section getTocSection(Dex dex) { return dex.getTableOfContents().annotationSets; }
@Override protected TableOfContents.Section getTocSection(Dex dex) { return dex.getTableOfContents().methodIds; }
@Override protected TableOfContents.Section getTocSection(Dex dex) { return dex.getTableOfContents().annotationSets; }
@Override protected TableOfContents.Section getTocSection(Dex dex) { return dex.getTableOfContents().typeLists; }
@Override protected TableOfContents.Section getTocSection(Dex dex) { return dex.getTableOfContents().annotations; }
@Override protected TableOfContents.Section getTocSection(Dex dex) { return dex.getTableOfContents().classDefs; }
@Override protected TableOfContents.Section getTocSection(Dex dex) { return dex.getTableOfContents().debugInfos; }
@Override protected TableOfContents.Section getTocSection(Dex dex) { return dex.getTableOfContents().fieldIds; }
public ClassDefSectionPatchAlgorithm( DexPatchFile patchFile, Dex oldDex, Dex patchedDex, SparseIndexMap oldToPatchedIndexMap ) { super(patchFile, oldDex, oldToPatchedIndexMap); if (patchedDex != null) { this.patchedClassDefTocSec = patchedDex.getTableOfContents().classDefs; this.patchedClassDefSec = patchedDex.openSection(this.patchedClassDefTocSec); } }
@Override public int getPatchedSectionSize() { // assume each uleb128 field's length may be inflate by 2 bytes. return super.getPatchedSectionSize() + newDex.getTableOfContents().classDatas.size * SizeOf.USHORT; }
public DebugInfoItemSectionPatchAlgorithm( DexPatchFile patchFile, Dex oldDex, Dex patchedDex, SparseIndexMap oldToPatchedIndexMap ) { super(patchFile, oldDex, oldToPatchedIndexMap); if (patchedDex != null) { this.patchedDebugInfoItemTocSec = patchedDex.getTableOfContents().debugInfos; this.patchedDebugInfoItemSec = patchedDex.openSection(this.patchedDebugInfoItemTocSec); } }
public AnnotationsDirectorySectionPatchAlgorithm( DexPatchFile patchFile, Dex oldDex, Dex patchedDex, SparseIndexMap oldToPatchedIndexMap ) { super(patchFile, oldDex, oldToPatchedIndexMap); if (patchedDex != null) { this.patchedAnnotationsDirectoryTocSec = patchedDex.getTableOfContents().annotationsDirectories; this.patchedAnnotationsDirectorySec = patchedDex.openSection(this.patchedAnnotationsDirectoryTocSec); } }
public ProtoIdSectionPatchAlgorithm( DexPatchFile patchFile, Dex oldDex, Dex patchedDex, SparseIndexMap oldToPatchedIndexMap ) { super(patchFile, oldDex, oldToPatchedIndexMap); if (patchedDex != null) { this.patchedProtoIdTocSec = patchedDex.getTableOfContents().protoIds; this.patchedProtoIdSec = patchedDex.openSection(this.patchedProtoIdTocSec); } }
public MethodIdSectionPatchAlgorithm( DexPatchFile patchFile, Dex oldDex, Dex patchedDex, SparseIndexMap oldToPatchedIndexMap ) { super(patchFile, oldDex, oldToPatchedIndexMap); if (patchedDex != null) { this.patchedMethodIdTocSec = patchedDex.getTableOfContents().methodIds; this.patchedMethodIdSec = patchedDex.openSection(this.patchedMethodIdTocSec); } }
public CodeSectionPatchAlgorithm( DexPatchFile patchFile, Dex oldDex, Dex patchedDex, SparseIndexMap oldToPatchedIndexMap ) { super(patchFile, oldDex, oldToPatchedIndexMap); if (patchedDex != null) { this.patchedCodeTocSec = patchedDex.getTableOfContents().codes; this.patchedCodeSec = patchedDex.openSection(this.patchedCodeTocSec); } }
public AnnotationSetRefListSectionPatchAlgorithm( DexPatchFile patchFile, Dex oldDex, Dex patchedDex, SparseIndexMap oldToPatchedIndexMap ) { super(patchFile, oldDex, oldToPatchedIndexMap); if (patchedDex != null) { this.patchedAnnotationSetRefListTocSec = patchedDex.getTableOfContents().annotationSetRefLists; this.patchedAnnotationSetRefListSec = patchedDex.openSection(this.patchedAnnotationSetRefListTocSec); } }
public AnnotationSetSectionPatchAlgorithm( DexPatchFile patchFile, Dex oldDex, Dex patchedDex, SparseIndexMap oldToPatchedIndexMap ) { super(patchFile, oldDex, oldToPatchedIndexMap); if (patchedDex != null) { this.patchedAnnotationSetTocSec = patchedDex.getTableOfContents().annotationSets; this.patchedAnnotationSetSec = patchedDex.openSection(this.patchedAnnotationSetTocSec); } }
public ClassDataSectionPatchAlgorithm( DexPatchFile patchFile, Dex oldDex, Dex patchedDex, SparseIndexMap oldToPatchedIndexMap ) { super(patchFile, oldDex, oldToPatchedIndexMap); if (patchedDex != null) { this.patchedClassDataTocSec = patchedDex.getTableOfContents().classDatas; this.patchedClassDataSec = patchedDex.openSection(this.patchedClassDataTocSec); } }
public AnnotationSectionPatchAlgorithm( DexPatchFile patchFile, Dex oldDex, Dex patchedDex, SparseIndexMap oldToPatchedIndexMap ) { super(patchFile, oldDex, oldToPatchedIndexMap); if (patchedDex != null) { this.patchedAnnotationTocSec = patchedDex.getTableOfContents().annotations; this.patchedAnnotationSec = patchedDex.openSection(this.patchedAnnotationTocSec); } }
public FieldIdSectionPatchAlgorithm( DexPatchFile patchFile, Dex oldDex, Dex patchedDex, SparseIndexMap oldToPatchedIndexMap ) { super(patchFile, oldDex, oldToPatchedIndexMap); if (patchedDex != null) { this.patchedFieldIdTocSec = patchedDex.getTableOfContents().fieldIds; this.patchedFieldIdSec = patchedDex.openSection(this.patchedFieldIdTocSec); } }