Searched defs:magic (Results 1 - 7 of 7) sorted by relevance
/dalvik/dx/src/com/android/dex/ |
H A D | DexFormat.java | 78 /** common prefix for all dex file "magic numbers" */ 81 /** common suffix for all dex file "magic numbers" */ 103 * Returns the API level corresponding to the given magic number, 105 * magic number. 107 * @param magic array of bytes containing DEX file magic string 108 * @return API level corresponding to magic string if valid, -1 otherwise. 110 public static int magicToApi(byte[] magic) { argument 111 if (magic.length != 8) { 115 if ((magic[ 166 isSupportedDexMagic(byte[] magic) argument [all...] |
/dalvik/dx/src/com/android/dx/cf/direct/ |
H A D | DirectClassFile.java | 46 /** the expected value of the ClassFile.magic field */ 93 * for purposes of verification (such as magic number matching and 178 * for purposes of verification (such as magic number matching and 205 * for purposes of verification (such as magic number matching and 381 * Gets the class file field {@code magic}, but without doing any 384 * @return the magic value 446 * Sees if the .class file header magic has the good value. 448 * @param magic the value of a classfile "magic" field 449 * @return true if the magic i 451 isGoodMagic(int magic) argument [all...] |
/dalvik/libdex/ |
H A D | DexFile.cpp | 290 const u1* magic; local 307 magic = data; 308 if (memcmp(magic+4, DEX_OPT_MAGIC_VERS, 4) != 0) { 310 magic[4], magic[5], magic[6], magic[7]); 378 const int nonSum = sizeof(pHeader->magic) + sizeof(pHeader->checksum) + 482 const int nonSum = sizeof(pHeader->magic) + sizeof(pHeader->checksum);
|
H A D | DexSwapVerify.cpp | 253 // magic is ok 2899 const u1* magic = pHeader->magic; local 2900 const u1* version = &magic[4]; 2902 if (memcmp(magic, DEX_MAGIC, 4) != 0) { 2903 ALOGE("ERROR: unrecognized magic number (%02x %02x %02x %02x)", 2904 magic[0], magic[1], magic[2], magic[ [all...] |
H A D | DexFile.h | 87 /* DEX file magic number */ 273 u1 magic[8]; /* includes version number */ member in struct:DexHeader 556 * local byte and structure padding. The first field (magic + version) 563 u1 magic[8]; /* includes version number */ member in struct:DexOptHeader 648 * Detect the file type of the given memory buffer via magic number. 658 * Check to see if the file magic and format version in the given
|
/dalvik/tools/dexdeps/src/com/android/dexdeps/ |
H A D | DexData.java | 67 * 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) || 73 Arrays.equals(magic, HeaderItem.DEX_FILE_MAGIC_v039); 84 byte[] magic = new byte[8]; 85 readBytes(magic); 86 if (!verifyMagic(magic)) { 109 seek(8+4+20); // magic, checksu [all...] |
/dalvik/dx/etc/ |
H A D | jasmin.jar | ... java.lang.Object implements jas.RuntimeConstants {
int magic short version_lo short version_hi jas.CP this_class jas. ... |
Completed in 266 milliseconds