Removed the hardcoded database column string

Made the ETWS isPrimary column name a system API

Bug: 157699377
Test: CtsTelephonyTestCases & CellBroadcastServiceTests
Change-Id: Ic4c78a12fb7e85328e6dea31b927f5f39420fbea
This commit is contained in:
Jack Yu
2020-06-04 10:11:31 -07:00
parent 3d6153d0ab
commit 322467efec
4 changed files with 8 additions and 3 deletions

View File

@@ -9282,6 +9282,7 @@ package android.provider {
field public static final String DATA_CODING_SCHEME = "dcs";
field public static final String DEFAULT_SORT_ORDER = "date DESC";
field public static final String DELIVERY_TIME = "date";
field public static final String ETWS_IS_PRIMARY = "etws_is_primary";
field public static final String ETWS_WARNING_TYPE = "etws_warning_type";
field public static final String GEOGRAPHICAL_SCOPE = "geo_scope";
field public static final String GEOMETRIES = "geometries";

View File

@@ -3208,6 +3208,7 @@ package android.provider {
field public static final String DATA_CODING_SCHEME = "dcs";
field public static final String DEFAULT_SORT_ORDER = "date DESC";
field public static final String DELIVERY_TIME = "date";
field public static final String ETWS_IS_PRIMARY = "etws_is_primary";
field public static final String ETWS_WARNING_TYPE = "etws_warning_type";
field public static final String GEOGRAPHICAL_SCOPE = "geo_scope";
field public static final String GEOMETRIES = "geometries";

View File

@@ -4325,11 +4325,13 @@ public final class Telephony {
public static final String ETWS_WARNING_TYPE = "etws_warning_type";
/**
* ETWS (Earthquake and Tsunami Warning System) primary message or not (ETWS alerts only).
* ETWS (Earthquake and Tsunami Warning System, Japan only) primary message or not. The
* primary message is sent as soon as the emergency occurs. It does not provide any
* information except the emergency type (e.g. earthquake, tsunami). The ETWS secondary
* message is sent afterwards and provides the details of the emergency.
*
* <p>See {@link android.telephony.SmsCbEtwsInfo}</p>
* <P>Type: BOOLEAN</P>
*
* @hide // TODO: Unhide this for S.
*/
public static final String ETWS_IS_PRIMARY = "etws_is_primary";

View File

@@ -8156,6 +8156,7 @@ package android.provider {
field public static final String DATA_CODING_SCHEME = "dcs";
field public static final String DEFAULT_SORT_ORDER = "date DESC";
field public static final String DELIVERY_TIME = "date";
field public static final String ETWS_IS_PRIMARY = "etws_is_primary";
field public static final String ETWS_WARNING_TYPE = "etws_warning_type";
field public static final String GEOGRAPHICAL_SCOPE = "geo_scope";
field public static final String GEOMETRIES = "geometries";