Home
last modified time | relevance | path

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

/art/test/037-inherit/src/
DMain.java10 MagicClass magic = new MagicClass(); in main() local
13 System.out.println(magic.getSomeData()); in main()
/art/runtime/gc/space/
Dlarge_object_space_test.cc58 byte magic = (request_size & 0xFF) | 1; in LargeObjectTest() local
59 memset(obj, magic, request_size); in LargeObjectTest()
76 byte magic = (request_size & 0xFF) | 1; in LargeObjectTest() local
78 ASSERT_EQ(reinterpret_cast<const byte*>(obj)[k], magic); in LargeObjectTest()
/art/runtime/
Ddex_file.cc53 static int OpenAndReadMagic(const char* filename, uint32_t* magic, std::string* error_msg) { in OpenAndReadMagic() argument
54 CHECK(magic != NULL); in OpenAndReadMagic()
60 int n = TEMP_FAILURE_RETRY(read(fd.get(), magic, sizeof(*magic))); in OpenAndReadMagic()
61 if (n != sizeof(*magic)) { in OpenAndReadMagic()
75 uint32_t magic; in GetChecksum() local
89 ScopedFd fd(OpenAndReadMagic(file_part, &magic, error_msg)); in GetChecksum()
94 if (IsZipMagic(magic)) { in GetChecksum()
109 if (IsDexMagic(magic)) { in GetChecksum()
123 uint32_t magic; in Open() local
124 ScopedFd fd(OpenAndReadMagic(filename, &magic, error_msg)); in Open()
[all …]
Dutils.cc1311 bool IsZipMagic(uint32_t magic) { in IsZipMagic() argument
1312 return (('P' == ((magic >> 0) & 0xff)) && in IsZipMagic()
1313 ('K' == ((magic >> 8) & 0xff))); in IsZipMagic()
1316 bool IsDexMagic(uint32_t magic) { in IsDexMagic() argument
1317 return DexFile::IsMagicValid(reinterpret_cast<const byte*>(&magic)); in IsDexMagic()
1320 bool IsOatMagic(uint32_t magic) { in IsOatMagic() argument
1321 return (memcmp(reinterpret_cast<const byte*>(magic), in IsOatMagic()
Dutils.h520 bool IsZipMagic(uint32_t magic);
521 bool IsDexMagic(uint32_t magic);
522 bool IsOatMagic(uint32_t magic);
Ddex_file.h446 static bool IsMagicValid(const byte* magic);
449 static bool IsVersionValid(const byte* magic);
Dcheck_jni.cc917 uint32_t magic; member
955 pExtra->magic = kGuardMagic; in Create()
989 if (memcmp(&pExtra->magic, &kMagicCmp, 4) != 0) { in Check()
991 memcpy(buf, &pExtra->magic, 4); in Check()
/art/test/037-inherit/
Dexpected.txt1 magic is 64.0
/art/compiler/
Dimage_test.cc220 char* magic = const_cast<char*>(image_header.GetMagic()); in TEST_F() local
221 strcpy(magic, ""); // bad magic in TEST_F()
223 strcpy(magic, "art\n000"); // bad version in TEST_F()
Doat_test.cc208 char* magic = const_cast<char*>(oat_header->GetMagic()); in TEST_F() local
209 strcpy(magic, ""); // bad magic in TEST_F()
211 strcpy(magic, "oat\n000"); // bad version in TEST_F()
/art/compiler/dex/quick/x86/
Dint_x86.cc525 void X86Mir2Lir::CalculateMagicAndShift(int64_t divisor, int64_t& magic, int& shift, bool is_long) { in CalculateMagicAndShift() argument
587 magic = (divisor > 0) ? (quotient2 + 1) : (-quotient2 - 1); in CalculateMagicAndShift()
590 magic = static_cast<int>(magic); in CalculateMagicAndShift()
652 int64_t magic; in GenDivRemLit() local
654 CalculateMagicAndShift((int64_t)imm, magic, shift, false /* is_long */); in GenDivRemLit()
684 if (!is_div || (imm > 0 && magic < 0) || (imm < 0 && magic > 0)) { in GenDivRemLit()
695 LoadConstantNoClobber(rs_r2, magic); in GenDivRemLit()
700 if (imm > 0 && magic < 0) { in GenDivRemLit()
704 } else if (imm < 0 && magic > 0) { in GenDivRemLit()
1846 int64_t magic; in GenDivRemLongLit() local
[all …]
Dcodegen_x86.h720 void CalculateMagicAndShift(int64_t divisor, int64_t& magic, int& shift, bool is_long);
/art/runtime/hprof/
Dhprof.cc636 char magic[] = "JAVA PROFILE 1.0.3"; in WriteFixedHeader() local
641 fwrite(magic, 1, sizeof(magic), header_fp_); in WriteFixedHeader()
/art/compiler/dex/quick/arm/
Dint_arm.cc467 uint32_t magic; member
503 LoadConstant(r_magic, magic_table[lit].magic); in SmallLiteralDivRem()