diff options
author | Tyler Gunn <tgunn@google.com> | 2024-03-28 15:57:19 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2024-03-28 15:57:19 +0000 |
commit | d8e3d327fd438081cf6af770046bdb32a4386bf3 (patch) | |
tree | 0a394b5fae572fce14a9f784220f4f319c69f00b | |
parent | 0087456bf4387f83a9b6e5844fa6c30f8d8aab51 (diff) | |
parent | 8bb9b0044236d76d64c0aac19a30824a69955af0 (diff) | |
download | Telecomm-d8e3d327fd438081cf6af770046bdb32a4386bf3.tar.gz |
Merge "Fix CTS tests for devices without telephony feature" into main
-rw-r--r-- | src/com/android/server/telecom/ConnectionServiceWrapper.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/com/android/server/telecom/ConnectionServiceWrapper.java b/src/com/android/server/telecom/ConnectionServiceWrapper.java index 593673061..19e267c96 100644 --- a/src/com/android/server/telecom/ConnectionServiceWrapper.java +++ b/src/com/android/server/telecom/ConnectionServiceWrapper.java @@ -2588,9 +2588,11 @@ public class ConnectionServiceWrapper extends ServiceBinder implements } } - // Bail early if the caller isn't the sim connection mgr. - if (!isCallerConnectionManager) { - Log.d(this, "queryRemoteConnectionServices: none; not sim call mgr."); + Log.i(this, "queryRemoteConnectionServices, simServices = %s", simServices); + // Bail early if the caller isn't the sim connection mgr or no sim connection service + // other than caller available. + if (!isCallerConnectionManager || simServices.isEmpty()) { + Log.d(this, "queryRemoteConnectionServices: not sim call mgr or no simservices."); noRemoteServices(callback); return; } @@ -2598,8 +2600,6 @@ public class ConnectionServiceWrapper extends ServiceBinder implements final List<ComponentName> simServiceComponentNames = new ArrayList<>(); final List<IBinder> simServiceBinders = new ArrayList<>(); - Log.i(this, "queryRemoteConnectionServices, simServices = %s", simServices); - for (ConnectionServiceWrapper simService : simServices) { final ConnectionServiceWrapper currentSimService = simService; |