OSDN Git Service

Deprecate TelephonyManager.getNeighboringCellInfo()
authorNathan Harold <nharold@google.com>
Thu, 25 Jun 2015 21:24:54 +0000 (14:24 -0700)
committerNathan Harold <nharold@google.com>
Fri, 26 Jun 2015 19:20:58 +0000 (12:20 -0700)
bug: 22121990
Change-Id: Id8f9d080fdd1e2993b414a5304424238396b6fd4

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

index 2d51b97..33e4182 100644 (file)
@@ -31080,7 +31080,7 @@ package android.telephony {
     method public java.lang.String getLine1Number();
     method public java.lang.String getMmsUAProfUrl();
     method public java.lang.String getMmsUserAgent();
-    method public java.util.List<android.telephony.NeighboringCellInfo> getNeighboringCellInfo();
+    method public deprecated java.util.List<android.telephony.NeighboringCellInfo> getNeighboringCellInfo();
     method public java.lang.String getNetworkCountryIso();
     method public java.lang.String getNetworkOperator();
     method public java.lang.String getNetworkOperatorName();
index 33c7a1b..d862566 100644 (file)
@@ -33336,7 +33336,7 @@ package android.telephony {
     method public java.lang.String getLine1Number();
     method public java.lang.String getMmsUAProfUrl();
     method public java.lang.String getMmsUserAgent();
-    method public java.util.List<android.telephony.NeighboringCellInfo> getNeighboringCellInfo();
+    method public deprecated java.util.List<android.telephony.NeighboringCellInfo> getNeighboringCellInfo();
     method public java.lang.String getNetworkCountryIso();
     method public java.lang.String getNetworkOperator();
     method public java.lang.String getNetworkOperatorName();
index a2bd74b..ab2a98d 100644 (file)
@@ -891,16 +891,17 @@ public class TelephonyManager {
     }
 
     /**
-     * Returns the neighboring cell information of the device. The getAllCellInfo is preferred
-     * and use this only if getAllCellInfo return nulls or an empty list.
-     *<p>
-     * In the future this call will be deprecated.
-     *<p>
+     * Returns the neighboring cell information of the device.
+     *
      * @return List of NeighboringCellInfo or null if info unavailable.
      *
      * <p>Requires Permission:
      * (@link android.Manifest.permission#ACCESS_COARSE_UPDATES}
+     *
+     * @deprecated Use (@link getAllCellInfo} which returns a superset of the information
+     *             from NeighboringCellInfo.
      */
+    @Deprecated
     public List<NeighboringCellInfo> getNeighboringCellInfo() {
         try {
             ITelephony telephony = getITelephony();