Add intdef for Telecom connection states.

Bug: 163085177
Test: Annotation only change.
Change-Id: Id3dbf9d38ff4467e94594bf7a75fb00750af64fe
This commit is contained in:
Tyler Gunn
2021-01-12 16:34:59 -08:00
parent c9e61a5c83
commit 50d437fb1e

View File

@@ -109,6 +109,20 @@ import java.util.concurrent.ConcurrentHashMap;
*/
public abstract class Connection extends Conferenceable {
/**@hide*/
@Retention(RetentionPolicy.SOURCE)
@IntDef(prefix = "STATE_", value = {
STATE_INITIALIZING,
STATE_NEW,
STATE_RINGING,
STATE_DIALING,
STATE_ACTIVE,
STATE_HOLDING,
STATE_DISCONNECTED,
STATE_PULLING_CALL
})
public @interface ConnectionState {}
/**
* The connection is initializing. This is generally the first state for a {@code Connection}
* returned by a {@link ConnectionService}.