summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Amit Mahajan <amitmahajan@google.com> 2019-10-09 17:04:25 -0700
committer Amit Mahajan <amitmahajan@google.com> 2019-10-16 10:27:27 -0700
commit54e43e65e03803390c418b9b4b83cd8f2dd6430f (patch)
tree1317b52b0c7a5d408379edb217659d059657c15c
parent8357dd73aedddbeefaa0fcafe7b55749f0efbc33 (diff)
Make APIs in the base CellInfo class public.
Test: build Bug: 139417139 Change-Id: I591c500136ac1f28d9cb87cd1649fd891e1315f6
-rw-r--r--api/current.txt2
-rw-r--r--telephony/java/android/telephony/CellInfo.java8
2 files changed, 8 insertions, 2 deletions
diff --git a/api/current.txt b/api/current.txt
index b17667531b04..d74a41b627d0 100644
--- a/api/current.txt
+++ b/api/current.txt
@@ -44461,6 +44461,8 @@ package android.telephony {
public abstract class CellInfo implements android.os.Parcelable {
method public int describeContents();
method public int getCellConnectionStatus();
+ method @NonNull public abstract android.telephony.CellIdentity getCellIdentity();
+ method @NonNull public abstract android.telephony.CellSignalStrength getCellSignalStrength();
method public long getTimeStamp();
method public boolean isRegistered();
field public static final int CONNECTION_NONE = 0; // 0x0
diff --git a/telephony/java/android/telephony/CellInfo.java b/telephony/java/android/telephony/CellInfo.java
index 7edc91cd67e8..18687d400faf 100644
--- a/telephony/java/android/telephony/CellInfo.java
+++ b/telephony/java/android/telephony/CellInfo.java
@@ -189,11 +189,15 @@ public abstract class CellInfo implements Parcelable {
mTimeStamp = ts;
}
- /** @hide */
+ /**
+ * @return a {@link CellIdentity} instance.
+ */
@NonNull
public abstract CellIdentity getCellIdentity();
- /** @hide */
+ /**
+ * @return a {@link CellSignalStrength} instance.
+ */
@NonNull
public abstract CellSignalStrength getCellSignalStrength();