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

Commit 626dd261 authored by Grant Menke's avatar Grant Menke
Browse files

Add API to get the telecom call id from Call.Details.

This CL unhides StreamingCall#EXTRA_CALL_ID and adds an API to Call Details to get the telecom call ID. Updated CTS tests accordingly to account for these changes.

Fixes: 286457948
Test: atest CallDetailsTest && atest CallStreamingTest
Change-Id: Ibf9dbe38224b9710eb79aa68812f3a185f7e297d
parent 3fda969b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -42141,6 +42141,7 @@ package android.telecom {
    method public android.telecom.GatewayInfo getGatewayInfo();
    method public android.net.Uri getHandle();
    method public int getHandlePresentation();
    method @NonNull public String getId();
    method public android.os.Bundle getIntentExtras();
    method public final int getState();
    method public android.telecom.StatusHints getStatusHints();
+1 −0
Original line number Diff line number Diff line
@@ -13730,6 +13730,7 @@ package android.telecom {
    method public void requestStreamingState(int);
    method public void writeToParcel(@NonNull android.os.Parcel, int);
    field @NonNull public static final android.os.Parcelable.Creator<android.telecom.StreamingCall> CREATOR;
    field public static final String EXTRA_CALL_ID = "android.telecom.extra.CALL_ID";
    field public static final int STATE_DISCONNECTED = 3; // 0x3
    field public static final int STATE_HOLDING = 2; // 0x2
    field public static final int STATE_STREAMING = 1; // 0x1
+6 −0
Original line number Diff line number Diff line
@@ -936,6 +936,12 @@ public final class Call {
            return mState;
        }

        /**
         * @return the Telecom identifier associated with this {@link Call} . This is not a stable
         * identifier and is not guaranteed to be unique across device reboots.
         */
        public @NonNull String getId() { return mTelecomCallId; }

        /** {@hide} */
        @TestApi
        public String getTelecomCallId() {
+0 −1
Original line number Diff line number Diff line
@@ -56,7 +56,6 @@ public final class StreamingCall implements Parcelable {

    /**
     * The ID associated with this call.  This is the same value as {@link CallControl#getCallId()}.
     * @hide
     */
    public static final String EXTRA_CALL_ID = "android.telecom.extra.CALL_ID";