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:
Tyler Gunn
2018-09-21 09:37:07 -07:00
parent 7cba8a7fe4
commit 5bd90853a5
7 changed files with 54 additions and 2 deletions

View File

@@ -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();
}