summaryrefslogtreecommitdiffstats
path: root/cmds
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2013-04-10 03:26:36 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-04-10 03:26:36 -0700
commit1467991f8c6ba71cd36553029b70d72c1d45ee88 (patch)
tree46a4d534f0536b4f141157897585fb9c6a2cde48 /cmds
parent82c0edaad3ff9da2e28cd17520168e603fe394d5 (diff)
parent38bfe9eca0134dd5f66dafeeb6fa10558f9f4394 (diff)
downloadframeworks_base-1467991f8c6ba71cd36553029b70d72c1d45ee88.zip
frameworks_base-1467991f8c6ba71cd36553029b70d72c1d45ee88.tar.gz
frameworks_base-1467991f8c6ba71cd36553029b70d72c1d45ee88.tar.bz2
am 38bfe9ec: am a9574e33: Add touchnavigation to input debugging command.
* commit '38bfe9eca0134dd5f66dafeeb6fa10558f9f4394': Add touchnavigation to input debugging command.
Diffstat (limited to 'cmds')
-rw-r--r--cmds/input/src/com/android/commands/input/Input.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/cmds/input/src/com/android/commands/input/Input.java b/cmds/input/src/com/android/commands/input/Input.java
index cdbc405..e43501c 100644
--- a/cmds/input/src/com/android/commands/input/Input.java
+++ b/cmds/input/src/com/android/commands/input/Input.java
@@ -75,11 +75,14 @@ public class Input {
Float.parseFloat(args[3]), Float.parseFloat(args[4]), -1);
return;
}
- } else if (command.equals("touchscreen") || command.equals("touchpad")) {
+ } else if (command.equals("touchscreen") || command.equals("touchpad")
+ || command.equals("touchnavigation")) {
// determine input source
int inputSource = InputDevice.SOURCE_TOUCHSCREEN;
if (command.equals("touchpad")) {
inputSource = InputDevice.SOURCE_TOUCHPAD;
+ } else if (command.equals("touchnavigation")) {
+ inputSource = InputDevice.SOURCE_TOUCH_NAVIGATION;
}
// determine subcommand
if (args.length > 1) {
@@ -247,8 +250,9 @@ public class Input {
System.err.println("usage: input ...");
System.err.println(" input text <string>");
System.err.println(" input keyevent <key code number or name>");
- System.err.println(" input [touchscreen|touchpad] tap <x> <y>");
- System.err.println(" input [touchscreen|touchpad] swipe <x1> <y1> <x2> <y2> [duration(ms)]");
+ System.err.println(" input [touchscreen|touchpad|touchnavigation] tap <x> <y>");
+ System.err.println(" input [touchscreen|touchpad|touchnavigation] swipe "
+ + "<x1> <y1> <x2> <y2> [duration(ms)]");
System.err.println(" input trackball press");
System.err.println(" input trackball roll <dx> <dy>");
}