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

Commit 1c836ece authored by Tyler Gunn's avatar Tyler Gunn
Browse files

D2D communication improvements.

- Add logging of accepted RTP header extension types to ImsCallProfile
- Add toString for various Rtp classes to enable logging.
- Add method backing new transport override command line option.

Bug: 163085177
Test: Manual
Change-Id: I39eb77a2f9095a944f9a5b57f8c02255657c13de
parent 40f27f79
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -791,7 +791,9 @@ public final class ImsCallProfile implements Parcelable {
                + ", emergencyCallTesting=" + mEmergencyCallTesting
                + ", hasKnownUserIntentEmergency=" + mHasKnownUserIntentEmergency
                + ", mRestrictCause=" + mRestrictCause
                + ", mCallerNumberVerstat= " + mCallerNumberVerificationStatus + " }";
                + ", mCallerNumberVerstat= " + mCallerNumberVerificationStatus
                + ", mAcceptedRtpHeaderExtensions= " + mAcceptedRtpHeaderExtensionTypes
                + " }";
    }

    @Override
+15 −0
Original line number Diff line number Diff line
@@ -134,4 +134,19 @@ public final class RtpHeaderExtension implements Parcelable {
        result = 31 * result + Arrays.hashCode(mExtensionData);
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("RtpHeaderExtension{mLocalIdentifier=");
        sb.append(mLocalIdentifier);
        sb.append(", mData=");
        for (byte b : mExtensionData) {
            sb.append(Integer.toBinaryString(b));
            sb.append("b_");
        }
        sb.append("}");

        return sb.toString();
    }
}
+12 −0
Original line number Diff line number Diff line
@@ -133,4 +133,16 @@ public final class RtpHeaderExtensionType implements Parcelable {
    public int hashCode() {
        return Objects.hash(mLocalIdentifier, mUri);
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("RtpHeaderExtensionType{mLocalIdentifier=");
        sb.append(mLocalIdentifier);
        sb.append(", mUri=");
        sb.append(mUri);
        sb.append("}");

        return sb.toString();
    }
}
+5 −0
Original line number Diff line number Diff line
@@ -2339,6 +2339,11 @@ interface ITelephony {
     */
    void sendDeviceToDeviceMessage(int message, int value);

    /**
     * Sets the specified transport active; only for use through shell.
     */
    void setActiveDeviceToDeviceTransport(String transport);

    /**
     * Gets the config of RCS VoLTE single registration enabled for the carrier/subscription.
     */