From 2b86092afed3eed0f37e09ee9b76ce9c2e9b012b Mon Sep 17 00:00:00 2001 From: Nathan Harold Date: Fri, 18 Aug 2017 13:38:17 -0700 Subject: [PATCH] Un-hide TelephonyManager.getSignalStrength() Expose the API to directly retrieve the latest cached signal strength from ServiceStateTracker. Bug: 36133439 Test: manual/sl4a Change-Id: I36e4a24f19d49da5797d875ccfd10576ca0a68b8 --- api/current.txt | 1 + api/system-current.txt | 1 + api/test-current.txt | 1 + telephony/java/android/telephony/TelephonyManager.java | 1 - 4 files changed, 3 insertions(+), 1 deletion(-) diff --git a/api/current.txt b/api/current.txt index b2181657da7d..80afb2741e94 100644 --- a/api/current.txt +++ b/api/current.txt @@ -40110,6 +40110,7 @@ package android.telephony { method public int getPhoneCount(); method public int getPhoneType(); method public android.telephony.ServiceState getServiceState(); + method public android.telephony.SignalStrength getSignalStrength(); method public java.lang.String getSimCountryIso(); method public java.lang.String getSimOperator(); method public java.lang.String getSimOperatorName(); diff --git a/api/system-current.txt b/api/system-current.txt index 928346b0ac07..7cf2152077de 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -43583,6 +43583,7 @@ package android.telephony { method public int getPhoneCount(); method public int getPhoneType(); method public android.telephony.ServiceState getServiceState(); + method public android.telephony.SignalStrength getSignalStrength(); method public java.lang.String getSimCountryIso(); method public java.lang.String getSimOperator(); method public java.lang.String getSimOperatorName(); diff --git a/api/test-current.txt b/api/test-current.txt index 1dfca8ee14f3..85e04d12f43e 100644 --- a/api/test-current.txt +++ b/api/test-current.txt @@ -40332,6 +40332,7 @@ package android.telephony { method public int getPhoneCount(); method public int getPhoneType(); method public android.telephony.ServiceState getServiceState(); + method public android.telephony.SignalStrength getSignalStrength(); method public java.lang.String getSimCountryIso(); method public java.lang.String getSimOperator(); method public java.lang.String getSimOperatorName(); diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java index ab679ff69d11..cc0e6bc035ab 100644 --- a/telephony/java/android/telephony/TelephonyManager.java +++ b/telephony/java/android/telephony/TelephonyManager.java @@ -6740,7 +6740,6 @@ public class TelephonyManager { * Get the most recent SignalStrength information reported by the modem. Due * to power saving this information may not always be current. * @return the most recent cached signal strength info from the modem - * @hide */ @Nullable public SignalStrength getSignalStrength() { -- 2.11.0