• Home
  • Raw
  • Download

Lines Matching refs:OatFileAssistant

47   void VerifyOptimizationStatus(OatFileAssistant* assistant,  in VerifyOptimizationStatus()
56 OatFileAssistant::GetOptimizationStatus( in VerifyOptimizationStatus()
79 void VerifyOptimizationStatus(OatFileAssistant* assistant, in VerifyOptimizationStatus()
102 OatFileAssistant* assistant, in GetDexOptNeeded()
176 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
201 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, context.get(), false); in TEST_F()
231 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
243 EXPECT_EQ(-OatFileAssistant::kNoDexOptNeeded, in TEST_F()
253 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
258 EXPECT_EQ(OatFileAssistant::kDex2OatFromScratch, in TEST_F()
260 EXPECT_EQ(OatFileAssistant::kDex2OatFromScratch, in TEST_F()
262 EXPECT_EQ(OatFileAssistant::kDex2OatFromScratch, in TEST_F()
264 EXPECT_EQ(OatFileAssistant::kDex2OatFromScratch, in TEST_F()
268 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OdexFileStatus()); in TEST_F()
269 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OatFileStatus()); in TEST_F()
285 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
290 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
308 OatFileAssistant oat_file_assistant( in TEST_F()
314 EXPECT_EQ(-OatFileAssistant::kNoDexOptNeeded, in TEST_F()
316 EXPECT_EQ(-OatFileAssistant::kNoDexOptNeeded, in TEST_F()
318 EXPECT_EQ(-OatFileAssistant::kNoDexOptNeeded, in TEST_F()
320 EXPECT_EQ(-OatFileAssistant::kDex2OatForFilter, in TEST_F()
324 EXPECT_EQ(OatFileAssistant::kOatUpToDate, oat_file_assistant.OdexFileStatus()); in TEST_F()
325 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OatFileStatus()); in TEST_F()
348 OatFileAssistant oat_file_assistant( in TEST_F()
354 EXPECT_EQ(-OatFileAssistant::kNoDexOptNeeded, in TEST_F()
356 EXPECT_EQ(-OatFileAssistant::kNoDexOptNeeded, in TEST_F()
358 EXPECT_EQ(-OatFileAssistant::kNoDexOptNeeded, in TEST_F()
360 EXPECT_EQ(-OatFileAssistant::kDex2OatForFilter, in TEST_F()
364 EXPECT_EQ(OatFileAssistant::kOatUpToDate, oat_file_assistant.OdexFileStatus()); in TEST_F()
365 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OatFileStatus()); in TEST_F()
392 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
397 EXPECT_EQ(-OatFileAssistant::kNoDexOptNeeded, in TEST_F()
399 EXPECT_EQ(-OatFileAssistant::kNoDexOptNeeded, in TEST_F()
401 EXPECT_EQ(-OatFileAssistant::kNoDexOptNeeded, in TEST_F()
403 EXPECT_EQ(-OatFileAssistant::kDex2OatForFilter, in TEST_F()
407 EXPECT_EQ(OatFileAssistant::kOatUpToDate, oat_file_assistant.OdexFileStatus()); in TEST_F()
408 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OatFileStatus()); in TEST_F()
429 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
434 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
436 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
438 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
440 EXPECT_EQ(OatFileAssistant::kDex2OatForFilter, in TEST_F()
444 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OdexFileStatus()); in TEST_F()
445 EXPECT_EQ(OatFileAssistant::kOatUpToDate, oat_file_assistant.OatFileStatus()); in TEST_F()
473 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
481 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
483 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
485 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
487 EXPECT_EQ(-OatFileAssistant::kDex2OatForFilter, in TEST_F()
491 EXPECT_EQ(OatFileAssistant::kOatUpToDate, oat_file_assistant.OdexFileStatus()); in TEST_F()
492 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OatFileStatus()); in TEST_F()
512 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
520 EXPECT_EQ(-OatFileAssistant::kNoDexOptNeeded, in TEST_F()
522 EXPECT_EQ(-OatFileAssistant::kDex2OatForFilter, in TEST_F()
524 EXPECT_EQ(-OatFileAssistant::kDex2OatForFilter, in TEST_F()
528 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OdexFileStatus()); in TEST_F()
529 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OatFileStatus()); in TEST_F()
548 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
557 EXPECT_EQ(OatFileAssistant::kDex2OatFromScratch, in TEST_F()
560 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OdexFileStatus()); in TEST_F()
561 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OatFileStatus()); in TEST_F()
573 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
581 EXPECT_EQ(OatFileAssistant::kDex2OatFromScratch, in TEST_F()
583 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OdexFileStatus()); in TEST_F()
584 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OatFileStatus()); in TEST_F()
600 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
605 EXPECT_EQ(-OatFileAssistant::kNoDexOptNeeded, in TEST_F()
607 EXPECT_EQ(-OatFileAssistant::kDex2OatForFilter, in TEST_F()
632 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
636 EXPECT_EQ(OatFileAssistant::kDex2OatFromScratch, in TEST_F()
652 ASSERT_TRUE(OatFileAssistant::DexLocationToOatFilename( in TEST_F()
661 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
666 EXPECT_EQ(OatFileAssistant::kDex2OatForFilter, in TEST_F()
687 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
692 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
694 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
696 EXPECT_EQ(OatFileAssistant::kDex2OatForFilter, in TEST_F()
698 EXPECT_EQ(OatFileAssistant::kDex2OatForFilter, in TEST_F()
702 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OdexFileStatus()); in TEST_F()
703 EXPECT_EQ(OatFileAssistant::kOatUpToDate, oat_file_assistant.OatFileStatus()); in TEST_F()
723 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
727 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
762 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
766 EXPECT_EQ(OatFileAssistant::kDex2OatFromScratch, in TEST_F()
791 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
795 EXPECT_EQ(OatFileAssistant::kDex2OatFromScratch, in TEST_F()
797 EXPECT_EQ(OatFileAssistant::kDex2OatFromScratch, in TEST_F()
801 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OdexFileStatus()); in TEST_F()
802 EXPECT_EQ(OatFileAssistant::kOatDexOutOfDate, oat_file_assistant.OatFileStatus()); in TEST_F()
824 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
829 EXPECT_EQ(OatFileAssistant::kDex2OatFromScratch, in TEST_F()
844 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
849 EXPECT_EQ(OatFileAssistant::kDex2OatFromScratch, in TEST_F()
872 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
876 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
878 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
880 EXPECT_EQ(OatFileAssistant::kDex2OatForFilter, in TEST_F()
884 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OdexFileStatus()); in TEST_F()
885 EXPECT_EQ(OatFileAssistant::kOatBootImageOutOfDate, oat_file_assistant.OatFileStatus()); in TEST_F()
917 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
921 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
923 EXPECT_EQ(OatFileAssistant::kDex2OatForFilter, in TEST_F()
927 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OdexFileStatus()); in TEST_F()
928 EXPECT_EQ(OatFileAssistant::kOatUpToDate, oat_file_assistant.OatFileStatus()); in TEST_F()
942 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
947 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
949 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
953 EXPECT_EQ(OatFileAssistant::kOatUpToDate, oat_file_assistant.OdexFileStatus()); in TEST_F()
954 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OatFileStatus()); in TEST_F()
970 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
975 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
977 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
979 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
983 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OdexFileStatus()); in TEST_F()
984 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OatFileStatus()); in TEST_F()
987 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
991 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OdexFileStatus()); in TEST_F()
992 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OatFileStatus()); in TEST_F()
1008 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
1013 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
1017 EXPECT_EQ(OatFileAssistant::kOatUpToDate, oat_file_assistant.OdexFileStatus()); in TEST_F()
1018 EXPECT_EQ(OatFileAssistant::kOatUpToDate, oat_file_assistant.OatFileStatus()); in TEST_F()
1041 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
1046 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
1048 EXPECT_EQ(-OatFileAssistant::kDex2OatForFilter, in TEST_F()
1052 EXPECT_EQ(OatFileAssistant::kOatUpToDate, oat_file_assistant.OdexFileStatus()); in TEST_F()
1053 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OatFileStatus()); in TEST_F()
1075 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
1106 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
1138 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
1194 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
1200 EXPECT_EQ(OatFileAssistant::kDex2OatFromScratch, in TEST_F()
1202 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OdexFileStatus()); in TEST_F()
1203 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OatFileStatus()); in TEST_F()
1211 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
1217 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
1219 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OdexFileStatus()); in TEST_F()
1220 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OatFileStatus()); in TEST_F()
1230 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
1235 EXPECT_EQ(OatFileAssistant::kDex2OatFromScratch, in TEST_F()
1239 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OdexFileStatus()); in TEST_F()
1240 EXPECT_EQ(OatFileAssistant::kOatCannotOpen, oat_file_assistant.OatFileStatus()); in TEST_F()
1348 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
1372 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
1389 EXPECT_TRUE(OatFileAssistant::DexLocationToOdexFilename( in TEST()
1393 EXPECT_TRUE(OatFileAssistant::DexLocationToOdexFilename( in TEST()
1397 EXPECT_FALSE(OatFileAssistant::DexLocationToOdexFilename( in TEST()
1399 EXPECT_FALSE(OatFileAssistant::DexLocationToOdexFilename( in TEST()
1406 std::pair<OatFileAssistant::DexOptNeeded, const char*> mapping[] = { in TEST_F()
1407 {OatFileAssistant::kNoDexOptNeeded, "NO_DEXOPT_NEEDED"}, in TEST_F()
1408 {OatFileAssistant::kDex2OatFromScratch, "DEX2OAT_FROM_SCRATCH"}, in TEST_F()
1409 {OatFileAssistant::kDex2OatForBootImage, "DEX2OAT_FOR_BOOT_IMAGE"}, in TEST_F()
1410 {OatFileAssistant::kDex2OatForFilter, "DEX2OAT_FOR_FILTER"}, in TEST_F()
1421 for (std::pair<OatFileAssistant::DexOptNeeded, const char*> field : mapping) { in TEST_F()
1459 OatFileAssistant oat_file_assistant( in TEST_F()
1462 EXPECT_EQ(-OatFileAssistant::kDex2OatForFilter, in TEST_F()
1470 OatFileAssistant oat_file_assistant( in TEST_F()
1475 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
1483 OatFileAssistant oat_file_assistant( in TEST_F()
1488 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, in TEST_F()
1671 OatFileAssistant oat_file_assistant( in TEST_F()
1673 EXPECT_EQ(OatFileAssistant::kOatUpToDate, oat_file_assistant.OdexFileStatus()); in TEST_F()
1685 OatFileAssistant oat_file_assistant( in TEST_F()
1687 EXPECT_EQ(OatFileAssistant::kOatUpToDate, oat_file_assistant.OdexFileStatus()); in TEST_F()
1699 OatFileAssistant oat_file_assistant( in TEST_F()
1701 EXPECT_EQ(OatFileAssistant::kDex2OatForBootImage, oat_file_assistant.OdexFileStatus()); in TEST_F()