diff options
author | Dong Zhou <a22255@motorola.com> | 2015-03-15 11:59:49 -0500 |
---|---|---|
committer | The Android Automerger <android-build@google.com> | 2015-03-25 18:49:43 -0700 |
commit | a4e0ab6edf3836204a9353bb52d1c66cf2f3a85a (patch) | |
tree | 711934475509e93c93a96f00128a6199f49b9232 | |
parent | 4faaaf6457f55b71018c5e254eff59a6f0ce6c6a (diff) | |
download | base-a4e0ab6edf3836204a9353bb52d1c66cf2f3a85a.tar.gz |
Define the capability to speed up MT call audio
Bug: 19656525
Change-Id: I0bc88e85b807871b2883a785efac91bd0e1f6d8d
-rw-r--r-- | telecomm/java/android/telecom/Call.java | 11 | ||||
-rw-r--r-- | telecomm/java/android/telecom/Connection.java | 9 |
2 files changed, 19 insertions, 1 deletions
diff --git a/telecomm/java/android/telecom/Call.java b/telecomm/java/android/telecom/Call.java index bbf338455cfb..d8a14efcd8ab 100644 --- a/telecomm/java/android/telecom/Call.java +++ b/telecomm/java/android/telecom/Call.java @@ -173,7 +173,7 @@ public final class Call { * Call is able to be individually disconnected when in a {@code Conference}. */ public static final int CAPABILITY_DISCONNECT_FROM_CONFERENCE = 0x00002000; - + /** * Whether the call is a generic conference, where we do not know the precise state of * participants in the conference (eg. on CDMA). @@ -182,6 +182,12 @@ public final class Call { */ public static final int CAPABILITY_GENERIC_CONFERENCE = 0x00004000; + /** + * Speed up audio setup for MT call. + * @hide + */ + public static final int CAPABILITY_SPEED_UP_MT_AUDIO = 0x00008000; + private final Uri mHandle; private final int mHandlePresentation; private final String mCallerDisplayName; @@ -264,6 +270,9 @@ public final class Call { if (can(capabilities, CAPABILITY_GENERIC_CONFERENCE)) { builder.append(" CAPABILITY_GENERIC_CONFERENCE"); } + if (can(capabilities, CAPABILITY_SPEED_UP_MT_AUDIO)) { + builder.append(" CAPABILITY_SPEED_UP_IMS_MT_AUDIO"); + } builder.append("]"); return builder.toString(); } diff --git a/telecomm/java/android/telecom/Connection.java b/telecomm/java/android/telecom/Connection.java index 03fec0104d7c..00a4136da01c 100644 --- a/telecomm/java/android/telecom/Connection.java +++ b/telecomm/java/android/telecom/Connection.java @@ -147,6 +147,12 @@ public abstract class Connection implements IConferenceable { */ public static final int CAPABILITY_GENERIC_CONFERENCE = 0x00004000; + /** + * Speed up audio setup for MT call. + * @hide + */ + public static final int CAPABILITY_SPEED_UP_MT_AUDIO = 0x00008000; + // Flag controlling whether PII is emitted into the logs private static final boolean PII_DEBUG = Log.isLoggable(android.util.Log.DEBUG); @@ -233,6 +239,9 @@ public abstract class Connection implements IConferenceable { if (can(capabilities, CAPABILITY_GENERIC_CONFERENCE)) { builder.append(" CAPABILITY_GENERIC_CONFERENCE"); } + if (can(capabilities, CAPABILITY_SPEED_UP_MT_AUDIO)) { + builder.append(" CAPABILITY_SPEED_UP_IMS_MT_AUDIO"); + } builder.append("]"); return builder.toString(); } |