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

Commit 066451af authored by Chi Zhang's avatar Chi Zhang Committed by Automerger Merge Worker
Browse files

Merge "Fix logging in VoiceCallSessionStats." am: 75286a6d am: a25e0e7e

Original change: https://android-review.googlesource.com/c/platform/frameworks/opt/telephony/+/1684155

Change-Id: I7150e8a229d6098db79f832b27c57f312bce0fd6
parents 5fa35a1e a25e0e7e
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -278,7 +278,7 @@ public class VoiceCallSessionStats {
            loge("onVideoStateChange: untracked connection");
            return;
        }
        logd(TAG, "Video state = " + videoState);
        logd("Video state = " + videoState);
        if (videoState != VideoProfile.STATE_AUDIO_ONLY) {
            proto.videoEnabled = true;
        }
@@ -292,7 +292,7 @@ public class VoiceCallSessionStats {
            loge("onMultipartyChange: untracked connection");
            return;
        }
        logd(TAG, "Multiparty = " + isMultiParty);
        logd("Multiparty = " + isMultiParty);
        if (isMultiParty) {
            proto.isMultiparty = true;
        }
@@ -599,7 +599,7 @@ public class VoiceCallSessionStats {
            // Scale result into 0 to 4 range.
            result = VOICE_CALL_SESSION__SIGNAL_STRENGTH_AT_END__SIGNAL_STRENGTH_GREAT
                    * level / max;
            logd(TAG, "WiFi level: " + result + " (" + level + "/" + max + ")");
            logd("WiFi level: " + result + " (" + level + "/" + max + ")");
        }
        return result;
    }
@@ -642,7 +642,7 @@ public class VoiceCallSessionStats {
            timePerQuality[quality] += time;
            totalTime += time;
        }
        logd(TAG, "Time per codec quality = " + Arrays.toString(timePerQuality));
        logd("Time per codec quality = " + Arrays.toString(timePerQuality));

        // We calculate 70% duration of the call as the threshold for the main audio codec quality
        // and iterate on all codec qualities. As soon as the sum of codec duration is greater than