Lines Matching refs:oat_file_assistant
176 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F() local
181 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
185 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F()
201 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, context.get(), false); in TEST_F() local
210 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
231 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F() local
244 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kDefaultCompilerFilter)); in TEST_F()
253 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F() local
259 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kExtract)); in TEST_F()
261 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kVerify)); in TEST_F()
263 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kSpeedProfile)); in TEST_F()
265 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kSpeed)); in TEST_F()
267 EXPECT_FALSE(oat_file_assistant.IsInBootClassPath()); 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()
270 EXPECT_TRUE(oat_file_assistant.HasDexFiles()); in TEST_F()
273 &oat_file_assistant, in TEST_F()
285 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F() local
291 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kSpeed)); in TEST_F()
292 EXPECT_FALSE(oat_file_assistant.HasDexFiles()); in TEST_F()
295 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
308 OatFileAssistant oat_file_assistant( in TEST_F() local
315 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kSpeed)); in TEST_F()
317 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kVerify)); in TEST_F()
319 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kExtract)); in TEST_F()
321 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kEverything)); in TEST_F()
323 EXPECT_FALSE(oat_file_assistant.IsInBootClassPath()); 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()
326 EXPECT_TRUE(oat_file_assistant.HasDexFiles()); in TEST_F()
329 &oat_file_assistant, in TEST_F()
348 OatFileAssistant oat_file_assistant( in TEST_F() local
355 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kSpeed)); in TEST_F()
357 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kVerify)); in TEST_F()
359 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kExtract)); in TEST_F()
361 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kEverything)); in TEST_F()
363 EXPECT_FALSE(oat_file_assistant.IsInBootClassPath()); 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()
366 EXPECT_TRUE(oat_file_assistant.HasDexFiles()); in TEST_F()
369 &oat_file_assistant, in TEST_F()
392 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F() local
398 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kSpeed)); in TEST_F()
400 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kVerify)); in TEST_F()
402 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kExtract)); in TEST_F()
404 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kEverything)); in TEST_F()
406 EXPECT_FALSE(oat_file_assistant.IsInBootClassPath()); 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()
409 EXPECT_TRUE(oat_file_assistant.HasDexFiles()); in TEST_F()
429 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F() local
435 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kSpeed)); in TEST_F()
437 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kVerify)); in TEST_F()
439 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kExtract)); in TEST_F()
441 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kEverything)); in TEST_F()
443 EXPECT_FALSE(oat_file_assistant.IsInBootClassPath()); 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()
446 EXPECT_TRUE(oat_file_assistant.HasDexFiles()); in TEST_F()
449 &oat_file_assistant, in TEST_F()
473 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F() local
482 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kSpeed)); in TEST_F()
484 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kVerify)); in TEST_F()
486 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kExtract)); in TEST_F()
488 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kEverything)); in TEST_F()
490 EXPECT_FALSE(oat_file_assistant.IsInBootClassPath()); 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()
493 EXPECT_TRUE(oat_file_assistant.HasDexFiles()); in TEST_F()
512 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F() local
521 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kVerify)); in TEST_F()
523 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kSpeed)); in TEST_F()
525 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kEverything)); in TEST_F()
527 EXPECT_FALSE(oat_file_assistant.IsInBootClassPath()); 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()
530 EXPECT_TRUE(oat_file_assistant.HasDexFiles()); in TEST_F()
548 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F() local
558 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kSpeed)); in TEST_F()
559 EXPECT_FALSE(oat_file_assistant.IsInBootClassPath()); 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()
562 EXPECT_TRUE(oat_file_assistant.HasDexFiles()); in TEST_F()
573 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F() local
582 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kSpeed)); 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() local
606 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kVerify)); in TEST_F()
608 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kSpeed)); in TEST_F()
612 oat_file_assistant.GetStatusDump(); in TEST_F()
615 &oat_file_assistant, in TEST_F()
632 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F() local
637 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kSpeed)); in TEST_F()
661 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F() local
667 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kSpeed)); in TEST_F()
687 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F() local
693 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kSpeedProfile, false)); in TEST_F()
695 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kVerify, false)); in TEST_F()
697 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kSpeedProfile, true)); in TEST_F()
699 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kVerify, true)); in TEST_F()
701 EXPECT_FALSE(oat_file_assistant.IsInBootClassPath()); 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()
704 EXPECT_TRUE(oat_file_assistant.HasDexFiles()); in TEST_F()
723 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F() local
728 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kSpeed)); in TEST_F()
729 EXPECT_TRUE(oat_file_assistant.HasDexFiles()); in TEST_F()
732 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
736 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F()
762 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F() local
767 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kSpeed)); in TEST_F()
768 EXPECT_TRUE(oat_file_assistant.HasDexFiles()); in TEST_F()
791 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F() local
796 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kExtract)); in TEST_F()
798 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kSpeed)); in TEST_F()
800 EXPECT_FALSE(oat_file_assistant.IsInBootClassPath()); 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()
803 EXPECT_TRUE(oat_file_assistant.HasDexFiles()); in TEST_F()
806 &oat_file_assistant, in TEST_F()
824 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F() local
830 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kSpeed)); in TEST_F()
844 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F() local
850 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kSpeed)); in TEST_F()
872 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F() local
877 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kExtract)); in TEST_F()
879 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kVerify)); in TEST_F()
881 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kSpeed)); in TEST_F()
883 EXPECT_FALSE(oat_file_assistant.IsInBootClassPath()); 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()
886 EXPECT_TRUE(oat_file_assistant.HasDexFiles()); in TEST_F()
889 &oat_file_assistant, in TEST_F()
917 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F() local
922 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kExtract)); in TEST_F()
924 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kVerify)); in TEST_F()
926 EXPECT_FALSE(oat_file_assistant.IsInBootClassPath()); 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()
929 EXPECT_TRUE(oat_file_assistant.HasDexFiles()); in TEST_F()
942 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F() local
948 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kExtract)); in TEST_F()
950 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kSpeed)); in TEST_F()
952 EXPECT_FALSE(oat_file_assistant.IsInBootClassPath()); 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()
955 EXPECT_TRUE(oat_file_assistant.HasDexFiles()); in TEST_F()
958 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
970 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F() local
976 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kSpeed)); in TEST_F()
978 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kExtract)); in TEST_F()
980 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kVerify)); in TEST_F()
982 EXPECT_FALSE(oat_file_assistant.IsInBootClassPath()); 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()
985 EXPECT_FALSE(oat_file_assistant.HasDexFiles()); in TEST_F()
988 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kSpeed)); in TEST_F()
990 EXPECT_FALSE(oat_file_assistant.IsInBootClassPath()); 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()
993 EXPECT_FALSE(oat_file_assistant.HasDexFiles()); in TEST_F()
1008 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F() local
1014 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kSpeed)); in TEST_F()
1016 EXPECT_FALSE(oat_file_assistant.IsInBootClassPath()); 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()
1019 EXPECT_TRUE(oat_file_assistant.HasDexFiles()); in TEST_F()
1021 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
1026 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F()
1041 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F() local
1047 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kExtract)); in TEST_F()
1049 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kSpeed)); in TEST_F()
1051 EXPECT_FALSE(oat_file_assistant.IsInBootClassPath()); 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()
1054 EXPECT_TRUE(oat_file_assistant.HasDexFiles()); in TEST_F()
1075 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F() local
1080 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
1084 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F()
1106 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F() local
1111 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
1115 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F()
1138 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F() local
1143 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
1147 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F()
1194 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F() local
1199 EXPECT_FALSE(oat_file_assistant.IsInBootClassPath()); in TEST_F()
1201 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kSpeed)); 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() local
1216 EXPECT_FALSE(oat_file_assistant.IsInBootClassPath()); in TEST_F()
1218 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kSpeed)); 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()
1221 EXPECT_FALSE(oat_file_assistant.HasDexFiles()); in TEST_F()
1230 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F() local
1236 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kSpeed)); in TEST_F()
1238 EXPECT_FALSE(oat_file_assistant.IsInBootClassPath()); 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() local
1353 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
1357 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F()
1372 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F() local
1377 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
1381 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F()
1459 OatFileAssistant oat_file_assistant( in TEST_F() local
1463 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kDefaultCompilerFilter)); in TEST_F()
1470 OatFileAssistant oat_file_assistant( in TEST_F() local
1476 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kExtract)); in TEST_F()
1483 OatFileAssistant oat_file_assistant( in TEST_F() local
1489 GetDexOptNeeded(&oat_file_assistant, CompilerFilter::kExtract)); in TEST_F()
1671 OatFileAssistant oat_file_assistant( in TEST_F() local
1673 EXPECT_EQ(OatFileAssistant::kOatUpToDate, oat_file_assistant.OdexFileStatus()); in TEST_F()
1685 OatFileAssistant oat_file_assistant( in TEST_F() local
1687 EXPECT_EQ(OatFileAssistant::kOatUpToDate, oat_file_assistant.OdexFileStatus()); in TEST_F()
1699 OatFileAssistant oat_file_assistant( in TEST_F() local
1701 EXPECT_EQ(OatFileAssistant::kDex2OatForBootImage, oat_file_assistant.OdexFileStatus()); in TEST_F()