Lines Matching refs:OatFileAssistant
208 ASSERT_TRUE(OatFileAssistant::Dex2Oat(args, &error_msg)) << error_msg; in GenerateOdexForTest()
242 uint32_t combined_checksum = OatFileAssistant::CalculateCombinedImageChecksum(); in GenerateOdexForTest()
265 ASSERT_TRUE(OatFileAssistant::Dex2Oat(args, &error_msg)) << error_msg; in GeneratePicOdexForTest()
302 ASSERT_TRUE(OatFileAssistant::Dex2Oat(args, &error_msg)) << error_msg; in GenerateNoPatchOdexForTest()
386 OatFileAssistant ofa(dex_location, kRuntimeISA, false, false); in GenerateOatForTest()
397 ASSERT_TRUE(OatFileAssistant::Dex2Oat(args, &error_msg)) << error_msg; in GenerateOatForTest()
418 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false, false); in TEST_F()
420 EXPECT_EQ(OatFileAssistant::kDex2OatNeeded, in TEST_F()
422 EXPECT_EQ(OatFileAssistant::kDex2OatNeeded, in TEST_F()
424 EXPECT_EQ(OatFileAssistant::kDex2OatNeeded, in TEST_F()
426 EXPECT_EQ(OatFileAssistant::kDex2OatNeeded, in TEST_F()
434 EXPECT_EQ(OatFileAssistant::kOatOutOfDate, oat_file_assistant.OdexFileStatus()); in TEST_F()
439 EXPECT_EQ(OatFileAssistant::kOatOutOfDate, oat_file_assistant.OatFileStatus()); in TEST_F()
448 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false, true); in TEST_F()
450 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
456 EXPECT_EQ(OatFileAssistant::kUpdateSucceeded, in TEST_F()
471 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false, false); in TEST_F()
473 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
475 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
477 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
479 EXPECT_EQ(OatFileAssistant::kDex2OatNeeded, in TEST_F()
490 EXPECT_EQ(OatFileAssistant::kOatUpToDate, oat_file_assistant.OatFileStatus()); in TEST_F()
501 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false, false); in TEST_F()
503 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
505 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
516 EXPECT_EQ(OatFileAssistant::kOatUpToDate, oat_file_assistant.OatFileStatus()); in TEST_F()
527 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true, false); in TEST_F()
529 EXPECT_EQ(OatFileAssistant::kDex2OatNeeded, in TEST_F()
531 EXPECT_EQ(OatFileAssistant::kDex2OatNeeded, in TEST_F()
542 EXPECT_EQ(OatFileAssistant::kOatOutOfDate, oat_file_assistant.OatFileStatus()); in TEST_F()
553 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false, true); in TEST_F()
554 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
580 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false, true); in TEST_F()
581 EXPECT_EQ(OatFileAssistant::kDex2OatNeeded, in TEST_F()
604 ASSERT_TRUE(OatFileAssistant::Dex2Oat(args, &error_msg)) << error_msg; in TEST_F()
607 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
629 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false, false); in TEST_F()
630 EXPECT_EQ(OatFileAssistant::kDex2OatNeeded, in TEST_F()
632 EXPECT_EQ(OatFileAssistant::kDex2OatNeeded, in TEST_F()
656 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false, false); in TEST_F()
658 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
660 EXPECT_EQ(OatFileAssistant::kPatchOatNeeded, in TEST_F()
692 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false, true); in TEST_F()
694 EXPECT_EQ(OatFileAssistant::kPatchOatNeeded, in TEST_F()
708 ASSERT_EQ(OatFileAssistant::kUpdateSucceeded, in TEST_F()
711 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
750 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false, true); in TEST_F()
752 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
754 EXPECT_EQ(OatFileAssistant::kPatchOatNeeded, in TEST_F()
756 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, // Can't run dex2oat because dex file is stripped. in TEST_F()
771 ASSERT_EQ(OatFileAssistant::kUpdateSucceeded, in TEST_F()
774 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
776 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, // Can't run dex2oat because dex file is stripped. in TEST_F()
807 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false, true); in TEST_F()
809 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
811 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
813 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
828 EXPECT_EQ(OatFileAssistant::kUpdateSucceeded, in TEST_F()
831 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
856 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
859 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
861 EXPECT_EQ(OatFileAssistant::kSelfPatchOatNeeded, in TEST_F()
863 EXPECT_EQ(OatFileAssistant::kDex2OatNeeded, in TEST_F()
879 ASSERT_EQ(OatFileAssistant::kUpdateSucceeded, in TEST_F()
882 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
915 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
918 EXPECT_EQ(OatFileAssistant::kDex2OatNeeded, in TEST_F()
923 ASSERT_EQ(OatFileAssistant::kUpdateSucceeded, in TEST_F()
925 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
953 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
956 EXPECT_EQ(OatFileAssistant::kPatchOatNeeded, in TEST_F()
989 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false, false); in TEST_F()
991 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
993 EXPECT_EQ(OatFileAssistant::kDex2OatNeeded, in TEST_F()
1017 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false, false); in TEST_F()
1019 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
1021 EXPECT_EQ(OatFileAssistant::kDex2OatNeeded, in TEST_F()
1043 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false, true); in TEST_F()
1062 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false, true); in TEST_F()
1081 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false, false); in TEST_F()
1100 OatFileAssistant oat_file_assistant( in TEST_F()
1103 ASSERT_EQ(OatFileAssistant::kUpdateSucceeded, in TEST_F()
1116 OatFileAssistant ofm(dex_location.c_str(), kRuntimeISA, false, false); in TEST_F()
1131 OatFileAssistant oat_file_assistant( in TEST_F()
1134 ASSERT_EQ(OatFileAssistant::kUpdateNotAttempted, in TEST_F()
1147 OatFileAssistant oat_file_assistant( in TEST_F()
1150 EXPECT_EQ(OatFileAssistant::kUpdateNotAttempted, in TEST_F()
1197 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false, true); in TEST_F()
1200 EXPECT_EQ(OatFileAssistant::kDex2OatNeeded, in TEST_F()
1215 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false, true); in TEST_F()
1218 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
1230 EXPECT_EQ(OatFileAssistant::kUpdateSucceeded, in TEST_F()
1241 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false, false); in TEST_F()
1243 EXPECT_EQ(OatFileAssistant::kDex2OatNeeded, in TEST_F()
1338 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false, true); in TEST_F()
1360 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false, true); in TEST_F()
1374 EXPECT_TRUE(OatFileAssistant::DexFilenameToOdexFilename( in TEST()
1378 EXPECT_TRUE(OatFileAssistant::DexFilenameToOdexFilename( in TEST()
1382 EXPECT_FALSE(OatFileAssistant::DexFilenameToOdexFilename( in TEST()
1384 EXPECT_FALSE(OatFileAssistant::DexFilenameToOdexFilename( in TEST()
1403 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, no_dexopt_needed->GetInt(dexfile.Get())); in TEST_F()
1409 EXPECT_EQ(OatFileAssistant::kDex2OatNeeded, dex2oat_needed->GetInt(dexfile.Get())); in TEST_F()
1415 EXPECT_EQ(OatFileAssistant::kPatchOatNeeded, patchoat_needed->GetInt(dexfile.Get())); in TEST_F()
1421 EXPECT_EQ(OatFileAssistant::kSelfPatchOatNeeded, self_patchoat_needed->GetInt(dexfile.Get())); in TEST_F()