Lines Matching defs:pw

973     private void dumpHelp(PrintWriter pw) {
974 pw.println("Battery stats (batterystats) dump options:");
975 pw.println(" [--checkin] [--history] [--history-start] [--charged] [-c]");
976 pw.println(" [--daily] [--reset] [--write] [--new-daily] [--read-daily] [-h] [<package.name>]");
977 pw.println(" --checkin: generate output for a checkin report; will write (and clear) the");
978 pw.println(" last old completed stats when they had been reset.");
979 pw.println(" --c: write the current stats in checkin format.");
980 pw.println(" --history: show only history data.");
981 pw.println(" --history-start <num>: show only history data starting at given time offset.");
982 pw.println(" --charged: only output data since last charged.");
983 pw.println(" --daily: only output full daily data.");
984 pw.println(" --reset: reset the stats, clearing all current data.");
985 pw.println(" --write: force write current collected stats to disk.");
986 pw.println(" --new-daily: immediately create and write new daily stats record.");
987 pw.println(" --read-daily: read-load last written daily stats.");
988 pw.println(" <package.name>: optional name of package to filter output by.");
989 pw.println(" -h: print this help text.");
990 pw.println("Battery stats (batterystats) commands:");
991 pw.println(" enable|disable <option>");
992 pw.println(" Enable or disable a running option. Option state is not saved across boots.");
993 pw.println(" Options are:");
994 pw.println(" full-history: include additional detailed events in battery history:");
995 pw.println(" wake_lock_in, alarms and proc events");
996 pw.println(" no-auto-reset: don't automatically reset stats when unplugged");
999 private int doEnableOrDisable(PrintWriter pw, int i, String[] args, boolean enable) {
1002 pw.println("Missing option argument for " + (enable ? "--enable" : "--disable"));
1003 dumpHelp(pw);
1015 pw.println("Unknown enable/disable option: " + args[i]);
1016 dumpHelp(pw);
1024 protected void dump(FileDescriptor fd, PrintWriter pw, String[] args) {
1027 pw.println("Permission Denial: can't dump BatteryStats from from pid="
1052 pw.println("Missing time argument for --history-since");
1053 dumpHelp(pw);
1068 pw.println("Battery stats reset.");
1076 pw.println("Battery stats written.");
1082 pw.println("New daily stats written.");
1088 pw.println("Last daily stats read.");
1092 i = doEnableOrDisable(pw, i, args, true);
1096 pw.println("Enabled: " + args[i]);
1099 i = doEnableOrDisable(pw, i, args, false);
1103 pw.println("Disabled: " + args[i]);
1106 dumpHelp(pw);
1111 pw.println("Unknown option: " + arg);
1112 dumpHelp(pw);
1120 pw.println("Unknown package: " + arg);
1121 dumpHelp(pw);
1169 checkinStats.dumpCheckinLocked(mContext, pw, apps, flags,
1182 mStats.dumpCheckinLocked(mContext, pw, apps, flags, historyStart);
1189 mStats.dumpLocked(mContext, pw, flags, reqUid, historyStart);