Lines Matching refs:OatFileAssistant
52 OatFileAssistant::GetOptimizationStatus( in VerifyOptimizationStatus()
75 int GetDexOptNeeded(OatFileAssistant* assistant, in GetDexOptNeeded()
88 OatFileAssistant* assistant, in GetDexOptNeeded()
158 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
175 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
202 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
219 EXPECT_EQ(-OatFileAssistant::kNoDexOptNeeded, in TEST_F()
231 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
233 EXPECT_EQ(OatFileAssistant::kDex2OatFromScratch, in TEST_F()
235 EXPECT_EQ(OatFileAssistant::kDex2OatFromScratch, in TEST_F()
237 EXPECT_EQ(OatFileAssistant::kDex2OatFromScratch, in TEST_F()
239 EXPECT_EQ(OatFileAssistant::kDex2OatFromScratch, in TEST_F()
243 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OdexFileStatus()); in TEST_F()
244 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OatFileStatus()); in TEST_F()
255 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
257 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
275 OatFileAssistant oat_file_assistant( in TEST_F()
278 EXPECT_EQ(-OatFileAssistant::kNoDexOptNeeded, in TEST_F()
280 EXPECT_EQ(-OatFileAssistant::kNoDexOptNeeded, in TEST_F()
282 EXPECT_EQ(-OatFileAssistant::kNoDexOptNeeded, in TEST_F()
284 EXPECT_EQ(-OatFileAssistant::kDex2OatForFilter, in TEST_F()
288 EXPECT_EQ(OatFileAssistant::kOatUpToDate, oat_file_assistant.OdexFileStatus()); in TEST_F()
289 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OatFileStatus()); in TEST_F()
307 OatFileAssistant oat_file_assistant( in TEST_F()
310 EXPECT_EQ(-OatFileAssistant::kNoDexOptNeeded, in TEST_F()
312 EXPECT_EQ(-OatFileAssistant::kNoDexOptNeeded, in TEST_F()
314 EXPECT_EQ(-OatFileAssistant::kNoDexOptNeeded, in TEST_F()
316 EXPECT_EQ(-OatFileAssistant::kDex2OatForFilter, in TEST_F()
320 EXPECT_EQ(OatFileAssistant::kOatUpToDate, oat_file_assistant.OdexFileStatus()); in TEST_F()
321 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OatFileStatus()); in TEST_F()
343 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
345 EXPECT_EQ(-OatFileAssistant::kNoDexOptNeeded, in TEST_F()
347 EXPECT_EQ(-OatFileAssistant::kNoDexOptNeeded, in TEST_F()
349 EXPECT_EQ(-OatFileAssistant::kNoDexOptNeeded, in TEST_F()
351 EXPECT_EQ(-OatFileAssistant::kDex2OatForFilter, in TEST_F()
355 EXPECT_EQ(OatFileAssistant::kOatUpToDate, oat_file_assistant.OdexFileStatus()); in TEST_F()
356 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OatFileStatus()); in TEST_F()
377 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
379 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
381 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
383 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
385 EXPECT_EQ(OatFileAssistant::kDex2OatForFilter, in TEST_F()
389 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OdexFileStatus()); in TEST_F()
390 EXPECT_EQ(OatFileAssistant::kOatUpToDate, oat_file_assistant.OatFileStatus()); in TEST_F()
413 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
420 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
422 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
424 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
426 EXPECT_EQ(-OatFileAssistant::kDex2OatForFilter, in TEST_F()
430 EXPECT_EQ(OatFileAssistant::kOatUpToDate, oat_file_assistant.OdexFileStatus()); in TEST_F()
431 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OatFileStatus()); in TEST_F()
451 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
458 EXPECT_EQ(-OatFileAssistant::kDex2OatForBootImage, in TEST_F()
460 EXPECT_EQ(-OatFileAssistant::kDex2OatForBootImage, in TEST_F()
464 EXPECT_EQ(OatFileAssistant::kOatBootImageOutOfDate, oat_file_assistant.OdexFileStatus()); in TEST_F()
465 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OatFileStatus()); in TEST_F()
484 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
492 EXPECT_EQ(OatFileAssistant::kDex2OatFromScratch, in TEST_F()
495 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OdexFileStatus()); in TEST_F()
496 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OatFileStatus()); in TEST_F()
508 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
515 EXPECT_EQ(OatFileAssistant::kDex2OatFromScratch, in TEST_F()
517 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OdexFileStatus()); in TEST_F()
518 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OatFileStatus()); in TEST_F()
534 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
541 EXPECT_EQ(-OatFileAssistant::kDex2OatForBootImage, in TEST_F()
561 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
562 EXPECT_EQ(OatFileAssistant::kDex2OatFromScratch, in TEST_F()
578 ASSERT_TRUE(OatFileAssistant::DexLocationToOatFilename( in TEST_F()
587 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
594 EXPECT_EQ(OatFileAssistant::kDex2OatForBootImage, in TEST_F()
615 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
617 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
619 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
621 EXPECT_EQ(OatFileAssistant::kDex2OatForFilter, in TEST_F()
623 EXPECT_EQ(OatFileAssistant::kDex2OatForFilter, in TEST_F()
627 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OdexFileStatus()); in TEST_F()
628 EXPECT_EQ(OatFileAssistant::kOatUpToDate, oat_file_assistant.OatFileStatus()); in TEST_F()
648 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
649 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
684 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
685 EXPECT_EQ(OatFileAssistant::kDex2OatFromScratch, in TEST_F()
710 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
711 EXPECT_EQ(OatFileAssistant::kDex2OatFromScratch, in TEST_F()
713 EXPECT_EQ(OatFileAssistant::kDex2OatFromScratch, in TEST_F()
717 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OdexFileStatus()); in TEST_F()
718 EXPECT_EQ(OatFileAssistant::kOatDexOutOfDate, oat_file_assistant.OatFileStatus()); in TEST_F()
733 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
735 EXPECT_EQ(OatFileAssistant::kDex2OatFromScratch, in TEST_F()
750 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
752 EXPECT_EQ(OatFileAssistant::kDex2OatFromScratch, in TEST_F()
775 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
776 EXPECT_EQ(OatFileAssistant::kDex2OatForBootImage, in TEST_F()
778 EXPECT_EQ(OatFileAssistant::kDex2OatForBootImage, in TEST_F()
780 EXPECT_EQ(OatFileAssistant::kDex2OatForBootImage, in TEST_F()
784 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OdexFileStatus()); in TEST_F()
785 EXPECT_EQ(OatFileAssistant::kOatBootImageOutOfDate, oat_file_assistant.OatFileStatus()); in TEST_F()
810 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
811 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
813 EXPECT_EQ(OatFileAssistant::kDex2OatForFilter, in TEST_F()
817 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OdexFileStatus()); in TEST_F()
818 EXPECT_EQ(OatFileAssistant::kOatUpToDate, oat_file_assistant.OatFileStatus()); in TEST_F()
832 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
834 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
836 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
840 EXPECT_EQ(OatFileAssistant::kOatUpToDate, oat_file_assistant.OdexFileStatus()); in TEST_F()
841 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OatFileStatus()); in TEST_F()
857 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
859 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
861 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
863 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
867 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OdexFileStatus()); in TEST_F()
868 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OatFileStatus()); in TEST_F()
871 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
875 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OdexFileStatus()); in TEST_F()
876 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OatFileStatus()); in TEST_F()
892 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
894 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
898 EXPECT_EQ(OatFileAssistant::kOatUpToDate, oat_file_assistant.OdexFileStatus()); in TEST_F()
899 EXPECT_EQ(OatFileAssistant::kOatUpToDate, oat_file_assistant.OatFileStatus()); in TEST_F()
922 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
924 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
926 EXPECT_EQ(-OatFileAssistant::kDex2OatForFilter, in TEST_F()
930 EXPECT_EQ(OatFileAssistant::kOatUpToDate, oat_file_assistant.OdexFileStatus()); in TEST_F()
931 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OatFileStatus()); in TEST_F()
953 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
981 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
1010 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
1063 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
1066 EXPECT_EQ(OatFileAssistant::kDex2OatFromScratch, in TEST_F()
1068 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OdexFileStatus()); in TEST_F()
1069 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OatFileStatus()); in TEST_F()
1077 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
1080 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
1082 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OdexFileStatus()); in TEST_F()
1083 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OatFileStatus()); in TEST_F()
1093 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
1095 EXPECT_EQ(OatFileAssistant::kDex2OatFromScratch, in TEST_F()
1099 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OdexFileStatus()); in TEST_F()
1100 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OatFileStatus()); in TEST_F()
1208 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
1229 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
1243 EXPECT_TRUE(OatFileAssistant::DexLocationToOdexFilename( in TEST()
1247 EXPECT_TRUE(OatFileAssistant::DexLocationToOdexFilename( in TEST()
1251 EXPECT_FALSE(OatFileAssistant::DexLocationToOdexFilename( in TEST()
1253 EXPECT_FALSE(OatFileAssistant::DexLocationToOdexFilename( in TEST()
1260 std::pair<OatFileAssistant::DexOptNeeded, const char*> mapping[] = { in TEST_F()
1261 {OatFileAssistant::kNoDexOptNeeded, "NO_DEXOPT_NEEDED"}, in TEST_F()
1262 {OatFileAssistant::kDex2OatFromScratch, "DEX2OAT_FROM_SCRATCH"}, in TEST_F()
1263 {OatFileAssistant::kDex2OatForBootImage, "DEX2OAT_FOR_BOOT_IMAGE"}, in TEST_F()
1264 {OatFileAssistant::kDex2OatForFilter, "DEX2OAT_FOR_FILTER"}, in TEST_F()
1275 for (std::pair<OatFileAssistant::DexOptNeeded, const char*> field : mapping) { in TEST_F()
1311 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
1313 EXPECT_EQ(OatFileAssistant::kDex2OatFromScratch, in TEST_F()
1321 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
1325 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()