summaryrefslogtreecommitdiff
path: root/telecomm/java/android/telecom/Connection.java
diff options
context:
space:
mode:
authorTyler Gunn <tgunn@google.com>2021-05-07 16:41:19 -0700
committerTyler Gunn <tgunn@google.com>2021-05-07 16:41:19 -0700
commit78a59ff70b3465954af8420bd0194ec013ab6040 (patch)
treedc0dffe1f9adeefb5867e01fb8a1719e3503344c /telecomm/java/android/telecom/Connection.java
parentae6e4330be36822a1b41786516d84c4c6c521130 (diff)
Add hidden extra for communicating whether D2D is available
Test: Added unit test Bug: 163085177 Change-Id: I65f7fb38f0582e20899a54859d850982c6637237
Diffstat (limited to 'telecomm/java/android/telecom/Connection.java')
-rw-r--r--telecomm/java/android/telecom/Connection.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/telecomm/java/android/telecom/Connection.java b/telecomm/java/android/telecom/Connection.java
index 73f1783a517e..30403f416661 100644
--- a/telecomm/java/android/telecom/Connection.java
+++ b/telecomm/java/android/telecom/Connection.java
@@ -806,6 +806,15 @@ public abstract class Connection extends Conferenceable {
*/
public static final String EXTRA_AUDIO_CODEC_BANDWIDTH_KHZ =
"android.telecom.extra.AUDIO_CODEC_BANDWIDTH_KHZ";
+
+ /**
+ * Boolean connection extra key used to indicate whether device to device communication is
+ * available for the current call.
+ * @hide
+ */
+ public static final String EXTRA_IS_DEVICE_TO_DEVICE_COMMUNICATION_AVAILABLE =
+ "android.telecom.extra.IS_DEVICE_TO_DEVICE_COMMUNICATION_AVAILABLE";
+
/**
* Connection event used to inform Telecom that it should play the on hold tone. This is used
* to play a tone when the peer puts the current call on hold. Sent to Telecom via