Revert removal of GpsStatus APIs
Bug: 126698813 Test: manual Change-Id: I174d3f4cd21259e59381fc79990005c644380065
This commit is contained in:
@@ -30,7 +30,6 @@ import java.util.NoSuchElementException;
|
||||
* <p>This class is used in conjunction with the {@link Listener} interface.
|
||||
*
|
||||
* @deprecated use {@link GnssStatus} and {@link GnssStatus.Callback}.
|
||||
* @removed
|
||||
*/
|
||||
@Deprecated
|
||||
public final class GpsStatus {
|
||||
@@ -113,7 +112,6 @@ public final class GpsStatus {
|
||||
/**
|
||||
* Used for receiving notifications when GPS status has changed.
|
||||
* @deprecated use {@link GnssStatus.Callback} instead.
|
||||
* @removed
|
||||
*/
|
||||
@Deprecated
|
||||
public interface Listener {
|
||||
@@ -144,7 +142,6 @@ public final class GpsStatus {
|
||||
* You can implement this interface and call {@link LocationManager#addNmeaListener}
|
||||
* to receive NMEA data from the GPS engine.
|
||||
* @deprecated use {@link OnNmeaMessageListener} instead.
|
||||
* @removed
|
||||
*/
|
||||
@Deprecated
|
||||
public interface NmeaListener {
|
||||
|
||||
@@ -1749,7 +1749,6 @@ public class LocationManager {
|
||||
*
|
||||
* @throws SecurityException if the ACCESS_FINE_LOCATION permission is not present
|
||||
* @deprecated use {@link #registerGnssStatusCallback(GnssStatus.Callback)} instead.
|
||||
* @removed
|
||||
*/
|
||||
@Deprecated
|
||||
@RequiresPermission(ACCESS_FINE_LOCATION)
|
||||
@@ -1762,7 +1761,6 @@ public class LocationManager {
|
||||
*
|
||||
* @param listener GPS status listener object to remove
|
||||
* @deprecated use {@link #unregisterGnssStatusCallback(GnssStatus.Callback)} instead.
|
||||
* @removed
|
||||
*/
|
||||
@Deprecated
|
||||
public void removeGpsStatusListener(GpsStatus.Listener listener) {}
|
||||
@@ -2088,7 +2086,6 @@ public class LocationManager {
|
||||
*
|
||||
* @param status object containing GPS status details, or null.
|
||||
* @return status object containing updated GPS status.
|
||||
* @removed
|
||||
*/
|
||||
@Deprecated
|
||||
@RequiresPermission(ACCESS_FINE_LOCATION)
|
||||
|
||||
Reference in New Issue
Block a user