From 143d32860fbe08eef95f582b3e9b5b65762f2706 Mon Sep 17 00:00:00 2001 From: Amit Mahajan Date: Tue, 22 Jan 2019 16:01:19 -0800 Subject: [PATCH] Add a new parameter to emergencyDial(). The new parameter is to indicate if the request is initiated by the user through an emergency dialer or shortcut, meaning that the request is explicitly an emergency dial request. This is to indicate to the modem that no disambiguation (regarding whether this is really an emergency request) should be done for this request. Test: builds fine Bug: 123101600 Change-Id: Ic830762d8a8319f494f22d875ca6adad91ffce3b --- radio/1.4/IRadio.hal | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/radio/1.4/IRadio.hal b/radio/1.4/IRadio.hal index dd69607e5e..21c509766a 100644 --- a/radio/1.4/IRadio.hal +++ b/radio/1.4/IRadio.hal @@ -128,6 +128,10 @@ interface IRadio extends @1.3::IRadio { * does not support the emergency service category or emergency uniform resource names, the * field 'categories' or 'urns' may be ignored. * + * 'fromEmergencyDialer' indicates if this request originated from emergency dialer/shortcut, + * which means an explicit intent from the user to dial an emergency number. The modem must + * treat this as an actual emergency dial and not try to disambiguate. + * * If 'isTesting' is true, this request is for testing purpose, and must not be sent to a real * emergency service; otherwise it's for a real emergency call request. * @@ -142,12 +146,14 @@ interface IRadio extends @1.3::IRadio { * of the call. * @param urns the emergency Uniform Resource Names (URN) * @param routing @1.4::EmergencyCallRouting the emergency call routing information. + * @param fromEmergencyDialer Flag indicating if this request originated from emergency dialer. + * @param isTesting Flag indicating if this request is for testing purpose. * * Response function is IRadioResponse.emergencyDialResponse() */ oneway emergencyDial(int32_t serial, Dial dialInfo, bitfield categories, vec urns, - EmergencyCallRouting routing, bool isTesting); + EmergencyCallRouting routing, bool fromEmergencyDialer, bool isTesting); /** * Starts a network scan