Lines Matching refs:std
227 static std::vector<std::string> DefaultCompactDexOption() { in DefaultCompactDexOption()
229 std::vector<std::string>{"-x", "fast"} : std::vector<std::string>{"-x", "none"}; in DefaultCompactDexOption()
236 std::unique_ptr<uint8_t[]> bytes(DecodeBase64(base64, &length)); in WriteBase64ToFile()
245 std::unique_ptr<File> file(OS::CreateEmptyFile(location)); in WriteFileBase64()
255 std::string GetDexLayoutPath() { in GetDexLayoutPath()
260 bool FullPlainOutputExec(std::string* error_msg) { in FullPlainOutputExec()
262 const std::string& dexdump_filename = dexdump_output.GetFilename(); in FullPlainOutputExec()
263 std::string dexdump = GetArtBinDir() + "/dexdump"; in FullPlainOutputExec()
267 const std::string& dexlayout_filename = dexlayout_output.GetFilename(); in FullPlainOutputExec()
269 for (const std::string& dex_file : GetLibCoreDexFileNames()) { in FullPlainOutputExec()
270 std::vector<std::string> dexdump_exec_argv = in FullPlainOutputExec()
272 std::vector<std::string> dexlayout_args = in FullPlainOutputExec()
280 std::vector<std::string> diff_exec_argv = in FullPlainOutputExec()
290 bool DexFileOutputExec(std::string* error_msg) { in DexFileOutputExec()
292 const std::string& tmp_name = tmp_file.GetFilename(); in DexFileOutputExec()
294 std::string tmp_dir = tmp_name.substr(0, tmp_last_slash + 1); in DexFileOutputExec()
295 std::string unzip_dir = tmp_dir + "unzip/"; in DexFileOutputExec()
297 for (const std::string& dex_file : GetLibCoreDexFileNames()) { in DexFileOutputExec()
298 std::vector<std::string> dexlayout_args = in DexFileOutputExec()
303 std::string dex_file_name = "classes.dex"; in DexFileOutputExec()
304 std::vector<std::string> unzip_exec_argv = in DexFileOutputExec()
309 std::vector<std::string> diff_exec_argv = in DexFileOutputExec()
327 void CreateProfile(const std::string& input_dex, in CreateProfile()
328 const std::string& out_profile) { in CreateProfile()
329 std::vector<std::unique_ptr<const DexFile>> dex_files; in CreateProfile()
330 std::string error_msg; in CreateProfile()
345 for (const std::unique_ptr<const DexFile>& dex_file : dex_files) { in CreateProfile()
360 std::set<dex::TypeIndex> classes; in CreateProfile()
372 std::unique_ptr<File> file(OS::CreateEmptyFile(out_profile.c_str())); in CreateProfile()
383 bool DexFileLayoutExec(std::string* error_msg) { in DexFileLayoutExec()
385 const std::string& tmp_name = tmp_file.GetFilename(); in DexFileLayoutExec()
387 std::string tmp_dir = tmp_name.substr(0, tmp_last_slash + 1); in DexFileLayoutExec()
390 std::string dex_file = tmp_dir + "classes.dex"; in DexFileLayoutExec()
392 std::string profile_file = tmp_dir + "primary.prof"; in DexFileLayoutExec()
395 std::string output_dex = tmp_dir + "classes.dex.new"; in DexFileLayoutExec()
397 std::vector<std::string> dexlayout_args = in DexFileLayoutExec()
412 bool DexFileLayoutFixedPointExec(std::string* error_msg) { in DexFileLayoutFixedPointExec()
414 const std::string& tmp_name = tmp_file.GetFilename(); in DexFileLayoutFixedPointExec()
416 std::string tmp_dir = tmp_name.substr(0, tmp_last_slash + 1); in DexFileLayoutFixedPointExec()
420 std::string dex_file = tmp_dir + "classes.dex"; in DexFileLayoutFixedPointExec()
422 std::vector<std::string> unzip_args = { in DexFileLayoutFixedPointExec()
434 std::string profile_file = tmp_dir + "primary.prof"; in DexFileLayoutFixedPointExec()
436 std::string output_dex = tmp_dir + "classes.dex.new"; in DexFileLayoutFixedPointExec()
437 std::string second_output_dex = tmp_dir + "classes.dex.new.new"; in DexFileLayoutFixedPointExec()
440 std::vector<std::string> dexlayout_args = in DexFileLayoutFixedPointExec()
452 std::vector<std::string> cp_args = {"/usr/bin/cp", dex_file, output_dex}; in DexFileLayoutFixedPointExec()
457 std::vector<std::string> second_dexlayout_args = in DexFileLayoutFixedPointExec()
464 std::vector<std::string> diff_exec_argv = in DexFileLayoutFixedPointExec()
470 std::vector<std::string> test_files = { dex_file, profile_file, output_dex, second_output_dex }; in DexFileLayoutFixedPointExec()
471 for (const std::string& test_file : test_files) { in DexFileLayoutFixedPointExec()
481 bool UnreferencedCatchHandlerExec(std::string* error_msg, const char* filename) { in UnreferencedCatchHandlerExec()
483 const std::string& tmp_name = tmp_file.GetFilename(); in UnreferencedCatchHandlerExec()
485 std::string tmp_dir = tmp_name.substr(0, tmp_last_slash + 1); in UnreferencedCatchHandlerExec()
488 std::string input_dex = tmp_dir + "classes.dex"; in UnreferencedCatchHandlerExec()
490 std::string output_dex = tmp_dir + "classes.dex.new"; in UnreferencedCatchHandlerExec()
492 std::vector<std::string> dexlayout_args = { "-w", tmp_dir, "-o", "/dev/null", input_dex }; in UnreferencedCatchHandlerExec()
498 std::vector<std::string> diff_exec_argv = { "/usr/bin/diff", input_dex, output_dex }; in UnreferencedCatchHandlerExec()
503 std::vector<std::string> dex_files = { input_dex, output_dex }; in UnreferencedCatchHandlerExec()
504 for (const std::string& dex_file : dex_files) { in UnreferencedCatchHandlerExec()
515 const std::vector<std::string>& dexlayout_args) { in DexLayoutExec()
524 std::string error_msg; in DexLayoutExec()
533 bool DexLayoutExec(const std::vector<std::string>& dexlayout_args, in DexLayoutExec()
534 std::string* error_msg, in DexLayoutExec()
536 std::vector<std::string> argv; in DexLayoutExec()
538 std::string dexlayout = GetDexLayoutPath(); in DexLayoutExec()
542 std::vector<std::string> cdex_level = DefaultCompactDexOption(); in DexLayoutExec()
551 bool UnlinkFile(const std::string& file_path) { in UnlinkFile()
560 std::string error_msg; in TEST_F()
567 std::string error_msg; in TEST_F()
574 std::string error_msg; in TEST_F()
581 std::string error_msg; in TEST_F()
588 std::string error_msg; in TEST_F()
596 std::string error_msg; in TEST_F()
604 std::string error_msg; in TEST_F()
611 std::vector<std::string> dexlayout_args = in TEST_F()
621 std::vector<std::string> dexlayout_args = { "-o", "/dev/null", temp_dex.GetFilename() }; in TEST_F()
631 std::vector<std::string> dexlayout_args = in TEST_F()
642 std::vector<std::string> dexlayout_args = in TEST_F()
653 std::vector<std::string> dexlayout_args = in TEST_F()
663 std::vector<std::string> dexlayout_args = { "-o", "/dev/null", temp_dex.GetFilename() }; in TEST_F()
672 std::vector<std::string> dexlayout_args = { "-o", "/dev/null", temp_dex.GetFilename() }; in TEST_F()
716 std::string error_msg; in TEST_F()
719 const std::string& tmp_name = tmp_file.GetFilename(); in TEST_F()
721 std::string tmp_dir = tmp_name.substr(0, tmp_last_slash + 1); in TEST_F()
724 std::vector<std::string> dexlayout_args = in TEST_F()
754 std::string error_msg; in TEST_F()
757 const std::string& tmp_name = tmp_file.GetFilename(); in TEST_F()
759 std::string tmp_dir = tmp_name.substr(0, tmp_last_slash + 1); in TEST_F()
762 std::vector<std::string> dexlayout_args = in TEST_F()
779 std::vector<std::unique_ptr<const DexFile>> dex_files; in TEST_F()
780 std::string error_msg; in TEST_F()
782 const std::string input_jar = GetTestDexFileName("ManyMethods"); in TEST_F()
790 for (const std::unique_ptr<const DexFile>& dex_file : dex_files) { in TEST_F()
803 std::unique_ptr<DexContainer> out; in TEST_F()
811 std::unique_ptr<const DexFile> output_dex_file( in TEST_F()