Populate 'hasKnownUserIntentEmergency'

This is only used to specify when the dialed number is ambiguous,
identified as both emergency number and any other non-emergency number;
e.g. in some situation, 611 could be both an emergency number in a
country and a non-emergency number of a carrier's customer service hotline.

Test: Manual
Bug: 123999640
Change-Id: I7b1a8832ab86b3e7d8f9af24eb4f7bde7d566612
Merged-In: I7b1a8832ab86b3e7d8f9af24eb4f7bde7d566612
(cherry picked from commit 6d9e7457da)
This commit is contained in:
sqian
2019-02-08 21:42:15 -08:00
parent 6cc4c0c029
commit 5e5d303982
4 changed files with 46 additions and 2 deletions

View File

@@ -288,6 +288,19 @@ public class TelecomManager {
public static final String EXTRA_OUTGOING_CALL_EXTRAS =
"android.telecom.extra.OUTGOING_CALL_EXTRAS";
/**
* An optional boolean extra on {@link android.content.Intent#ACTION_CALL_EMERGENCY} to tell
* whether the user's dial intent is emergency; this is required to specify when the dialed
* number is ambiguous, identified as both emergency number and any other non-emergency number;
* e.g. in some situation, 611 could be both an emergency number in a country and a
* non-emergency number of a carrier's customer service hotline.
*
* @hide
*/
@SystemApi
public static final String EXTRA_IS_USER_INTENT_EMERGENCY_CALL =
"android.telecom.extra.IS_USER_INTENT_EMERGENCY_CALL";
/**
* @hide
*/