diff options
author | Guang Zhu <guangzhu@google.com> | 2013-06-14 19:53:13 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-06-14 19:53:13 -0700 |
commit | e614be9fb3e93a2293e7922232bc58a477ad2445 (patch) | |
tree | a57d815b17e28444f6bd1f100154cb7e91ff2a48 | |
parent | c5c602581429de5aebb7dd955e0a17d305cf7603 (diff) | |
parent | 86dfcae4e9a9723585eac99f0226f62ce1c75ad0 (diff) | |
download | uiautomator-e614be9fb3e93a2293e7922232bc58a477ad2445.tar.gz |
am f5155d5c: am dd6abfe5: change verbose mode default to true and change param accordingly
* commit 'f5155d5c68fa47a1045f5d515f124246457a4b25':
change verbose mode default to true and change param accordingly
-rw-r--r-- | cmds/uiautomator/src/com/android/commands/uiautomator/DumpCommand.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cmds/uiautomator/src/com/android/commands/uiautomator/DumpCommand.java b/cmds/uiautomator/src/com/android/commands/uiautomator/DumpCommand.java index 3a4e783..c35f7fc 100644 --- a/cmds/uiautomator/src/com/android/commands/uiautomator/DumpCommand.java +++ b/cmds/uiautomator/src/com/android/commands/uiautomator/DumpCommand.java @@ -52,7 +52,7 @@ public class DumpCommand extends Command { @Override public String detailedOptions() { return " dump [--verbose][file]\n" - + " [--verbose]: dumps all layout information.\n" + + " [--compressed]: dumps compressed layout information.\n" + " [file]: the location where the dumped XML should be stored, default is\n " + DEFAULT_DUMP_FILE.getAbsolutePath() + "\n"; } @@ -60,11 +60,11 @@ public class DumpCommand extends Command { @Override public void run(String[] args) { File dumpFile = DEFAULT_DUMP_FILE; - boolean verboseMode = false; + boolean verboseMode = true; for (String arg : args) { - if (arg.equals("--verbose")) - verboseMode = true; + if (arg.equals("--compressed")) + verboseMode = false; else if (!arg.startsWith("-")) { dumpFile = new File(arg); } @@ -73,9 +73,9 @@ public class DumpCommand extends Command { UiAutomationShellWrapper automationWrapper = new UiAutomationShellWrapper(); automationWrapper.connect(); if (verboseMode) { + // default automationWrapper.setCompressedLayoutHierarchy(false); } else { - // default automationWrapper.setCompressedLayoutHierarchy(true); } |