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

Commit a670e694 authored by Kiwon Park's avatar Kiwon Park Committed by Android (Google) Code Review
Browse files

Merge "Update rat_at_end at the end of a voice call." into tm-qpr-dev

parents af7bfc8b b1c397c4
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)