summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Yohei Yukawa <yukawa@google.com> 2021-02-28 07:36:02 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2021-02-28 07:36:02 +0000
commit9e028b322a61f51a148e2c1a2cd5ffde2ec70da6 (patch)
treedc5d0e1622282eb8ccae8bc60efa34ce71d614e3
parent7fa1f6129ec82c1ae03d613344ee7056a5ec33c2 (diff)
parent7988287f0a3cd899c797c8457f2ba38bc851f5c4 (diff)
Merge "Make "adb shell cmd input_method tracing" official" into sc-dev
-rw-r--r--services/core/java/com/android/server/inputmethod/InputMethodManagerService.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/inputmethod/InputMethodManagerService.java b/services/core/java/com/android/server/inputmethod/InputMethodManagerService.java
index 87e63ebf2651..7dcb3a87e5f0 100644
--- a/services/core/java/com/android/server/inputmethod/InputMethodManagerService.java
+++ b/services/core/java/com/android/server/inputmethod/InputMethodManagerService.java
@@ -5417,6 +5417,8 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
switch (TextUtils.emptyIfNull(cmd)) {
case "get-last-switch-user-id":
return mService.getLastSwitchUserId(this);
+ case "tracing":
+ return mService.handleShellCommandTraceInputMethod(this);
case "ime": { // For "adb shell ime <command>".
final String imeCommand = TextUtils.emptyIfNull(getNextArg());
switch (imeCommand) {
@@ -5434,7 +5436,7 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
return mService.handleShellCommandSetInputMethod(this);
case "reset":
return mService.handleShellCommandResetInputMethod(this);
- case "tracing":
+ case "tracing": // TODO(b/180765389): Unsupport "adb shell ime tracing"
return mService.handleShellCommandTraceInputMethod(this);
default:
getOutPrintWriter().println("Unknown command: " + imeCommand);
@@ -5457,6 +5459,10 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
pw.println(" Synonym of dumpsys.");
pw.println(" ime <command> [options]");
pw.println(" Manipulate IMEs. Run \"ime help\" for details.");
+ pw.println(" tracing <command>");
+ pw.println(" start: Start tracing.");
+ pw.println(" stop : Stop tracing.");
+ pw.println(" help : Show help.");
}
}