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

1234

/external/smali/dexlib/src/main/java/org/jf/dexlib/
H A DItemFactory.java32 protected static Item makeItem(ItemType itemType, DexFile dexFile) { argument
35 return new StringIdItem(dexFile);
37 return new TypeIdItem(dexFile);
39 return new ProtoIdItem(dexFile);
41 return new FieldIdItem(dexFile);
43 return new MethodIdItem(dexFile);
45 return new ClassDefItem(dexFile);
47 return new TypeListItem(dexFile);
49 return new AnnotationSetRefList(dexFile);
51 return new AnnotationSetItem(dexFile);
[all...]
H A DTypeIdItem.java41 * @param dexFile The <code>DexFile</code> that this item belongs to
43 protected TypeIdItem(DexFile dexFile) { argument
44 super(dexFile);
49 * @param dexFile The <code>DexFile</code> that this item will belong to
53 private TypeIdItem(DexFile dexFile, StringIdItem typeDescriptor) { argument
54 super(dexFile);
61 * @param dexFile The <code>DexFile</code> that this item will belong to
67 public static TypeIdItem internTypeIdItem(DexFile dexFile, StringIdItem typeDescriptor) { argument
68 TypeIdItem typeIdItem = new TypeIdItem(dexFile, typeDescriptor);
69 return dexFile
81 internTypeIdItem(DexFile dexFile, String typeDescriptor) argument
98 lookupTypeIdItem(DexFile dexFile, String typeDescriptor) argument
[all...]
H A DHeaderItem.java62 * @param dexFile The <code>DexFile</code> containing this <code>HeaderItem</code>
64 protected HeaderItem(final DexFile dexFile) { argument
65 super(dexFile);
194 out.annotate("file_size: 0x" + Integer.toHexString(dexFile.getFileSize()) + " (" + dexFile.getFileSize() +
196 out.writeInt(dexFile.getFileSize());
210 out.annotate("map_off: 0x" + Integer.toHexString(dexFile.MapItem.getOffset()));
211 out.writeInt(dexFile.MapItem.getOffset());
213 out.annotate("string_ids_size: " + dexFile.StringIdsSection.getItems().size());
214 out.writeInt(dexFile
[all...]
H A DEncodedArrayItem.java42 * @param dexFile The <code>DexFile</code> that this item belongs to
44 protected EncodedArrayItem(DexFile dexFile) { argument
45 super(dexFile);
50 * @param dexFile The <code>DexFile</code> that this item belongs to
53 private EncodedArrayItem(DexFile dexFile, ArrayEncodedSubValue encodedArray) { argument
54 super(dexFile);
61 * @param dexFile The <code>DexFile</code> that this item belongs to
65 public static EncodedArrayItem internEncodedArrayItem(DexFile dexFile, ArrayEncodedSubValue encodedArray) { argument
66 EncodedArrayItem encodedArrayItem = new EncodedArrayItem(dexFile, encodedArray);
67 return dexFile
[all...]
H A DStringIdItem.java42 * @param dexFile The <code>DexFile</code> that this item belongs to
44 protected StringIdItem(DexFile dexFile) { argument
45 super(dexFile);
50 * @param dexFile The <code>DexFile</code> that this item belongs to
53 protected StringIdItem(DexFile dexFile, StringDataItem stringDataItem) { argument
54 super(dexFile);
61 * @param dexFile The <code>DexFile</code> that this item will belong to
66 public static StringIdItem internStringIdItem(DexFile dexFile, String stringValue) { argument
67 StringDataItem stringDataItem = StringDataItem.internStringDataItem(dexFile, stringValue);
71 StringIdItem stringIdItem = new StringIdItem(dexFile, stringDataIte
83 lookupStringIdItem(DexFile dexFile, String stringValue) argument
[all...]
H A DStringDataItem.java43 * @param dexFile The <code>DexFile</code> that this item belongs to
45 protected StringDataItem(DexFile dexFile) { argument
46 super(dexFile);
51 * @param dexFile The <code>DexFile</code> that this item belongs to
54 private StringDataItem(DexFile dexFile, String stringValue) { argument
55 super(dexFile);
63 * @param dexFile The <code>DexFile</code> that this item belongs to
68 public static StringDataItem internStringDataItem(DexFile dexFile, String value) { argument
69 StringDataItem StringDataItem = new StringDataItem(dexFile, value);
70 return dexFile
81 lookupStringDataItem(DexFile dexFile, String value) argument
[all...]
H A DItem.java51 protected final DexFile dexFile; field in class:Item
55 * @param dexFile the <code>DexFile</code> that this item is associated with
57 protected Item(DexFile dexFile) { argument
58 assert dexFile != null;
60 this.dexFile = dexFile;
92 assert !dexFile.getInplace() || (offset == this.offset && this.index == index);
222 return dexFile;
H A DMethodIdItem.java43 * @param dexFile The <code>DexFile</code> that this item belongs to
45 protected MethodIdItem(DexFile dexFile) { argument
46 super(dexFile);
51 * @param dexFile The <code>DexFile</code> that this item belongs to
56 private MethodIdItem(DexFile dexFile, TypeIdItem classType, ProtoIdItem methodPrototype, StringIdItem methodName) { argument
57 this(dexFile);
66 * @param dexFile The <code>DexFile</code> that this item belongs to
73 public static MethodIdItem internMethodIdItem(DexFile dexFile, TypeIdItem classType, argument
75 MethodIdItem methodIdItem = new MethodIdItem(dexFile, classType, methodPrototype, methodName);
76 return dexFile
89 lookupMethodIdItem(DexFile dexFile, TypeIdItem classType, ProtoIdItem methodPrototype, StringIdItem methodName) argument
[all...]
H A DProtoIdItem.java43 * @param dexFile The <code>DexFile</code> that this item belongs to
45 protected ProtoIdItem(DexFile dexFile) { argument
46 super(dexFile);
51 * @param dexFile The <code>DexFile</code> that this item belongs to
55 private ProtoIdItem(DexFile dexFile, TypeIdItem returnType, TypeListItem parameters) { argument
56 this(dexFile);
62 this.shortyDescriptor = StringIdItem.internStringIdItem(dexFile, shortyString);
70 * @param dexFile The <code>DexFile</code> that this item belongs to
76 public static ProtoIdItem internProtoIdItem(DexFile dexFile, TypeIdItem returnType, TypeListItem parameters) { argument
77 ProtoIdItem protoIdItem = new ProtoIdItem(dexFile, returnTyp
90 lookupProtoIdItem(DexFile dexFile, TypeIdItem returnType, TypeListItem parameters) argument
[all...]
H A DFieldIdItem.java43 * @param dexFile The <code>DexFile</code> that this item belongs to
45 protected FieldIdItem(DexFile dexFile) { argument
46 super(dexFile);
51 * @param dexFile The <code>DexFile</code> that this item belongs to
56 private FieldIdItem(DexFile dexFile, TypeIdItem classType, TypeIdItem fieldType, StringIdItem fieldName) { argument
57 this(dexFile);
59 assert classType.dexFile == dexFile;
60 assert fieldType.dexFile == dexFile;
78 internFieldIdItem(DexFile dexFile, TypeIdItem classType, TypeIdItem fieldType, StringIdItem fieldName) argument
94 lookupFieldIdItem(DexFile dexFile, TypeIdItem classType, TypeIdItem fieldType, StringIdItem fieldName) argument
[all...]
H A DAnnotationItem.java43 * @param dexFile The <code>DexFile</code> that this item belongs to
45 protected AnnotationItem(DexFile dexFile) { argument
46 super(dexFile);
51 * @param dexFile The <code>DexFile</code> that this item belongs to
55 private AnnotationItem(DexFile dexFile, AnnotationVisibility visibility, argument
57 super(dexFile);
65 * @param dexFile The <code>DexFile</code> that this item belongs to
71 public static AnnotationItem internAnnotationItem(DexFile dexFile, AnnotationVisibility visibility, argument
73 AnnotationItem annotationItem = new AnnotationItem(dexFile, visibility, annotationValue);
74 return dexFile
[all...]
H A DAnnotationSetRefList.java43 * @param dexFile The <code>DexFile</code> that this item belongs to
45 protected AnnotationSetRefList(DexFile dexFile) { argument
46 super(dexFile);
51 * @param dexFile The <code>DexFile</code> that this item belongs to
54 private AnnotationSetRefList(DexFile dexFile, AnnotationSetItem[] annotationSets) { argument
55 super(dexFile);
62 * @param dexFile The <code>DexFile</code> that this item belongs to
66 public static AnnotationSetRefList internAnnotationSetRefList(DexFile dexFile, argument
70 AnnotationSetRefList annotationSetRefList = new AnnotationSetRefList(dexFile, annotationSetsArray);
71 return dexFile
[all...]
H A DMapItem.java51 * @param dexFile The <code>DexFile</code> that this item belongs to
53 protected MapItem(final DexFile dexFile) { argument
54 super(dexFile);
59 Section[] sections = dexFile.getOrderedSections();
85 Section[] sections = dexFile.getOrderedSections();
97 for (Section section: dexFile.getOrderedSections()) {
106 writeSectionInfo(out, ItemType.TYPE_MAP_LIST, 1, dexFile.MapItem.getOffset());
H A DAnnotationSetItem.java45 * @param dexFile The <code>DexFile</code> that this item belongs to
47 protected AnnotationSetItem(DexFile dexFile) { argument
48 super(dexFile);
53 * @param dexFile The <code>DexFile</code> that this item belongs to
56 private AnnotationSetItem(DexFile dexFile, AnnotationItem[] annotations) { argument
57 super(dexFile);
64 * @param dexFile The <code>DexFile</code> that this item belongs to
68 public static AnnotationSetItem internAnnotationSetItem(DexFile dexFile, List<AnnotationItem> annotations) { argument
71 annotationSetItem = new AnnotationSetItem(dexFile, new AnnotationItem[0]);
75 annotationSetItem = new AnnotationSetItem(dexFile, annotationsArra
[all...]
H A DIndexedSection.java38 * @param dexFile The <code>DexFile</code> that this section belongs to
41 public IndexedSection(DexFile dexFile, ItemType itemType) { argument
42 super(dexFile, itemType);
/external/smali/dexlib/src/main/java/org/jf/dexlib/EncodedValue/
H A DEncodedValue.java50 public static EncodedValue readEncodedValue(DexFile dexFile, Input in) { argument
71 return new StringEncodedValue(dexFile, in, valueArg);
73 return new TypeEncodedValue(dexFile, in, valueArg);
75 return new FieldEncodedValue(dexFile, in, valueArg);
77 return new MethodEncodedValue(dexFile, in, valueArg);
79 return new EnumEncodedValue(dexFile, in, valueArg);
81 return new ArrayEncodedValue(dexFile, in);
83 return new AnnotationEncodedValue(dexFile, in);
H A DArrayEncodedValue.java39 * @param dexFile The <code>DexFile</code> that is being read in
42 protected ArrayEncodedValue(DexFile dexFile, Input in) { argument
43 super(dexFile, in);
H A DAnnotationEncodedValue.java41 * @param dexFile The <code>DexFile</code> that is being read in
44 protected AnnotationEncodedValue(DexFile dexFile, Input in) { argument
45 super(dexFile, in);
/external/smali/dexlib/src/main/java/org/jf/dexlib/Code/
H A DInstructionWithReference.java52 protected InstructionWithReference(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { argument
57 lookupReferencedItem(dexFile, opcode, itemIndex);
76 private void lookupReferencedItem(DexFile dexFile, Opcode opcode, int itemIndex) { argument
79 referencedItem = dexFile.FieldIdsSection.getItemByIndex(itemIndex);
82 referencedItem = dexFile.MethodIdsSection.getItemByIndex(itemIndex);
85 referencedItem = dexFile.TypeIdsSection.getItemByIndex(itemIndex);
88 referencedItem = dexFile.StringIdsSection.getItemByIndex(itemIndex);
/external/smali/dexlib/src/main/java/org/jf/dexlib/Code/Analysis/
H A DDeodexUtil.java45 public final DexFile dexFile; field in class:DeodexUtil
47 public DeodexUtil(DexFile dexFile) { argument
48 this.dexFile = dexFile;
49 OdexHeader odexHeader = dexFile.getOdexHeader();
58 public DeodexUtil(DexFile dexFile, InlineMethodResolver inlineMethodResolver) { argument
59 this.dexFile = dexFile;
110 StringIdItem methodNameItem = StringIdItem.lookupStringIdItem(dexFile, methodName);
129 typeIdItem = TypeIdItem.lookupTypeIdItem(dexFile, methodParam
[all...]
H A DDexFileClassMap.java43 public DexFileClassMap(DexFile dexFile) { argument
44 for (ClassDefItem classDefItem: dexFile.ClassDefsSection.getItems()) {
/external/smali/baksmali/src/main/java/org/jf/baksmali/
H A Ddump.java39 public static void dump(DexFile dexFile, String dumpFileName, String outputDexFileName, boolean sort) argument
44 dexFile.setSortAllItems(true);
47 dexFile.setInplace(true);
56 dexFile.place();
57 dexFile.writeTo(out);
/external/smali/dexlib/src/main/java/org/jf/dexlib/Util/
H A DDebugInfoBuilder.java148 public DebugInfoItem encodeDebugInfo(DexFile dexFile) { argument
164 event.emit(dexFile, out, referencedItems);
173 parameterNamesArray[index++] = StringIdItem.internStringIdItem(dexFile, parameterName);
179 return DebugInfoItem.internDebugInfoItem(dexFile, lineStart, parameterNamesArray, out.toByteArray(),
190 void emit(DexFile dexFile, Output out, List<Item> referencedItems); argument
268 public void emit(DexFile dexFile, Output out, List<Item> referencedItems) { argument
307 public void emit(DexFile dexFile, Output out, List<Item> referencedItems) { argument
310 referencedItems.add(localName==null?null:StringIdItem.internStringIdItem(dexFile, localName));
311 referencedItems.add(localType==null?null:TypeIdItem.internTypeIdItem(dexFile,
312 StringIdItem.internStringIdItem(dexFile, localTyp
337 emit(DexFile dexFile, Output out, List<Item> referencedItems) argument
367 emit(DexFile dexFile, Output out, List<Item> referencedItems) argument
387 emit(DexFile dexFile, Output out, List<Item> referencedItems) argument
405 emit(DexFile dexFile, Output out, List<Item> referencedItems) argument
423 emit(DexFile dexFile, Output out, List<Item> referencedItems) argument
443 emit(DexFile dexFile, Output out, List<Item> referencedItems) argument
[all...]
/external/smali/dexlib/src/main/java/org/jf/dexlib/Code/Format/
H A DInstruction31c.java54 private Instruction31c(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { argument
55 super(dexFile, opcode, buffer, bufferIndex);
75 public Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { argument
76 return new Instruction31c(dexFile, opcode, buffer, bufferIndex);
H A DInstructionWithJumboReference.java50 protected InstructionWithJumboReference(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { argument
51 super(dexFile, opcode, buffer, bufferIndex);

Completed in 204 milliseconds

1234