diff options
author | Yorke Lee <yorkelee@google.com> | 2015-06-11 15:48:17 -0700 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2015-06-11 15:49:08 -0700 |
commit | 8cd95ee0d0d643d3500fbd0841b658053623902e (patch) | |
tree | 39def150c606cff1d623fa23e5f50f756a9bc6da /cmds/telecom | |
parent | b535c5e28a7d689020461e9f9e8bed165eacc522 (diff) | |
download | frameworks_base-8cd95ee0d0d643d3500fbd0841b658053623902e.zip frameworks_base-8cd95ee0d0d643d3500fbd0841b658053623902e.tar.gz frameworks_base-8cd95ee0d0d643d3500fbd0841b658053623902e.tar.bz2 |
Add adb shell telecom get-system-dialer
Bug: 20303674
Change-Id: I7ce52e94c434846c262f2d6cc6d41992e259b45f
Diffstat (limited to 'cmds/telecom')
-rw-r--r-- | cmds/telecom/src/com/android/commands/telecom/Telecom.java | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/cmds/telecom/src/com/android/commands/telecom/Telecom.java b/cmds/telecom/src/com/android/commands/telecom/Telecom.java index cdf7429..c7ab36c 100644 --- a/cmds/telecom/src/com/android/commands/telecom/Telecom.java +++ b/cmds/telecom/src/com/android/commands/telecom/Telecom.java @@ -46,6 +46,7 @@ public final class Telecom extends BaseCommand { private static final String COMMAND_UNREGISTER_PHONE_ACCOUNT = "unregister-phone-account"; private static final String COMMAND_SET_DEFAULT_DIALER = "set-default-dialer"; private static final String COMMAND_GET_DEFAULT_DIALER = "get-default-dialer"; + private static final String COMMAND_GET_SYSTEM_DIALER = "get-system-dialer"; private ComponentName mComponent; private String mAccountId; @@ -60,7 +61,8 @@ public final class Telecom extends BaseCommand { "usage: telecom register-phone-account <COMPONENT> <ID> <LABEL>\n" + "usage: telecom unregister-phone-account <COMPONENT> <ID>\n" + "usage: telecom set-default-dialer <PACKAGE>\n" + - "usage: telecom get-default-dialer <PACKAGE>\n" + + "usage: telecom get-default-dialer\n" + + "usage: telecom get-system-dialer\n" + "\n" + "telecom set-phone-account-enabled: Enables the given phone account, if it has \n" + " already been registered with Telecom.\n" + @@ -70,7 +72,9 @@ public final class Telecom extends BaseCommand { "\n" + "telecom set-default-dialer: Sets the default dialer to the given component. \n" + "\n" + - "telecom get-default-dialer: Displays the current default dialer. \n" + "telecom get-default-dialer: Displays the current default dialer. \n" + + "\n" + + "telecom get-system-dialer: Displays the current system dialer. \n" ); } @@ -103,6 +107,9 @@ public final class Telecom extends BaseCommand { case COMMAND_GET_DEFAULT_DIALER: runGetDefaultDialer(); break; + case COMMAND_GET_SYSTEM_DIALER: + runGetSystemDialer(); + break; default: throw new IllegalArgumentException ("unknown command '" + command + "'"); } @@ -148,6 +155,10 @@ public final class Telecom extends BaseCommand { System.out.println(mTelecomService.getDefaultDialerPackage()); } + private void runGetSystemDialer() throws RemoteException { + System.out.println(mTelecomService.getSystemDialerPackage()); + } + private PhoneAccountHandle getPhoneAccountHandleFromArgs() { final ComponentName component = parseComponentName(nextArgRequired()); final String accountId = nextArgRequired(); |