Home
last modified time | relevance | path

Searched refs:pw (Results 1 – 25 of 928) sorted by relevance

12345678910>>...38

/frameworks/base/services/autofill/java/com/android/server/autofill/
DAutofillManagerServiceShellCommand.java50 final PrintWriter pw = getOutPrintWriter(); in onCommand() local
53 return requestList(pw); in onCommand()
55 return requestDestroy(pw); in onCommand()
59 return requestGet(pw); in onCommand()
61 return requestSet(pw); in onCommand()
69 try (final PrintWriter pw = getOutPrintWriter();) { in onHelp() argument
70 pw.println("AutoFill Service (autofill) commands:"); in onHelp()
71 pw.println(" help"); in onHelp()
72 pw.println(" Prints this help text."); in onHelp()
73 pw.println(""); in onHelp()
[all …]
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
DJobSchedulerShellCommand.java44 final PrintWriter pw = getOutPrintWriter(); in onCommand() local
48 return runJob(pw); in onCommand()
50 return timeout(pw); in onCommand()
52 return cancelJob(pw); in onCommand()
54 return monitorBattery(pw); in onCommand()
56 return getBatterySeq(pw); in onCommand()
58 return getBatteryCharging(pw); in onCommand()
60 return getBatteryNotLow(pw); in onCommand()
62 return getStorageSeq(pw); in onCommand()
64 return getStorageNotLow(pw); in onCommand()
[all …]
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DIndentingPrintWriterTest.java41 final IndentingPrintWriter pw = new IndentingPrintWriter(mWriter, " "); in testMultipleIndents() local
43 pw.print("Hello"); in testMultipleIndents()
44 pw.increaseIndent(); in testMultipleIndents()
45 pw.println(); in testMultipleIndents()
46 pw.print("World"); in testMultipleIndents()
47 pw.increaseIndent(); in testMultipleIndents()
48 pw.println(); in testMultipleIndents()
49 pw.print("And"); in testMultipleIndents()
50 pw.decreaseIndent(); in testMultipleIndents()
51 pw.println(); in testMultipleIndents()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiShellCommand.java152 final PrintWriter pw = getOutPrintWriter(); in onCommand() local
161 pw.println("IPREACH_DISCONNECT state is " in onCommand()
169 pw.println( in onCommand()
176 pw.println( in onCommand()
185 pw.println("ClientModeImpl.mPollRssiIntervalMsecs = " in onCommand()
191 pw.println("Command execution failed"); in onCommand()
198 pw.println("Command execution failed"); in onCommand()
212 pw.println(hasUserApproved ? "yes" : "no"); in onCommand()
221 pw.println("Invalid argument to " in onCommand()
237 pw.println("Invalid argument to " in onCommand()
[all …]
/frameworks/base/services/contentcapture/java/com/android/server/contentcapture/
DContentCaptureManagerServiceShellCommand.java48 final PrintWriter pw = getOutPrintWriter(); in onCommand() local
51 return requestList(pw); in onCommand()
53 return requestDestroy(pw); in onCommand()
55 return requestGet(pw); in onCommand()
57 return requestSet(pw); in onCommand()
65 try (PrintWriter pw = getOutPrintWriter();) { in onHelp() argument
66 pw.println("ContentCapture Service (content_capture) commands:"); in onHelp()
67 pw.println(" help"); in onHelp()
68 pw.println(" Prints this help text."); in onHelp()
69 pw.println(""); in onHelp()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/dump/
DDumpHandler.kt88 fun dump(fd: FileDescriptor, pw: PrintWriter, args: Array<String>) { in dump()
95 pw.println(e.message) in dump()
100 PRIORITY_ARG_CRITICAL -> dumpCritical(fd, pw, parsedArgs) in dump()
101 PRIORITY_ARG_NORMAL -> dumpNormal(pw, parsedArgs) in dump()
102 else -> dumpParameterized(fd, pw, parsedArgs) in dump()
105 pw.println() in dump()
106 pw.println("Dump took ${SystemClock.uptimeMillis() - start}ms") in dump()
110 private fun dumpParameterized(fd: FileDescriptor, pw: PrintWriter, args: ParsedArgs) { in dumpParameterized()
112 "bugreport-critical" -> dumpCritical(fd, pw, args) in dumpParameterized()
113 "bugreport-normal" -> dumpNormal(pw, args) in dumpParameterized()
[all …]
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerShellCommand.java49 final PrintWriter pw = getOutPrintWriter(); in onCommand() local
70 pw.println("Remote exception: " + e); in onCommand()
77 final PrintWriter pw = getOutPrintWriter(); in onHelp() local
78 pw.println("Network policy manager (netpolicy) commands:"); in onHelp()
79 pw.println(" help"); in onHelp()
80 pw.println(" Print this help text."); in onHelp()
81 pw.println(""); in onHelp()
82 pw.println(" add restrict-background-whitelist UID"); in onHelp()
83 pw.println(" Adds a UID to the whitelist for restrict background usage."); in onHelp()
84 pw.println(" add restrict-background-blacklist UID"); in onHelp()
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DActivityManagerConstants.java690 void dump(PrintWriter pw) {
691 pw.println("ACTIVITY MANAGER SETTINGS (dumpsys activity settings) "
694 pw.print(" "); pw.print(KEY_MAX_CACHED_PROCESSES); pw.print("=");
695 pw.println(MAX_CACHED_PROCESSES);
696 pw.print(" "); pw.print(KEY_BACKGROUND_SETTLE_TIME); pw.print("=");
697 pw.println(BACKGROUND_SETTLE_TIME);
698 pw.print(" "); pw.print(KEY_FGSERVICE_MIN_SHOWN_TIME); pw.print("=");
699 pw.println(FGSERVICE_MIN_SHOWN_TIME);
700 pw.print(" "); pw.print(KEY_FGSERVICE_MIN_REPORT_TIME); pw.print("=");
701 pw.println(FGSERVICE_MIN_REPORT_TIME);
[all …]
DActivityManagerShellCommand.java181 final PrintWriter pw = getOutPrintWriter(); in onCommand() local
186 return runStartActivity(pw); in onCommand()
189 return runStartService(pw, false); in onCommand()
194 return runStartService(pw, true); in onCommand()
197 return runStopService(pw); in onCommand()
199 return runSendBroadcast(pw); in onCommand()
204 return runTraceIpc(pw); in onCommand()
206 return runProfile(pw); in onCommand()
208 return runDumpHeap(pw); in onCommand()
210 return runSetDebugApp(pw); in onCommand()
[all …]
DBroadcastRecord.java120 void dump(PrintWriter pw, String prefix, SimpleDateFormat sdf) { in dump() argument
123 pw.print(prefix); pw.print(this); pw.print(" to user "); pw.println(userId); in dump()
124 pw.print(prefix); pw.println(intent.toInsecureString()); in dump()
126 pw.print(prefix); pw.print(" targetComp: "); pw.println(targetComp.toShortString()); in dump()
130 pw.print(prefix); pw.print(" extras: "); pw.println(bundle.toString()); in dump()
132 pw.print(prefix); pw.print("caller="); pw.print(callerPackage); pw.print(" "); in dump()
133 pw.print(callerApp != null ? callerApp.toShortString() : "null"); in dump()
134 pw.print(" pid="); pw.print(callingPid); in dump()
135 pw.print(" uid="); pw.println(callingUid); in dump()
138 pw.print(prefix); pw.print("requiredPermissions="); in dump()
[all …]
DBroadcastStats.java109 public boolean dumpStats(PrintWriter pw, String prefix, String dumpPackage) { in dumpStats() argument
122 pw.print(prefix); in dumpStats()
123 pw.print(ae.mAction); in dumpStats()
124 pw.println(":"); in dumpStats()
125 pw.print(prefix); in dumpStats()
126 pw.print(" Number received: "); in dumpStats()
127 pw.print(ae.mReceiveCount); in dumpStats()
128 pw.print(", skipped: "); in dumpStats()
129 pw.println(ae.mSkipCount); in dumpStats()
130 pw.print(prefix); in dumpStats()
[all …]
DBroadcastConstants.java129 public void dump(PrintWriter pw) { in dump() argument
131 pw.println(); in dump()
132 pw.print(" Broadcast parameters (key="); in dump()
133 pw.print(mSettingsKey); in dump()
134 pw.print(", observing="); in dump()
135 pw.print(mSettingsObserver != null); in dump()
136 pw.println("):"); in dump()
138 pw.print(" "); pw.print(KEY_TIMEOUT); pw.print(" = "); in dump()
139 TimeUtils.formatDuration(TIMEOUT, pw); in dump()
140 pw.println(); in dump()
[all …]
DProcessRecord.java363 void dump(PrintWriter pw, String prefix) { in dump() argument
366 pw.print(prefix); pw.print("user #"); pw.print(userId); in dump()
367 pw.print(" uid="); pw.print(info.uid); in dump()
369 pw.print(" ISOLATED uid="); pw.print(uid); in dump()
371 pw.print(" gids={"); in dump()
374 if (gi != 0) pw.print(", "); in dump()
375 pw.print(gids[gi]); in dump()
379 pw.println("}"); in dump()
381 pw.print(prefix); pw.println("processInfo:"); in dump()
384 pw.print(prefix); pw.print(" deny: "); in dump()
[all …]
DActiveInstrumentation.java101 void dump(PrintWriter pw, String prefix) { in dump() argument
102 pw.print(prefix); pw.print("mClass="); pw.print(mClass); in dump()
103 pw.print(" mFinished="); pw.println(mFinished); in dump()
104 pw.print(prefix); pw.println("mRunningProcesses:"); in dump()
106 pw.print(prefix); pw.print(" #"); pw.print(i); pw.print(": "); in dump()
107 pw.println(mRunningProcesses.get(i)); in dump()
109 pw.print(prefix); pw.print("mTargetProcesses="); in dump()
110 pw.println(Arrays.toString(mTargetProcesses)); in dump()
111 pw.print(prefix); pw.print("mTargetInfo="); in dump()
112 pw.println(mTargetInfo); in dump()
[all …]
/frameworks/base/apex/blobstore/service/java/com/android/server/blob/
DBlobStoreManagerShellCommand.java39 final PrintWriter pw = getOutPrintWriter(); in onCommand() local
42 return runClearAllSessions(pw); in onCommand()
44 return runClearAllBlobs(pw); in onCommand()
46 return runDeleteBlob(pw); in onCommand()
48 return runIdleMaintenance(pw); in onCommand()
50 return runQueryBlobExistence(pw); in onCommand()
56 private int runClearAllSessions(PrintWriter pw) { in runClearAllSessions() argument
60 if (parseOptions(pw, args) < 0) { in runClearAllSessions()
68 private int runClearAllBlobs(PrintWriter pw) { in runClearAllBlobs() argument
72 if (parseOptions(pw, args) < 0) { in runClearAllBlobs()
[all …]
/frameworks/base/services/core/java/com/android/server/statusbar/
DStatusBarShellCommand.java66 final PrintWriter pw = getOutPrintWriter(); in onCommand() local
67 pw.println(String.valueOf(TileService.isQuickSettingsSupported())); in onCommand()
81 final PrintWriter pw = getOutPrintWriter(); in onCommand()
82 pw.println("Remote exception: " + e); in onCommand()
118 final PrintWriter pw = getOutPrintWriter(); in runGetStatusIcons() local
120 pw.println(icon); in runGetStatusIcons()
204 final PrintWriter pw = getOutPrintWriter(); in onHelp() local
205 pw.println("Status bar commands:"); in onHelp()
206 pw.println(" help"); in onHelp()
207 pw.println(" Print this help text."); in onHelp()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerShellCommand.java166 final PrintWriter pw = getOutPrintWriter(); in onCommand() local
320 pw.println("Remote exception: " + e); in onCommand()
332 final PrintWriter pw = getOutPrintWriter(); in runGetModuleInfo() local
344 pw.println("Error: Unknown option: " + opt); in runGetModuleInfo()
353 pw.println(m.toString() + " packageName: " + m.getPackageName()); in runGetModuleInfo()
358 pw.println(m.toString() + " packageName: " + m.getPackageName()); in runGetModuleInfo()
362 pw.println("Failure [" + e.getClass().getName() + " - " + e.getMessage() + "]"); in runGetModuleInfo()
369 final PrintWriter pw = getOutPrintWriter(); in runLogVisibility() local
382 pw.println("Error: Unknown option: " + opt); in runLogVisibility()
399 final PrintWriter pw = getOutPrintWriter(); in runBypassStagedInstallerCheck() local
[all …]
DOtaDexoptShellCommand.java39 final PrintWriter pw = getOutPrintWriter(); in onCommand() local
58 pw.println("Remote exception: " + e); in onCommand()
75 final PrintWriter pw = getOutPrintWriter(); in runOtaDone() local
77 pw.println("OTA complete."); in runOtaDone()
79 pw.println("OTA incomplete."); in runOtaDone()
96 final PrintWriter pw = getOutPrintWriter(); in runOtaProgress() local
100 pw.format(Locale.ROOT, "%.2f", progress); in runOtaProgress()
106 final PrintWriter pw = getOutPrintWriter(); in onHelp() local
107 pw.println("OTA Dexopt (ota) commands:"); in onHelp()
108 pw.println(" help"); in onHelp()
[all …]
/frameworks/base/services/contentsuggestions/java/com/android/server/contentsuggestions/
DContentSuggestionsManagerServiceShellCommand.java44 final PrintWriter pw = getOutPrintWriter(); in onCommand() local
47 return requestSet(pw); in onCommand()
49 return requestGet(pw); in onCommand()
57 try (PrintWriter pw = getOutPrintWriter()) { in onHelp() argument
58 pw.println("ContentSuggestionsManagerService commands:"); in onHelp()
59 pw.println(" help"); in onHelp()
60 pw.println(" Prints this help text."); in onHelp()
61 pw.println(""); in onHelp()
62 pw.println(" set temporary-service USER_ID [COMPONENT_NAME DURATION]"); in onHelp()
63 pw.println(" Temporarily (for DURATION ms) changes the service implementation."); in onHelp()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DWindowTracing.java98 void startTrace(@Nullable PrintWriter pw) { in startTrace() argument
100 logAndPrintln(pw, "Error: Tracing is not supported on user builds."); in startTrace()
104 ProtoLogImpl.getSingleInstance().startProtoLog(pw); in startTrace()
105 logAndPrintln(pw, "Start tracing to " + mTraceFile + "."); in startTrace()
116 void stopTrace(@Nullable PrintWriter pw) { in stopTrace() argument
117 stopTrace(pw, true /* writeToFile */); in stopTrace()
125 void stopTrace(@Nullable PrintWriter pw, boolean writeToFile) { in stopTrace() argument
127 logAndPrintln(pw, "Error: Tracing is not supported on user builds."); in stopTrace()
131 logAndPrintln(pw, "Stop tracing to " + mTraceFile + ". Waiting for traces to flush."); in stopTrace()
135 logAndPrintln(pw, "ERROR: tracing was re-enabled while waiting for flush."); in stopTrace()
[all …]
DWindowManagerShellCommand.java67 final PrintWriter pw = getOutPrintWriter(); in onCommand() local
71 return runDisplaySize(pw); in onCommand()
73 return runDisplayDensity(pw); in onCommand()
75 return runDisplayFoldedArea(pw); in onCommand()
77 return runDisplayScaling(pw); in onCommand()
79 return runDismissKeyguard(pw); in onCommand()
88 return runSetDisplayUserRotation(pw); in onCommand()
90 return runSetFixToUserRotation(pw); in onCommand()
92 return runDumpVisibleWindowViews(pw); in onCommand()
97 pw.println("Remote exception: " + e); in onCommand()
[all …]
/frameworks/base/services/core/java/com/android/server/webkit/
DWebViewUpdateServiceShellCommand.java37 final PrintWriter pw = getOutPrintWriter(); in onCommand() local
50 pw.println("Remote exception: " + e); in onCommand()
56 final PrintWriter pw = getOutPrintWriter(); in setWebViewImplementation() local
59 pw.println("Failed to switch, no PACKAGE provided."); in setWebViewImplementation()
60 pw.println(""); in setWebViewImplementation()
66 pw.println("Success"); in setWebViewImplementation()
69 pw.println(String.format( in setWebViewImplementation()
77 final PrintWriter pw = getOutPrintWriter(); in enableMultiProcess() local
79 pw.println("Success"); in enableMultiProcess()
84 PrintWriter pw = getOutPrintWriter(); in helpSetWebViewImplementation() local
[all …]
/frameworks/base/services/core/java/com/android/server/timezonedetector/
DTimeZoneDetectorShellCommand.java51 final PrintWriter pw = getOutPrintWriter(); in runSuggestTelephonyTimeZone() local
59 pw.println("Error: Unknown option: " + opt); in runSuggestTelephonyTimeZone()
64 pw.println("Error: suggestion not specified"); in runSuggestTelephonyTimeZone()
68 pw.println("Suggestion " + suggestion + " injected."); in runSuggestTelephonyTimeZone()
71 pw.println(e.toString()); in runSuggestTelephonyTimeZone()
77 final PrintWriter pw = getOutPrintWriter(); in runSuggestManualTimeZone() local
85 pw.println("Error: Unknown option: " + opt); in runSuggestManualTimeZone()
90 pw.println("Error: suggestion not specified"); in runSuggestManualTimeZone()
94 pw.println("Suggestion " + suggestion + " injected."); in runSuggestManualTimeZone()
97 pw.println(e.toString()); in runSuggestManualTimeZone()
[all …]
/frameworks/base/core/java/com/android/internal/app/procstats/
DProcessState.java829 public void dumpSummary(PrintWriter pw, String prefix, String header, in dumpSummary() argument
832 pw.print(prefix); in dumpSummary()
833 pw.print("* "); in dumpSummary()
835 pw.print(header); in dumpSummary()
837 pw.print(mName); in dumpSummary()
838 pw.print(" / "); in dumpSummary()
839 UserHandle.formatUid(pw, mUid); in dumpSummary()
840 pw.print(" / v"); in dumpSummary()
841 pw.print(mVersion); in dumpSummary()
842 pw.println(":"); in dumpSummary()
[all …]
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DVoiceInteractionManagerServiceShellCommand.java49 PrintWriter pw = getOutPrintWriter(); in onCommand() local
52 return requestShow(pw); in onCommand()
54 return requestHide(pw); in onCommand()
56 return requestDisable(pw); in onCommand()
64 try (PrintWriter pw = getOutPrintWriter();) { in onHelp() argument
65 pw.println("VoiceInteraction Service (voiceinteraction) commands:"); in onHelp()
66 pw.println(" help"); in onHelp()
67 pw.println(" Prints this help text."); in onHelp()
68 pw.println(""); in onHelp()
69 pw.println(" show"); in onHelp()
[all …]

12345678910>>...38