Lines Matching refs:c_str
82 if (chmod(dex_parent_.c_str(), 0555) != 0) { in ScopedNonWritable()
88 bool IsSuccessful() { return is_valid_ && (access(dex_parent_.c_str(), W_OK) != 0); } in IsSuccessful()
92 if (chmod(dex_parent_.c_str(), 0777) != 0) { in ~ScopedNonWritable()
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()
146 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
173 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
204 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
228 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
249 dex_location.c_str(), kRuntimeISA, /*load_executable=*/ false); in TEST_F()
281 dex_location.c_str(), kRuntimeISA, /*load_executable=*/ false); in TEST_F()
313 ASSERT_EQ(0, symlink(scratch_dir.c_str(), link.c_str())); in TEST_F()
316 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
344 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kSpeed); in TEST_F()
350 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
377 GenerateOatForTest(dex_location.c_str(), in TEST_F()
378 odex_location.c_str(), in TEST_F()
382 android::base::unique_fd odex_fd(open(odex_location.c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F()
383 android::base::unique_fd vdex_fd(open(vdex_location.c_str(), O_RDONLY | O_CLOEXEC)); 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()
416 GenerateOatForTest(dex_location.c_str(), in TEST_F()
417 odex_location.c_str(), in TEST_F()
421 android::base::unique_fd vdex_fd(open(vdex_location.c_str(), O_RDONLY | O_CLOEXEC)); 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()
449 GenerateOatForTest(dex_location.c_str(), in TEST_F()
450 odex_location.c_str(), in TEST_F()
454 android::base::unique_fd odex_fd(open(odex_location.c_str(), O_RDONLY | O_CLOEXEC)); 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()
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()
505 ASSERT_EQ(0, unlink(odex_location.c_str())); in TEST_F()
507 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
531 ScratchFile vdex_file(vdex_location.c_str()); in TEST_F()
532 ScratchFile odex_file(odex_location.c_str()); in TEST_F()
534 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
555 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kSpeed); in TEST_F()
556 ASSERT_EQ(0, unlink(oat_location.c_str())); in TEST_F()
560 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
583 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kSpeedProfile); in TEST_F()
588 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
616 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kSpeed); 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()
648 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kSpeed); in TEST_F()
657 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
671 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kSpeed); in TEST_F()
681 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, /*load_executable=*/false); in TEST_F()
708 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kSpeed); in TEST_F()
714 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
734 ASSERT_EQ(0, unlink(odex_location.c_str())); in TEST_F()
737 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
751 ASSERT_EQ(0, unlink(odex_location.c_str())); in TEST_F()
754 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
772 GenerateOatForTest(dex_location.c_str(), in TEST_F()
779 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
807 GenerateOatForTest(dex_location.c_str(), in TEST_F()
814 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
836 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); 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()
892 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kSpeed); 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()
933 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); 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()
998 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
1023 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kSpeed); 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()
1051 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kQuicken); 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()
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()
1139 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
1153 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
1169 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
1210 dex_location_.c_str(), in Run()
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()
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()
1366 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
1404 dex_location.c_str(), in TEST_F()
1422 dex_location.c_str(), in TEST_F()
1441 mkdir(odex_dir.c_str(), 0700); in TEST_F()
1443 mkdir(odex_dir.c_str(), 0700); in TEST_F()
1446 remove(oat_location.c_str()); in TEST_F()
1458 dex_location.c_str(), in TEST_F()
1486 dex_location.c_str(), in TEST_F()
1506 EXPECT_EQ(0, remove(oat_location.c_str())); in TEST_F()