• Home
  • Raw
  • Download

Lines Matching refs:c_str

201             systrace_path.c_str());  in dump_systrace()
203 systrace_path.c_str(), NULL)) { in dump_systrace()
213 MYLOGE("Unable to add systrace file %s to zip file\n", systrace_path.c_str()); in dump_systrace()
215 if (remove(systrace_path.c_str())) { in dump_systrace()
216 MYLOGE("Error removing systrace file %s: %s", systrace_path.c_str(), strerror(errno)); in dump_systrace()
528 printf("Bugreport format version: %s\n", version.c_str()); in print_header()
536 entry_name.c_str()); in add_zip_entry_from_fd()
541 int32_t err = zip_writer->StartEntryWithTime(entry_name.c_str(), in add_zip_entry_from_fd()
544 MYLOGE("zip_writer->StartEntryWithTime(%s): %s\n", entry_name.c_str(), in add_zip_entry_from_fd()
555 MYLOGE("read(%s): %s\n", entry_name.c_str(), strerror(errno)); in add_zip_entry_from_fd()
575 ScopedFd fd(TEMP_FAILURE_RETRY(open(entry_path.c_str(), O_RDONLY | O_NONBLOCK | O_CLOEXEC))); in add_zip_entry()
577 MYLOGE("open(%s): %s\n", entry_path.c_str(), strerror(errno)); in add_zip_entry()
602 MYLOGD("Not adding text zip entry %s because zip_writer is not set\n", entry_name.c_str()); in add_text_zip_entry()
605 MYLOGD("Adding zip text entry %s\n", entry_name.c_str()); in add_text_zip_entry()
606 int32_t err = zip_writer->StartEntryWithTime(entry_name.c_str(), ZipWriter::kCompress, now); in add_text_zip_entry()
608 MYLOGE("zip_writer->StartEntryWithTime(%s): %s\n", entry_name.c_str(), in add_text_zip_entry()
613 err = zip_writer->WriteBytes(content.c_str(), content.length()); in add_text_zip_entry()
615 MYLOGE("zip_writer->WriteBytes(%s): %s\n", entry_name.c_str(), in add_text_zip_entry()
678 MYLOGI("wrote screenshot: %s\n", screenshot_path.c_str()); in dumpstate()
958 VERSION_DEFAULT.c_str()); in usage()
987 MYLOGD("Removing temporary file %s\n", bugreport_path.c_str()) in finish_zip_file()
988 if (remove(bugreport_path.c_str())) { in finish_zip_file()
989 ALOGW("remove(%s): %s\n", bugreport_path.c_str(), strerror(errno)); in finish_zip_file()
992 MYLOGD("Keeping temporary file %s on non-user build\n", bugreport_path.c_str()) in finish_zip_file()
999 ScopedFd fd(TEMP_FAILURE_RETRY(open(filepath.c_str(), O_RDONLY | O_NONBLOCK | O_CLOEXEC in SHA256_file_hash()
1002 MYLOGE("open(%s): %s\n", filepath.c_str(), strerror(errno)); in SHA256_file_hash()
1015 MYLOGE("read(%s): %s\n", filepath.c_str(), strerror(errno)); in SHA256_file_hash()
1074 MYLOGD("Dumpstate command line: %s\n", args.c_str()); in main()
1122 MYLOGI("bugreport format version: %s\n", version.c_str()); in main()
1190 bugreport_dir.c_str(), base_name.c_str(), suffix.c_str(), in main()
1191 log_path.c_str(), tmp_path.c_str(), screenshot_path.c_str()); in main()
1195 MYLOGD("Creating initial .zip file (%s)\n", path.c_str()); in main()
1196 create_parent_dirs(path.c_str()); in main()
1197 zip_file.reset(fopen(path.c_str(), "wb")); in main()
1199 MYLOGE("fopen(%s, 'wb'): %s\n", path.c_str(), strerror(errno)); in main()
1242 MYLOGI("wrote screenshot: %s\n", screenshot_path.c_str()); in main()
1243 if (chown(screenshot_path.c_str(), AID_SHELL, AID_SHELL)) { in main()
1245 screenshot_path.c_str(), strerror(errno)); in main()
1251 if (chown(path.c_str(), AID_SHELL, AID_SHELL)) { in main()
1252 … MYLOGE("Unable to change ownership of zip file %s: %s\n", path.c_str(), strerror(errno)); in main()
1257 redirect_to_file(stderr, const_cast<char*>(log_path.c_str())); in main()
1258 if (chown(log_path.c_str(), AID_SHELL, AID_SHELL)) { in main()
1260 log_path.c_str(), strerror(errno)); in main()
1265 redirect_to_file(stdout, const_cast<char*>(tmp_path.c_str())); in main()
1266 if (chown(tmp_path.c_str(), AID_SHELL, AID_SHELL)) { in main()
1268 tmp_path.c_str(), strerror(errno)); in main()
1325 MYLOGI("changing suffix from %s to %s\n", suffix.c_str(), value); in main()
1330 if (rename(screenshot_path.c_str(), new_screenshot_path.c_str())) { in main()
1331 MYLOGE("rename(%s, %s): %s\n", screenshot_path.c_str(), in main()
1332 new_screenshot_path.c_str(), strerror(errno)); in main()
1342 MYLOGD("Adding main entry (%s) to .zip bugreport\n", entry_name.c_str()); in main()
1351 MYLOGD("Renaming zip file from %s to %s\n", path.c_str(), new_path.c_str()); in main()
1352 if (rename(path.c_str(), new_path.c_str())) { in main()
1353 MYLOGE("rename(%s, %s): %s\n", path.c_str(), in main()
1354 new_path.c_str(), strerror(errno)); in main()
1363 MYLOGD("Generating .txt bugreport at %s from %s\n", path.c_str(), tmp_path.c_str()); in main()
1364 if (rename(tmp_path.c_str(), path.c_str())) { in main()
1365 MYLOGE("rename(%s, %s): %s\n", tmp_path.c_str(), path.c_str(), strerror(errno)); in main()
1372 "for more details\n", log_path.c_str()); in main()
1374 dprintf(control_socket_fd, "OK:%s\n", path.c_str()); in main()
1390 MYLOGI("Final bugreport path: %s\n", path.c_str()); in main()