summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Jordan Liu <jminjie@google.com> 2020-01-27 12:29:19 -0800
committer android-build-merger <android-build-merger@google.com> 2020-01-27 12:29:19 -0800
commit932c9e0b99277482561de65a63e1015cfd6919ed (patch)
treebf65cdb7e81d3545e137a125d53620fa6fd9e6ab
parentf590f0a0194bb9b4c34bab2c7a6501af4be43f1b (diff)
parentbd9ff621380c0204cdfed57c8c3f01bd17c0df9e (diff)
Merge "Update test to not assume 2 max SIMs"
am: bd9ff62138 Change-Id: I29f94cf764209d8325c29ed8ea9c1d73a34194b7
-rw-r--r--cmds/telecom/src/com/android/commands/telecom/Telecom.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/cmds/telecom/src/com/android/commands/telecom/Telecom.java b/cmds/telecom/src/com/android/commands/telecom/Telecom.java
index 1987440106f5..97074050448e 100644
--- a/cmds/telecom/src/com/android/commands/telecom/Telecom.java
+++ b/cmds/telecom/src/com/android/commands/telecom/Telecom.java
@@ -366,12 +366,8 @@ public final class Telecom extends BaseCommand {
}
private void runGetMaxPhones() throws RemoteException {
- // This assumes the max number of SIMs is 2, which it currently is
- if (TelephonyManager.MULTISIM_ALLOWED == mTelephonyManager.isMultiSimSupported()) {
- System.out.println("2");
- } else {
- System.out.println("1");
- }
+ // how many logical modems can be potentially active simultaneously
+ System.out.println(mTelephonyManager.getSupportedModemCount());
}
private void runSetEmergencyPhoneAccountPackageFilter() throws RemoteException {