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

Commit a680bdfc authored by Michele Berionne's avatar Michele Berionne
Browse files

Add new metrics to VoiceCallSession atom.

Bug: 151843373
Test: manual
Change-Id: Ibd3338cbf64f5f079bb65f599a423b06699f1acc
parent 0da50f9c
Loading
Loading
Loading
Loading
+26 −0
Original line number Diff line number Diff line
@@ -10572,6 +10572,32 @@ message VoiceCallSession {

    // A random number used as the dimension field to pull multiple atoms.
    optional int32 dimension = 25;

    // Signal strength at the end of the call. This value is applicable to both cellular and WiFi.
    optional android.telephony.SignalStrengthEnum signal_strength_at_end = 26;

    // Band at the end of the call. Value 0 is used if the band is unknown.
    // See GeranBands, UtranBands and EutranBands in IRadio interface, depending on the RAT at
    // the end of the call.
    optional int32 band_at_end = 27;

    // Time spent setting up the call in milliseconds.
    // The time is measured from dial to ringing for outgoing calls, and from answer to connected
    // for incoming calls.
    optional int32 setup_duration_millis = 28;

    // Main codec quality. The codec quality was equal to or greater than this value for at least
    // 70% of the call.
    optional android.telephony.CodecQuality main_codec_quality = 29;

    // Whether video was enabled at any point during the call.
    optional bool video_enabled = 30;

    // Radio access technology (RAT) used when call is connected.
    optional android.telephony.NetworkTypeEnum rat_at_connected = 31;

    // Whether the call was a conference call (applicable only for calls over IMS).
    optional bool is_multiparty = 32;
}

/**
+20 −2
Original line number Diff line number Diff line
@@ -99,7 +99,7 @@ enum RoamingTypeEnum {
    ROAMING_TYPE_ROAMING_INTERNATIONAL = 3;
}

// Signal strength levels, primarily used by android/telephony/SignalStrength.java.
// Signal strength levels, as defined in android/telephony/SignalStrength.java.
enum SignalStrengthEnum {
    SIGNAL_STRENGTH_NONE_OR_UNKNOWN = 0;
    SIGNAL_STRENGTH_POOR = 1;
@@ -268,3 +268,21 @@ enum DataStallRecoveryActionEnum {
    RECOVERY_ACTION_REREGISTER = 2;
    RECOVERY_ACTION_RADIO_RESTART = 3;
}

// Codec quality
enum CodecQuality {
    /** Codec quality: unknown */
    CODEC_QUALITY_UNKNOWN = 0;

    /** Codec quality: narrowband */
    CODEC_QUALITY_NARROWBAND = 1;

    /** Codec quality: wideband */
    CODEC_QUALITY_WIDEBAND = 2;

    /** Codec quality: super-wideband */
    CODEC_QUALITY_SUPER_WIDEBAND = 3;

    /** Codec quality: fullband */
    CODEC_QUALITY_FULLBAND = 4;
}