From 9f677a0790e491a4d4b0e10dceb642b381b5d2d4 Mon Sep 17 00:00:00 2001 From: Pengquan Meng Date: Tue, 27 Aug 2019 11:20:17 -0700 Subject: [PATCH] Support maximum wait time for Cell broadcast Geo-Fencing Maximum Wait Time a device shall allow to determines it location meeting operator policy. If the device is unable to determine its position meeting operator policy within the GeoFencing Maximum Wait Time, it shall present the alert to the user and discontinue further positioning determination for the alert. Bug: 139022202 Test: manual Merged-In: If3d8d7915f2d86da20c63e99bee01f30e3ea89c0 Change-Id: If3d8d7915f2d86da20c63e99bee01f30e3ea89c0 (cherry picked from commit 02d6ac0f2075f6da81f6d8d08d76818dc6e436bc) --- .../java/android/provider/Telephony.java | 22 ++++++++- .../java/android/telephony/SmsCbMessage.java | 45 ++++++++++++++++--- .../internal/telephony/CbGeoUtils.java | 3 +- .../telephony/gsm/GsmSmsCbMessage.java | 32 +++++++++---- 4 files changed, 86 insertions(+), 16 deletions(-) diff --git a/telephony/java/android/provider/Telephony.java b/telephony/java/android/provider/Telephony.java index 3857d27304492..aa4a574bd2a2e 100644 --- a/telephony/java/android/provider/Telephony.java +++ b/telephony/java/android/provider/Telephony.java @@ -3890,6 +3890,13 @@ public final class Telephony { @NonNull public static final Uri CONTENT_URI = Uri.parse("content://cellbroadcasts"); + /** + * The id of the subscription which received this cell broadcast message. + *

Type: INTEGER

+ * @hide + */ + public static final String SUB_ID = "sub_id"; + /** * Message geographical scope. Valid values are: *