Searched refs:magic (Results 1 – 25 of 90) sorted by relevance
1234
/dalvik/dx/src/com/android/dex/ |
D | DexFormat.java | 116 public static int magicToApi(byte[] magic) { in magicToApi() argument 117 if (magic.length != 8) { in magicToApi() 121 if ((magic[0] != 'd') || (magic[1] != 'e') || (magic[2] != 'x') || (magic[3] != '\n') || in magicToApi() 122 (magic[7] != '\0')) { in magicToApi() 126 String version = "" + ((char) magic[4]) + ((char) magic[5]) +((char) magic[6]); in magicToApi() 176 public static boolean isSupportedDexMagic(byte[] magic) { in isSupportedDexMagic() argument 177 int api = magicToApi(magic); in isSupportedDexMagic()
|
D | TableOfContents.java | 78 byte[] magic = headerIn.readByteArray(8); in readHeader() 80 if (!DexFormat.isSupportedDexMagic(magic)) { in readHeader() 84 magic[0], magic[1], magic[2], magic[3], in readHeader() 85 magic[4], magic[5], magic[6], magic[7]); in readHeader() 89 apiLevel = DexFormat.magicToApi(magic); in readHeader()
|
/dalvik/dx/tests/003-magic-version-access/ |
D | expected.txt | 1 reading class-bad-magic.txt... 3 magic: deadbabe 8 bad class file magic (deadbabe) 9 ...while parsing class-bad-magic.txt 12 magic: cafebabe 21 magic: cafebabe 30 magic: cafebabe 51 magic: cafebabe 72 magic: cafebabe 93 magic: cafebabe [all …]
|
D | class-bad-magic.txt | 2 # classfile with a bad magic value 5 dead babe # magic
|
D | small-class.txt | 5 cafe babe # magic
|
D | class-version-49.0.txt | 5 cafe babe # magic
|
D | class-version-50.0.txt | 5 cafe babe # magic
|
D | class-version-49.1.txt | 5 cafe babe # magic
|
D | class-version-52.1.txt | 5 cafe babe # magic
|
D | class-version-50.1.txt | 5 cafe babe # magic
|
D | class-version-52.0.txt | 5 cafe babe # magic
|
D | class-version-53.0.txt | 5 cafe babe # magic
|
D | class-version-48.0.txt | 5 cafe babe # magic
|
D | class-version-51.1.txt | 5 cafe babe # magic
|
D | class-version-51.0.txt | 5 cafe babe # magic
|
D | class-version-50.65535.txt | 5 cafe babe # magic
|
D | class-version-51.65535.txt | 5 cafe babe # magic
|
D | class-version-44.0.txt | 5 cafe babe # magic
|
D | class-version-48.65535.txt | 5 cafe babe # magic
|
D | class-version-52.65535.txt | 5 cafe babe # magic
|
/dalvik/dx/src/com/android/dx/dex/file/ |
D | HeaderItem.java | 64 String magic = file.getDexOptions().getMagic(); in writeTo() local 67 out.annotate(8, "magic: " + new CstString(magic).toQuoted()); in writeTo() 81 out.writeByte(magic.charAt(i)); in writeTo()
|
/dalvik/tools/dexdeps/src/com/android/dexdeps/ |
D | DexData.java | 71 private static boolean verifyMagic(byte[] magic) { in verifyMagic() argument 72 return Arrays.equals(magic, HeaderItem.DEX_FILE_MAGIC_v035) || in verifyMagic() 73 Arrays.equals(magic, HeaderItem.DEX_FILE_MAGIC_v037) || in verifyMagic() 74 Arrays.equals(magic, HeaderItem.DEX_FILE_MAGIC_v038) || in verifyMagic() 75 Arrays.equals(magic, HeaderItem.DEX_FILE_MAGIC_v039); in verifyMagic() 86 byte[] magic = new byte[8]; in parseHeaderItem() 87 readBytes(magic); in parseHeaderItem() 88 if (!verifyMagic(magic)) { in parseHeaderItem()
|
/dalvik/dx/tests/028-class-attrib-EnclosingMethod/ |
D | expected.txt | 3 magic: cafebabe 32 magic: cafebabe
|
/dalvik/dx/tests/007-no-superclass/ |
D | small-class.txt | 5 cafe babe # magic
|
D | expected.txt | 3 magic: cafebabe
|
1234