Searched refs:magic (Results 1 - 11 of 11) sorted by relevance

/dalvik/dx/src/com/android/dex/
H A DDexFormat.java65 /** common prefix for all dex file "magic numbers" */
68 /** common suffix for all dex file "magic numbers" */
90 * Returns the API level corresponding to the given magic number,
92 * magic number.
94 public static int magicToApi(byte[] magic) { argument
95 if (magic.length != 8) {
99 if ((magic[0] != 'd') || (magic[1] != 'e') || (magic[2] != 'x') || (magic[
138 isSupportedDexMagic(byte[] magic) argument
[all...]
H A DTableOfContents.java78 byte[] magic = headerIn.readByteArray(8);
80 if (!DexFormat.isSupportedDexMagic(magic)) {
82 String.format("Unexpected magic: [0x%02x, 0x%02x, 0x%02x, 0x%02x, "
84 magic[0], magic[1], magic[2], magic[3],
85 magic[4], magic[5], magic[
[all...]
/dalvik/dx/src/com/android/dx/dex/file/
H A DHeaderItem.java64 String magic = file.getDexOptions().getMagic();
67 out.annotate(8, "magic: " + new CstString(magic).toQuoted());
79 // Write the magic number.
81 out.writeByte(magic.charAt(i));
/dalvik/libdex/
H A DDexFile.cpp293 const u1* magic; local
310 magic = data;
311 if (memcmp(magic+4, DEX_OPT_MAGIC_VERS, 4) != 0) {
313 magic[4], magic[5], magic[6], magic[7]);
381 const int nonSum = sizeof(pHeader->magic) + sizeof(pHeader->checksum) +
485 const int nonSum = sizeof(pHeader->magic) + sizeof(pHeader->checksum);
H A DDexSwapVerify.cpp253 // magic is ok
2912 const u1* magic = pHeader->magic; local
2913 const u1* version = &magic[4];
2915 if (memcmp(magic, DEX_MAGIC, 4) != 0) {
2916 ALOGE("ERROR: unrecognized magic number (%02x %02x %02x %02x)",
2917 magic[0], magic[1], magic[2], magic[
[all...]
H A DDexFile.h87 /* DEX file magic number */
268 u1 magic[8]; /* includes version number */ member in struct:DexHeader
551 * local byte and structure padding. The first field (magic + version)
558 u1 magic[8]; /* includes version number */ member in struct:DexOptHeader
643 * Detect the file type of the given memory buffer via magic number.
653 * Check to see if the file magic and format version in the given
/dalvik/dx/tests/003-magic-version-access/
H A Drun30 # Bad magic (throws an expection)
31 check_rejected class-bad-magic.txt
/dalvik/tools/dexdeps/src/com/android/dexdeps/
H A DDexData.java67 * Verifies the given magic number.
69 private static boolean verifyMagic(byte[] magic) { argument
70 return Arrays.equals(magic, HeaderItem.DEX_FILE_MAGIC_v035) ||
71 Arrays.equals(magic, HeaderItem.DEX_FILE_MAGIC_v037) ||
72 Arrays.equals(magic, HeaderItem.DEX_FILE_MAGIC_v038);
83 byte[] magic = new byte[8];
84 readBytes(magic);
85 if (!verifyMagic(magic)) {
108 seek(8+4+20); // magic, checksum, signature
542 /* expected magic value
[all...]
/dalvik/dx/src/com/android/dx/cf/direct/
H A DDirectClassFile.java46 /** the expected value of the ClassFile.magic field */
91 * for purposes of verification (such as magic number matching and
176 * for purposes of verification (such as magic number matching and
203 * for purposes of verification (such as magic number matching and
367 * Gets the class file field {@code magic}, but without doing any
370 * @return the magic value
432 * Sees if the .class file header magic has the good value.
434 * @param magic the value of a classfile "magic" field
435 * @return true if the magic i
437 isGoodMagic(int magic) argument
[all...]
/dalvik/dexdump/
H A DDexDump.cpp404 char sanitized[sizeof(pHeader->magic)*2 +1];
406 assert(sizeof(pHeader->magic) == sizeof(pOptHeader->magic));
411 asciify(sanitized, pOptHeader->magic, sizeof(pOptHeader->magic));
412 printf("magic : '%s'\n", sanitized);
428 asciify(sanitized, pHeader->magic, sizeof(pHeader->magic));
429 printf("magic : '%s'\n", sanitized);
2105 pDexFile->pHeader->magic
[all...]
/dalvik/dx/etc/
H A Djasmin.jar ... java.lang.Object implements jas.RuntimeConstants { int magic short version_lo short version_hi jas.CP this_class jas. ...

Completed in 7008 milliseconds