Merge "Deprecate TelephonyManager.getCellLocation()" into oc-dev

This commit is contained in:
Nathan Harold
2017-04-11 20:58:29 +00:00
committed by Android (Google) Code Review
4 changed files with 6 additions and 5 deletions

View File

@@ -40055,7 +40055,7 @@ package android.telephony {
method public java.util.List<android.telephony.CellInfo> getAllCellInfo();
method public int getCallState();
method public android.os.PersistableBundle getCarrierConfig();
method public android.telephony.CellLocation getCellLocation();
method public deprecated android.telephony.CellLocation getCellLocation();
method public int getDataActivity();
method public int getDataNetworkType();
method public int getDataState();

View File

@@ -43540,7 +43540,7 @@ package android.telephony {
method public java.lang.String getCdmaMdn(int);
method public java.lang.String getCdmaMin();
method public java.lang.String getCdmaMin(int);
method public android.telephony.CellLocation getCellLocation();
method public deprecated android.telephony.CellLocation getCellLocation();
method public int getCurrentPhoneType();
method public int getCurrentPhoneType(int);
method public int getDataActivity();

View File

@@ -40255,7 +40255,7 @@ package android.telephony {
method public java.util.List<android.telephony.CellInfo> getAllCellInfo();
method public int getCallState();
method public android.os.PersistableBundle getCarrierConfig();
method public android.telephony.CellLocation getCellLocation();
method public deprecated android.telephony.CellLocation getCellLocation();
method public int getDataActivity();
method public int getDataNetworkType();
method public int getDataState();

View File

@@ -1093,14 +1093,15 @@ public class TelephonyManager {
* this method will return null. The implementation must not to try add LTE
* identifiers into the existing cdma/gsm classes.
*<p>
* In the future this call will be deprecated.
*<p>
* @return Current location of the device or null if not available.
*
* <p>Requires Permission:
* {@link android.Manifest.permission#ACCESS_COARSE_LOCATION ACCESS_COARSE_LOCATION} or
* {@link android.Manifest.permission#ACCESS_COARSE_LOCATION ACCESS_FINE_LOCATION}.
*
* @deprecated use {@link #getAllCellInfo} instead, which returns a superset of this API.
*/
@Deprecated
public CellLocation getCellLocation() {
try {
ITelephony telephony = getITelephony();