Lines Matching refs:dex_location
76 explicit ScopedNonWritable(const std::string& dex_location) { in ScopedNonWritable() argument
78 size_t pos = dex_location.rfind('/'); in ScopedNonWritable()
81 dex_parent_ = dex_location.substr(0, pos); in ScopedNonWritable()
111 std::string dex_location = GetScratchDir() + "/RelativeEncodedDexLocation.jar"; in TEST_F() local
115 Copy(GetMultiDexSrc1(), dex_location); in TEST_F()
119 "--dex-file=" + dex_location, in TEST_F()
129 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
135 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F()
140 std::string dex_location = GetScratchDir() + "/TestDex.jar"; in TEST_F() local
143 Copy(GetDexSrc1(), dex_location); in TEST_F()
146 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
155 args.push_back("--dex-file=" + dex_location); in TEST_F()
167 std::string dex_location = GetScratchDir() + "/TestDex.jar"; in TEST_F() local
170 Copy(GetDexSrc1(), dex_location); in TEST_F()
173 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
182 args.push_back("--dex-file=" + dex_location); in TEST_F()
201 std::string dex_location = GetScratchDir() + "/DexNoOat.jar"; in TEST_F() local
202 Copy(GetDexSrc1(), dex_location); in TEST_F()
204 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
220 VerifyOptimizationStatus(dex_location, "run-from-apk", "unknown"); in TEST_F()
226 std::string dex_location = GetScratchDir() + "/NoDexNoOat.jar"; in TEST_F() local
228 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
242 std::string dex_location = GetScratchDir() + "/OdexUpToDate.jar"; in TEST_F() local
244 Copy(GetDexSrc1(), dex_location); in TEST_F()
245 GenerateOdexForTest(dex_location, odex_location, CompilerFilter::kSpeed, "install"); in TEST_F()
249 dex_location.c_str(), kRuntimeISA, /*load_executable=*/ false); in TEST_F()
265 VerifyOptimizationStatus(dex_location, CompilerFilter::kSpeed, "install"); in TEST_F()
271 std::string dex_location = GetScratchDir() + "/OdexUpToDate.jar"; in TEST_F() local
273 Copy(GetDexSrc1(), dex_location); in TEST_F()
274 GenerateOdexForTest(dex_location, odex_location, CompilerFilter::kSpeed, "install"); in TEST_F()
281 dex_location.c_str(), kRuntimeISA, /*load_executable=*/ false); in TEST_F()
297 VerifyOptimizationStatus(dex_location, CompilerFilter::kSpeed, "install"); in TEST_F()
305 std::string dex_location = GetScratchDir() + "/OdexUpToDate.jar"; in TEST_F() local
308 Copy(GetDexSrc1(), dex_location); in TEST_F()
309 GenerateOdexForTest(dex_location, odex_location, CompilerFilter::kSpeed); in TEST_F()
314 dex_location = link + "/OdexUpToDate.jar"; in TEST_F()
316 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
342 std::string dex_location = GetScratchDir() + "/OatUpToDate.jar"; in TEST_F() local
343 Copy(GetDexSrc1(), dex_location); in TEST_F()
344 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kSpeed); in TEST_F()
347 ScopedNonWritable scoped_non_writable(dex_location); in TEST_F()
350 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
366 VerifyOptimizationStatus(dex_location, CompilerFilter::kSpeed, "unknown"); in TEST_F()
372 std::string dex_location = GetScratchDir() + "/OatUpToDate.jar"; in TEST_F() local
376 Copy(GetDexSrc1(), dex_location); in TEST_F()
377 GenerateOatForTest(dex_location.c_str(), in TEST_F()
384 android::base::unique_fd zip_fd(open(dex_location.c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F()
386 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
411 std::string dex_location = GetScratchDir() + "/OatUpToDate.jar"; in TEST_F() local
415 Copy(GetDexSrc1(), dex_location); in TEST_F()
416 GenerateOatForTest(dex_location.c_str(), in TEST_F()
422 android::base::unique_fd zip_fd(open(dex_location.c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F()
424 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
445 std::string dex_location = GetScratchDir() + "/OatUpToDate.jar"; in TEST_F() local
448 Copy(GetDexSrc1(), dex_location); in TEST_F()
449 GenerateOatForTest(dex_location.c_str(), in TEST_F()
455 android::base::unique_fd zip_fd(open(dex_location.c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F()
457 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
476 std::string dex_location = GetScratchDir() + "/OatUpToDate.jar"; in TEST_F() local
478 Copy(GetDexSrc1(), dex_location); in TEST_F()
480 android::base::unique_fd zip_fd(open(dex_location.c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F()
481 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
497 std::string dex_location = GetScratchDir() + "/VdexUpToDateNoOdex.jar"; in TEST_F() local
500 Copy(GetDexSrc1(), dex_location); in TEST_F()
504 GenerateOdexForTest(dex_location, odex_location, CompilerFilter::kSpeed); in TEST_F()
507 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
521 VerifyOptimizationStatus(dex_location, "run-from-apk", "unknown"); in TEST_F()
526 std::string dex_location = GetScratchDir() + "/EmptyVdexOdex.jar"; in TEST_F() local
530 Copy(GetDexSrc1(), dex_location); in TEST_F()
534 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
548 std::string dex_location = GetScratchDir() + "/VdexUpToDateNoOat.jar"; in TEST_F() local
552 dex_location, kRuntimeISA, &oat_location, &error_msg)) << error_msg; in TEST_F()
554 Copy(GetDexSrc1(), dex_location); in TEST_F()
555 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kSpeed); in TEST_F()
558 ScopedNonWritable scoped_non_writable(dex_location); in TEST_F()
560 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
581 std::string dex_location = GetScratchDir() + "/ProfileOatUpToDate.jar"; in TEST_F() local
582 Copy(GetDexSrc1(), dex_location); in TEST_F()
583 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kSpeedProfile); in TEST_F()
585 ScopedNonWritable scoped_non_writable(dex_location); in TEST_F()
588 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
614 std::string dex_location = GetScratchDir() + "/MultiDexOatUpToDate.jar"; in TEST_F() local
615 Copy(GetMultiDexSrc1(), dex_location); in TEST_F()
616 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kSpeed); in TEST_F()
618 ScopedNonWritable scoped_non_writable(dex_location); in TEST_F()
621 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
631 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F()
644 std::string dex_location = GetScratchDir() + "/MultiDexNonMainOutOfDate.jar"; in TEST_F() local
647 Copy(GetMultiDexSrc1(), dex_location); in TEST_F()
648 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kSpeed); in TEST_F()
652 Copy(GetMultiDexSrc2(), dex_location); in TEST_F()
654 ScopedNonWritable scoped_non_writable(dex_location); in TEST_F()
657 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
666 std::string dex_location = GetScratchDir() + "/StrippedMultiDexNonMainOutOfDate.jar"; in TEST_F() local
670 Copy(GetMultiDexSrc1(), dex_location); in TEST_F()
671 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kSpeed); in TEST_F()
675 Copy(GetMultiDexSrc2(), dex_location); in TEST_F()
676 GenerateOdexForTest(dex_location, odex_location, CompilerFilter::kQuicken); in TEST_F()
679 Copy(GetStrippedDexSrc1(), dex_location); in TEST_F()
681 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, /*load_executable=*/false); in TEST_F()
703 std::string dex_location = GetScratchDir() + "/OatDexOutOfDate.jar"; in TEST_F() local
707 Copy(GetDexSrc1(), dex_location); in TEST_F()
708 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kSpeed); in TEST_F()
709 Copy(GetDexSrc2(), dex_location); in TEST_F()
711 ScopedNonWritable scoped_non_writable(dex_location); in TEST_F()
714 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
729 std::string dex_location = GetScratchDir() + "/VdexDexOutOfDate.jar"; in TEST_F() local
732 Copy(GetDexSrc1(), dex_location); in TEST_F()
733 GenerateOdexForTest(dex_location, odex_location, CompilerFilter::kSpeed); in TEST_F()
735 Copy(GetDexSrc2(), dex_location); in TEST_F()
737 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
746 std::string dex_location = GetScratchDir() + "/VdexMultiDexNonMainOutOfDate.jar"; in TEST_F() local
749 Copy(GetMultiDexSrc1(), dex_location); in TEST_F()
750 GenerateOdexForTest(dex_location, odex_location, CompilerFilter::kSpeed); in TEST_F()
752 Copy(GetMultiDexSrc2(), dex_location); in TEST_F()
754 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
769 std::string dex_location = GetScratchDir() + "/OatImageOutOfDate.jar"; in TEST_F() local
771 Copy(GetDexSrc1(), dex_location); in TEST_F()
772 GenerateOatForTest(dex_location.c_str(), in TEST_F()
776 ScopedNonWritable scoped_non_writable(dex_location); in TEST_F()
779 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
804 std::string dex_location = GetScratchDir() + "/OatVerifyAtRuntimeImageOutOfDate.jar"; in TEST_F() local
806 Copy(GetDexSrc1(), dex_location); in TEST_F()
807 GenerateOatForTest(dex_location.c_str(), in TEST_F()
811 ScopedNonWritable scoped_non_writable(dex_location); in TEST_F()
814 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
828 std::string dex_location = GetScratchDir() + "/DexOdexNoOat.jar"; in TEST_F() local
832 Copy(GetDexSrc1(), dex_location); in TEST_F()
833 GenerateOdexForTest(dex_location, odex_location, CompilerFilter::kSpeed); in TEST_F()
836 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
855 std::string dex_location = GetScratchDir() + "/StrippedDexOdexNoOat.jar"; in TEST_F() local
859 Copy(GetDexSrc1(), dex_location); in TEST_F()
860 GenerateOdexForTest(dex_location, odex_location, CompilerFilter::kSpeed); in TEST_F()
863 Copy(GetStrippedDexSrc1(), dex_location); in TEST_F()
866 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
881 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F()
887 std::string dex_location = GetScratchDir() + "/StrippedDexOdexOat.jar"; in TEST_F() local
891 Copy(GetDexSrc2(), dex_location); in TEST_F()
892 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kSpeed); in TEST_F()
895 Copy(GetDexSrc1(), dex_location); in TEST_F()
896 GenerateOdexForTest(dex_location, odex_location, CompilerFilter::kSpeed); in TEST_F()
899 Copy(GetStrippedDexSrc1(), dex_location); in TEST_F()
902 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
921 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F()
928 std::string dex_location = GetScratchDir() + "/ResourceOnlyDex.jar"; in TEST_F() local
930 Copy(GetStrippedDexSrc1(), dex_location); in TEST_F()
933 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
959 std::string dex_location = GetScratchDir() + "/OdexOatOverlap.jar"; in TEST_F() local
963 Copy(GetDexSrc1(), dex_location); in TEST_F()
964 GenerateOdexForTest(dex_location, odex_location, CompilerFilter::kSpeed); in TEST_F()
965 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kSpeed); in TEST_F()
968 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
983 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F()
990 std::string dex_location = GetScratchDir() + "/DexVerifyAtRuntimeOdexNoOat.jar"; in TEST_F() local
994 Copy(GetDexSrc1(), dex_location); in TEST_F()
995 GenerateOdexForTest(dex_location, odex_location, CompilerFilter::kExtract); in TEST_F()
998 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
1020 std::string dex_location = GetScratchDir() + "/LoadOatUpToDate.jar"; in TEST_F() local
1022 Copy(GetDexSrc1(), dex_location); in TEST_F()
1023 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kSpeed); in TEST_F()
1025 ScopedNonWritable scoped_non_writable(dex_location); in TEST_F()
1029 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
1035 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F()
1048 std::string dex_location = GetScratchDir() + "/LoadExecInterpretOnlyOatUpToDate.jar"; in TEST_F() local
1050 Copy(GetDexSrc1(), dex_location); in TEST_F()
1051 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kQuicken); in TEST_F()
1053 ScopedNonWritable scoped_non_writable(dex_location); in TEST_F()
1057 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
1063 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F()
1076 std::string dex_location = GetScratchDir() + "/LoadNoExecOatUpToDate.jar"; in TEST_F() local
1078 Copy(GetDexSrc1(), dex_location); in TEST_F()
1080 ScopedNonWritable scoped_non_writable(dex_location); in TEST_F()
1083 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kSpeed); in TEST_F()
1086 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
1092 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F()
1138 std::string dex_location = MakePathRelative(abs_dex_location); in TEST_F() local
1139 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
1151 std::string dex_location = "/xx"; in TEST_F() local
1153 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
1166 std::string dex_location = GetScratchDir() + "/LongDexExtension.jarx"; in TEST_F() local
1167 Copy(GetDexSrc1(), dex_location); in TEST_F()
1169 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
1183 const std::string& dex_location, in RaceGenerateTask() argument
1187 dex_location_(dex_location), in RaceGenerateTask()
1237 std::string dex_location = GetScratchDir() + "/RaceToGenerate.jar"; in TEST_F() local
1246 Copy(GetLibCoreDexFileNames()[0], dex_location); in TEST_F()
1255 new RaceGenerateTask(*this, dex_location, oat_location, &lock)); in TEST_F()
1276 std::string dex_location = GetScratchDir() + "/LoadDexOdexNoOat.jar"; in TEST_F() local
1280 Copy(GetDexSrc1(), dex_location); in TEST_F()
1281 GenerateOdexForTest(dex_location, odex_location, CompilerFilter::kSpeed); in TEST_F()
1284 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
1290 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F()
1297 std::string dex_location = GetScratchDir() + "/LoadMultiDexOdexNoOat.jar"; in TEST_F() local
1301 Copy(GetMultiDexSrc1(), dex_location); in TEST_F()
1302 GenerateOdexForTest(dex_location, odex_location, CompilerFilter::kSpeed); in TEST_F()
1305 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
1311 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F()
1361 std::string dex_location = GetScratchDir() + "/TestDex.jar"; in TEST_F() local
1363 Copy(GetDexSrc1(), dex_location); in TEST_F()
1366 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
1390 std::string dex_location = GetScratchDir() + "/TestDex.jar"; in TEST_F() local
1397 Copy(GetDexSrc1(), dex_location); in TEST_F()
1404 dex_location.c_str(), in TEST_F()
1415 args.push_back("--dex-file=" + dex_location); in TEST_F()
1422 dex_location.c_str(), in TEST_F()
1437 std::string dex_location = GetAndroidRoot() + "/framework/" + filebase + ".jar"; in TEST_F() local
1438 Copy(GetDexSrc1(), dex_location); in TEST_F()
1458 dex_location.c_str(), in TEST_F()
1464 EXPECT_EQ(oat_file, nullptr) << dex_location; in TEST_F()
1479 args.push_back("--dex-file=" + dex_location); in TEST_F()
1486 dex_location.c_str(), in TEST_F()