From 2105a42191846454bb2dcef736e517404de047ba Mon Sep 17 00:00:00 2001 From: Chen Xu Date: Wed, 6 Nov 2019 18:18:35 -0800 Subject: expose systemAPI for SmsCbLocation constructor Bug: 135956699 Test: cts SmsCbLocationTest Change-Id: I7b9c6fa453ee907aaa13d65e0b13de0556852313 (cherry picked from commit 8635f37b96f3c7bf940fa8ca3b305ca9a6ca935a) Merged-in: I7b9c6fa453ee907aaa13d65e0b13de0556852313 --- api/system-current.txt | 1 + telephony/java/android/telephony/SmsCbLocation.java | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/system-current.txt b/api/system-current.txt index a58cfd28f8ac..c734122f55ea 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -8121,6 +8121,7 @@ package android.telephony { } public final class SmsCbLocation implements android.os.Parcelable { + ctor public SmsCbLocation(@NonNull String, int, int); method public int describeContents(); method public int getCid(); method public int getLac(); diff --git a/telephony/java/android/telephony/SmsCbLocation.java b/telephony/java/android/telephony/SmsCbLocation.java index adf7154b4e07..d8a47545eb5d 100644 --- a/telephony/java/android/telephony/SmsCbLocation.java +++ b/telephony/java/android/telephony/SmsCbLocation.java @@ -65,9 +65,8 @@ public final class SmsCbLocation implements Parcelable { /** * Construct a location object for the PLMN, LAC, and Cell ID. This class is immutable, so * the same object can be reused for multiple broadcasts. - * @hide */ - public SmsCbLocation(String plmn, int lac, int cid) { + public SmsCbLocation(@NonNull String plmn, int lac, int cid) { mPlmn = plmn; mLac = lac; mCid = cid; -- cgit v1.2.3-59-g8ed1b