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

Commit e1296ad8 authored by Hunsuk Choi's avatar Hunsuk Choi
Browse files

Add log for onSrvccCallNotified

Bug: 217654931
Test: build
Change-Id: I456de08decaa8e7705fbfc5195668995bb4cf235
parent d9b3fdc5
Loading
Loading
Loading
Loading
+12 −2
Original line number Diff line number Diff line
@@ -5973,6 +5973,7 @@ public class ImsPhoneCallTracker extends CallTracker implements ImsPullCall {
    @VisibleForTesting
    public SrvccConnection[] convertToSrvccConnectionInfo(List<SrvccCall> profileList) {
        if (mSrvccTypeSupported.isEmpty() || profileList == null || profileList.isEmpty()) {
            loge("convertToSrvccConnectionInfo empty list");
            return null;
        }

@@ -5981,9 +5982,13 @@ public class ImsPhoneCallTracker extends CallTracker implements ImsPullCall {
            if (isCallProfileSupported(profile)) {
                addConnection(connList,
                        profile, findConnection(profile.getCallId()));
            } else {
                logi("convertToSrvccConnectionInfo not supported"
                        + " state=" + profile.getPreciseCallState());
            }
        }

        logi("convertToSrvccConnectionInfo size=" + connList.size());
        if (connList.isEmpty()) return null;
        return connList.toArray(new SrvccConnection[0]);
    }
@@ -6013,7 +6018,10 @@ public class ImsPhoneCallTracker extends CallTracker implements ImsPullCall {
    }

    private boolean isCallProfileSupported(SrvccCall profile) {
        if (profile == null) return false;
        if (profile == null) {
            loge("isCallProfileSupported null profile");
            return false;
        }

        switch (profile.getPreciseCallState()) {
            case PRECISE_CALL_STATE_ACTIVE:
@@ -6031,6 +6039,8 @@ public class ImsPhoneCallTracker extends CallTracker implements ImsPullCall {
            case PRECISE_CALL_STATE_INCOMING_SETUP:
                return mSrvccTypeSupported.contains(PREALERTING_SRVCC_SUPPORT);
            default:
                loge("isCallProfileSupported invalid state="
                        + profile.getPreciseCallState());
                break;
        }
        return false;