Merge "Deprecate TelephonyManager.getNeighboringCellInfo()" into mnc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
aaf280b6b1
@@ -31080,7 +31080,7 @@ package android.telephony {
|
|||||||
method public java.lang.String getLine1Number();
|
method public java.lang.String getLine1Number();
|
||||||
method public java.lang.String getMmsUAProfUrl();
|
method public java.lang.String getMmsUAProfUrl();
|
||||||
method public java.lang.String getMmsUserAgent();
|
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 getNetworkCountryIso();
|
||||||
method public java.lang.String getNetworkOperator();
|
method public java.lang.String getNetworkOperator();
|
||||||
method public java.lang.String getNetworkOperatorName();
|
method public java.lang.String getNetworkOperatorName();
|
||||||
|
|||||||
@@ -33336,7 +33336,7 @@ package android.telephony {
|
|||||||
method public java.lang.String getLine1Number();
|
method public java.lang.String getLine1Number();
|
||||||
method public java.lang.String getMmsUAProfUrl();
|
method public java.lang.String getMmsUAProfUrl();
|
||||||
method public java.lang.String getMmsUserAgent();
|
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 getNetworkCountryIso();
|
||||||
method public java.lang.String getNetworkOperator();
|
method public java.lang.String getNetworkOperator();
|
||||||
method public java.lang.String getNetworkOperatorName();
|
method public java.lang.String getNetworkOperatorName();
|
||||||
|
|||||||
@@ -891,16 +891,17 @@ public class TelephonyManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the neighboring cell information of the device. The getAllCellInfo is preferred
|
* Returns the neighboring cell information of the device.
|
||||||
* and use this only if getAllCellInfo return nulls or an empty list.
|
*
|
||||||
*<p>
|
|
||||||
* In the future this call will be deprecated.
|
|
||||||
*<p>
|
|
||||||
* @return List of NeighboringCellInfo or null if info unavailable.
|
* @return List of NeighboringCellInfo or null if info unavailable.
|
||||||
*
|
*
|
||||||
* <p>Requires Permission:
|
* <p>Requires Permission:
|
||||||
* (@link android.Manifest.permission#ACCESS_COARSE_UPDATES}
|
* (@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() {
|
public List<NeighboringCellInfo> getNeighboringCellInfo() {
|
||||||
try {
|
try {
|
||||||
ITelephony telephony = getITelephony();
|
ITelephony telephony = getITelephony();
|
||||||
|
|||||||
Reference in New Issue
Block a user