diff options
author | Esteban Talavera <etalavera@google.com> | 2014-09-18 18:32:45 +0100 |
---|---|---|
committer | Esteban Talavera <etalavera@google.com> | 2014-09-18 18:32:45 +0100 |
commit | c48bca50fa64765d3019b0bf82511e030cabcc7a (patch) | |
tree | 68dd43bbf101e6beb9d743088ebaca45eebdb41b /cmds | |
parent | 41de9bb6fda113f7cfb8b7b8d64d07d3809f8f20 (diff) | |
download | frameworks_base-c48bca50fa64765d3019b0bf82511e030cabcc7a.zip frameworks_base-c48bca50fa64765d3019b0bf82511e030cabcc7a.tar.gz frameworks_base-c48bca50fa64765d3019b0bf82511e030cabcc7a.tar.bz2 |
Make dpm command output more test friendly
Added 'Success' at the beginning of the command output every time
it didn't fail, so that we can easily check the output in tests.
The command is brand new, only used by us on CTS tests, so this
shouldn't break anybody.
Bug: 17312478
Change-Id: Ie67bf5b2f44e658e7009e5bd87f8cb81be515584
Diffstat (limited to 'cmds')
-rw-r--r-- | cmds/dpm/src/com/android/commands/dpm/Dpm.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmds/dpm/src/com/android/commands/dpm/Dpm.java b/cmds/dpm/src/com/android/commands/dpm/Dpm.java index b8b2087..3b9a785 100644 --- a/cmds/dpm/src/com/android/commands/dpm/Dpm.java +++ b/cmds/dpm/src/com/android/commands/dpm/Dpm.java @@ -94,7 +94,7 @@ public final class Dpm extends BaseCommand { mDevicePolicyManager.removeActiveAdmin(component, UserHandle.USER_OWNER); throw e; } - System.out.println("Device owner set to package " + packageName); + System.out.println("Success: Device owner set to package " + packageName); System.out.println("Active admin set to component " + component.toShortString()); } @@ -113,8 +113,8 @@ public final class Dpm extends BaseCommand { mDevicePolicyManager.removeActiveAdmin(component, userId); throw e; } - System.out.println("Active admin and profile owner set to " + component.toShortString() + - " for user " + userId); + System.out.println("Success: Active admin and profile owner set to " + + component.toShortString() + " for user " + userId); } private ComponentName parseComponentName(String component) { |