当前位置: 首页>>代码示例>>Java>>正文


Java Dex.open方法代码示例

本文整理汇总了Java中com.android.dex.Dex.open方法的典型用法代码示例。如果您正苦于以下问题:Java Dex.open方法的具体用法?Java Dex.open怎么用?Java Dex.open使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.android.dex.Dex的用法示例。


在下文中一共展示了Dex.open方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: readUnsortedValues

import com.android.dex.Dex; //导入方法依赖的package包/类
private List<UnsortedValue> readUnsortedValues(Dex source, IndexMap indexMap) {
    TableOfContents.Section section = getSection(source.getTableOfContents());
    if (!section.exists()) {
        return Collections.emptyList();
    }

    List<UnsortedValue> result = new ArrayList<UnsortedValue>();
    Dex.Section in = source.open(section.off);
    for (int i = 0; i < section.size; i++) {
        int offset = in.getPosition();
        T value = read(in, indexMap, 0);
        result.add(new UnsortedValue(source, indexMap, value, i, offset));
    }
    return result;
}
 
开发者ID:JLLK,项目名称:multidex-maker,代码行数:16,代码来源:DexMerger.java

示例2: transformAnnotationSets

import com.android.dex.Dex; //导入方法依赖的package包/类
private void transformAnnotationSets(Dex in, IndexMap indexMap) {
    TableOfContents.Section section = in.getTableOfContents().annotationSets;
    if (section.exists()) {
        Dex.Section setIn = in.open(section.off);
        for (int i = 0; i < section.size; i++) {
            transformAnnotationSet(indexMap, setIn);
        }
    }
}
 
开发者ID:JLLK,项目名称:multidex-maker,代码行数:10,代码来源:DexMerger.java

示例3: transformAnnotationSetRefLists

import com.android.dex.Dex; //导入方法依赖的package包/类
private void transformAnnotationSetRefLists(Dex in, IndexMap indexMap) {
    TableOfContents.Section section = in.getTableOfContents().annotationSetRefLists;
    if (section.exists()) {
        Dex.Section setIn = in.open(section.off);
        for (int i = 0; i < section.size; i++) {
            transformAnnotationSetRefList(indexMap, setIn);
        }
    }
}
 
开发者ID:JLLK,项目名称:multidex-maker,代码行数:10,代码来源:DexMerger.java

示例4: transformAnnotationDirectories

import com.android.dex.Dex; //导入方法依赖的package包/类
private void transformAnnotationDirectories(Dex in, IndexMap indexMap) {
    TableOfContents.Section section = in.getTableOfContents().annotationsDirectories;
    if (section.exists()) {
        Dex.Section directoryIn = in.open(section.off);
        for (int i = 0; i < section.size; i++) {
            transformAnnotationDirectory(directoryIn, indexMap);
        }
    }
}
 
开发者ID:JLLK,项目名称:multidex-maker,代码行数:10,代码来源:DexMerger.java

示例5: transformStaticValues

import com.android.dex.Dex; //导入方法依赖的package包/类
private void transformStaticValues(Dex in, IndexMap indexMap) {
    TableOfContents.Section section = in.getTableOfContents().encodedArrays;
    if (section.exists()) {
        Dex.Section staticValuesIn = in.open(section.off);
        for (int i = 0; i < section.size; i++) {
            transformStaticValues(staticValuesIn, indexMap);
        }
    }
}
 
开发者ID:JLLK,项目名称:multidex-maker,代码行数:10,代码来源:DexMerger.java

示例6: readUnsortedValues

import com.android.dex.Dex; //导入方法依赖的package包/类
private List<UnsortedValue> readUnsortedValues(Dex source, IndexMap indexMap) {
    TableOfContents.Section section = getSection(source.getTableOfContents());
    if (!section.exists()) {
        return Collections.emptyList();
    }

    List<UnsortedValue> result = new ArrayList<UnsortedValue>();
    Dex.Section in = source.open(section.off);
    for (int i = 0; i < section.size; i++) {
        int offset = in.getPosition();
        T value = read(in, indexMap, 0);
        result.add(new UnsortedValue(indexMap, value, i, offset));
    }
    return result;
}
 
开发者ID:saleehk,项目名称:buck-cutom,代码行数:16,代码来源:DexMerger.java

示例7: SectionIterator

import com.android.dex.Dex; //导入方法依赖的package包/类
private SectionIterator(Dex dex, IndexMap indexMap) {
    this.tocSection = getSection(dex.getTableOfContents());
    this.dbSection = tocSection.exists() ? dex.open(tocSection.off) : null;
    this.indexMap = indexMap;
    this.index = 0;
}
 
开发者ID:saleehk,项目名称:buck-cutom,代码行数:7,代码来源:DexMerger.java


注:本文中的com.android.dex.Dex.open方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。