From 81be08228332554487fd58b211d9fbaa7472b9b4 Mon Sep 17 00:00:00 2001 From: Sooraj Sasindran Date: Tue, 26 Oct 2021 02:03:37 -0700 Subject: Provide last known cell id for emergency call Provide last known cell id to connection service for emergency calls. Bug: 198533763 Test: unit test Change-Id: I8b660c0b5fbe095e3b9b67129b7404ebd7ec5ccd --- telecomm/java/android/telecom/Connection.java | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'telecomm/java/android') diff --git a/telecomm/java/android/telecom/Connection.java b/telecomm/java/android/telecom/Connection.java index d06fe45a104c..2b855e92c549 100644 --- a/telecomm/java/android/telecom/Connection.java +++ b/telecomm/java/android/telecom/Connection.java @@ -821,6 +821,17 @@ public abstract class Connection extends Conferenceable { public static final String EXTRA_AUDIO_CODEC_BANDWIDTH_KHZ = "android.telecom.extra.AUDIO_CODEC_BANDWIDTH_KHZ"; + /** + * Last known cell identity key to be used to fill geo location header in case of an emergency + * call. This entry will not be filled if call is not identified as an emergency call. + * {@link Connection}. Only provided to the {@link ConnectionService} for the purpose + * of placing an emergency call; will not be present in the {@link InCallService} layer. + * The {@link ConnectionService}'s implementation will be logged for fine location access + * when an outgoing call is placed in this case. + */ + public static final String EXTRA_LAST_KNOWN_CELL_IDENTITY = + "android.telecom.extra.LAST_KNOWN_CELL_IDENTITY"; + /** * Boolean connection extra key used to indicate whether device to device communication is * available for the current call. -- cgit v1.2.3-59-g8ed1b