Lines Matching refs:anr_traces_path
880 std::string anr_traces_path = android::base::GetProperty("dalvik.vm.stack-trace-file", ""); in AddAnrTraceFiles() local
881 std::string anr_traces_dir = dirname(anr_traces_path.c_str()); in AddAnrTraceFiles()
894 if (anr_traces_path.empty()) { in AddAnrTraceFiles()
898 open(anr_traces_path.c_str(), O_RDONLY | O_CLOEXEC | O_NOFOLLOW | O_NONBLOCK)); in AddAnrTraceFiles()
900 printf("*** NO ANR VM TRACES FILE (%s): %s\n\n", anr_traces_path.c_str(), in AddAnrTraceFiles()
912 anr_traces_path.c_str()); in AddAnrTraceFiles()
913 dump_file_from_fd("VM TRACES AT LAST ANR", anr_traces_path.c_str(), fd); in AddAnrTraceFiles()
925 if (!anr_traces_path.empty()) { in AddAnrTraceFiles()
926 int tail = anr_traces_path.size() - 1; in AddAnrTraceFiles()
927 while (tail > 0 && anr_traces_path.at(tail) != '/') { in AddAnrTraceFiles()
932 anr_traces_path = anr_traces_path.substr(0, tail + 1) + in AddAnrTraceFiles()
934 if (stat(anr_traces_path.c_str(), &st)) { in AddAnrTraceFiles()
938 ds.DumpFile("VM TRACES WHEN SLOW", anr_traces_path.c_str()); in AddAnrTraceFiles()