Merge "Add support for network identified emergency calls."

This commit is contained in:
Tyler Gunn
2018-09-24 22:50:50 +00:00
committed by Gerrit Code Review
7 changed files with 54 additions and 2 deletions

View File

@@ -413,6 +413,13 @@ public abstract class Connection extends Conferenceable {
*/
public static final int PROPERTY_ASSISTED_DIALING_USED = 1 << 9;
/**
* Set by the framework to indicate that the network has identified a Connection as an emergency
* call.
* @hide
*/
public static final int PROPERTY_NETWORK_IDENTIFIED_EMERGENCY_CALL = 1 << 10;
//**********************************************************************************************
// Next PROPERTY value: 1<<10
//**********************************************************************************************
@@ -802,6 +809,10 @@ public abstract class Connection extends Conferenceable {
builder.append(isLong ? " PROPERTY_IS_RTT" : " rtt");
}
if (can(properties, PROPERTY_NETWORK_IDENTIFIED_EMERGENCY_CALL)) {
builder.append(isLong ? " PROPERTY_NETWORK_IDENTIFIED_EMERGENCY_CALL" : " ecall");
}
builder.append("]");
return builder.toString();
}