Lines Matching defs:dumpstate

17 #define LOG_TAG "dumpstate"
44 #include <android/hardware/dumpstate/1.0/IDumpstateDevice.h>
53 #include "dumpstate.h"
55 using ::android::hardware::dumpstate::V1_0::IDumpstateDevice;
58 using android::os::dumpstate::CommandOptions;
59 using android::os::dumpstate::DumpFileToFd;
60 using android::os::dumpstate::PropertiesHelper;
61 using android::os::dumpstate::GetPidByName;
67 // TODO: variables and functions below should be part of dumpstate object
113 // Must be hardcoded because dumpstate HAL implementation need SELinux access to it
117 static constexpr char PROPERTY_EXTRA_OPTIONS[] = "dumpstate.options";
118 static constexpr char PROPERTY_LAST_ID[] = "dumpstate.last_id";
119 static constexpr char PROPERTY_VERSION[] = "dumpstate.version";
120 static constexpr char PROPERTY_EXTRA_TITLE[] = "dumpstate.options.title";
121 static constexpr char PROPERTY_EXTRA_DESCRIPTION[] = "dumpstate.options.description";
423 MYLOGD("Not dumping modem logs. dumpstate is not generating a zipping bugreport\n");
664 printf("== dumpstate: %s\n", date);
944 static void dumpstate() {
1096 /* Migrate the ril_dumpstate to a device specific dumpstate? */
1097 int rilDumpstateTimeout = android::base::GetIntProperty("ril.dumpstate.timeout", 0);
1162 printf("== dumpstate: done (id %d)\n", ds.id_);
1201 // TODO: need a timeout mechanism so dumpstate does not hang on device implementation call.
1210 AddZipEntry("dumpstate-board.txt", path);
1211 printf("*** See dumpstate-board.txt entry ***\n");
1223 "usage: dumpstate [-h] [-b soundfile] [-e soundfile] [-o file] [-d] [-p] "
1240 " -v: prints the dumpstate header and exit\n");
1273 MYLOGD("dumpstate id %d finished around %s (%ld s)\n", ds.id_, date,
1288 MYLOGE("Failed to add dumpstate log to .zip file\n");
1366 RunCommand("", {"cmd", "vibrator", "vibrate", std::to_string(duration_ms), "dumpstate"},
1444 // Currently, the dumpstate binder is only used by Shell to update progress.
1514 is_redirecting ? android::base::StringPrintf("%s/dumpstate-stats.txt", dirname(use_outfile))
1528 MYLOGI("Starting 'dumpstate' service\n");
1536 MYLOGI("Running on dry-run mode (to disable it, call 'setprop dumpstate.dry_run false')\n");
1539 MYLOGI("dumpstate info: id=%d, args='%s', extra_options= %s)\n", ds.id_, ds.args_.c_str(),
1549 redirect_to_socket(stdout, "dumpstate");
1554 ds.control_socket_fd_ = open_socket("dumpstate");
1657 MYLOGE("Unable to change ownership of dumpstate log file %s: %s\n",
1703 // TODO: Drop root user and move into dumpstate() once b/28633932 is fixed.
1733 dumpstate();
1746 android::base::StringPrintf("dumpstate.%d.name", ds.pid_), "");