Lines Matching refs:DexFile

43 static void MakeDexVersion37(DexFile* dex_file) {  in MakeDexVersion37()
44 size_t offset = OFFSETOF_MEMBER(DexFile::Header, magic_) + 6; in MakeDexVersion37()
50 DexFile::Header* header = reinterpret_cast<DexFile::Header*>(dex_file); in FixUpChecksum()
53 const uint32_t non_sum = sizeof(DexFile::Header::magic_) + sizeof(DexFile::Header::checksum_); in FixUpChecksum()
61 DexFile* GetDexFile(const uint8_t* dex_bytes, size_t length) { in GetDexFile()
67 const std::function<void(DexFile*)>& f, in VerifyModification()
73 std::unique_ptr<DexFile> dex_file(GetDexFile(dex_bytes.get(), length)); in VerifyModification()
96 static std::unique_ptr<const DexFile> OpenDexFileBase64(const char* base64, in OpenDexFileBase64()
106 std::vector<std::unique_ptr<const DexFile>> tmp; in OpenDexFileBase64()
119 std::unique_ptr<const DexFile> dex_file = std::move(tmp[0]); in OpenDexFileBase64()
146 std::unique_ptr<const DexFile> raw(OpenDexFileBase64(kGoodTestDex, in TEST_F()
157 [](DexFile* dex_file) { in TEST_F()
167 [](DexFile* dex_file) { in TEST_F()
177 [](DexFile* dex_file) { in TEST_F()
196 VerifyModification(kInitWithUnicode, "init_with_unicode", [](DexFile*) {}, nullptr); in TEST_F() argument
241 static const uint8_t* FindMethodData(const DexFile* dex_file, in FindMethodData()
266 static void SetMethodFlags(DexFile* dex_file, const char* method, uint32_t mask) { in SetMethodFlags()
283 static uint32_t GetMethodFlags(DexFile* dex_file, const char* method) { in GetMethodFlags()
290 static void ApplyMaskToMethodFlags(DexFile* dex_file, const char* method, uint32_t mask) { in ApplyMaskToMethodFlags()
297 static void OrMaskToMethodFlags(DexFile* dex_file, const char* method, uint32_t mask) { in OrMaskToMethodFlags()
304 static void RemoveCode(DexFile* dex_file, const char* method) { in RemoveCode()
326 [](DexFile* dex_file) { in TEST_F()
338 [](DexFile* dex_file) { in TEST_F()
353 [&](DexFile* dex_file) { in TEST_F()
364 [&](DexFile* dex_file) { in TEST_F()
375 [&](DexFile* dex_file) { in TEST_F()
386 [&](DexFile* dex_file) { in TEST_F()
399 [&](DexFile* dex_file) { in TEST_F()
424 [&](DexFile* dex_file) { in TEST_F()
445 [&](DexFile* dex_file) { in TEST_F()
460 [&](DexFile* dex_file) { in TEST_F()
478 [&](DexFile* dex_file) { in TEST_F()
496 [&](DexFile* dex_file) { in TEST_F()
507 [&](DexFile* dex_file) { in TEST_F()
518 [&](DexFile* dex_file) { in TEST_F()
529 [&](DexFile* dex_file) { in TEST_F()
550 [&](DexFile* dex_file) { in TEST_F()
581 [&](DexFile* dex_file) { in TEST_F()
614 [&](DexFile* dex_file) { in TEST_F()
630 [](DexFile* dex_file) { in TEST_F()
682 [](DexFile* dex_file) { in TEST_F()
689 [](DexFile* dex_file) { in TEST_F()
698 [](DexFile* dex_file) { in TEST_F()
707 [](DexFile* dex_file) { in TEST_F()
718 [](DexFile* dex_file) { in TEST_F()
728 [](DexFile* dex_file) { in TEST_F()
737 [](DexFile* dex_file) { in TEST_F()
748 [](DexFile* dex_file) { in TEST_F()
757 [](DexFile* dex_file) { in TEST_F()
768 [](DexFile* dex_file) { in TEST_F()
778 [](DexFile* dex_file) { in TEST_F()
815 [&](DexFile* dex_file) { in TEST_F()
836 static const uint8_t* FindFieldData(const DexFile* dex_file, const char* name) { in FindFieldData()
854 static void SetFieldFlags(DexFile* dex_file, const char* field, uint32_t mask) { in SetFieldFlags()
871 static uint32_t GetFieldFlags(DexFile* dex_file, const char* field) { in GetFieldFlags()
878 static void ApplyMaskToFieldFlags(DexFile* dex_file, const char* field, uint32_t mask) { in ApplyMaskToFieldFlags()
885 static void OrMaskToFieldFlags(DexFile* dex_file, const char* field, uint32_t mask) { in OrMaskToFieldFlags()
914 [](DexFile* dex_file) { in TEST_F()
926 [](DexFile* dex_file) { in TEST_F()
936 [](DexFile* dex_file) { in TEST_F()
952 [&](DexFile* dex_file) { in TEST_F()
968 [&](DexFile* dex_file) { in TEST_F()
999 [&](DexFile* dex_file) { in TEST_F()
1015 [&](DexFile* dex_file) { in TEST_F()
1046 [](DexFile* dex_file) { in TEST_F()
1053 [](DexFile* dex_file) { in TEST_F()
1062 [](DexFile* dex_file) { in TEST_F()
1071 [](DexFile* dex_file) { in TEST_F()
1082 [](DexFile* dex_file) { in TEST_F()
1091 [](DexFile* dex_file) { in TEST_F()
1102 [](DexFile* dex_file) { in TEST_F()
1112 [](DexFile* dex_file) { in TEST_F()
1124 [](DexFile* dex_file) { in TEST_F()
1134 [](DexFile* dex_file) { in TEST_F()
1146 [](DexFile* dex_file) { in TEST_F()
1175 [&](DexFile* dex_file) { in TEST_F()
1189 [&](DexFile* dex_file) { in TEST_F()
1225 [](DexFile* dex_file) { in TEST_F()
1232 [](DexFile* dex_file) { in TEST_F()
1292 std::unique_ptr<const DexFile> raw(OpenDexFileBase64(kDebugInfoTestDex, in TEST_F()
1302 [](DexFile* dex_file) { in TEST_F()
1313 std::unique_ptr<const DexFile> raw(OpenDexFileBase64(kGoodTestDex, in TEST_F()
1325 [&](DexFile* dex_file) { in TEST_F()
1326 DexFile::Header* header = const_cast<DexFile::Header*>( in TEST_F()
1327 reinterpret_cast<const DexFile::Header*>(dex_file->Begin())); in TEST_F()
1396 std::unique_ptr<const DexFile> raw(OpenDexFileBase64(kProtoOrderingTestDex, in TEST_F()
1408 [i](DexFile* dex_file) { in TEST_F()
1464 [](DexFile* dex_file ATTRIBUTE_UNUSED) { /* empty */ }, in TEST_F()
1489 [](DexFile* dex_file ATTRIBUTE_UNUSED) { /* empty */ }, in TEST_F()
1521 [](DexFile* dex_file ATTRIBUTE_UNUSED) { /* empty */ }, in TEST_F()
1544 [](DexFile* dex_file ATTRIBUTE_UNUSED) { /* empty */ }, in TEST_F()
1572 [](DexFile* dex_file ATTRIBUTE_UNUSED) { /* empty */ }, in TEST_F()
1608 [](DexFile* dex_file ATTRIBUTE_UNUSED) { /* empty */ }, in TEST_F()
1618 std::unique_ptr<DexFile> dex_file(GetDexFile(dex_bytes.get(), length)); in TEST_F()
1636 DexFile::Header* header = reinterpret_cast<DexFile::Header*>( in TEST_F()
1690 std::unique_ptr<DexFile> dex_file(GetDexFile(dex_bytes.get(), length)); in TEST_F()
1734 std::unique_ptr<DexFile> dex_file(GetDexFile(dex_bytes.get(), length)); in TEST_F()
1778 std::unique_ptr<DexFile> dex_file(GetDexFile(dex_bytes.get(), length)); in TEST_F()
1822 std::unique_ptr<DexFile> dex_file(GetDexFile(dex_bytes.get(), length)); in TEST_F()
1859 std::unique_ptr<DexFile> dex_file(GetDexFile(dex_bytes.get(), length)); in TEST_F()
2062 std::unique_ptr<DexFile> dex_file(GetDexFile(dex_bytes.get(), length)); in TEST_F()
2109 std::unique_ptr<DexFile> dex_file(GetDexFile(dex_bytes.get(), length)); in TEST_F()
2165 std::unique_ptr<DexFile> dex_file(GetDexFile(dex_bytes.get(), length)); in TEST_F()