From 02d6ac0f2075f6da81f6d8d08d76818dc6e436bc 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 Change-Id: If3d8d7915f2d86da20c63e99bee01f30e3ea89c0 --- .../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 c1b8479a7f56a..67b252e52db99 100644 --- a/telephony/java/android/provider/Telephony.java +++ b/telephony/java/android/provider/Telephony.java @@ -3961,6 +3961,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: *