/dalvik/dexgen/src/com/android/dexgen/util/ |
D | FileUtils.java | 42 File file = new File(fileName); in readFile() local 43 return readFile(file); in readFile() 53 public static byte[] readFile(File file) { in readFile() argument 54 if (!file.exists()) { in readFile() 55 throw new RuntimeException(file + ": file not found"); in readFile() 58 if (!file.isFile()) { in readFile() 59 throw new RuntimeException(file + ": not a file"); in readFile() 62 if (!file.canRead()) { in readFile() 63 throw new RuntimeException(file + ": file not readable"); in readFile() 66 long longLength = file.length(); in readFile() [all …]
|
/dalvik/dx/src/com/android/dx/dex/file/ |
D | HeaderItem.java | 17 package com.android.dx.dex.file; 50 public void addContents(DexFile file) { in addContents() argument 56 public void writeTo(DexFile file, AnnotatedOutput out) { in writeTo() argument 57 int mapOff = file.getMap().getFileOffset(); in writeTo() 58 Section firstDataSection = file.getFirstDataSection(); in writeTo() 59 Section lastDataSection = file.getLastDataSection(); in writeTo() 64 String magic = file.getDexOptions().getMagic(); in writeTo() 71 Hex.u4(file.getFileSize())); in writeTo() 87 out.writeInt(file.getFileSize()); in writeTo() 100 file.getStringIds().writeHeaderPart(out); in writeTo() [all …]
|
D | MethodIdItem.java | 17 package com.android.dx.dex.file; 42 public void addContents(DexFile file) { in addContents() argument 43 super.addContents(file); in addContents() 45 ProtoIdsSection protoIds = file.getProtoIds(); in addContents() 60 protected int getTypoidIdx(DexFile file) { in getTypoidIdx() argument 61 ProtoIdsSection protoIds = file.getProtoIds(); in getTypoidIdx()
|
D | FieldIdItem.java | 17 package com.android.dx.dex.file; 42 public void addContents(DexFile file) { in addContents() argument 43 super.addContents(file); in addContents() 45 TypeIdsSection typeIds = file.getTypeIds(); in addContents() 60 protected int getTypoidIdx(DexFile file) { in getTypoidIdx() argument 61 TypeIdsSection typeIds = file.getTypeIds(); in getTypoidIdx()
|
D | MemberIdItem.java | 17 package com.android.dx.dex.file; 52 public void addContents(DexFile file) { in addContents() argument 53 super.addContents(file); in addContents() 55 StringIdsSection stringIds = file.getStringIds(); in addContents() 61 public final void writeTo(DexFile file, AnnotatedOutput out) { in writeTo() argument 62 TypeIdsSection typeIds = file.getTypeIds(); in writeTo() 63 StringIdsSection stringIds = file.getStringIds(); in writeTo() 67 int typoidIdx = getTypoidIdx(file); in writeTo() 90 protected abstract int getTypoidIdx(DexFile file); in getTypoidIdx() argument
|
D | DebugInfoItem.java | 17 package com.android.dx.dex.file; 63 public void addContents(DexFile file) { in addContents() argument 97 public void annotateTo(DexFile file, AnnotatedOutput out, String prefix) { in annotateTo() argument 98 encode(file, prefix, null, out, false); in annotateTo() 113 protected void writeTo0(DexFile file, AnnotatedOutput out) { in writeTo0() argument 121 encode(file, null, null, out, true); in writeTo0() 139 private byte[] encode(DexFile file, String prefix, PrintWriter debugPrint, in encode() argument 141 byte[] result = encode0(file, prefix, debugPrint, out, consume); in encode() 143 if (ENABLE_ENCODER_SELF_CHECK && (file != null)) { in encode() 145 DebugInfoDecoder.validateEncode(result, file, ref, code, in encode() [all …]
|
D | UniformItemSection.java | 17 package com.android.dx.dex.file; 38 public UniformItemSection(String name, DexFile file, int alignment) { in UniformItemSection() argument 39 super(name, file, alignment); in UniformItemSection() 70 DexFile file = getFile(); in prepare0() local 75 one.addContents(file); in prepare0() 82 DexFile file = getFile(); in writeTo0() local 86 one.writeTo(file, out); in writeTo0()
|
D | ClassDataItem.java | 17 package com.android.dx.dex.file; 225 public void addContents(DexFile file) { in addContents() argument 229 field.addContents(file); in addContents() 236 field.addContents(file); in addContents() 243 method.addContents(file); in addContents() 250 method.addContents(file); in addContents() 339 private void encodeOutput(DexFile file, AnnotatedOutput out) { in encodeOutput() argument 347 encodeSize(file, out, "static_fields", staticFields.size()); in encodeOutput() 348 encodeSize(file, out, "instance_fields", instanceFields.size()); in encodeOutput() 349 encodeSize(file, out, "direct_methods", directMethods.size()); in encodeOutput() [all …]
|
D | Section.java | 17 package com.android.dx.dex.file; 31 private final DexFile file; field in Section 68 public Section(String name, DexFile file, int alignment) { in Section() argument 69 if (file == null) { in Section() 76 this.file = file; in Section() 88 return file; in getFile()
|
D | ValueEncoder.java | 17 package com.android.dx.dex.file; 98 private final DexFile file; field in ValueEncoder 109 public ValueEncoder(DexFile file, AnnotatedOutput out) { in ValueEncoder() argument 110 if (file == null) { in ValueEncoder() 118 this.file = file; in ValueEncoder() 157 int index = file.getStringIds().indexOf((CstString) cst); in writeConstant() 162 int index = file.getTypeIds().indexOf((CstType) cst); in writeConstant() 167 int index = file.getFieldIds().indexOf((CstFieldRef) cst); in writeConstant() 172 int index = file.getMethodIds().indexOf((CstMethodRef) cst); in writeConstant() 178 int index = file.getFieldIds().indexOf(fieldRef); in writeConstant() [all …]
|
D | TypeIdItem.java | 17 package com.android.dx.dex.file; 52 public void addContents(DexFile file) { in addContents() argument 53 file.getStringIds().intern(getDefiningClass().getDescriptor()); in addContents() 58 public void writeTo(DexFile file, AnnotatedOutput out) { in writeTo() argument 61 int idx = file.getStringIds().indexOf(descriptor); in writeTo()
|
/dalvik/dexgen/src/com/android/dexgen/dex/file/ |
D | HeaderItem.java | 17 package com.android.dexgen.dex.file; 60 public void addContents(DexFile file) { in addContents() argument 66 public void writeTo(DexFile file, AnnotatedOutput out) { in writeTo() argument 67 int mapOff = file.getMap().getFileOffset(); in writeTo() 68 Section firstDataSection = file.getFirstDataSection(); in writeTo() 69 Section lastDataSection = file.getLastDataSection(); in writeTo() 79 Hex.u4(file.getFileSize())); in writeTo() 95 out.writeInt(file.getFileSize()); in writeTo() 108 file.getStringIds().writeHeaderPart(out); in writeTo() 109 file.getTypeIds().writeHeaderPart(out); in writeTo() [all …]
|
D | MethodIdItem.java | 17 package com.android.dexgen.dex.file; 42 public void addContents(DexFile file) { in addContents() argument 43 super.addContents(file); in addContents() 45 ProtoIdsSection protoIds = file.getProtoIds(); in addContents() 60 protected int getTypoidIdx(DexFile file) { in getTypoidIdx() argument 61 ProtoIdsSection protoIds = file.getProtoIds(); in getTypoidIdx()
|
D | FieldIdItem.java | 17 package com.android.dexgen.dex.file; 42 public void addContents(DexFile file) { in addContents() argument 43 super.addContents(file); in addContents() 45 TypeIdsSection typeIds = file.getTypeIds(); in addContents() 60 protected int getTypoidIdx(DexFile file) { in getTypoidIdx() argument 61 TypeIdsSection typeIds = file.getTypeIds(); in getTypoidIdx()
|
D | MemberIdItem.java | 17 package com.android.dexgen.dex.file; 54 public void addContents(DexFile file) { in addContents() argument 55 super.addContents(file); in addContents() 57 StringIdsSection stringIds = file.getStringIds(); in addContents() 63 public final void writeTo(DexFile file, AnnotatedOutput out) { in writeTo() argument 64 TypeIdsSection typeIds = file.getTypeIds(); in writeTo() 65 StringIdsSection stringIds = file.getStringIds(); in writeTo() 69 int typoidIdx = getTypoidIdx(file); in writeTo() 92 protected abstract int getTypoidIdx(DexFile file); in getTypoidIdx() argument
|
D | UniformItemSection.java | 17 package com.android.dexgen.dex.file; 39 public UniformItemSection(String name, DexFile file, int alignment) { in UniformItemSection() argument 40 super(name, file, alignment); in UniformItemSection() 71 DexFile file = getFile(); in prepare0() local 76 one.addContents(file); in prepare0() 83 DexFile file = getFile(); in writeTo0() local 87 one.writeTo(file, out); in writeTo0()
|
D | DebugInfoItem.java | 17 package com.android.dexgen.dex.file; 66 public void addContents(DexFile file) { in addContents() argument 100 public void annotateTo(DexFile file, AnnotatedOutput out, String prefix) { in annotateTo() argument 101 encode(file, prefix, null, out, false); in annotateTo() 116 protected void writeTo0(DexFile file, AnnotatedOutput out) { in writeTo0() argument 124 encode(file, null, null, out, true); in writeTo0() 142 private byte[] encode(DexFile file, String prefix, PrintWriter debugPrint, in encode() argument 144 byte[] result = encode0(file, prefix, debugPrint, out, consume); in encode() 146 if (ENABLE_ENCODER_SELF_CHECK && (file != null)) { in encode() 148 DebugInfoDecoder.validateEncode(result, file, ref, code, in encode() [all …]
|
D | ClassDataItem.java | 17 package com.android.dexgen.dex.file; 229 public void addContents(DexFile file) { in addContents() argument 233 field.addContents(file); in addContents() 240 field.addContents(file); in addContents() 247 method.addContents(file); in addContents() 254 method.addContents(file); in addContents() 343 private void encodeOutput(DexFile file, AnnotatedOutput out) { in encodeOutput() argument 351 encodeSize(file, out, "static_fields", staticFields.size()); in encodeOutput() 352 encodeSize(file, out, "instance_fields", instanceFields.size()); in encodeOutput() 353 encodeSize(file, out, "direct_methods", directMethods.size()); in encodeOutput() [all …]
|
D | Section.java | 17 package com.android.dexgen.dex.file; 32 private final DexFile file; field in Section 69 public Section(String name, DexFile file, int alignment) { in Section() argument 70 if (file == null) { in Section() 77 this.file = file; in Section() 89 return file; in getFile()
|
D | ValueEncoder.java | 17 package com.android.dexgen.dex.file; 99 private final DexFile file; field in ValueEncoder 110 public ValueEncoder(DexFile file, AnnotatedOutput out) { in ValueEncoder() argument 111 if (file == null) { in ValueEncoder() 119 this.file = file; in ValueEncoder() 158 int index = file.getStringIds().indexOf((CstString) cst); in writeConstant() 163 int index = file.getTypeIds().indexOf((CstType) cst); in writeConstant() 168 int index = file.getFieldIds().indexOf((CstFieldRef) cst); in writeConstant() 173 int index = file.getMethodIds().indexOf((CstMethodRef) cst); in writeConstant() 179 int index = file.getFieldIds().indexOf(fieldRef); in writeConstant() [all …]
|
D | TypeIdItem.java | 17 package com.android.dexgen.dex.file; 54 public void addContents(DexFile file) { in addContents() argument 55 file.getStringIds().intern(getDefiningClass().getDescriptor()); in addContents() 60 public void writeTo(DexFile file, AnnotatedOutput out) { in writeTo() argument 63 int idx = file.getStringIds().indexOf(descriptor); in writeTo()
|
D | MemberIdsSection.java | 17 package com.android.dexgen.dex.file; 30 public MemberIdsSection(String name, DexFile file) { in MemberIdsSection() argument 31 super(name, file, 4); in MemberIdsSection()
|
D | Item.java | 17 package com.android.dexgen.dex.file; 67 public abstract void addContents(DexFile file); in addContents() argument 79 public abstract void writeTo(DexFile file, AnnotatedOutput out); in writeTo() argument
|
/dalvik/tools/ |
D | dexcheck | 57 for file in $files; do 58 echo $file 59 errout=`adb shell "dexdump /data/dalvik-cache/$file > dev/null"` 62 echo " Failure in $file: $errout"
|
/dalvik/dx/src/com/android/dx/cf/direct/ |
D | ClassPathOpener.java | 83 void onProcessArchiveStart(File file); in onProcessArchiveStart() argument 142 File file = new File(pathname); in process() local 144 return processOne(file, true); in process() 155 private boolean processOne(File file, boolean topLevel) { in processOne() argument 157 if (file.isDirectory()) { in processOne() 158 return processDirectory(file, topLevel); in processOne() 161 String path = file.getPath(); in processOne() 166 return processArchive(file); in processOne() 169 byte[] bytes = FileUtils.readFile(file); in processOne() 170 return consumer.processFileBytes(path, file.lastModified(), bytes); in processOne() [all …]
|