Lines Matching refs:c_str
87 if (chmod(dex_parent_.c_str(), 0555) != 0) { in ScopedNonWritable()
93 bool IsSuccessful() { return is_valid_ && (access(dex_parent_.c_str(), W_OK) != 0); } in IsSuccessful()
97 if (chmod(dex_parent_.c_str(), 0777) != 0) { in ~ScopedNonWritable()
118 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
142 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
167 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
199 ASSERT_EQ(0, symlink(scratch_dir.c_str(), link.c_str())); in TEST_F()
202 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
230 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kSpeed); in TEST_F()
236 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
264 GenerateOatForTest(dex_location.c_str(), in TEST_F()
265 odex_location.c_str(), in TEST_F()
271 android::base::unique_fd odex_fd(open(odex_location.c_str(), O_RDONLY)); in TEST_F()
272 android::base::unique_fd vdex_fd(open(vdex_location.c_str(), O_RDONLY)); in TEST_F()
273 android::base::unique_fd zip_fd(open(dex_location.c_str(), O_RDONLY)); in TEST_F()
275 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
305 GenerateOatForTest(dex_location.c_str(), in TEST_F()
306 odex_location.c_str(), in TEST_F()
312 android::base::unique_fd vdex_fd(open(vdex_location.c_str(), O_RDONLY)); in TEST_F()
313 android::base::unique_fd zip_fd(open(dex_location.c_str(), O_RDONLY)); in TEST_F()
315 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
340 GenerateOatForTest(dex_location.c_str(), in TEST_F()
341 odex_location.c_str(), in TEST_F()
347 android::base::unique_fd odex_fd(open(odex_location.c_str(), O_RDONLY)); in TEST_F()
348 android::base::unique_fd zip_fd(open(dex_location.c_str(), O_RDONLY)); in TEST_F()
350 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
373 android::base::unique_fd zip_fd(open(dex_location.c_str(), O_RDONLY)); in TEST_F()
374 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
398 ASSERT_EQ(0, unlink(odex_location.c_str())); in TEST_F()
400 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
424 ScratchFile vdex_file(vdex_location.c_str()); in TEST_F()
425 ScratchFile odex_file(odex_location.c_str()); in TEST_F()
427 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
448 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kSpeed); in TEST_F()
449 ASSERT_EQ(0, unlink(oat_location.c_str())); in TEST_F()
453 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
476 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kSpeedProfile); in TEST_F()
481 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
509 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kSpeed); in TEST_F()
514 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
524 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F()
541 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kSpeed); in TEST_F()
550 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
564 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kSpeed); in TEST_F()
574 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, /*load_executable*/false); in TEST_F()
608 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
614 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F()
632 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kSpeed); in TEST_F()
638 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
658 ASSERT_EQ(0, unlink(odex_location.c_str())); in TEST_F()
661 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
675 ASSERT_EQ(0, unlink(odex_location.c_str())); in TEST_F()
678 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
696 GenerateOatForTest(dex_location.c_str(), in TEST_F()
705 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
733 GenerateOatForTest(dex_location.c_str(), in TEST_F()
742 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
764 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
794 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
809 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F()
820 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kSpeed); in TEST_F()
830 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
849 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F()
861 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
901 GenerateOatForTest(dex_location.c_str(), in TEST_F()
908 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
927 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F()
942 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
967 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kSpeed); in TEST_F()
973 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
979 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F()
995 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kQuicken); in TEST_F()
1001 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
1007 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F()
1027 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kSpeed); in TEST_F()
1030 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
1036 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F()
1054 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
1063 OatFileAssistant ofm(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
1112 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
1126 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
1149 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
1173 dex_location_.c_str(), in Run()
1245 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
1251 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F()
1267 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
1273 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F()
1281 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
1358 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
1377 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
1398 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
1426 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
1446 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
1465 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
1496 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
1525 EXPECT_FALSE(LocationIsOnSystem(dex_location.c_str())); in TEST_F()
1528 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
1538 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
1548 EXPECT_TRUE(LocationIsOnSystem(system_location.c_str())); in TEST_F()
1551 OatFileAssistant oat_file_assistant(system_location.c_str(), in TEST_F()
1561 OatFileAssistant oat_file_assistant(system_location.c_str(), in TEST_F()