Home
last modified time | relevance | path

Searched refs:magic (Results 1 – 25 of 90) sorted by relevance

1234

/dalvik/dx/src/com/android/dex/
DDexFormat.java116 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()
DTableOfContents.java78 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/
Dexpected.txt1 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 …]
Dclass-bad-magic.txt2 # classfile with a bad magic value
5 dead babe # magic
Dsmall-class.txt5 cafe babe # magic
Dclass-version-49.0.txt5 cafe babe # magic
Dclass-version-50.0.txt5 cafe babe # magic
Dclass-version-49.1.txt5 cafe babe # magic
Dclass-version-52.1.txt5 cafe babe # magic
Dclass-version-50.1.txt5 cafe babe # magic
Dclass-version-52.0.txt5 cafe babe # magic
Dclass-version-53.0.txt5 cafe babe # magic
Dclass-version-48.0.txt5 cafe babe # magic
Dclass-version-51.1.txt5 cafe babe # magic
Dclass-version-51.0.txt5 cafe babe # magic
Dclass-version-50.65535.txt5 cafe babe # magic
Dclass-version-51.65535.txt5 cafe babe # magic
Dclass-version-44.0.txt5 cafe babe # magic
Dclass-version-48.65535.txt5 cafe babe # magic
Dclass-version-52.65535.txt5 cafe babe # magic
/dalvik/dx/src/com/android/dx/dex/file/
DHeaderItem.java64 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/
DDexData.java71 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/
Dexpected.txt3 magic: cafebabe
32 magic: cafebabe
/dalvik/dx/tests/007-no-superclass/
Dsmall-class.txt5 cafe babe # magic
Dexpected.txt3 magic: cafebabe

1234