Lines Matching refs:string

227 static std::vector<std::string> DefaultCompactDexOption() {  in DefaultCompactDexOption()
229 std::vector<std::string>{"-x", "fast"} : std::vector<std::string>{"-x", "none"}; in DefaultCompactDexOption()
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()
330 std::string error_msg; 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()
451 std::vector<std::string> second_dexlayout_args = in DexFileLayoutFixedPointExec()
458 std::vector<std::string> diff_exec_argv = in DexFileLayoutFixedPointExec()
464 std::vector<std::string> test_files = { dex_file, profile_file, output_dex, second_output_dex }; in DexFileLayoutFixedPointExec()
465 for (const std::string& test_file : test_files) { in DexFileLayoutFixedPointExec()
475 bool UnreferencedCatchHandlerExec(std::string* error_msg, const char* filename) { in UnreferencedCatchHandlerExec()
477 const std::string& tmp_name = tmp_file.GetFilename(); in UnreferencedCatchHandlerExec()
479 std::string tmp_dir = tmp_name.substr(0, tmp_last_slash + 1); in UnreferencedCatchHandlerExec()
482 std::string input_dex = tmp_dir + "classes.dex"; in UnreferencedCatchHandlerExec()
484 std::string output_dex = tmp_dir + "classes.dex.new"; in UnreferencedCatchHandlerExec()
486 std::vector<std::string> dexlayout_args = { "-w", tmp_dir, "-o", "/dev/null", input_dex }; in UnreferencedCatchHandlerExec()
492 std::vector<std::string> diff_exec_argv = { "/usr/bin/diff", input_dex, output_dex }; in UnreferencedCatchHandlerExec()
497 std::vector<std::string> dex_files = { input_dex, output_dex }; in UnreferencedCatchHandlerExec()
498 for (const std::string& dex_file : dex_files) { in UnreferencedCatchHandlerExec()
509 const std::vector<std::string>& dexlayout_args) { in DexLayoutExec()
518 std::string error_msg; in DexLayoutExec()
527 bool DexLayoutExec(const std::vector<std::string>& dexlayout_args, in DexLayoutExec()
528 std::string* error_msg, in DexLayoutExec()
530 std::vector<std::string> argv; in DexLayoutExec()
532 std::string dexlayout = GetDexLayoutPath(); in DexLayoutExec()
536 std::vector<std::string> cdex_level = DefaultCompactDexOption(); in DexLayoutExec()
545 bool UnlinkFile(const std::string& file_path) { in UnlinkFile()
554 std::string error_msg; in TEST_F()
561 std::string error_msg; in TEST_F()
568 std::string error_msg; in TEST_F()
575 std::string error_msg; in TEST_F()
582 std::string error_msg; in TEST_F()
590 std::string error_msg; in TEST_F()
598 std::string error_msg; in TEST_F()
605 std::vector<std::string> dexlayout_args = in TEST_F()
615 std::vector<std::string> dexlayout_args = { "-o", "/dev/null", temp_dex.GetFilename() }; in TEST_F()
625 std::vector<std::string> dexlayout_args = in TEST_F()
636 std::vector<std::string> dexlayout_args = in TEST_F()
647 std::vector<std::string> dexlayout_args = in TEST_F()
657 std::vector<std::string> dexlayout_args = { "-o", "/dev/null", temp_dex.GetFilename() }; in TEST_F()
666 std::vector<std::string> dexlayout_args = { "-o", "/dev/null", temp_dex.GetFilename() }; in TEST_F()
710 std::string error_msg; in TEST_F()
713 const std::string& tmp_name = tmp_file.GetFilename(); in TEST_F()
715 std::string tmp_dir = tmp_name.substr(0, tmp_last_slash + 1); in TEST_F()
718 std::vector<std::string> dexlayout_args = in TEST_F()
748 std::string error_msg; in TEST_F()
751 const std::string& tmp_name = tmp_file.GetFilename(); in TEST_F()
753 std::string tmp_dir = tmp_name.substr(0, tmp_last_slash + 1); in TEST_F()
756 std::vector<std::string> dexlayout_args = in TEST_F()
774 std::string error_msg; in TEST_F()
776 const std::string input_jar = GetTestDexFileName("ManyMethods"); in TEST_F()