Home
last modified time | relevance | path

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

12345678910>>...55

/frameworks/base/services/autofill/java/com/android/server/autofill/
DAutofillManagerServiceShellCommand.java51 final PrintWriter pw = getOutPrintWriter(); in onCommand() local
54 return requestList(pw); in onCommand()
56 return requestDestroy(pw); in onCommand()
60 return requestGet(pw); in onCommand()
62 return requestSet(pw); in onCommand()
70 try (final PrintWriter pw = getOutPrintWriter();) { in onHelp() argument
71 pw.println("AutoFill Service (autofill) commands:"); in onHelp()
72 pw.println(" help"); in onHelp()
73 pw.println(" Prints this help text."); in onHelp()
74 pw.println(""); in onHelp()
[all …]
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
DJobSchedulerShellCommand.java50 final PrintWriter pw = getOutPrintWriter(); in onCommand() local
54 return runJob(pw); in onCommand()
56 return timeout(pw); in onCommand()
58 return cancelJob(pw); in onCommand()
60 return monitorBattery(pw); in onCommand()
62 return getBatterySeq(pw); in onCommand()
64 return getBatteryCharging(pw); in onCommand()
66 return getBatteryNotLow(pw); in onCommand()
68 return getEstimatedNetworkBytes(pw, BYTE_OPTION_DOWNLOAD); in onCommand()
70 return getEstimatedNetworkBytes(pw, BYTE_OPTION_UPLOAD); in onCommand()
[all …]
/frameworks/base/core/tests/utiltests/src/android/util/
DIndentingPrintWriterTest.java47 final IndentingPrintWriter pw = new IndentingPrintWriter(mWriter, " "); in testMultipleIndents() local
49 pw.print("Hello"); in testMultipleIndents()
50 pw.increaseIndent(); in testMultipleIndents()
51 pw.println(); in testMultipleIndents()
52 pw.print("World"); in testMultipleIndents()
53 pw.increaseIndent(); in testMultipleIndents()
54 pw.println(); in testMultipleIndents()
55 pw.print("And"); in testMultipleIndents()
56 pw.decreaseIndent(); in testMultipleIndents()
57 pw.println(); in testMultipleIndents()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DWindowManagerShellCommand.java91 final PrintWriter pw = getOutPrintWriter(); in onCommand() local
95 return runDisplaySize(pw); in onCommand()
97 return runDisplayDensity(pw); in onCommand()
99 return runDisplayFoldedArea(pw); in onCommand()
101 return runDisplayScaling(pw); in onCommand()
103 return runDismissKeyguard(pw); in onCommand()
112 pw.println("Not handled, please use " in onCommand()
118 return runDisplayUserRotation(pw); in onCommand()
120 return runFixedToUserRotation(pw); in onCommand()
122 return runSetIgnoreOrientationRequest(pw); 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/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerServiceShellCommand.java61 try (PrintWriter pw = getOutPrintWriter()) { in onHelp() argument
62 pw.printf("DevicePolicyManager Service (device_policy) commands:\n\n"); in onHelp()
63 showHelp(pw); in onHelp()
72 try (PrintWriter pw = getOutPrintWriter()) { in onCommand() argument
75 return runIsSafeOperation(pw); in onCommand()
77 return runIsSafeOperationByReason(pw); in onCommand()
79 return runSetSafeOperation(pw); in onCommand()
81 return runListOwners(pw); in onCommand()
83 return runListPolicyExemptApps(pw); in onCommand()
85 return runSetActiveAdmin(pw); in onCommand()
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DActivityManagerConstants.java2022 void dump(PrintWriter pw) {
2023 pw.println("ACTIVITY MANAGER SETTINGS (dumpsys activity settings) "
2026 pw.print(" "); pw.print(KEY_MAX_CACHED_PROCESSES); pw.print("=");
2027 pw.println(MAX_CACHED_PROCESSES);
2028 pw.print(" "); pw.print(KEY_BACKGROUND_SETTLE_TIME); pw.print("=");
2029 pw.println(BACKGROUND_SETTLE_TIME);
2030 pw.print(" "); pw.print(KEY_FGSERVICE_MIN_SHOWN_TIME); pw.print("=");
2031 pw.println(FGSERVICE_MIN_SHOWN_TIME);
2032 pw.print(" "); pw.print(KEY_FGSERVICE_MIN_REPORT_TIME); pw.print("=");
2033 pw.println(FGSERVICE_MIN_REPORT_TIME);
[all …]
DActivityManagerShellCommand.java228 final PrintWriter pw = getOutPrintWriter(); in onCommand() local
233 return runStartActivity(pw); in onCommand()
236 return runStartService(pw, false); in onCommand()
241 return runStartService(pw, true); in onCommand()
244 return runStopService(pw); in onCommand()
246 return runSendBroadcast(pw); in onCommand()
248 return runCompact(pw); in onCommand()
250 return runFreeze(pw); in onCommand()
252 return runUnfreeze(pw); in onCommand()
257 return runTraceIpc(pw); in onCommand()
[all …]
DBroadcastStats.java112 public boolean dumpStats(PrintWriter pw, String prefix, String dumpPackage) { in dumpStats() argument
125 pw.print(prefix); in dumpStats()
126 pw.print(ae.mAction); in dumpStats()
127 pw.println(":"); in dumpStats()
128 pw.print(prefix); in dumpStats()
129 pw.print(" Number received: "); in dumpStats()
130 pw.print(ae.mReceiveCount); in dumpStats()
131 pw.print(", skipped: "); in dumpStats()
132 pw.println(ae.mSkipCount); in dumpStats()
133 pw.print(prefix); in dumpStats()
[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/timezonedetector/
DTimeZoneDetectorShellCommand.java106 final PrintWriter pw = getOutPrintWriter(); in runIsAutoDetectionEnabled() local
111 pw.println(enabled); in runIsAutoDetectionEnabled()
116 final PrintWriter pw = getOutPrintWriter(); in runIsTelephonyDetectionSupported() local
118 pw.println(enabled); in runIsTelephonyDetectionSupported()
123 final PrintWriter pw = getOutPrintWriter(); in runIsGeoDetectionSupported() local
125 pw.println(enabled); in runIsGeoDetectionSupported()
130 final PrintWriter pw = getOutPrintWriter(); in runIsGeoDetectionEnabled() local
135 pw.println(enabled); in runIsGeoDetectionEnabled()
176 final PrintWriter pw = getOutPrintWriter(); in runSingleArgMethod() local
180 pw.println("Error: arg not specified"); in runSingleArgMethod()
[all …]
/frameworks/base/services/core/java/com/android/server/statusbar/
DStatusBarShellCommand.java67 final PrintWriter pw = getOutPrintWriter(); in onCommand() local
68 pw.println(String.valueOf(TileService.isQuickSettingsSupported())); in onCommand()
92 final PrintWriter pw = getOutPrintWriter(); in onCommand()
93 pw.println("Remote exception: " + e); in onCommand()
129 final PrintWriter pw = getOutPrintWriter(); in runGetStatusIcons() local
131 pw.println(icon); in runGetStatusIcons()
225 final PrintWriter pw = getOutPrintWriter(); in onHelp() local
226 pw.println("Status bar commands:"); in onHelp()
227 pw.println(" help"); in onHelp()
228 pw.println(" Print this help text."); in onHelp()
[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/timedetector/
DTimeDetectorShellCommand.java102 final PrintWriter pw = getOutPrintWriter(); in runIsAutoDetectionEnabled() local
106 pw.println(enabled); in runIsAutoDetectionEnabled()
139 final PrintWriter pw = getOutPrintWriter(); in runGetLatestNetworkTime() local
140 pw.println(networkTimeSuggestion); in runGetLatestNetworkTime()
162 final PrintWriter pw = getOutPrintWriter(); in runSuggestTime() local
166 pw.println("Error: suggestion not specified"); in runSuggestTime()
170 pw.println("Suggestion " + suggestion + " injected."); in runSuggestTime()
173 pw.println(e); in runSuggestTime()
212 final PrintWriter pw = getOutPrintWriter(); in onHelp() local
213 pw.printf("Time Detector (%s) commands:\n", SHELL_COMMAND_SERVICE_NAME); in onHelp()
[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()
58 return requestRestartDetection(pw); in onCommand()
60 return setDebugHotwordLogging(pw); in onCommand()
68 try (PrintWriter pw = getOutPrintWriter();) { in onHelp() argument
69 pw.println("VoiceInteraction Service (voiceinteraction) commands:"); in onHelp()
70 pw.println(" help"); in onHelp()
71 pw.println(" Prints this help text."); in onHelp()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/dump/
DDumpHandler.kt99 fun dump(fd: FileDescriptor, pw: PrintWriter, args: Array<String>) { in <lambda>()
107 pw.println(e.message) in <lambda>()
111 pw.print("Dump starting: ") in <lambda>()
112 pw.println(DATE_FORMAT.format(System.currentTimeMillis())) in <lambda>()
114 parsedArgs.dumpPriority == PRIORITY_ARG_CRITICAL -> dumpCritical(pw, parsedArgs) in <lambda>()
116 dumpNormal(pw, parsedArgs) in <lambda>()
118 else -> dumpParameterized(fd, pw, parsedArgs) in <lambda>()
121 pw.println() in <lambda>()
122 pw.println("Dump took ${SystemClock.uptimeMillis() - start}ms") in <lambda>()
126 private fun dumpParameterized(fd: FileDescriptor, pw: PrintWriter, args: ParsedArgs) { in <lambda>()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DUserManagerServiceShellCommand.java78 final PrintWriter pw = getOutPrintWriter(); in onHelp() local
79 pw.println("User manager (user) commands:"); in onHelp()
80 pw.println(" help"); in onHelp()
81 pw.println(" Prints this help text."); in onHelp()
82 pw.println(); in onHelp()
83 pw.println(" list [-v | --verbose] [--all]"); in onHelp()
84 pw.println(" Prints all users on the system."); in onHelp()
85 pw.println(); in onHelp()
86 pw.println(" report-system-user-package-whitelist-problems [-v | --verbose] " in onHelp()
88 pw.println(" Reports all issues on user-type package allowlist XML files. Options:"); in onHelp()
[all …]
DDumpHelper.java91 public void doDump(Computer snapshot, FileDescriptor fd, PrintWriter pw, String[] args) { in doDump() argument
106 printHelp(pw); in doDump()
120 pw.println("Unknown argument: " + opt + "; use -h for help"); in doDump()
136 pw.println("Error: check-permission missing permission argument"); in doDump()
142 pw.println("Error: check-permission missing package argument"); in doDump()
153 pw.println("Error: check-permission user argument is not a number: " in doDump()
163 pw.println(mPermissionManager.checkPermission(perm, pkg, user)); in doDump()
187 pw.println("Error: unknown resolver table type: " + name); in doDump()
197 pw.println("Error: permission requires permission name"); in doDump()
279 pw.println("Unable to find package: " + packageName); in doDump()
[all …]
DPackageManagerShellCommand.java216 final PrintWriter pw = getOutPrintWriter(); in onCommand() local
396 pw.println("Remote exception: " + e); in onCommand()
442 final PrintWriter pw = getOutPrintWriter(); in runGetModuleInfo() local
454 pw.println("Error: Unknown option: " + opt); in runGetModuleInfo()
463 pw.println(m.toString() + " packageName: " + m.getPackageName()); in runGetModuleInfo()
468 pw.println(m.toString() + " packageName: " + m.getPackageName()); in runGetModuleInfo()
472 pw.println("Failure [" + e.getClass().getName() + " - " + e.getMessage() + "]"); in runGetModuleInfo()
479 final PrintWriter pw = getOutPrintWriter(); in runLogVisibility() local
492 pw.println("Error: Unknown option: " + opt); in runLogVisibility()
509 final PrintWriter pw = getOutPrintWriter(); in runBypassStagedInstallerCheck() local
[all …]
/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiControlShellCommand.java75 PrintWriter pw = getOutPrintWriter(); in onHelp() local
77 pw.println("HdmiControlManager (hdmi_control) commands:"); in onHelp()
78 pw.println(" help"); in onHelp()
79 pw.println(" Print this help text."); in onHelp()
80 pw.println(" onetouchplay, otp"); in onHelp()
81 pw.println(" Send the \"One Touch Play\" feature from a source to the TV"); in onHelp()
82 pw.println(" vendorcommand --device_type <originating device type>"); in onHelp()
83 pw.println(" --destination <destination device>"); in onHelp()
84 pw.println(" --args <vendor specific arguments>"); in onHelp()
85 pw.println(" [--id <true if vendor command should be sent with vendor id>]"); in onHelp()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/
DProtoLogController.java47 public boolean onShellCommand(String[] args, PrintWriter pw) { in onShellCommand() argument
50 pw.println(mShellProtoLog.getStatus()); in onShellCommand()
54 mShellProtoLog.startProtoLog(pw); in onShellCommand()
58 mShellProtoLog.stopProtoLog(pw, true /* writeToFile */); in onShellCommand()
63 int result = mShellProtoLog.startTextLogging(groups, pw); in onShellCommand()
65 pw.println("Starting logging on groups: " + Arrays.toString(groups)); in onShellCommand()
72 int result = mShellProtoLog.stopTextLogging(groups, pw); in onShellCommand()
74 pw.println("Stopping logging on groups: " + Arrays.toString(groups)); in onShellCommand()
81 return mShellProtoLog.startTextLogging(groups, pw) == 0; in onShellCommand()
85 return mShellProtoLog.stopTextLogging(groups, pw) == 0; in onShellCommand()
[all …]
/frameworks/base/services/core/java/com/android/server/app/
DGameManagerShellCommand.java58 final PrintWriter pw = getOutPrintWriter(); in onCommand() local
62 return runSetGameModeConfig(pw); in onCommand()
65 return runResetGameModeConfig(pw); in onCommand()
77 return runSetGameMode(pw); in onCommand()
80 return runListGameModes(pw); in onCommand()
83 return runListGameModeConfigs(pw); in onCommand()
89 pw.println("Error: " + e); in onCommand()
94 private int runListGameModes(PrintWriter pw) throws ServiceNotFoundException, RemoteException { in runListGameModes() argument
105 pw.println(packageName + " current mode: " + currentMode + ", available game modes: [" + sj in runListGameModes()
110 private int runListGameModeConfigs(PrintWriter pw) in runListGameModeConfigs() argument
[all …]
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerShellCommand.java51 final PrintWriter pw = getOutPrintWriter(); in onCommand() local
70 pw.println("Remote exception: " + e); in onCommand()
81 final PrintWriter pw = getOutPrintWriter(); in runSetMode() local
86 pw.println("Error: " + ex.toString()); in runSetMode()
106 final PrintWriter pw = getOutPrintWriter(); in runSuppressAmbientDisplay() local
113 pw.println("Error: " + ex.toString()); in runSuppressAmbientDisplay()
121 final PrintWriter pw = getOutPrintWriter(); in runListAmbientDisplaySuppressionTokens() local
124 pw.println("none"); in runListAmbientDisplaySuppressionTokens()
126 pw.println(String.format("[%s]", String.join(", ", tokens))); in runListAmbientDisplaySuppressionTokens()
134 PrintWriter pw = getOutPrintWriter(); in runSetProx() local
[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/packages/SystemUI/src/com/android/systemui/flags/
DFlagCommand.java54 public void execute(@NonNull PrintWriter pw, @NonNull List<String> args) { in execute() argument
56 pw.println("Error: no flag name supplied"); in execute()
57 help(pw); in execute()
58 pw.println(); in execute()
59 printKnownFlags(pw); in execute()
65 pw.println("Unknown flag name: " + name); in execute()
66 pw.println(); in execute()
67 printKnownFlags(pw); in execute()
80 pw.println("Invalid number of arguments to reset a flag."); in execute()
81 help(pw); in execute()
[all …]

12345678910>>...55