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

Commit a92adbd5 authored by Sarah Chin's avatar Sarah Chin
Browse files

Use averagingWindowMillis instead of averagingWindowMs

Use averagingWindowMs when averagingWindowMillis is unknown.
This is the same change as ag/20886208.

Test: build
Bug: 264261216
Change-Id: I7c4e30fb975af5c39414cfcf4d71d896743616ea
parent 13fabc31
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -3869,9 +3869,13 @@ public class RILUtils {
                        convertHalQosBandwidth(eps.uplink), eps.qci);
            case android.hardware.radio.data.Qos.nr:
                android.hardware.radio.data.NrQos nr = qos.getNr();
                int averagingWindowMs = nr.averagingWindowMillis;
                if (averagingWindowMs
                        == android.hardware.radio.data.NrQos.AVERAGING_WINDOW_UNKNOWN) {
                    averagingWindowMs = nr.averagingWindowMs;
                }
                return new NrQos(convertHalQosBandwidth(nr.downlink),
                        convertHalQosBandwidth(nr.uplink), nr.qosFlowIdentifier, nr.fiveQi,
                        nr.averagingWindowMs);
                        convertHalQosBandwidth(nr.uplink), nr.qfi, nr.fiveQi, averagingWindowMs);
            default:
                return null;
        }