From ed2eb3de0a5b5a269749c96a072b090b3ed8bf8f Mon Sep 17 00:00:00 2001 From: sqian Date: Fri, 7 Dec 2018 22:00:12 -0800 Subject: [PATCH] Add mnc and modify docs for emergencyDial Test: Treehugger Bug: 112657134 Change-Id: Ia731ed350184fc35663a7bee54144a3ee7febcbe Merged-In: Ia731ed350184fc35663a7bee54144a3ee7febcbe (cherry picked from commit ee5598dc2ece906a391883e7072ae5b917df0935) --- radio/1.4/IRadio.hal | 5 +++++ radio/1.4/types.hal | 15 +++++++++++---- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/radio/1.4/IRadio.hal b/radio/1.4/IRadio.hal index c7a2c6bb08..843877718f 100644 --- a/radio/1.4/IRadio.hal +++ b/radio/1.4/IRadio.hal @@ -106,6 +106,11 @@ interface IRadio extends @1.3::IRadio { * Note this API is the same as IRadio.dial except using the * @1.4::EmergencyServiceCategory as the input param. * + * If the number in the 'dialInfo' field is identified as an emergency number in Android, + * Android use this request for its emergency call instead of @1.0::IRadio.dial. The + * implementation decides how to handle the call (e.g. emergency routing or normal + * routing). + * * If the dialed emergency number does not have a specified emergency service category, the * 'categories' field is set to @1.4::EmergencyServiceCategory#UNSPECIFIED; iff either the * 'categories' field is set to @1.4::EmergencyServiceCategory#UNSPECIFIED or the underlying diff --git a/radio/1.4/types.hal b/radio/1.4/types.hal index 4f043ba677..d0eb0ac025 100644 --- a/radio/1.4/types.hal +++ b/radio/1.4/types.hal @@ -55,11 +55,14 @@ enum AccessNetwork : @1.2::AccessNetwork { * Emergency number contains information of number, one or more service category(s), mobile country * code (mcc), and source(s) that indicate where it comes from. * - * If the source of the emergency number is associated with country, field ‘mcc’ must be - * provided; otherwise the field ‘mcc’ must be an empty string. + * If the source of the emergency number is associated with country, field ‘mcc’ must be provided; + * otherwise the field ‘mcc’ must be an empty string. * - * A unique EmergencyNumber has a unique combination of ‘number’, ‘mcc’ and 'categories' fields. - * Multiple @1.4::EmergencyNumberSource should be merged into the bitfield for the same + * If the source of the emergency number is associated with network operator, field ‘mcc’ and + * 'mnc' must be provided; otherwise the field ‘mnc’ must be an empty string. + * + * A unique EmergencyNumber has a unique combination of ‘number’, ‘mcc’, 'mnc' and 'categories' + * fields. Multiple @1.4::EmergencyNumberSource should be merged into the bitfield for the same * EmergencyNumber. * * Reference: 3GPP TS 22.101 version 9.1.0 Release 9 @@ -74,6 +77,10 @@ struct EmergencyNumber{ * 3-digit Mobile Country Code, 0..999. Empty string if not applicable. */ string mcc; + /** + * 2 or 3-digit Mobile Network Code, 0..999. Empty string if not applicable. + */ + string mnc; /** * The bitfield of @1.4::EmergencyServiceCategory(s). See @1.4::EmergencyServiceCategory for * the value of each bit.