Lines Matching refs:std

55     odex_dir_ = odex_oat_dir_ + "/" + std::string(GetInstructionSetString(kRuntimeISA));  in SetUp()
61 std::string error_msg; in SetUp()
75 std::vector<std::unique_ptr<const DexFile>> multi1; in SetUp()
80 std::vector<std::unique_ptr<const DexFile>> multi2; in SetUp()
93 options->push_back(std::make_pair("-Ximage:" + GetImageLocation(), in SetUpRuntimeOptions()
121 void Copy(std::string src, std::string dst) { in Copy()
122 std::ifstream src_stream(src, std::ios::binary); in Copy()
123 std::ofstream dst_stream(dst, std::ios::binary); in Copy()
132 std::string GetImageDirectory() { in GetImageDirectory()
136 return std::string(host_dir) + "/framework"; in GetImageDirectory()
138 return std::string("/data/art-test"); in GetImageDirectory()
142 std::string GetImageLocation() { in GetImageLocation()
146 std::string GetImageFile() { in GetImageFile()
151 std::string GetDexSrc1() { in GetDexSrc1()
157 std::string GetStrippedDexSrc1() { in GetStrippedDexSrc1()
161 std::string GetMultiDexSrc1() { in GetMultiDexSrc1()
167 std::string GetMultiDexSrc2() { in GetMultiDexSrc2()
171 std::string GetDexSrc2() { in GetDexSrc2()
177 std::string GetScratchDir() { in GetScratchDir()
183 std::string GetOdexDir() { in GetOdexDir()
189 void GenerateOdexForTest(const std::string& dex_location, in GenerateOdexForTest()
190 const std::string& odex_location, in GenerateOdexForTest()
194 std::string android_data_tmp = GetScratchDir() + "AndroidDataTmp"; in GenerateOdexForTest()
196 std::vector<std::string> args; in GenerateOdexForTest()
210 std::string error_msg; in GenerateOdexForTest()
215 void GeneratePicOdexForTest(const std::string& dex_location, in GeneratePicOdexForTest()
216 const std::string& odex_location) { in GeneratePicOdexForTest()
235 std::unique_ptr<BacktraceMap> map(BacktraceMap::Create(getpid(), true)); in ReserveImageSpace()
239 ReserveImageSpaceChunk(reservation_start, std::min(it->start, reservation_end)); in ReserveImageSpace()
240 reservation_start = std::max(reservation_start, it->end); in ReserveImageSpace()
249 std::string error_msg; in ReserveImageSpaceChunk()
250 image_reservation_.push_back(std::unique_ptr<MemMap>( in ReserveImageSpaceChunk()
268 std::string scratch_dir_;
269 std::string odex_oat_dir_;
270 std::string odex_dir_;
271 std::vector<std::unique_ptr<MemMap>> image_reservation_;
278 options->push_back(std::make_pair("-Xnodex2oat", nullptr)); in SetUpRuntimeOptions()
287 std::string error_msg; in GenerateOatForTest()
294 std::string dex_location = GetScratchDir() + "/DexNoOat.jar"; in TEST_F()
318 std::string dex_location = GetScratchDir() + "/NoDexNoOat.jar"; in TEST_F()
326 std::string error_msg; in TEST_F()
330 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
337 std::string dex_location = GetScratchDir() + "/OatUpToDate.jar"; in TEST_F()
359 std::string dex_location = GetScratchDir() + "/MultiDexOatUpToDate.jar"; in TEST_F()
368 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
371 std::vector<std::unique_ptr<const DexFile>> dex_files; in TEST_F()
379 std::string dex_location = GetScratchDir() + "/MultiDexSecondaryOutOfDate.jar"; in TEST_F()
398 std::string dex_location = GetScratchDir() + "/RelativeEncodedDexLocation.jar"; in TEST_F()
399 std::string oat_location = GetOdexDir() + "/RelativeEncodedDexLocation.oat"; in TEST_F()
405 std::vector<std::string> args; in TEST_F()
407 args.push_back("--dex-location=" + std::string("RelativeEncodedDexLocation.jar")); in TEST_F()
410 std::string error_msg; in TEST_F()
417 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
420 std::vector<std::unique_ptr<const DexFile>> dex_files; in TEST_F()
428 std::string dex_location = GetScratchDir() + "/OatOutOfDate.jar"; in TEST_F()
452 std::string dex_location = GetScratchDir() + "/DexOdexNoOat.jar"; in TEST_F()
453 std::string odex_location = GetOdexDir() + "/DexOdexNoOat.odex"; in TEST_F()
478 std::string dex_location = GetScratchDir() + "/StrippedDexOdexNoOat.jar"; in TEST_F()
479 std::string odex_location = GetOdexDir() + "/StrippedDexOdexNoOat.odex"; in TEST_F()
503 std::string error_msg; in TEST_F()
518 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
521 std::vector<std::unique_ptr<const DexFile>> dex_files; in TEST_F()
529 std::string dex_location = GetScratchDir() + "/StrippedDexOdexOat.jar"; in TEST_F()
530 std::string odex_location = GetOdexDir() + "/StrippedDexOdexOat.odex"; in TEST_F()
559 std::string error_msg; in TEST_F()
576 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
579 std::vector<std::unique_ptr<const DexFile>> dex_files; in TEST_F()
587 std::string dex_location = GetScratchDir() + "/ResourceOnlyDex.jar"; in TEST_F()
607 std::string error_msg; in TEST_F()
627 std::string dex_location = GetScratchDir() + "/SelfRelocation.jar"; in TEST_F()
628 std::string oat_location = GetOdexDir() + "/SelfRelocation.oat"; in TEST_F()
651 std::string error_msg; in TEST_F()
667 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
670 std::vector<std::unique_ptr<const DexFile>> dex_files; in TEST_F()
679 std::string dex_location = GetScratchDir() + "/OdexOatOverlap.jar"; in TEST_F()
680 std::string odex_location = GetOdexDir() + "/OdexOatOverlap.odex"; in TEST_F()
681 std::string oat_location = GetOdexDir() + "/OdexOatOverlap.oat"; in TEST_F()
707 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
711 std::vector<std::unique_ptr<const DexFile>> dex_files; in TEST_F()
731 std::string dex_location = GetScratchDir() + "/DexPicOdexNoOat.jar"; in TEST_F()
732 std::string odex_location = GetOdexDir() + "/DexPicOdexNoOat.odex"; in TEST_F()
756 std::string dex_location = GetScratchDir() + "/LoadOatUpToDate.jar"; in TEST_F()
764 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
767 std::vector<std::unique_ptr<const DexFile>> dex_files; in TEST_F()
775 std::string dex_location = GetScratchDir() + "/LoadNoExecOatUpToDate.jar"; in TEST_F()
783 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
786 std::vector<std::unique_ptr<const DexFile>> dex_files; in TEST_F()
795 std::string dex_location = GetScratchDir() + "/LoadDexNoAlternateOat.jar"; in TEST_F()
796 std::string oat_location = GetScratchDir() + "/LoadDexNoAlternateOat.oat"; in TEST_F()
802 std::string error_msg; in TEST_F()
805 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
808 std::vector<std::unique_ptr<const DexFile>> dex_files; in TEST_F()
821 static std::string MakePathRelative(std::string target) { in MakePathRelative()
823 std::string cwd = getcwd(buf, MAXPATHLEN); in MakePathRelative()
826 std::vector<std::string> target_path; in MakePathRelative()
827 std::vector<std::string> cwd_path; in MakePathRelative()
832 std::reverse(target_path.begin(), target_path.end()); in MakePathRelative()
833 std::reverse(cwd_path.begin(), cwd_path.end()); in MakePathRelative()
851 std::reverse(target_path.begin(), target_path.end()); in MakePathRelative()
858 std::string abs_dex_location = GetScratchDir() + "/NonAbsoluteDexLocation.jar"; in TEST_F()
861 std::string dex_location = MakePathRelative(abs_dex_location); in TEST_F()
877 std::string dex_location = "/xx"; in TEST_F()
892 std::string error_msg; in TEST_F()
900 std::string dex_location = GetScratchDir() + "/LongDexExtension.jarx"; in TEST_F()
919 explicit RaceGenerateTask(const std::string& dex_location, const std::string& oat_location) in RaceGenerateTask()
930 std::vector<std::unique_ptr<const DexFile>> dex_files; in Run()
931 std::vector<std::string> error_msgs; in Run()
943 std::string dex_location_;
944 std::string oat_location_;
954 std::string dex_location = GetScratchDir() + "/RaceToGenerate.jar"; in TEST_F()
955 std::string oat_location = GetOdexDir() + "/RaceToGenerate.oat"; in TEST_F()
964 std::vector<std::unique_ptr<RaceGenerateTask>> tasks; in TEST_F()
966 std::unique_ptr<RaceGenerateTask> task(new RaceGenerateTask(dex_location, oat_location)); in TEST_F()
968 tasks.push_back(std::move(task)); in TEST_F()
984 std::string dex_location = GetScratchDir() + "/LoadDexOdexNoOat.jar"; in TEST_F()
985 std::string odex_location = GetOdexDir() + "/LoadDexOdexNoOat.odex"; in TEST_F()
994 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
997 std::vector<std::unique_ptr<const DexFile>> dex_files; in TEST_F()
1006 std::string dex_location = GetScratchDir() + "/LoadMultiDexOdexNoOat.jar"; in TEST_F()
1007 std::string odex_location = GetOdexDir() + "/LoadMultiDexOdexNoOat.odex"; in TEST_F()
1016 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
1019 std::vector<std::unique_ptr<const DexFile>> dex_files; in TEST_F()
1025 std::string error_msg; in TEST()
1026 std::string odex_file; in TEST()