summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Thomas Stuart <tjstuart@google.com> 2024-08-28 18:30:18 +0000
committer Thomas Stuart <tjstuart@google.com> 2024-08-29 17:57:46 +0000
commit15eb61b4fce31e417f44a5964cc1b854bb101e17 (patch)
treebe12365b68d9dabff210ae7358715217c043ad00
parentd3e5ab1f857a60ab007fd78823e3a6cfdb5c9568 (diff)
update docs on moving VoIP calls out of starting states before 60 sec
VoIP calls must now move out of the starting state before 60 seconds or else they will be disconnected. Bug: 360298368 Flag: com.android.server.telecom.flags.disconnect_self_managed_stuck_startup_calls Test: manual Change-Id: Iace0625c40f51e91d9e8d43dca22b0b22f76ee6d
-rw-r--r--telecomm/java/android/telecom/CallControl.java5
-rw-r--r--telecomm/java/android/telecom/Connection.java8
2 files changed, 10 insertions, 3 deletions
diff --git a/telecomm/java/android/telecom/CallControl.java b/telecomm/java/android/telecom/CallControl.java
index 808a57589b47..1e1abf283af8 100644
--- a/telecomm/java/android/telecom/CallControl.java
+++ b/telecomm/java/android/telecom/CallControl.java
@@ -39,7 +39,10 @@ import java.util.concurrent.Executor;
/**
* CallControl provides client side control of a call. Each Call will get an individual CallControl
- * instance in which the client can alter the state of the associated call.
+ * instance in which the client can alter the state of the associated call. Outgoing and incoming
+ * calls should move to active (via {@link CallControl#setActive(Executor, OutcomeReceiver)} or
+ * answered (via {@link CallControl#answer(int, Executor, OutcomeReceiver)} before 60 seconds. If
+ * the new call is not moved to active or answered before 60 seconds, the call will be disconnected.
*
* <p>
* Each method is Transactional meaning that it can succeed or fail. If a transaction succeeds,
diff --git a/telecomm/java/android/telecom/Connection.java b/telecomm/java/android/telecom/Connection.java
index 1df6cf78047c..ad7d9870ca98 100644
--- a/telecomm/java/android/telecom/Connection.java
+++ b/telecomm/java/android/telecom/Connection.java
@@ -2621,7 +2621,9 @@ public abstract class Connection extends Conferenceable {
}
/**
- * Sets state to ringing (e.g., an inbound ringing connection).
+ * Sets state to ringing (e.g., an inbound ringing connection). The Connection should not be
+ * in STATE_RINGING for more than 60 seconds. After 60 seconds, the Connection will
+ * be disconnected.
*/
public final void setRinging() {
checkImmutable();
@@ -2645,7 +2647,9 @@ public abstract class Connection extends Conferenceable {
}
/**
- * Sets state to dialing (e.g., dialing an outbound connection).
+ * Sets state to dialing (e.g., dialing an outbound connection). The Connection should not be
+ * in STATE_DIALING for more than 60 seconds. After 60 seconds, the Connection will
+ * be disconnected.
*/
public final void setDialing() {
checkImmutable();