/art/runtime/base/ |
H A D | file_magic.cc | 33 File OpenAndReadMagic(const char* filename, uint32_t* magic, std::string* error_msg) { argument 34 CHECK(magic != nullptr); 40 int n = TEMP_FAILURE_RETRY(read(fd.Fd(), magic, sizeof(*magic))); 41 if (n != sizeof(*magic)) { 42 *error_msg = StringPrintf("Failed to find magic in '%s'", filename); 53 bool IsZipMagic(uint32_t magic) { argument 54 return (('P' == ((magic >> 0) & 0xff)) && 55 ('K' == ((magic >> 8) & 0xff))); 58 bool IsDexMagic(uint32_t magic) { argument [all...] |
H A D | file_magic.h | 27 // Open file and read magic number 28 File OpenAndReadMagic(const char* filename, uint32_t* magic, std::string* error_msg); 30 // Check whether the given magic matches a known file type. 31 bool IsZipMagic(uint32_t magic); 32 bool IsDexMagic(uint32_t magic);
|
/art/test/037-inherit/src/ |
H A D | Main.java | 10 MagicClass magic = new MagicClass(); 12 System.out.print("magic is "); 13 System.out.println(magic.getSomeData());
|
/art/compiler/optimizing/ |
H A D | code_generator_utils.cc | 25 int64_t* magic, int* shift) { 26 // It does not make sense to calculate magic and shift for zero divisor. 32 * The magic number M and shift S can be calculated in the following way: 45 * The magic number M is calculated by 89 *magic = (divisor > 0) ? (quotient2 + 1) : (-quotient2 - 1); 92 *magic = static_cast<int>(*magic); 24 CalculateMagicAndShiftForDivRem(int64_t divisor, bool is_long, int64_t* magic, int* shift) argument
|
H A D | code_generator_utils.h | 28 // Computes the magic number and the shift needed in the div/rem by constant algorithm, as out 29 // arguments `magic` and `shift` 30 void CalculateMagicAndShiftForDivRem(int64_t divisor, bool is_long, int64_t* magic, int* shift);
|
H A D | code_generator_mips64.cc | 3117 int64_t magic; 3121 &magic, 3125 __ LoadConst32(TMP, magic); 3128 if (imm > 0 && magic < 0) { 3130 } else if (imm < 0 && magic > 0) { 3149 __ LoadConst64(TMP, magic); 3152 if (imm > 0 && magic < 0) { 3154 } else if (imm < 0 && magic > 0) {
|
H A D | code_generator_x86_64.cc | 3579 int64_t magic; local 3586 CalculateMagicAndShiftForDivRem(imm, false /* is_long */, &magic, &shift); 3590 __ movl(eax, Immediate(magic)); 3593 if (imm > 0 && magic < 0) { 3595 } else if (imm < 0 && magic > 0) { 3623 CalculateMagicAndShiftForDivRem(imm, true /* is_long */, &magic, &shift); 3628 // RAX = magic 3629 codegen_->Load64BitValue(rax, magic); 3631 // RDX:RAX = magic * numerator 3634 if (imm > 0 && magic < [all...] |
H A D | code_generator_arm64.cc | 3351 int64_t magic; local 3353 CalculateMagicAndShiftForDivRem(imm, type == Primitive::kPrimLong /* is_long */, &magic, &shift); 3358 // temp = get_high(dividend * magic) 3359 __ Mov(temp, magic); 3367 if (imm > 0 && magic < 0) { 3369 } else if (imm < 0 && magic > 0) {
|
H A D | code_generator_arm.cc | 4103 int64_t magic; local 4105 CalculateMagicAndShiftForDivRem(imm, false /* is_long */, &magic, &shift); 4107 __ LoadImmediate(temp1, magic); 4110 if (imm > 0 && magic < 0) { 4112 } else if (imm < 0 && magic > 0) {
|
H A D | code_generator_arm_vixl.cc | 4096 int64_t magic; local 4098 CalculateMagicAndShiftForDivRem(imm, false /* is_long */, &magic, &shift); 4101 __ Mov(temp1, static_cast<int32_t>(magic)); 4104 if (imm > 0 && magic < 0) { 4106 } else if (imm < 0 && magic > 0) {
|
H A D | code_generator_mips.cc | 3564 int64_t magic; 3566 CalculateMagicAndShiftForDivRem(imm, false /* is_long */, &magic, &shift); 3570 __ LoadConst32(TMP, magic); 3577 if (imm > 0 && magic < 0) { 3579 } else if (imm < 0 && magic > 0) {
|
H A D | code_generator_x86.cc | 3541 int64_t magic; local 3543 CalculateMagicAndShiftForDivRem(imm, false /* is_long */, &magic, &shift); 3548 // EAX = magic 3549 __ movl(eax, Immediate(magic)); 3551 // EDX:EAX = magic * numerator 3554 if (imm > 0 && magic < 0) { 3557 } else if (imm < 0 && magic > 0) {
|
/art/tools/dexfuzz/src/dexfuzz/rawdex/ |
H A D | HeaderItem.java | 24 public byte[] magic; field in class:HeaderItem 51 magic = new byte[8]; 53 magic[i] = file.readByte(); 93 file.writeByte(magic[i]);
|
/art/runtime/gc/space/ |
H A D | large_object_space_test.cc | 61 // Fill in our magic value. 62 uint8_t magic = (request_size & 0xFF) | 1; local 63 memset(obj, magic, request_size); 93 uint8_t magic = (request_size & 0xFF) | 1; local 95 ASSERT_EQ(reinterpret_cast<const uint8_t*>(obj)[k], magic);
|
/art/tools/ |
H A D | stream-trace-converter.py | 79 magic = ReadIntLE(input) 80 if magic != 0x574f4c53: 83 WriteIntLE(body, magic)
|
/art/runtime/ |
H A D | dex_file.cc | 87 uint32_t magic; local 89 File fd = OpenAndReadMagic(filename, &magic, error_msg); 94 if (IsZipMagic(magic)) { 119 if (IsDexMagic(magic)) { 219 uint32_t magic; local 220 File fd = OpenAndReadMagic(filename, &magic, error_msg); 225 if (IsZipMagic(magic)) { 228 if (IsDexMagic(magic)) { 571 oss << "Unrecognized magic number in " << GetLocation() << ":" 619 bool DexFile::IsMagicValid(const uint8_t* magic) { argument 623 IsVersionValid(const uint8_t* magic) argument [all...] |
H A D | dex_file.h | 98 // Decode the dex magic version 528 // Decode the dex magic version 533 // Returns true if the byte string points to the magic value. 534 static bool IsMagicValid(const uint8_t* magic); 536 // Returns true if the byte string after the magic is the correct value. 537 static bool IsVersionValid(const uint8_t* magic); 1172 // Returns true if the header magic and version numbers are of the expected values.
|
/art/tools/dmtracedump/ |
H A D | createtesttrace.cc | 37 uint32_t magic; member in struct:DataHeader 346 write4LE(dataFp, header.magic);
|
H A D | tracedump.cc | 122 uint32_t magic; member in struct:DataHeader 945 pHeader->magic = read4LE(fp);
|
/art/compiler/ |
H A D | image_test.cc | 563 char* magic = const_cast<char*>(image_header.GetMagic()); 564 strcpy(magic, ""); // bad magic 566 strcpy(magic, "art\n000"); // bad version
|
H A D | oat_test.cc | 506 char* magic = const_cast<char*>(oat_header->GetMagic()); local 507 strcpy(magic, ""); // bad magic 509 strcpy(magic, "oat\n000"); // bad version
|
H A D | oat_writer.cc | 352 uint32_t magic; 354 File fd = OpenAndReadMagic(filename, &magic, &error_msg); 356 PLOG(ERROR) << "Failed to read magic number from dex file: '" << filename << "'"; 358 } else if (IsDexMagic(magic)) { 365 } else if (IsZipMagic(magic)) { 422 LOG(ERROR) << "Invalid magic in vdex file created from " << location; 2337 LOG(ERROR) << "Invalid magic number in dex file header. " << " File: " << location;
|
/art/runtime/hprof/ |
H A D | hprof.cc | 660 // U1: NUL-terminated magic string. 661 const char magic[] = "JAVA PROFILE 1.0.3"; local 662 __ AddU1List(reinterpret_cast<const uint8_t*>(magic), sizeof(magic));
|
/art/dexlayout/ |
H A D | dex_ir.h | 390 Header(const uint8_t* magic, argument 409 memcpy(magic_, magic, sizeof(magic_));
|