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

Commit 537f17a3 authored by Sarah Chin's avatar Sarah Chin Committed by Android (Google) Code Review
Browse files

Merge "Change averagingWindowMs to int"

parents eb66da71 4fbd8077
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -37,12 +37,13 @@ parcelable NrQos {
  int fiveQi;
  android.hardware.radio.data.QosBandwidth downlink;
  android.hardware.radio.data.QosBandwidth uplink;
  byte qfi;
  /**
   * @deprecated use qosFlowIdentifier.
   * @deprecated use averagingWindowMillis;
   */
  byte qfi;
  char averagingWindowMs;
  int qosFlowIdentifier;
  int averagingWindowMillis = AVERAGING_WINDOW_UNKNOWN;
  const byte FLOW_ID_RANGE_MIN = 1;
  const byte FLOW_ID_RANGE_MAX = 63;
  const int AVERAGING_WINDOW_UNKNOWN = (-1);
}
+10 −5
Original line number Diff line number Diff line
@@ -27,6 +27,8 @@ parcelable NrQos {
    const byte FLOW_ID_RANGE_MIN = 1;
    const byte FLOW_ID_RANGE_MAX = 63;

    const int AVERAGING_WINDOW_UNKNOWN = -1;

    /**
     * 5G QOS Identifier (5QI), see 3GPP TS 24.501 and 23.501. The allowed values are standard
     * values (1-9, 65-68, 69-70, 75, 79-80, 82-85) defined in the spec and operator specific values
@@ -36,13 +38,16 @@ parcelable NrQos {
    QosBandwidth downlink;
    QosBandwidth uplink;
    /**
     * @deprecated use qosFlowIdentifier.
     * QOS flow identifier of the QOS flow description in the range
     * (FLOW_ID_RANGE_MIN, FLOW_ID_RANGE_MAX).
     */
    byte qfi;
    /**
     * @deprecated use averagingWindowMillis;
     */
    char averagingWindowMs;
    /**
     * QOS flow identifier of the QOS flow description in the range
     * (FLOW_ID_RANGE_MIN, FLOW_ID_RANGE_MAX).
     **/
    int qosFlowIdentifier;
     * The duration over which flow rates are calculated.
     */
    int averagingWindowMillis = AVERAGING_WINDOW_UNKNOWN;
}
+2 −2
Original line number Diff line number Diff line
@@ -136,8 +136,8 @@ static aidl::NrQos toAidl(const V1_6::NrQos& qos) {
            .fiveQi = qos.fiveQi,
            .downlink = toAidl(qos.downlink),
            .uplink = toAidl(qos.uplink),
            .qosFlowIdentifier = static_cast<int8_t>(qos.qfi),
            .averagingWindowMs = qos.averagingWindowMs,
            .qfi = static_cast<int8_t>(qos.qfi),
            .averagingWindowMillis = qos.averagingWindowMs,
    };
}