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()
263 const std::string& dexdump_filename = dexdump_output.GetFilename(); in FullPlainOutputExec()
264 std::string dexdump = GetTestAndroidRoot() + "/bin/dexdump2"; in FullPlainOutputExec()
268 const std::string& dexlayout_filename = dexlayout_output.GetFilename(); in FullPlainOutputExec()
270 for (const std::string& dex_file : GetLibCoreDexFileNames()) { in FullPlainOutputExec()
271 std::vector<std::string> dexdump_exec_argv = in FullPlainOutputExec()
273 std::vector<std::string> dexlayout_args = in FullPlainOutputExec()
281 std::vector<std::string> diff_exec_argv = in FullPlainOutputExec()
291 bool DexFileOutputExec(std::string* error_msg) { in DexFileOutputExec()
293 const std::string& tmp_name = tmp_file.GetFilename(); in DexFileOutputExec()
295 std::string tmp_dir = tmp_name.substr(0, tmp_last_slash + 1); in DexFileOutputExec()
296 std::string unzip_dir = tmp_dir + "unzip/"; in DexFileOutputExec()
298 for (const std::string& dex_file : GetLibCoreDexFileNames()) { in DexFileOutputExec()
299 std::vector<std::string> dexlayout_args = in DexFileOutputExec()
304 std::string dex_file_name = "classes.dex"; in DexFileOutputExec()
305 std::vector<std::string> unzip_exec_argv = in DexFileOutputExec()
310 std::vector<std::string> diff_exec_argv = in DexFileOutputExec()
328 void CreateProfile(const std::string& input_dex, in CreateProfile()
329 const std::string& out_profile, in CreateProfile()
330 const std::string& dex_location) { in CreateProfile()
331 std::vector<std::unique_ptr<const DexFile>> dex_files; in CreateProfile()
332 std::string error_msg; in CreateProfile()
347 std::set<DexCacheResolvedClasses> classes; in CreateProfile()
348 for (const std::unique_ptr<const DexFile>& dex_file : dex_files) { in CreateProfile()
380 std::unique_ptr<File> file(OS::CreateEmptyFile(out_profile.c_str())); in CreateProfile()
391 bool DexFileLayoutExec(std::string* error_msg) { in DexFileLayoutExec()
393 const std::string& tmp_name = tmp_file.GetFilename(); in DexFileLayoutExec()
395 std::string tmp_dir = tmp_name.substr(0, tmp_last_slash + 1); in DexFileLayoutExec()
398 std::string dex_file = tmp_dir + "classes.dex"; in DexFileLayoutExec()
400 std::string profile_file = tmp_dir + "primary.prof"; in DexFileLayoutExec()
403 std::string output_dex = tmp_dir + "classes.dex.new"; in DexFileLayoutExec()
405 std::vector<std::string> dexlayout_args = in DexFileLayoutExec()
420 bool DexFileLayoutFixedPointExec(std::string* error_msg) { in DexFileLayoutFixedPointExec()
422 const std::string& tmp_name = tmp_file.GetFilename(); in DexFileLayoutFixedPointExec()
424 std::string tmp_dir = tmp_name.substr(0, tmp_last_slash + 1); in DexFileLayoutFixedPointExec()
428 std::string dex_file = tmp_dir + "classes.dex"; in DexFileLayoutFixedPointExec()
430 std::vector<std::string> unzip_args = { in DexFileLayoutFixedPointExec()
442 std::string profile_file = tmp_dir + "primary.prof"; in DexFileLayoutFixedPointExec()
444 std::string output_dex = tmp_dir + "classes.dex.new"; in DexFileLayoutFixedPointExec()
445 std::string second_output_dex = tmp_dir + "classes.dex.new.new"; in DexFileLayoutFixedPointExec()
448 std::vector<std::string> dexlayout_args = in DexFileLayoutFixedPointExec()
460 std::vector<std::string> second_dexlayout_args = in DexFileLayoutFixedPointExec()
467 std::vector<std::string> diff_exec_argv = in DexFileLayoutFixedPointExec()
473 std::vector<std::string> test_files = { dex_file, profile_file, output_dex, second_output_dex }; in DexFileLayoutFixedPointExec()
474 for (const std::string& test_file : test_files) { in DexFileLayoutFixedPointExec()
484 bool UnreferencedCatchHandlerExec(std::string* error_msg, const char* filename) { in UnreferencedCatchHandlerExec()
486 const std::string& tmp_name = tmp_file.GetFilename(); in UnreferencedCatchHandlerExec()
488 std::string tmp_dir = tmp_name.substr(0, tmp_last_slash + 1); in UnreferencedCatchHandlerExec()
491 std::string input_dex = tmp_dir + "classes.dex"; in UnreferencedCatchHandlerExec()
493 std::string output_dex = tmp_dir + "classes.dex.new"; in UnreferencedCatchHandlerExec()
495 std::vector<std::string> dexlayout_args = { "-w", tmp_dir, "-o", "/dev/null", input_dex }; in UnreferencedCatchHandlerExec()
501 std::vector<std::string> diff_exec_argv = { "/usr/bin/diff", input_dex, output_dex }; in UnreferencedCatchHandlerExec()
506 std::vector<std::string> dex_files = { input_dex, output_dex }; in UnreferencedCatchHandlerExec()
507 for (const std::string& dex_file : dex_files) { in UnreferencedCatchHandlerExec()
518 const std::vector<std::string>& dexlayout_args) { in DexLayoutExec()
527 std::string error_msg; in DexLayoutExec()
536 bool DexLayoutExec(const std::vector<std::string>& dexlayout_args, in DexLayoutExec()
537 std::string* error_msg, in DexLayoutExec()
539 std::vector<std::string> argv; in DexLayoutExec()
541 std::string dexlayout = GetDexLayoutPath(); in DexLayoutExec()
545 std::vector<std::string> cdex_level = DefaultCompactDexOption(); in DexLayoutExec()
554 bool UnlinkFile(const std::string& file_path) { in UnlinkFile()
563 std::string error_msg; in TEST_F()
570 std::string error_msg; in TEST_F()
577 std::string error_msg; in TEST_F()
584 std::string error_msg; in TEST_F()
591 std::string error_msg; in TEST_F()
599 std::string error_msg; in TEST_F()
607 std::string error_msg; in TEST_F()
614 std::vector<std::string> dexlayout_args = in TEST_F()
624 std::vector<std::string> dexlayout_args = { "-o", "/dev/null", temp_dex.GetFilename() }; in TEST_F()
634 std::vector<std::string> dexlayout_args = in TEST_F()
645 std::vector<std::string> dexlayout_args = in TEST_F()
656 std::vector<std::string> dexlayout_args = in TEST_F()
666 std::vector<std::string> dexlayout_args = { "-o", "/dev/null", temp_dex.GetFilename() }; in TEST_F()
675 std::vector<std::string> dexlayout_args = { "-o", "/dev/null", temp_dex.GetFilename() }; in TEST_F()
719 std::string error_msg; in TEST_F()
722 const std::string& tmp_name = tmp_file.GetFilename(); in TEST_F()
724 std::string tmp_dir = tmp_name.substr(0, tmp_last_slash + 1); in TEST_F()
727 std::vector<std::string> dexlayout_args = in TEST_F()
757 std::string error_msg; in TEST_F()
760 const std::string& tmp_name = tmp_file.GetFilename(); in TEST_F()
762 std::string tmp_dir = tmp_name.substr(0, tmp_last_slash + 1); in TEST_F()
765 std::vector<std::string> dexlayout_args = in TEST_F()
782 std::vector<std::unique_ptr<const DexFile>> dex_files; in TEST_F()
783 std::string error_msg; in TEST_F()
785 const std::string input_jar = GetTestDexFileName("ManyMethods"); in TEST_F()
793 for (const std::unique_ptr<const DexFile>& dex_file : dex_files) { in TEST_F()
806 std::unique_ptr<DexContainer> out; in TEST_F()
814 std::unique_ptr<const DexFile> output_dex_file( in TEST_F()