Lines Matching refs:c_str

49     ASSERT_EQ(0, mkdir(scratch_dir_.c_str(), 0700));  in SetUp()
53 ASSERT_EQ(0, mkdir(odex_oat_dir_.c_str(), 0700)); in SetUp()
56 ASSERT_EQ(0, mkdir(odex_dir_.c_str(), 0700)); in SetUp()
62 ASSERT_TRUE(OS::FileExists(GetImageFile().c_str())) in SetUp()
64 ASSERT_TRUE(OS::FileExists(GetDexSrc1().c_str())) in SetUp()
66 ASSERT_TRUE(OS::FileExists(GetStrippedDexSrc1().c_str())) in SetUp()
68 ASSERT_FALSE(DexFile::GetChecksum(GetStrippedDexSrc1().c_str(), &checksum, &error_msg)) in SetUp()
70 ASSERT_TRUE(OS::FileExists(GetDexSrc2().c_str())) in SetUp()
76 ASSERT_TRUE(DexFile::Open(GetMultiDexSrc1().c_str(), in SetUp()
77 GetMultiDexSrc1().c_str(), &error_msg, &multi1)) << error_msg; in SetUp()
81 ASSERT_TRUE(DexFile::Open(GetMultiDexSrc2().c_str(), in SetUp()
82 GetMultiDexSrc2().c_str(), &error_msg, &multi2)) << error_msg; in SetUp()
109 ClearDirectory(odex_dir_.c_str()); in TearDown()
110 ASSERT_EQ(0, rmdir(odex_dir_.c_str())); in TearDown()
112 ClearDirectory(odex_oat_dir_.c_str()); in TearDown()
113 ASSERT_EQ(0, rmdir(odex_oat_dir_.c_str())); in TearDown()
115 ClearDirectory(scratch_dir_.c_str()); in TearDown()
116 ASSERT_EQ(0, rmdir(scratch_dir_.c_str())); in TearDown()
195 setenv("ANDROID_DATA", android_data_tmp.c_str(), 1); in GenerateOdexForTest()
212 setenv("ANDROID_DATA", android_data_.c_str(), 1); in GenerateOdexForTest()
297 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
320 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
339 GenerateOatForTest(dex_location.c_str()); in TEST_F()
341 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
361 GenerateOatForTest(dex_location.c_str()); in TEST_F()
363 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
372 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F()
383 GenerateOatForTest(dex_location.c_str()); in TEST_F()
389 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
414 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
415 oat_location.c_str(), in TEST_F()
421 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F()
433 GenerateOatForTest(dex_location.c_str()); in TEST_F()
436 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
460 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
489 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
522 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F()
534 GenerateOatForTest(dex_location.c_str()); in TEST_F()
544 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
580 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F()
592 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
634 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
635 oat_location.c_str(), kRuntimeISA, true); in TEST_F()
671 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F()
692 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F()
693 oat_location.c_str(), kRuntimeISA, true); in TEST_F()
712 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F()
739 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
759 GenerateOatForTest(dex_location.c_str()); in TEST_F()
762 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
768 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F()
778 GenerateOatForTest(dex_location.c_str()); in TEST_F()
781 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
787 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F()
801 dex_location.c_str(), oat_location.c_str(), kRuntimeISA, true); in TEST_F()
809 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F()
812 EXPECT_TRUE(OS::FileExists(oat_location.c_str())); in TEST_F()
815 OatFileAssistant ofm(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
862 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
879 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
903 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
932 …dex_files = linker->OpenDexFilesFromOat(dex_location_.c_str(), oat_location_.c_str(), &error_msgs); in Run()
992 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
998 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F()
1014 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
1020 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F()