/dalvik/dexgen/src/com/android/dexgen/dex/file/ |
H A D | IdItem.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dexgen.dex.file; 22 * Representation of a reference to an item inside a Dalvik file. 47 public void addContents(DexFile file) { argument 48 TypeIdsSection typeIds = file.getTypeIds();
|
H A D | MemberIdsSection.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dexgen.dex.file; 20 * Member (field or method) refs list section of a {@code .dex} file. 24 * Constructs an instance. The file offset is initially unknown. 28 * @param file {@code non-null;} file that this instance is part of 30 public MemberIdsSection(String name, DexFile file) { argument 31 super(name, file, 4);
|
H A D | AnnotationSetRefItem.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dexgen.dex.file; 57 public void addContents(DexFile file) { argument 58 MixedItemSection wordData = file.getWordData(); 71 protected void writeTo0(DexFile file, AnnotatedOutput out) { argument
|
H A D | FieldIdItem.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dexgen.dex.file; 22 * Representation of a field reference inside a Dalvik file. 42 public void addContents(DexFile file) { argument 43 super.addContents(file); 45 TypeIdsSection typeIds = file.getTypeIds(); 60 protected int getTypoidIdx(DexFile file) { argument 61 TypeIdsSection typeIds = file.getTypeIds();
|
H A D | HeaderItem.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dexgen.dex.file; 24 * File header section of a {@code .dex} file. 28 * {@code non-null;} the file format magic number, represented as the 60 public void addContents(DexFile file) { argument 66 public void writeTo(DexFile file, AnnotatedOutput out) { argument 67 int mapOff = file.getMap().getFileOffset(); 68 Section firstDataSection = file.getFirstDataSection(); 69 Section lastDataSection = file.getLastDataSection(); 79 Hex.u4(file [all...] |
H A D | HeaderSection.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dexgen.dex.file; 26 * File header section of a {@code .dex} file. 33 * Constructs an instance. The file offset is initially unknown. 35 * @param file {@code non-null;} file that this instance is part of 37 public HeaderSection(DexFile file) { argument 38 super(null, file, 4);
|
H A D | Item.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dexgen.dex.file; 23 * repeated piece of a Dalvik file. 59 * This will <i>not</i> add an item to the file for this instance itself 65 * @param file {@code non-null;} the file to populate 67 public abstract void addContents(DexFile file); argument 76 * @param file {@code non-null;} the file to use for reference 79 public abstract void writeTo(DexFile file, AnnotatedOutpu argument [all...] |
H A D | MemberIdItem.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dexgen.dex.file; 26 * Dalvik file. 29 /** size of instances when written out to a file, in bytes */ 54 public void addContents(DexFile file) { argument 55 super.addContents(file); 57 StringIdsSection stringIds = file.getStringIds(); 63 public final void writeTo(DexFile file, AnnotatedOutput out) { argument 64 TypeIdsSection typeIds = file.getTypeIds(); 65 StringIdsSection stringIds = file 92 getTypoidIdx(DexFile file) argument [all...] |
H A D | MethodIdItem.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dexgen.dex.file; 22 * Representation of a method reference inside a Dalvik file. 42 public void addContents(DexFile file) { argument 43 super.addContents(file); 45 ProtoIdsSection protoIds = file.getProtoIds(); 60 protected int getTypoidIdx(DexFile file) { argument 61 ProtoIdsSection protoIds = file.getProtoIds();
|
H A D | StringDataItem.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dexgen.dex.file; 26 * Representation of string data for a particular string, in a Dalvik file. 65 public void addContents(DexFile file) { argument 71 public void writeTo0(DexFile file, AnnotatedOutput out) { argument
|
H A D | TypeIdItem.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dexgen.dex.file; 25 * Representation of a type reference inside a Dalvik file. 28 /** size of instances when written out to a file, in bytes */ 54 public void addContents(DexFile file) { argument 55 file.getStringIds().intern(getDefiningClass().getDescriptor()); 60 public void writeTo(DexFile file, AnnotatedOutput out) { argument 63 int idx = file.getStringIds().indexOf(descriptor);
|
/dalvik/dx/src/com/android/dx/dex/file/ |
H A D | IdItem.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dx.dex.file; 22 * Representation of a reference to an item inside a Dalvik file. 47 public void addContents(DexFile file) { argument 48 TypeIdsSection typeIds = file.getTypeIds();
|
H A D | MemberIdsSection.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dx.dex.file; 27 * Member (field or method) refs list section of a {@code .dex} file. 32 * Constructs an instance. The file offset is initially unknown. 36 * @param file {@code non-null;} file that this instance is part of 38 public MemberIdsSection(String name, DexFile file) { argument 39 super(name, file, 4); 72 formatter.format("Too many %1$s references to fit in one dex file: %2$d; max is %3$d.%n" +
|
H A D | AnnotationSetRefItem.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dx.dex.file; 58 public void addContents(DexFile file) { argument 59 MixedItemSection wordData = file.getWordData(); 72 protected void writeTo0(DexFile file, AnnotatedOutput out) { argument
|
H A D | FieldIdItem.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dx.dex.file; 22 * Representation of a field reference inside a Dalvik file. 42 public void addContents(DexFile file) { argument 43 super.addContents(file); 45 TypeIdsSection typeIds = file.getTypeIds(); 60 protected int getTypoidIdx(DexFile file) { argument 61 TypeIdsSection typeIds = file.getTypeIds();
|
H A D | HeaderItem.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dx.dex.file; 26 * File header section of a {@code .dex} file. 50 public void addContents(DexFile file) { argument 56 public void writeTo(DexFile file, AnnotatedOutput out) { argument 57 int mapOff = file.getMap().getFileOffset(); 58 Section firstDataSection = file.getFirstDataSection(); 59 Section lastDataSection = file.getLastDataSection(); 64 String magic = file.getDexOptions().getMagic(); 71 Hex.u4(file [all...] |
H A D | HeaderSection.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dx.dex.file; 25 * File header section of a {@code .dex} file. 32 * Constructs an instance. The file offset is initially unknown. 34 * @param file {@code non-null;} file that this instance is part of 36 public HeaderSection(DexFile file) { argument 37 super(null, file, 4);
|
H A D | Item.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dx.dex.file; 23 * repeated piece of a Dalvik file. 59 * This will <i>not</i> add an item to the file for this instance itself 65 * @param file {@code non-null;} the file to populate 67 public abstract void addContents(DexFile file); argument 76 * @param file {@code non-null;} the file to use for reference 79 public abstract void writeTo(DexFile file, AnnotatedOutpu argument [all...] |
H A D | MemberIdItem.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dx.dex.file; 27 * Dalvik file. 52 public void addContents(DexFile file) { argument 53 super.addContents(file); 55 StringIdsSection stringIds = file.getStringIds(); 61 public final void writeTo(DexFile file, AnnotatedOutput out) { argument 62 TypeIdsSection typeIds = file.getTypeIds(); 63 StringIdsSection stringIds = file.getStringIds(); 67 int typoidIdx = getTypoidIdx(file); 90 getTypoidIdx(DexFile file) argument [all...] |
H A D | MethodHandleItem.java | 5 * you may not use this file except in compliance with the License. 16 package com.android.dx.dex.file; 27 * Representation of a method handle in a DEX file. 31 /** The item size when placed in a DEX file. */ 40 * @param methodHandle {@code non-null;} The method handle to represent in the DEX file. 60 public void addContents(DexFile file) { argument 61 MethodHandlesSection methodHandles = file.getMethodHandles(); 67 public void writeTo(DexFile file, AnnotatedOutput out) { argument 68 int targetIndex = getTargetIndex(file); 85 out.writeShort(getTargetIndex(file)); 89 getTargetIndex(DexFile file) argument [all...] |
H A D | MethodIdItem.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dx.dex.file; 22 * Representation of a method reference inside a Dalvik file. 42 public void addContents(DexFile file) { argument 43 super.addContents(file); 45 ProtoIdsSection protoIds = file.getProtoIds(); 60 protected int getTypoidIdx(DexFile file) { argument 61 ProtoIdsSection protoIds = file.getProtoIds();
|
H A D | StringDataItem.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dx.dex.file; 26 * Representation of string data for a particular string, in a Dalvik file. 65 public void addContents(DexFile file) { argument 71 public void writeTo0(DexFile file, AnnotatedOutput out) { argument
|
H A D | TypeIdItem.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dx.dex.file; 26 * Representation of a type reference inside a Dalvik file. 52 public void addContents(DexFile file) { argument 53 file.getStringIds().intern(getDefiningClass().getDescriptor()); 58 public void writeTo(DexFile file, AnnotatedOutput out) { argument 61 int idx = file.getStringIds().indexOf(descriptor);
|
/dalvik/dexgen/src/com/android/dexgen/util/ |
H A D | FileUtils.java | 5 * you may not use this file except in compliance with the License. 35 * Reads the named file, translating {@link IOException} to a 38 * @param fileName {@code non-null;} name of the file to read 39 * @return {@code non-null;} contents of the file 42 File file = new File(fileName); 43 return readFile(file); 47 * Reads the given file, translating {@link IOException} to a 50 * @param file {@code non-null;} the file to read 51 * @return {@code non-null;} contents of the file 53 readFile(File file) argument [all...] |
/dalvik/dx/src/com/android/dex/util/ |
H A D | FileUtils.java | 5 * you may not use this file except in compliance with the License. 31 * Reads the named file, translating {@link IOException} to a 34 * @param fileName {@code non-null;} name of the file to read 35 * @return {@code non-null;} contents of the file 38 File file = new File(fileName); 39 return readFile(file); 43 * Reads the given file, translating {@link IOException} to a 46 * @param file {@code non-null;} the file to read 47 * @return {@code non-null;} contents of the file 49 readFile(File file) argument [all...] |