diff options
Diffstat (limited to 'telecomm/java/android/telecom/Connection.java')
-rw-r--r-- | telecomm/java/android/telecom/Connection.java | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/telecomm/java/android/telecom/Connection.java b/telecomm/java/android/telecom/Connection.java index 430760a892b7..41157565bfdd 100644 --- a/telecomm/java/android/telecom/Connection.java +++ b/telecomm/java/android/telecom/Connection.java @@ -1074,6 +1074,8 @@ public abstract class Connection extends Conferenceable { private final List<Conferenceable> mUnmodifiableConferenceables = Collections.unmodifiableList(mConferenceables); + // The internal telecom call ID associated with this connection. + private String mTelecomCallId; private int mState = STATE_NEW; private CallAudioState mCallAudioState; private Uri mAddress; @@ -1098,6 +1100,17 @@ public abstract class Connection extends Conferenceable { public Connection() {} /** + * Returns the Telecom internal call ID associated with this connection. Should only be used + * for debugging and tracing purposes. + * + * @return The Telecom call ID. + * @hide + */ + public final String getTelecomCallId() { + return mTelecomCallId; + } + + /** * @return The address (e.g., phone number) to which this Connection is currently communicating. */ public final Uri getAddress() { @@ -1259,6 +1272,17 @@ public abstract class Connection extends Conferenceable { } /** + * Sets the telecom call ID associated with this Connection. The Telecom Call ID should be used + * ONLY for debugging purposes. + * + * @param callId The telecom call ID. + * @hide + */ + public void setTelecomCallId(String callId) { + mTelecomCallId = callId; + } + + /** * Inform this Connection that the state of its audio output has been changed externally. * * @param state The new audio state. |