/art/libartbase/base/ |
D | file_magic.cc | 32 File OpenAndReadMagic(const char* filename, uint32_t* magic, std::string* error_msg) { in OpenAndReadMagic() argument 33 CHECK(magic != nullptr); in OpenAndReadMagic() 39 if (!ReadMagicAndReset(fd.Fd(), magic, error_msg)) { in OpenAndReadMagic() 46 bool ReadMagicAndReset(int fd, uint32_t* magic, std::string* error_msg) { in ReadMagicAndReset() argument 47 int n = TEMP_FAILURE_RETRY(read(fd, magic, sizeof(*magic))); in ReadMagicAndReset() 48 if (n != sizeof(*magic)) { in ReadMagicAndReset() 59 bool IsZipMagic(uint32_t magic) { in IsZipMagic() argument 60 return (('P' == ((magic >> 0) & 0xff)) && in IsZipMagic() 61 ('K' == ((magic >> 8) & 0xff))); in IsZipMagic()
|
D | file_magic.h | 28 File OpenAndReadMagic(const char* filename, uint32_t* magic, std::string* error_msg); 31 bool ReadMagicAndReset(int fd, uint32_t* magic, std::string* error_msg); 34 bool IsZipMagic(uint32_t magic);
|
/art/libdexfile/dex/ |
D | standard_dex_file.cc | 39 void StandardDexFile::WriteMagic(uint8_t* magic) { in WriteMagic() argument 40 std::copy_n(kDexMagic, kDexMagicSize, magic); in WriteMagic() 43 void StandardDexFile::WriteCurrentVersion(uint8_t* magic) { in WriteCurrentVersion() argument 46 magic + kDexMagicSize); in WriteCurrentVersion() 49 bool StandardDexFile::IsMagicValid(const uint8_t* magic) { in IsMagicValid() argument 50 return (memcmp(magic, kDexMagic, sizeof(kDexMagic)) == 0); in IsMagicValid() 53 bool StandardDexFile::IsVersionValid(const uint8_t* magic) { in IsVersionValid() argument 54 const uint8_t* version = &magic[sizeof(kDexMagic)]; in IsVersionValid()
|
D | compact_dex_file.cc | 28 void CompactDexFile::WriteMagic(uint8_t* magic) { in WriteMagic() argument 29 std::copy_n(kDexMagic, kDexMagicSize, magic); in WriteMagic() 32 void CompactDexFile::WriteCurrentVersion(uint8_t* magic) { in WriteCurrentVersion() argument 33 std::copy_n(kDexMagicVersion, kDexVersionLen, magic + kDexMagicSize); in WriteCurrentVersion() 36 bool CompactDexFile::IsMagicValid(const uint8_t* magic) { in IsMagicValid() argument 37 return (memcmp(magic, kDexMagic, sizeof(kDexMagic)) == 0); in IsMagicValid() 40 bool CompactDexFile::IsVersionValid(const uint8_t* magic) { in IsVersionValid() argument 41 const uint8_t* version = &magic[sizeof(kDexMagic)]; in IsVersionValid()
|
D | dex_file_loader.cc | 151 static bool IsZipMagic(uint32_t magic) { in IsZipMagic() argument 152 return (('P' == ((magic >> 0) & 0xff)) && in IsZipMagic() 153 ('K' == ((magic >> 8) & 0xff))); in IsZipMagic() 156 bool DexFileLoader::IsMagicValid(uint32_t magic) { in IsMagicValid() argument 157 return IsMagicValid(reinterpret_cast<uint8_t*>(&magic)); in IsMagicValid() 160 bool DexFileLoader::IsMagicValid(const uint8_t* magic) { in IsMagicValid() argument 161 return StandardDexFile::IsMagicValid(magic) || in IsMagicValid() 162 CompactDexFile::IsMagicValid(magic); in IsMagicValid() 165 bool DexFileLoader::IsVersionAndMagicValid(const uint8_t* magic) { in IsVersionAndMagicValid() argument 166 if (StandardDexFile::IsMagicValid(magic)) { in IsVersionAndMagicValid() [all …]
|
D | standard_dex_file.h | 65 static void WriteMagic(uint8_t* magic); 68 static void WriteCurrentVersion(uint8_t* magic); 75 static bool IsMagicValid(const uint8_t* magic); 79 static bool IsVersionValid(const uint8_t* magic);
|
D | dex_file_loader.h | 44 static bool IsMagicValid(uint32_t magic); 45 static bool IsMagicValid(const uint8_t* magic); 48 static bool IsVersionAndMagicValid(const uint8_t* magic);
|
D | compact_dex_file.h | 249 static void WriteMagic(uint8_t* magic); 252 static void WriteCurrentVersion(uint8_t* magic); 255 static bool IsMagicValid(const uint8_t* magic); 259 static bool IsVersionValid(const uint8_t* magic);
|
/art/compiler/optimizing/ |
D | code_generator_utils.cc | 26 int64_t* magic, int* shift) { in CalculateMagicAndShiftForDivRem() argument 90 *magic = (divisor > 0) ? (quotient2 + 1) : (-quotient2 - 1); in CalculateMagicAndShiftForDivRem() 93 *magic = static_cast<int>(*magic); in CalculateMagicAndShiftForDivRem()
|
D | code_generator_utils.h | 30 void CalculateMagicAndShiftForDivRem(int64_t divisor, bool is_long, int64_t* magic, int* shift);
|
/art/test/037-inherit/src/ |
D | Main.java | 10 MagicClass magic = new MagicClass(); in main() local 13 System.out.println(magic.getSomeData()); in main()
|
/art/tools/dexfuzz/src/dexfuzz/rawdex/ |
D | HeaderItem.java | 24 public byte[] magic; field in HeaderItem 51 magic = new byte[8]; in read() 53 magic[i] = file.readByte(); in read() 93 file.writeByte(magic[i]); in write()
|
/art/test/037-inherit/ |
D | expected.txt | 1 magic is 64.0
|
/art/runtime/gc/space/ |
D | large_object_space_test.cc | 70 uint8_t magic = (request_size & 0xFF) | 1; in LargeObjectTest() local 71 memset(obj, magic, request_size); in LargeObjectTest() 101 uint8_t magic = (request_size & 0xFF) | 1; in LargeObjectTest() local 103 ASSERT_EQ(reinterpret_cast<const uint8_t*>(obj)[k], magic); in LargeObjectTest()
|
/art/runtime/dex/ |
D | art_dex_file_loader.cc | 92 uint32_t magic; in GetMultiDexChecksums() local 96 if (ReadMagicAndReset(zip_fd, &magic, error_msg)) { in GetMultiDexChecksums() 100 fd = OpenAndReadMagic(filename, &magic, error_msg); in GetMultiDexChecksums() 106 if (IsZipMagic(magic)) { in GetMultiDexChecksums() 141 if (IsMagicValid(magic)) { in GetMultiDexChecksums() 226 uint32_t magic; in Open() local 227 File fd = OpenAndReadMagic(filename, &magic, error_msg); in Open() 232 if (IsZipMagic(magic)) { in Open() 235 if (IsMagicValid(magic)) { in Open()
|
/art/dex2oat/linker/ |
D | image_test.cc | 89 char* magic = const_cast<char*>(image_header.GetMagic()); in TEST_F() local 90 strcpy(magic, ""); // bad magic in TEST_F() 92 strcpy(magic, "art\n000"); // bad version in TEST_F()
|
D | oat_writer_test.cc | 511 char* magic = const_cast<char*>(oat_header->GetMagic()); in TEST_F() local 512 strcpy(magic, ""); // bad magic in TEST_F() 514 strcpy(magic, "oat\n000"); // bad version in TEST_F()
|
/art/tools/ |
D | stream-trace-converter.py | 79 magic = ReadIntLE(input) 80 if magic != 0x574f4c53: 83 WriteIntLE(body, magic)
|
/art/test/dexdump/ |
D | staticfields.txt | 4 magic : 'dex\n035\0'
|
D | invoke-polymorphic.txt | 4 magic : 'dex\n037\0'
|
D | values.txt | 4 magic : 'dex\n035\0'
|
D | const-method-handle.txt | 4 magic : 'dex\n039\0'
|
/art/tools/dmtracedump/ |
D | createtesttrace.cc | 37 uint32_t magic; member 346 write4LE(dataFp, header.magic); in writeDataHeader()
|
/art/runtime/hprof/ |
D | hprof.cc | 663 const char magic[] = "JAVA PROFILE 1.0.3"; in WriteFixedHeader() local 664 __ AddU1List(reinterpret_cast<const uint8_t*>(magic), sizeof(magic)); in WriteFixedHeader()
|
/art/dexlayout/ |
D | dex_ir.h | 528 Header(const uint8_t* magic, in Header() argument 549 memcpy(magic_, magic, sizeof(magic_)); in Header()
|