OSDN Git Service

Un-hide TelephonyManager.getSignalStrength()
authorNathan Harold <nharold@google.com>
Fri, 18 Aug 2017 20:38:17 +0000 (13:38 -0700)
committerNathan Harold <nharold@google.com>
Tue, 29 Aug 2017 21:13:33 +0000 (14:13 -0700)
Expose the API to directly retrieve the latest cached
signal strength from ServiceStateTracker.

Bug: 36133439
Test: manual/sl4a
Change-Id: I36e4a24f19d49da5797d875ccfd10576ca0a68b8

api/current.txt
api/system-current.txt
api/test-current.txt
telephony/java/android/telephony/TelephonyManager.java

index b218165..80afb27 100644 (file)
@@ -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();
index 928346b..7cf2152 100644 (file)
@@ -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();
index 1dfca8e..85e04d1 100644 (file)
@@ -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();
index ab679ff..cc0e6bc 100644 (file)
@@ -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() {