summaryrefslogtreecommitdiff
path: root/telecomm/java/android/telecom/Connection.java
diff options
context:
space:
mode:
Diffstat (limited to 'telecomm/java/android/telecom/Connection.java')
-rw-r--r--telecomm/java/android/telecom/Connection.java40
1 files changed, 39 insertions, 1 deletions
diff --git a/telecomm/java/android/telecom/Connection.java b/telecomm/java/android/telecom/Connection.java
index f2f1645b335d..b5fdfc2d6ec6 100644
--- a/telecomm/java/android/telecom/Connection.java
+++ b/telecomm/java/android/telecom/Connection.java
@@ -422,8 +422,14 @@ public abstract class Connection extends Conferenceable {
*/
public static final int CAPABILITY_TRANSFER_CONSULTATIVE = 0x10000000;
+ /**
+ * Remote device supports RTT.
+ * @hide
+ */
+ public static final int CAPABILITY_SUPPORTS_RTT_REMOTE = 0x20000000;
+
//**********************************************************************************************
- // Next CAPABILITY value: 0x20000000
+ // Next CAPABILITY value: 0x40000000
//**********************************************************************************************
/**
@@ -555,6 +561,16 @@ public abstract class Connection extends Conferenceable {
*/
public static final int PROPERTY_CROSS_SIM = 1 << 13;
+ /**
+ * Set by the framework to indicate that a Connection is participant host, which
+ * means the conference participant's handle is the same as the conference host's handle.
+ * <p>
+ * This property is specific to IMS conference calls originating in Telephony.
+ * @hide
+ */
+ public static final int PROPERTY_IS_PARTICIPANT_HOST = 1 << 14;
+
+
//**********************************************************************************************
// Next PROPERTY value: 1<<14
//**********************************************************************************************
@@ -839,6 +855,14 @@ public abstract class Connection extends Conferenceable {
"android.telecom.extra.IS_DEVICE_TO_DEVICE_COMMUNICATION_AVAILABLE";
/**
+ * Boolean connection extra key set on a {@link Connection} to indicate that swapping
+ * the call is not allowed.
+ * @hide
+ */
+ public static final String EXTRA_DISABLE_SWAP_CALL =
+ "android.telecom.extra.DISABLE_SWAP_CALL";
+
+ /**
* 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
* {@link #sendConnectionEvent(String, Bundle)}.
@@ -887,6 +911,17 @@ public abstract class Connection extends Conferenceable {
public static final String EVENT_CALL_HOLD_FAILED = "android.telecom.event.CALL_HOLD_FAILED";
/**
+ * Connection event used to inform Telecom when a resume operation on a call has failed.
+ * This event is only sent when concurrent calls (DSDA) are possible
+ * <p>
+ * Sent via {@link #sendConnectionEvent(String, Bundle)}. The {@link Bundle} parameter is
+ * expected to be null when this connection event is used.
+ * @hide
+ */
+ public static final String EVENT_CALL_RESUME_FAILED =
+ "android.telecom.event.CALL_RESUME_FAILED";
+
+ /**
* Connection event used to inform Telecom when a switch operation on a call has failed.
* <p>
* Sent via {@link #sendConnectionEvent(String, Bundle)}. The {@link Bundle} parameter is
@@ -1138,6 +1173,9 @@ public abstract class Connection extends Conferenceable {
== CAPABILITY_TRANSFER_CONSULTATIVE) {
builder.append(isLong ? " CAPABILITY_TRANSFER_CONSULTATIVE" : " sup_cTrans");
}
+ if ((capabilities & CAPABILITY_SUPPORTS_RTT_REMOTE) == CAPABILITY_SUPPORTS_RTT_REMOTE) {
+ builder.append(isLong ? " CAPABILITY_SUPPORTS_RTT_REMOTE" : " sup_rtt");
+ }
builder.append("]");
return builder.toString();
}