Home | History | Annotate | Download | only in runtime

Lines Matching full:oatfileassistant

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