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

Commit b1c397c4 authored by Kiwon Park's avatar Kiwon Park
Browse files

Update rat_at_end at the end of a voice call.

Bug: 238682902
Change-Id: If07f7b2d1c99740050fee536f99e2c1edf77f62c
Test: m
parent b64d6027
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -514,6 +514,17 @@ public class VoiceCallSessionStats {
            proto.carrierId = mPhone.getCarrierId();
        }

        // Update end RAT
        @NetworkType
        int rat = ServiceStateStats.getVoiceRat(mPhone, getServiceState(), proto.bearerAtEnd);
        if (proto.ratAtEnd != rat) {
            proto.ratSwitchCount++;
            proto.ratAtEnd = rat;
            if (rat != TelephonyManager.NETWORK_TYPE_UNKNOWN) {
                proto.lastKnownRat = rat;
            }
        }

        mAtomsStorage.addVoiceCallSession(proto);

        // merge RAT usages to PersistPullers when the call session ends (i.e. no more active calls)