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

/dalvik/dx/src/com/android/dx/cf/direct/
H A DDirectClassFile.java44 /** the expected value of the ClassFile.magic field */
89 * for purposes of verification (such as magic number matching and
174 * for purposes of verification (such as magic number matching and
201 * for purposes of verification (such as magic number matching and
353 * Gets the class file field {@code magic}, but without doing any
356 * @return the magic value
418 * Sees if the .class file header magic/version are within
421 * @param magic the value of a classfile "magic" field
426 private boolean isGoodVersion(int magic, in argument
[all...]
/dalvik/vm/hprof/
H A DHprofOutput.cpp92 char magic[] = HPROF_MAGIC_STRING; local
99 * [u1]*: NUL-terminated magic string.
101 fwrite(magic, 1, sizeof(magic), fp);
/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.cpp277 // magic is ok
2799 const u1* magic = pHeader->magic; local
2800 const u1* version = &magic[4];
2802 if (memcmp(magic, DEX_MAGIC, 4) != 0) {
2803 ALOGE("ERROR: unrecognized magic number (%02x %02x %02x %02x)",
2804 magic[0], magic[1], magic[2], magic[
[all...]
H A DDexFile.h50 /* DEX file magic number */
217 u1 magic[8]; /* includes version number */ member in struct:DexHeader
468 * local byte and structure padding. The first field (magic + version)
475 u1 magic[8]; /* includes version number */ member in struct:DexOptHeader
560 * Detect the file type of the given memory buffer via magic number.
570 * Check to see if the file magic and format version in the given
/dalvik/tools/dexdeps/src/com/android/dexdeps/
H A DDexData.java66 * Verifies the given magic number.
68 private static boolean verifyMagic(byte[] magic) { argument
69 return Arrays.equals(magic, HeaderItem.DEX_FILE_MAGIC) ||
70 Arrays.equals(magic, HeaderItem.DEX_FILE_MAGIC_API_13);
81 byte[] magic = new byte[8];
82 readBytes(magic);
83 if (!verifyMagic(magic)) {
106 seek(8+4+20); // magic, checksum, signature
540 /* expected magic values */
/dalvik/tools/dmtracedump/
H A DCreateTestTrace.c39 unsigned int magic; member in struct:DataHeader
372 write4LE(dataFp, header.magic);
H A DTraceDump.c120 unsigned int magic; member in struct:DataHeader
1073 pHeader->magic = read4LE(fp);
/dalvik/vm/analysis/
H A DDexPrepare.cpp122 * DEX header (which immediately follows the magic). If these don't
713 * magic number.
717 memcpy(optHdr.magic, DEX_OPT_MAGIC, 4);
718 memcpy(optHdr.magic+4, DEX_OPT_MAGIC_VERS, 4);
1175 const u1* magic; local
1203 magic = optHdr.magic;
1204 if (memcmp(magic, DEX_MAGIC, 4) == 0) {
1208 } else if (memcmp(magic, DEX_OPT_MAGIC, 4) != 0) {
1210 ALOGD("DexOpt: incorrect opt magic numbe
[all...]
/dalvik/vm/
H A DCheckJni.cpp1078 u4 magic; member in struct:GuardedCopy
1116 pExtra->magic = kGuardMagic;
1147 * Before we do anything with "pExtra", check the magic number. We
1152 if (memcmp(&pExtra->magic, &kMagicCmp, 4) != 0) {
1154 memcpy(buf, &pExtra->magic, 4);
1155 ALOGE("JNI: guard magic does not match (found 0x%02x%02x%02x%02x) -- incorrect data pointer %p?",
/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 394 milliseconds