Home | History | Annotate | Download | only in runtime

Lines Matching full:oatfileassistant

108     ASSERT_TRUE(OatFileAssistant::Dex2Oat(args, &error_msg)) << error_msg;
132 uint32_t combined_checksum = OatFileAssistant::CalculateCombinedImageChecksum();
216 OatFileAssistant ofa(dex_location, kRuntimeISA, false, false);
227 ASSERT_TRUE(OatFileAssistant::Dex2Oat(args, &error_msg)) << error_msg;
248 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false, false);
250 EXPECT_EQ(OatFileAssistant::kDex2OatNeeded,
252 EXPECT_EQ(OatFileAssistant::kDex2OatNeeded,
254 EXPECT_EQ(OatFileAssistant::kDex2OatNeeded,
256 EXPECT_EQ(OatFileAssistant::kDex2OatNeeded,
264 EXPECT_EQ(OatFileAssistant::kOatOutOfDate, oat_file_assistant.OdexFileStatus());
269 EXPECT_EQ(OatFileAssistant::kOatOutOfDate, oat_file_assistant.OatFileStatus());
278 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false, true);
280 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded,
286 EXPECT_EQ(OatFileAssistant::kUpdateSucceeded,
301 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false, false);
303 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded,
305 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded,
307 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded,
309 EXPECT_EQ(OatFileAssistant::kDex2OatNeeded,
320 EXPECT_EQ(OatFileAssistant::kOatUpToDate, oat_file_assistant.OatFileStatus());
331 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false, false);
333 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded,
335 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded,
346 EXPECT_EQ(OatFileAssistant::kOatUpToDate, oat_file_assistant.OatFileStatus());
357 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true, false);
359 EXPECT_EQ(OatFileAssistant::kDex2OatNeeded,
361 EXPECT_EQ(OatFileAssistant::kDex2OatNeeded,
372 EXPECT_EQ(OatFileAssistant::kOatOutOfDate, oat_file_assistant.OatFileStatus());
383 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false, true);
384 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded,
410 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false, true);
411 EXPECT_EQ(OatFileAssistant::kDex2OatNeeded,
434 ASSERT_TRUE(OatFileAssistant::Dex2Oat(args, &error_msg)) << error_msg;
437 OatFileAssistant oat_file_assistant(dex_location.c_str(),
459 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false, false);
460 EXPECT_EQ(OatFileAssistant::kDex2OatNeeded,
462 EXPECT_EQ(OatFileAssistant::kDex2OatNeeded,
486 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false, false);
488 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded,
490 EXPECT_EQ(OatFileAssistant::kPatchOatNeeded,
522 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false, true);
524 EXPECT_EQ(OatFileAssistant::kPatchOatNeeded,
538 ASSERT_EQ(OatFileAssistant::kUpdateSucceeded,
541 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded,
580 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false, true);
582 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded,
584 EXPECT_EQ(OatFileAssistant::kPatchOatNeeded,
586 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, // Can't run dex2oat because dex file is stripped.
601 ASSERT_EQ(OatFileAssistant::kUpdateSucceeded,
604 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded,
606 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, // Can't run dex2oat because dex file is stripped.
637 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false, true);
639 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded,
641 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded,
643 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded,
658 EXPECT_EQ(OatFileAssistant::kUpdateSucceeded,
661 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded,
686 OatFileAssistant oat_file_assistant(dex_location.c_str(),
689 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded,
691 EXPECT_EQ(OatFileAssistant::kSelfPatchOatNeeded,
693 EXPECT_EQ(OatFileAssistant::kDex2OatNeeded,
709 ASSERT_EQ(OatFileAssistant::kUpdateSucceeded,
712 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded,
745 OatFileAssistant oat_file_assistant(dex_location.c_str(),
748 EXPECT_EQ(OatFileAssistant::kDex2OatNeeded,
753 ASSERT_EQ(OatFileAssistant::kUpdateSucceeded,
755 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded,
783 OatFileAssistant oat_file_assistant(dex_location.c_str(),
786 EXPECT_EQ(OatFileAssistant::kPatchOatNeeded,
819 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false, false);
821 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded,
823 EXPECT_EQ(OatFileAssistant::kDex2OatNeeded,
847 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false, false);
849 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded,
851 EXPECT_EQ(OatFileAssistant::kDex2OatNeeded,
873 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false, true);
892 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false, true);
911 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false, false);
930 OatFileAssistant oat_file_assistant(
933 ASSERT_EQ(OatFileAssistant::kUpdateSucceeded,
946 OatFileAssistant ofm(dex_location.c_str(), kRuntimeISA, false, false);
961 OatFileAssistant oat_file_assistant(
964 ASSERT_EQ(OatFileAssistant::kUpdateNotAttempted,
977 OatFileAssistant oat_file_assistant(
980 EXPECT_EQ(OatFileAssistant::kUpdateNotAttempted,
1027 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false, true);
1030 EXPECT_EQ(OatFileAssistant::kDex2OatNeeded,
1045 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false, true);
1048 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded,
1060 EXPECT_EQ(OatFileAssistant::kUpdateSucceeded,
1071 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false, false);
1073 EXPECT_EQ(OatFileAssistant::kDex2OatNeeded,
1168 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false, true);
1190 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false, true);
1204 EXPECT_TRUE(OatFileAssistant::DexFilenameToOdexFilename(
1208 EXPECT_TRUE(OatFileAssistant::DexFilenameToOdexFilename(
1212 EXPECT_FALSE(OatFileAssistant::DexFilenameToOdexFilename(
1214 EXPECT_FALSE(OatFileAssistant::DexFilenameToOdexFilename(
1219 // match the OatFileAssistant::DexOptStatus values.
1233 EXPECT_EQ(OatFileAssistant::kNoDexOptNeeded, no_dexopt_needed->GetInt(dexfile.Get()));
1239 EXPECT_EQ(OatFileAssistant::kDex2OatNeeded, dex2oat_needed->GetInt(dexfile.Get()));
1245 EXPECT_EQ(OatFileAssistant::kPatchOatNeeded, patchoat_needed->GetInt(dexfile.Get()));
1251 EXPECT_EQ(OatFileAssistant::kSelfPatchOatNeeded, self_patchoat_needed->GetInt(dexfile.Get()));