diff options
author | Tim Kilbourn <tkilbourn@google.com> | 2015-07-23 21:58:01 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-07-23 21:58:01 +0000 |
commit | a2bf7616044051769df86cf5f0bb4b21dedd5269 (patch) | |
tree | 1cb4a9c8ed7a2921d262d0c9d379288f677321a3 | |
parent | 607bc34f93a8c074d1982861273d210291eae34d (diff) | |
parent | f40c66d1a13b7cf88ba06cff10f6343471afd840 (diff) | |
download | frameworks_base-a2bf7616044051769df86cf5f0bb4b21dedd5269.zip frameworks_base-a2bf7616044051769df86cf5f0bb4b21dedd5269.tar.gz frameworks_base-a2bf7616044051769df86cf5f0bb4b21dedd5269.tar.bz2 |
Merge "Add a wm command to dismiss the keyguard." into mnc-dev
-rw-r--r-- | cmds/wm/src/com/android/commands/wm/Wm.java | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/cmds/wm/src/com/android/commands/wm/Wm.java b/cmds/wm/src/com/android/commands/wm/Wm.java index fb050e5..f7f7c88 100644 --- a/cmds/wm/src/com/android/commands/wm/Wm.java +++ b/cmds/wm/src/com/android/commands/wm/Wm.java @@ -65,7 +65,10 @@ public class Wm extends BaseCommand { "\n" + "wm scaling: set display scaling mode.\n" + "\n" + - "wm screen-capture: enable/disable screen capture.\n" + "wm screen-capture: enable/disable screen capture.\n" + + "\n" + + "wm dismiss-keyguard: dismiss the keyguard, prompting the user for auth if " + + "necessary.\n" ); } @@ -90,6 +93,8 @@ public class Wm extends BaseCommand { runDisplayScaling(); } else if (op.equals("screen-capture")) { runSetScreenCapture(); + } else if (op.equals("dismiss-keyguard")) { + runDismissKeyguard(); } else { showError("Error: unknown command '" + op + "'"); return; @@ -240,6 +245,10 @@ public class Wm extends BaseCommand { } } + private void runDismissKeyguard() throws Exception { + mWm.dismissKeyguard(); + } + private int parseDimension(String s) throws NumberFormatException { if (s.endsWith("px")) { return Integer.parseInt(s.substring(0, s.length() - 2)); |