Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8bb9b004 authored by Muhammed Siju's avatar Muhammed Siju
Browse files

Fix CTS tests for devices without telephony feature

Create connection request during some CTS Telecom call
related test cases get stuck due to no sim connection
services available. This happens when the device doesn't
support telephony feature. To fix this bail early when
there are no sim connection services available.

Bug: 317153251
Test: CtsTelecomTestCases on devices without telephony
Change-Id: Iaf0951e66e88563f8490c140750b6ea5253c91e1
parent 29534cd9
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -2549,9 +2549,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;
        }
@@ -2559,8 +2561,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;