Lines Matching refs:c_str

111       if (chmod(dex_parent_.c_str(), 0555) != 0)  {  in ScopedNonWritable()
117 bool IsSuccessful() { return is_valid_ && (access(dex_parent_.c_str(), W_OK) != 0); } in IsSuccessful()
121 if (chmod(dex_parent_.c_str(), 0777) != 0) { in ~ScopedNonWritable()
158 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
164 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F()
175 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
202 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
231 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
255 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
276 dex_location.c_str(), kRuntimeISA, /*load_executable=*/ false); in TEST_F()
308 dex_location.c_str(), kRuntimeISA, /*load_executable=*/ false); in TEST_F()
340 ASSERT_EQ(0, symlink(scratch_dir.c_str(), link.c_str())); in TEST_F()
343 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
371 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kSpeed); in TEST_F()
377 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
404 GenerateOatForTest(dex_location.c_str(), in TEST_F()
405 odex_location.c_str(), in TEST_F()
409 android::base::unique_fd odex_fd(open(odex_location.c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F()
410 android::base::unique_fd vdex_fd(open(vdex_location.c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F()
411 android::base::unique_fd zip_fd(open(dex_location.c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F()
413 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
443 GenerateOatForTest(dex_location.c_str(), in TEST_F()
444 odex_location.c_str(), in TEST_F()
448 android::base::unique_fd vdex_fd(open(vdex_location.c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F()
449 android::base::unique_fd zip_fd(open(dex_location.c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F()
451 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
476 GenerateOatForTest(dex_location.c_str(), in TEST_F()
477 odex_location.c_str(), in TEST_F()
481 android::base::unique_fd odex_fd(open(odex_location.c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F()
482 android::base::unique_fd zip_fd(open(dex_location.c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F()
484 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
507 android::base::unique_fd zip_fd(open(dex_location.c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F()
508 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
532 ASSERT_EQ(0, unlink(odex_location.c_str())); in TEST_F()
534 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
558 ScratchFile vdex_file(vdex_location.c_str()); in TEST_F()
559 ScratchFile odex_file(odex_location.c_str()); in TEST_F()
561 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
582 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kSpeed); in TEST_F()
583 ASSERT_EQ(0, unlink(oat_location.c_str())); in TEST_F()
587 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
610 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kSpeedProfile); in TEST_F()
615 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
643 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kSpeed); in TEST_F()
648 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
658 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F()
675 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kSpeed); in TEST_F()
684 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
704 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kSpeed); in TEST_F()
710 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
730 ASSERT_EQ(0, unlink(odex_location.c_str())); in TEST_F()
733 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
747 ASSERT_EQ(0, unlink(odex_location.c_str())); in TEST_F()
750 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
768 GenerateOatForTest(dex_location.c_str(), in TEST_F()
775 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
803 GenerateOatForTest(dex_location.c_str(), in TEST_F()
810 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
832 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
857 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
889 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kSpeed); in TEST_F()
892 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
907 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F()
922 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
947 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kSpeed); in TEST_F()
953 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
959 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F()
975 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kQuicken); in TEST_F()
981 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
987 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F()
1007 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kSpeed); in TEST_F()
1010 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
1016 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F()
1063 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
1077 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
1093 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
1134 dex_location_.c_str(), in Run()
1208 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
1214 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F()
1229 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
1235 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F()
1311 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
1321 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
1350 dex_location.c_str(), in TEST_F()
1369 dex_location.c_str(), in TEST_F()
1388 mkdir(odex_dir.c_str(), 0700); in TEST_F()
1390 mkdir(odex_dir.c_str(), 0700); in TEST_F()
1394 remove(oat_location.c_str()); in TEST_F()
1406 dex_location.c_str(), in TEST_F()
1435 dex_location.c_str(), in TEST_F()
1455 EXPECT_EQ(0, remove(oat_location.c_str())); in TEST_F()
1472 unlink(art_location.c_str()); in TEST_F()
1482 dex_location.c_str(), in TEST_F()