commit | 0cbc19e4a66f7db51596b57ca91afc6f5b27f3b4 | [log] [tgz] |
---|---|---|
author | Rubin Xu <rubinxu@google.com> | Fri Dec 09 14:00:21 2016 +0000 |
committer | Rubin Xu <rubinxu@google.com> | Tue Jan 24 17:40:04 2017 +0000 |
tree | 9c60940ea9a2991b53685aded0e0543a54533196 | |
parent | 4c2fe5da4965f7eaccf7566ff7dba6c7a0f62b36 [diff] [blame] |
Add unit tests for LockSettingsService Add infrastructure and first sets of unit tests for LockSettingsService Bug: 33126408 Test: runtest frameworks-services -c com.android.server.LockSettingsServiceTests Change-Id: I4f3b7f6eaef7122f72b06bd11ce49134a093fe35
diff --git a/services/core/java/com/android/server/LockSettingsShellCommand.java b/services/core/java/com/android/server/LockSettingsShellCommand.java index f72663a..e131251 100644 --- a/services/core/java/com/android/server/LockSettingsShellCommand.java +++ b/services/core/java/com/android/server/LockSettingsShellCommand.java
@@ -77,7 +77,8 @@ } return 0; } catch (Exception e) { - getErrPrintWriter().println("Error while executing command: " + e); + getErrPrintWriter().println("Error while executing command: " + cmd); + e.printStackTrace(getErrPrintWriter()); return -1; } }