Add support for network identified emergency calls.
Add support for the IMS call profile to indicate that a call is an emergency call. Add supporting connection and call properties so that this can be propagated to Telecom and ultimately the Dialer app. Add System API to determine if the device is in a network IDed or dialed emergency call (used in Telephony). Test: Manual test using test intents and ecclist property. Test: Added new telecom unit tests. Bug: 77565333 Change-Id: I769e7b5000b10662c08fe53c91ef99edc685d2b1
This commit is contained in:
@@ -411,6 +411,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
|
||||
//**********************************************************************************************
|
||||
@@ -800,6 +807,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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user