Loading api/current.txt +22 −2 Original line number Diff line number Diff line Loading @@ -23968,7 +23968,7 @@ package android.location { method public float getBearingAccuracyDegrees(); method public long getElapsedRealtimeNanos(); method public double getElapsedRealtimeUncertaintyNanos(); method public android.os.Bundle getExtras(); method @Deprecated public android.os.Bundle getExtras(); method public double getLatitude(); method public double getLongitude(); method public String getProvider(); Loading Loading @@ -23997,7 +23997,7 @@ package android.location { method public void setBearingAccuracyDegrees(float); method public void setElapsedRealtimeNanos(long); method public void setElapsedRealtimeUncertaintyNanos(double); method public void setExtras(android.os.Bundle); method @Deprecated public void setExtras(android.os.Bundle); method public void setLatitude(double); method public void setLongitude(double); method public void setProvider(String); Loading @@ -24013,7 +24013,9 @@ package android.location { } public interface LocationListener { method public default void onFlushComplete(int); method public void onLocationChanged(@NonNull android.location.Location); method public default void onLocationChanged(@NonNull android.location.LocationResult); method public default void onProviderDisabled(@NonNull String); method public default void onProviderEnabled(@NonNull String); method @Deprecated public default void onStatusChanged(String, int, android.os.Bundle); Loading Loading @@ -24061,6 +24063,8 @@ package android.location { method public void removeTestProvider(@NonNull String); method @RequiresPermission(anyOf={"android.permission.ACCESS_COARSE_LOCATION", "android.permission.ACCESS_FINE_LOCATION"}, apis="..22") public void removeUpdates(@NonNull android.location.LocationListener); method public void removeUpdates(@NonNull android.app.PendingIntent); method public void requestFlush(@NonNull String, @NonNull android.location.LocationListener, int); method public void requestFlush(@NonNull String, @NonNull android.app.PendingIntent, int); method @RequiresPermission(anyOf={android.Manifest.permission.ACCESS_COARSE_LOCATION, android.Manifest.permission.ACCESS_FINE_LOCATION}) public void requestLocationUpdates(@NonNull String, long, float, @NonNull android.location.LocationListener); method @RequiresPermission(anyOf={android.Manifest.permission.ACCESS_COARSE_LOCATION, android.Manifest.permission.ACCESS_FINE_LOCATION}) public void requestLocationUpdates(@NonNull String, long, float, @NonNull android.location.LocationListener, @Nullable android.os.Looper); method @RequiresPermission(anyOf={android.Manifest.permission.ACCESS_COARSE_LOCATION, android.Manifest.permission.ACCESS_FINE_LOCATION}) public void requestLocationUpdates(@NonNull String, long, float, @NonNull java.util.concurrent.Executor, @NonNull android.location.LocationListener); Loading @@ -24086,7 +24090,9 @@ package android.location { field public static final String EXTRA_PROVIDER_ENABLED = "android.location.extra.PROVIDER_ENABLED"; field public static final String EXTRA_PROVIDER_NAME = "android.location.extra.PROVIDER_NAME"; field public static final String GPS_PROVIDER = "gps"; field public static final String KEY_FLUSH_COMPLETE = "flushComplete"; field public static final String KEY_LOCATION_CHANGED = "location"; field public static final String KEY_LOCATION_RESULT = "locationResult"; field public static final String KEY_PROVIDER_ENABLED = "providerEnabled"; field public static final String KEY_PROXIMITY_ENTERING = "entering"; field @Deprecated public static final String KEY_STATUS_CHANGED = "status"; Loading Loading @@ -24117,6 +24123,7 @@ package android.location { method public int describeContents(); method @IntRange(from=1) public long getDurationMillis(); method @IntRange(from=0) public long getIntervalMillis(); method @IntRange(from=0) public long getMaxUpdateDelayMillis(); method @IntRange(from=1, to=java.lang.Integer.MAX_VALUE) public int getMaxUpdates(); method @FloatRange(from=0, to=java.lang.Float.MAX_VALUE) public float getMinUpdateDistanceMeters(); method @IntRange(from=0) public long getMinUpdateIntervalMillis(); Loading @@ -24136,12 +24143,25 @@ package android.location { method @NonNull public android.location.LocationRequest.Builder clearMinUpdateIntervalMillis(); method @NonNull public android.location.LocationRequest.Builder setDurationMillis(@IntRange(from=1) long); method @NonNull public android.location.LocationRequest.Builder setIntervalMillis(@IntRange(from=0) long); method @NonNull public android.location.LocationRequest.Builder setMaxUpdateDelayMillis(@IntRange(from=0) long); method @NonNull public android.location.LocationRequest.Builder setMaxUpdates(@IntRange(from=1, to=java.lang.Integer.MAX_VALUE) int); method @NonNull public android.location.LocationRequest.Builder setMinUpdateDistanceMeters(@FloatRange(from=0, to=java.lang.Float.MAX_VALUE) float); method @NonNull public android.location.LocationRequest.Builder setMinUpdateIntervalMillis(@IntRange(from=0) long); method @NonNull public android.location.LocationRequest.Builder setQuality(int); } public final class LocationResult implements android.os.Parcelable { method @NonNull public java.util.List<android.location.Location> asList(); method @NonNull public static android.location.LocationResult create(@NonNull android.location.Location); method @NonNull public static android.location.LocationResult create(@NonNull java.util.List<android.location.Location>); method public int describeContents(); method @NonNull public android.location.Location get(@IntRange(from=0) int); method @NonNull public android.location.Location getLastLocation(); method @IntRange(from=1) public int size(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator<android.location.LocationResult> CREATOR; } public interface OnNmeaMessageListener { method public void onNmeaMessage(String, long); } api/system-current.txt +8 −4 Original line number Diff line number Diff line Loading @@ -4165,17 +4165,17 @@ package android.location { } public class LocationManager { method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void flushGnssBatch(); method @Deprecated @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void flushGnssBatch(); method @Deprecated @RequiresPermission(anyOf={android.Manifest.permission.ACCESS_COARSE_LOCATION, android.Manifest.permission.ACCESS_FINE_LOCATION}) public void getCurrentLocation(@NonNull android.location.LocationRequest, @Nullable android.os.CancellationSignal, @NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer<android.location.Location>); method @Nullable public String getExtraLocationControllerPackage(); method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public int getGnssBatchSize(); method @Deprecated public int getGnssBatchSize(); method @RequiresPermission(android.Manifest.permission.ACCESS_FINE_LOCATION) public void injectGnssMeasurementCorrections(@NonNull android.location.GnssMeasurementCorrections); method public boolean isExtraLocationControllerPackageEnabled(); method public boolean isLocationEnabledForUser(@NonNull android.os.UserHandle); method public boolean isProviderEnabledForUser(@NonNull String, @NonNull android.os.UserHandle); method @Deprecated @RequiresPermission(android.Manifest.permission.READ_DEVICE_CONFIG) public boolean isProviderPackage(@NonNull String); method @RequiresPermission(android.Manifest.permission.READ_DEVICE_CONFIG) public boolean isProviderPackage(@Nullable String, @NonNull String); method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public boolean registerGnssBatchedLocationCallback(long, boolean, @NonNull android.location.BatchedLocationCallback, @Nullable android.os.Handler); method @Deprecated @RequiresPermission(allOf={android.Manifest.permission.LOCATION_HARDWARE, android.Manifest.permission.UPDATE_APP_OPS_STATS}) public boolean registerGnssBatchedLocationCallback(long, boolean, @NonNull android.location.BatchedLocationCallback, @Nullable android.os.Handler); method @RequiresPermission(allOf={android.Manifest.permission.ACCESS_FINE_LOCATION, android.Manifest.permission.LOCATION_HARDWARE}) public boolean registerGnssMeasurementsCallback(@NonNull android.location.GnssRequest, @NonNull java.util.concurrent.Executor, @NonNull android.location.GnssMeasurementsEvent.Callback); method @Deprecated @RequiresPermission(anyOf={android.Manifest.permission.ACCESS_COARSE_LOCATION, android.Manifest.permission.ACCESS_FINE_LOCATION}) public void requestLocationUpdates(@Nullable android.location.LocationRequest, @NonNull android.location.LocationListener, @Nullable android.os.Looper); method @Deprecated @RequiresPermission(anyOf={android.Manifest.permission.ACCESS_COARSE_LOCATION, android.Manifest.permission.ACCESS_FINE_LOCATION}) public void requestLocationUpdates(@Nullable android.location.LocationRequest, @NonNull java.util.concurrent.Executor, @NonNull android.location.LocationListener); Loading @@ -4184,7 +4184,7 @@ package android.location { method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void setExtraLocationControllerPackageEnabled(boolean); method @RequiresPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS) public void setLocationEnabledForUser(boolean, @NonNull android.os.UserHandle); method @Deprecated @RequiresPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS) public boolean setProviderEnabledForUser(@NonNull String, boolean, @NonNull android.os.UserHandle); method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public boolean unregisterGnssBatchedLocationCallback(@NonNull android.location.BatchedLocationCallback); method @Deprecated @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public boolean unregisterGnssBatchedLocationCallback(@NonNull android.location.BatchedLocationCallback); } public final class LocationRequest implements android.os.Parcelable { Loading Loading @@ -4231,6 +4231,10 @@ package android.location { method @NonNull @RequiresPermission(android.Manifest.permission.UPDATE_DEVICE_STATS) public android.location.LocationRequest.Builder setWorkSource(@Nullable android.os.WorkSource); } public final class LocationResult implements android.os.Parcelable { method @NonNull public static android.location.LocationResult wrap(@NonNull android.location.Location); } } package android.media { Loading core/api/current.txt +22 −2 Original line number Diff line number Diff line Loading @@ -23950,7 +23950,7 @@ package android.location { method public float getBearingAccuracyDegrees(); method public long getElapsedRealtimeNanos(); method public double getElapsedRealtimeUncertaintyNanos(); method public android.os.Bundle getExtras(); method @Deprecated public android.os.Bundle getExtras(); method public double getLatitude(); method public double getLongitude(); method public String getProvider(); Loading Loading @@ -23979,7 +23979,7 @@ package android.location { method public void setBearingAccuracyDegrees(float); method public void setElapsedRealtimeNanos(long); method public void setElapsedRealtimeUncertaintyNanos(double); method public void setExtras(android.os.Bundle); method @Deprecated public void setExtras(android.os.Bundle); method public void setLatitude(double); method public void setLongitude(double); method public void setProvider(String); Loading @@ -23995,7 +23995,9 @@ package android.location { } public interface LocationListener { method public default void onFlushComplete(int); method public void onLocationChanged(@NonNull android.location.Location); method public default void onLocationChanged(@NonNull android.location.LocationResult); method public default void onProviderDisabled(@NonNull String); method public default void onProviderEnabled(@NonNull String); method @Deprecated public default void onStatusChanged(String, int, android.os.Bundle); Loading Loading @@ -24043,6 +24045,8 @@ package android.location { method public void removeTestProvider(@NonNull String); method @RequiresPermission(anyOf={"android.permission.ACCESS_COARSE_LOCATION", "android.permission.ACCESS_FINE_LOCATION"}, apis="..22") public void removeUpdates(@NonNull android.location.LocationListener); method public void removeUpdates(@NonNull android.app.PendingIntent); method public void requestFlush(@NonNull String, @NonNull android.location.LocationListener, int); method public void requestFlush(@NonNull String, @NonNull android.app.PendingIntent, int); method @RequiresPermission(anyOf={android.Manifest.permission.ACCESS_COARSE_LOCATION, android.Manifest.permission.ACCESS_FINE_LOCATION}) public void requestLocationUpdates(@NonNull String, long, float, @NonNull android.location.LocationListener); method @RequiresPermission(anyOf={android.Manifest.permission.ACCESS_COARSE_LOCATION, android.Manifest.permission.ACCESS_FINE_LOCATION}) public void requestLocationUpdates(@NonNull String, long, float, @NonNull android.location.LocationListener, @Nullable android.os.Looper); method @RequiresPermission(anyOf={android.Manifest.permission.ACCESS_COARSE_LOCATION, android.Manifest.permission.ACCESS_FINE_LOCATION}) public void requestLocationUpdates(@NonNull String, long, float, @NonNull java.util.concurrent.Executor, @NonNull android.location.LocationListener); Loading @@ -24068,7 +24072,9 @@ package android.location { field public static final String EXTRA_PROVIDER_ENABLED = "android.location.extra.PROVIDER_ENABLED"; field public static final String EXTRA_PROVIDER_NAME = "android.location.extra.PROVIDER_NAME"; field public static final String GPS_PROVIDER = "gps"; field public static final String KEY_FLUSH_COMPLETE = "flushComplete"; field public static final String KEY_LOCATION_CHANGED = "location"; field public static final String KEY_LOCATION_RESULT = "locationResult"; field public static final String KEY_PROVIDER_ENABLED = "providerEnabled"; field public static final String KEY_PROXIMITY_ENTERING = "entering"; field @Deprecated public static final String KEY_STATUS_CHANGED = "status"; Loading Loading @@ -24099,6 +24105,7 @@ package android.location { method public int describeContents(); method @IntRange(from=1) public long getDurationMillis(); method @IntRange(from=0) public long getIntervalMillis(); method @IntRange(from=0) public long getMaxUpdateDelayMillis(); method @IntRange(from=1, to=java.lang.Integer.MAX_VALUE) public int getMaxUpdates(); method @FloatRange(from=0, to=java.lang.Float.MAX_VALUE) public float getMinUpdateDistanceMeters(); method @IntRange(from=0) public long getMinUpdateIntervalMillis(); Loading @@ -24118,12 +24125,25 @@ package android.location { method @NonNull public android.location.LocationRequest.Builder clearMinUpdateIntervalMillis(); method @NonNull public android.location.LocationRequest.Builder setDurationMillis(@IntRange(from=1) long); method @NonNull public android.location.LocationRequest.Builder setIntervalMillis(@IntRange(from=0) long); method @NonNull public android.location.LocationRequest.Builder setMaxUpdateDelayMillis(@IntRange(from=0) long); method @NonNull public android.location.LocationRequest.Builder setMaxUpdates(@IntRange(from=1, to=java.lang.Integer.MAX_VALUE) int); method @NonNull public android.location.LocationRequest.Builder setMinUpdateDistanceMeters(@FloatRange(from=0, to=java.lang.Float.MAX_VALUE) float); method @NonNull public android.location.LocationRequest.Builder setMinUpdateIntervalMillis(@IntRange(from=0) long); method @NonNull public android.location.LocationRequest.Builder setQuality(int); } public final class LocationResult implements android.os.Parcelable { method @NonNull public java.util.List<android.location.Location> asList(); method @NonNull public static android.location.LocationResult create(@NonNull android.location.Location); method @NonNull public static android.location.LocationResult create(@NonNull java.util.List<android.location.Location>); method public int describeContents(); method @NonNull public android.location.Location get(@IntRange(from=0) int); method @NonNull public android.location.Location getLastLocation(); method @IntRange(from=1) public int size(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator<android.location.LocationResult> CREATOR; } public interface OnNmeaMessageListener { method public void onNmeaMessage(String, long); } core/api/system-current.txt +8 −4 Original line number Diff line number Diff line Loading @@ -4105,17 +4105,17 @@ package android.location { } public class LocationManager { method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void flushGnssBatch(); method @Deprecated @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void flushGnssBatch(); method @Deprecated @RequiresPermission(anyOf={android.Manifest.permission.ACCESS_COARSE_LOCATION, android.Manifest.permission.ACCESS_FINE_LOCATION}) public void getCurrentLocation(@NonNull android.location.LocationRequest, @Nullable android.os.CancellationSignal, @NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer<android.location.Location>); method @Nullable public String getExtraLocationControllerPackage(); method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public int getGnssBatchSize(); method @Deprecated public int getGnssBatchSize(); method @RequiresPermission(android.Manifest.permission.ACCESS_FINE_LOCATION) public void injectGnssMeasurementCorrections(@NonNull android.location.GnssMeasurementCorrections); method public boolean isExtraLocationControllerPackageEnabled(); method public boolean isLocationEnabledForUser(@NonNull android.os.UserHandle); method public boolean isProviderEnabledForUser(@NonNull String, @NonNull android.os.UserHandle); method @Deprecated @RequiresPermission(android.Manifest.permission.READ_DEVICE_CONFIG) public boolean isProviderPackage(@NonNull String); method @RequiresPermission(android.Manifest.permission.READ_DEVICE_CONFIG) public boolean isProviderPackage(@Nullable String, @NonNull String); method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public boolean registerGnssBatchedLocationCallback(long, boolean, @NonNull android.location.BatchedLocationCallback, @Nullable android.os.Handler); method @Deprecated @RequiresPermission(allOf={android.Manifest.permission.LOCATION_HARDWARE, android.Manifest.permission.UPDATE_APP_OPS_STATS}) public boolean registerGnssBatchedLocationCallback(long, boolean, @NonNull android.location.BatchedLocationCallback, @Nullable android.os.Handler); method @RequiresPermission(allOf={android.Manifest.permission.ACCESS_FINE_LOCATION, android.Manifest.permission.LOCATION_HARDWARE}) public boolean registerGnssMeasurementsCallback(@NonNull android.location.GnssRequest, @NonNull java.util.concurrent.Executor, @NonNull android.location.GnssMeasurementsEvent.Callback); method @Deprecated @RequiresPermission(anyOf={android.Manifest.permission.ACCESS_COARSE_LOCATION, android.Manifest.permission.ACCESS_FINE_LOCATION}) public void requestLocationUpdates(@Nullable android.location.LocationRequest, @NonNull android.location.LocationListener, @Nullable android.os.Looper); method @Deprecated @RequiresPermission(anyOf={android.Manifest.permission.ACCESS_COARSE_LOCATION, android.Manifest.permission.ACCESS_FINE_LOCATION}) public void requestLocationUpdates(@Nullable android.location.LocationRequest, @NonNull java.util.concurrent.Executor, @NonNull android.location.LocationListener); Loading @@ -4124,7 +4124,7 @@ package android.location { method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void setExtraLocationControllerPackageEnabled(boolean); method @RequiresPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS) public void setLocationEnabledForUser(boolean, @NonNull android.os.UserHandle); method @Deprecated @RequiresPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS) public boolean setProviderEnabledForUser(@NonNull String, boolean, @NonNull android.os.UserHandle); method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public boolean unregisterGnssBatchedLocationCallback(@NonNull android.location.BatchedLocationCallback); method @Deprecated @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public boolean unregisterGnssBatchedLocationCallback(@NonNull android.location.BatchedLocationCallback); } public final class LocationRequest implements android.os.Parcelable { Loading Loading @@ -4171,6 +4171,10 @@ package android.location { method @NonNull @RequiresPermission(android.Manifest.permission.UPDATE_DEVICE_STATS) public android.location.LocationRequest.Builder setWorkSource(@Nullable android.os.WorkSource); } public final class LocationResult implements android.os.Parcelable { method @NonNull public static android.location.LocationResult wrap(@NonNull android.location.Location); } } package android.media { Loading location/java/android/location/ILocationListener.aidl +3 −2 Original line number Diff line number Diff line Loading @@ -16,7 +16,7 @@ package android.location; import android.location.Location; import android.location.LocationResult; import android.os.IRemoteCallback; /** Loading @@ -24,6 +24,7 @@ import android.os.IRemoteCallback; */ oneway interface ILocationListener { void onLocationChanged(in Location location, in @nullable IRemoteCallback onCompleteCallback); void onLocationChanged(in LocationResult locationResult, in @nullable IRemoteCallback onCompleteCallback); void onProviderEnabledChanged(String provider, boolean enabled); void onFlushComplete(int requestCode); } Loading
api/current.txt +22 −2 Original line number Diff line number Diff line Loading @@ -23968,7 +23968,7 @@ package android.location { method public float getBearingAccuracyDegrees(); method public long getElapsedRealtimeNanos(); method public double getElapsedRealtimeUncertaintyNanos(); method public android.os.Bundle getExtras(); method @Deprecated public android.os.Bundle getExtras(); method public double getLatitude(); method public double getLongitude(); method public String getProvider(); Loading Loading @@ -23997,7 +23997,7 @@ package android.location { method public void setBearingAccuracyDegrees(float); method public void setElapsedRealtimeNanos(long); method public void setElapsedRealtimeUncertaintyNanos(double); method public void setExtras(android.os.Bundle); method @Deprecated public void setExtras(android.os.Bundle); method public void setLatitude(double); method public void setLongitude(double); method public void setProvider(String); Loading @@ -24013,7 +24013,9 @@ package android.location { } public interface LocationListener { method public default void onFlushComplete(int); method public void onLocationChanged(@NonNull android.location.Location); method public default void onLocationChanged(@NonNull android.location.LocationResult); method public default void onProviderDisabled(@NonNull String); method public default void onProviderEnabled(@NonNull String); method @Deprecated public default void onStatusChanged(String, int, android.os.Bundle); Loading Loading @@ -24061,6 +24063,8 @@ package android.location { method public void removeTestProvider(@NonNull String); method @RequiresPermission(anyOf={"android.permission.ACCESS_COARSE_LOCATION", "android.permission.ACCESS_FINE_LOCATION"}, apis="..22") public void removeUpdates(@NonNull android.location.LocationListener); method public void removeUpdates(@NonNull android.app.PendingIntent); method public void requestFlush(@NonNull String, @NonNull android.location.LocationListener, int); method public void requestFlush(@NonNull String, @NonNull android.app.PendingIntent, int); method @RequiresPermission(anyOf={android.Manifest.permission.ACCESS_COARSE_LOCATION, android.Manifest.permission.ACCESS_FINE_LOCATION}) public void requestLocationUpdates(@NonNull String, long, float, @NonNull android.location.LocationListener); method @RequiresPermission(anyOf={android.Manifest.permission.ACCESS_COARSE_LOCATION, android.Manifest.permission.ACCESS_FINE_LOCATION}) public void requestLocationUpdates(@NonNull String, long, float, @NonNull android.location.LocationListener, @Nullable android.os.Looper); method @RequiresPermission(anyOf={android.Manifest.permission.ACCESS_COARSE_LOCATION, android.Manifest.permission.ACCESS_FINE_LOCATION}) public void requestLocationUpdates(@NonNull String, long, float, @NonNull java.util.concurrent.Executor, @NonNull android.location.LocationListener); Loading @@ -24086,7 +24090,9 @@ package android.location { field public static final String EXTRA_PROVIDER_ENABLED = "android.location.extra.PROVIDER_ENABLED"; field public static final String EXTRA_PROVIDER_NAME = "android.location.extra.PROVIDER_NAME"; field public static final String GPS_PROVIDER = "gps"; field public static final String KEY_FLUSH_COMPLETE = "flushComplete"; field public static final String KEY_LOCATION_CHANGED = "location"; field public static final String KEY_LOCATION_RESULT = "locationResult"; field public static final String KEY_PROVIDER_ENABLED = "providerEnabled"; field public static final String KEY_PROXIMITY_ENTERING = "entering"; field @Deprecated public static final String KEY_STATUS_CHANGED = "status"; Loading Loading @@ -24117,6 +24123,7 @@ package android.location { method public int describeContents(); method @IntRange(from=1) public long getDurationMillis(); method @IntRange(from=0) public long getIntervalMillis(); method @IntRange(from=0) public long getMaxUpdateDelayMillis(); method @IntRange(from=1, to=java.lang.Integer.MAX_VALUE) public int getMaxUpdates(); method @FloatRange(from=0, to=java.lang.Float.MAX_VALUE) public float getMinUpdateDistanceMeters(); method @IntRange(from=0) public long getMinUpdateIntervalMillis(); Loading @@ -24136,12 +24143,25 @@ package android.location { method @NonNull public android.location.LocationRequest.Builder clearMinUpdateIntervalMillis(); method @NonNull public android.location.LocationRequest.Builder setDurationMillis(@IntRange(from=1) long); method @NonNull public android.location.LocationRequest.Builder setIntervalMillis(@IntRange(from=0) long); method @NonNull public android.location.LocationRequest.Builder setMaxUpdateDelayMillis(@IntRange(from=0) long); method @NonNull public android.location.LocationRequest.Builder setMaxUpdates(@IntRange(from=1, to=java.lang.Integer.MAX_VALUE) int); method @NonNull public android.location.LocationRequest.Builder setMinUpdateDistanceMeters(@FloatRange(from=0, to=java.lang.Float.MAX_VALUE) float); method @NonNull public android.location.LocationRequest.Builder setMinUpdateIntervalMillis(@IntRange(from=0) long); method @NonNull public android.location.LocationRequest.Builder setQuality(int); } public final class LocationResult implements android.os.Parcelable { method @NonNull public java.util.List<android.location.Location> asList(); method @NonNull public static android.location.LocationResult create(@NonNull android.location.Location); method @NonNull public static android.location.LocationResult create(@NonNull java.util.List<android.location.Location>); method public int describeContents(); method @NonNull public android.location.Location get(@IntRange(from=0) int); method @NonNull public android.location.Location getLastLocation(); method @IntRange(from=1) public int size(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator<android.location.LocationResult> CREATOR; } public interface OnNmeaMessageListener { method public void onNmeaMessage(String, long); }
api/system-current.txt +8 −4 Original line number Diff line number Diff line Loading @@ -4165,17 +4165,17 @@ package android.location { } public class LocationManager { method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void flushGnssBatch(); method @Deprecated @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void flushGnssBatch(); method @Deprecated @RequiresPermission(anyOf={android.Manifest.permission.ACCESS_COARSE_LOCATION, android.Manifest.permission.ACCESS_FINE_LOCATION}) public void getCurrentLocation(@NonNull android.location.LocationRequest, @Nullable android.os.CancellationSignal, @NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer<android.location.Location>); method @Nullable public String getExtraLocationControllerPackage(); method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public int getGnssBatchSize(); method @Deprecated public int getGnssBatchSize(); method @RequiresPermission(android.Manifest.permission.ACCESS_FINE_LOCATION) public void injectGnssMeasurementCorrections(@NonNull android.location.GnssMeasurementCorrections); method public boolean isExtraLocationControllerPackageEnabled(); method public boolean isLocationEnabledForUser(@NonNull android.os.UserHandle); method public boolean isProviderEnabledForUser(@NonNull String, @NonNull android.os.UserHandle); method @Deprecated @RequiresPermission(android.Manifest.permission.READ_DEVICE_CONFIG) public boolean isProviderPackage(@NonNull String); method @RequiresPermission(android.Manifest.permission.READ_DEVICE_CONFIG) public boolean isProviderPackage(@Nullable String, @NonNull String); method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public boolean registerGnssBatchedLocationCallback(long, boolean, @NonNull android.location.BatchedLocationCallback, @Nullable android.os.Handler); method @Deprecated @RequiresPermission(allOf={android.Manifest.permission.LOCATION_HARDWARE, android.Manifest.permission.UPDATE_APP_OPS_STATS}) public boolean registerGnssBatchedLocationCallback(long, boolean, @NonNull android.location.BatchedLocationCallback, @Nullable android.os.Handler); method @RequiresPermission(allOf={android.Manifest.permission.ACCESS_FINE_LOCATION, android.Manifest.permission.LOCATION_HARDWARE}) public boolean registerGnssMeasurementsCallback(@NonNull android.location.GnssRequest, @NonNull java.util.concurrent.Executor, @NonNull android.location.GnssMeasurementsEvent.Callback); method @Deprecated @RequiresPermission(anyOf={android.Manifest.permission.ACCESS_COARSE_LOCATION, android.Manifest.permission.ACCESS_FINE_LOCATION}) public void requestLocationUpdates(@Nullable android.location.LocationRequest, @NonNull android.location.LocationListener, @Nullable android.os.Looper); method @Deprecated @RequiresPermission(anyOf={android.Manifest.permission.ACCESS_COARSE_LOCATION, android.Manifest.permission.ACCESS_FINE_LOCATION}) public void requestLocationUpdates(@Nullable android.location.LocationRequest, @NonNull java.util.concurrent.Executor, @NonNull android.location.LocationListener); Loading @@ -4184,7 +4184,7 @@ package android.location { method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void setExtraLocationControllerPackageEnabled(boolean); method @RequiresPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS) public void setLocationEnabledForUser(boolean, @NonNull android.os.UserHandle); method @Deprecated @RequiresPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS) public boolean setProviderEnabledForUser(@NonNull String, boolean, @NonNull android.os.UserHandle); method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public boolean unregisterGnssBatchedLocationCallback(@NonNull android.location.BatchedLocationCallback); method @Deprecated @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public boolean unregisterGnssBatchedLocationCallback(@NonNull android.location.BatchedLocationCallback); } public final class LocationRequest implements android.os.Parcelable { Loading Loading @@ -4231,6 +4231,10 @@ package android.location { method @NonNull @RequiresPermission(android.Manifest.permission.UPDATE_DEVICE_STATS) public android.location.LocationRequest.Builder setWorkSource(@Nullable android.os.WorkSource); } public final class LocationResult implements android.os.Parcelable { method @NonNull public static android.location.LocationResult wrap(@NonNull android.location.Location); } } package android.media { Loading
core/api/current.txt +22 −2 Original line number Diff line number Diff line Loading @@ -23950,7 +23950,7 @@ package android.location { method public float getBearingAccuracyDegrees(); method public long getElapsedRealtimeNanos(); method public double getElapsedRealtimeUncertaintyNanos(); method public android.os.Bundle getExtras(); method @Deprecated public android.os.Bundle getExtras(); method public double getLatitude(); method public double getLongitude(); method public String getProvider(); Loading Loading @@ -23979,7 +23979,7 @@ package android.location { method public void setBearingAccuracyDegrees(float); method public void setElapsedRealtimeNanos(long); method public void setElapsedRealtimeUncertaintyNanos(double); method public void setExtras(android.os.Bundle); method @Deprecated public void setExtras(android.os.Bundle); method public void setLatitude(double); method public void setLongitude(double); method public void setProvider(String); Loading @@ -23995,7 +23995,9 @@ package android.location { } public interface LocationListener { method public default void onFlushComplete(int); method public void onLocationChanged(@NonNull android.location.Location); method public default void onLocationChanged(@NonNull android.location.LocationResult); method public default void onProviderDisabled(@NonNull String); method public default void onProviderEnabled(@NonNull String); method @Deprecated public default void onStatusChanged(String, int, android.os.Bundle); Loading Loading @@ -24043,6 +24045,8 @@ package android.location { method public void removeTestProvider(@NonNull String); method @RequiresPermission(anyOf={"android.permission.ACCESS_COARSE_LOCATION", "android.permission.ACCESS_FINE_LOCATION"}, apis="..22") public void removeUpdates(@NonNull android.location.LocationListener); method public void removeUpdates(@NonNull android.app.PendingIntent); method public void requestFlush(@NonNull String, @NonNull android.location.LocationListener, int); method public void requestFlush(@NonNull String, @NonNull android.app.PendingIntent, int); method @RequiresPermission(anyOf={android.Manifest.permission.ACCESS_COARSE_LOCATION, android.Manifest.permission.ACCESS_FINE_LOCATION}) public void requestLocationUpdates(@NonNull String, long, float, @NonNull android.location.LocationListener); method @RequiresPermission(anyOf={android.Manifest.permission.ACCESS_COARSE_LOCATION, android.Manifest.permission.ACCESS_FINE_LOCATION}) public void requestLocationUpdates(@NonNull String, long, float, @NonNull android.location.LocationListener, @Nullable android.os.Looper); method @RequiresPermission(anyOf={android.Manifest.permission.ACCESS_COARSE_LOCATION, android.Manifest.permission.ACCESS_FINE_LOCATION}) public void requestLocationUpdates(@NonNull String, long, float, @NonNull java.util.concurrent.Executor, @NonNull android.location.LocationListener); Loading @@ -24068,7 +24072,9 @@ package android.location { field public static final String EXTRA_PROVIDER_ENABLED = "android.location.extra.PROVIDER_ENABLED"; field public static final String EXTRA_PROVIDER_NAME = "android.location.extra.PROVIDER_NAME"; field public static final String GPS_PROVIDER = "gps"; field public static final String KEY_FLUSH_COMPLETE = "flushComplete"; field public static final String KEY_LOCATION_CHANGED = "location"; field public static final String KEY_LOCATION_RESULT = "locationResult"; field public static final String KEY_PROVIDER_ENABLED = "providerEnabled"; field public static final String KEY_PROXIMITY_ENTERING = "entering"; field @Deprecated public static final String KEY_STATUS_CHANGED = "status"; Loading Loading @@ -24099,6 +24105,7 @@ package android.location { method public int describeContents(); method @IntRange(from=1) public long getDurationMillis(); method @IntRange(from=0) public long getIntervalMillis(); method @IntRange(from=0) public long getMaxUpdateDelayMillis(); method @IntRange(from=1, to=java.lang.Integer.MAX_VALUE) public int getMaxUpdates(); method @FloatRange(from=0, to=java.lang.Float.MAX_VALUE) public float getMinUpdateDistanceMeters(); method @IntRange(from=0) public long getMinUpdateIntervalMillis(); Loading @@ -24118,12 +24125,25 @@ package android.location { method @NonNull public android.location.LocationRequest.Builder clearMinUpdateIntervalMillis(); method @NonNull public android.location.LocationRequest.Builder setDurationMillis(@IntRange(from=1) long); method @NonNull public android.location.LocationRequest.Builder setIntervalMillis(@IntRange(from=0) long); method @NonNull public android.location.LocationRequest.Builder setMaxUpdateDelayMillis(@IntRange(from=0) long); method @NonNull public android.location.LocationRequest.Builder setMaxUpdates(@IntRange(from=1, to=java.lang.Integer.MAX_VALUE) int); method @NonNull public android.location.LocationRequest.Builder setMinUpdateDistanceMeters(@FloatRange(from=0, to=java.lang.Float.MAX_VALUE) float); method @NonNull public android.location.LocationRequest.Builder setMinUpdateIntervalMillis(@IntRange(from=0) long); method @NonNull public android.location.LocationRequest.Builder setQuality(int); } public final class LocationResult implements android.os.Parcelable { method @NonNull public java.util.List<android.location.Location> asList(); method @NonNull public static android.location.LocationResult create(@NonNull android.location.Location); method @NonNull public static android.location.LocationResult create(@NonNull java.util.List<android.location.Location>); method public int describeContents(); method @NonNull public android.location.Location get(@IntRange(from=0) int); method @NonNull public android.location.Location getLastLocation(); method @IntRange(from=1) public int size(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator<android.location.LocationResult> CREATOR; } public interface OnNmeaMessageListener { method public void onNmeaMessage(String, long); }
core/api/system-current.txt +8 −4 Original line number Diff line number Diff line Loading @@ -4105,17 +4105,17 @@ package android.location { } public class LocationManager { method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void flushGnssBatch(); method @Deprecated @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void flushGnssBatch(); method @Deprecated @RequiresPermission(anyOf={android.Manifest.permission.ACCESS_COARSE_LOCATION, android.Manifest.permission.ACCESS_FINE_LOCATION}) public void getCurrentLocation(@NonNull android.location.LocationRequest, @Nullable android.os.CancellationSignal, @NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer<android.location.Location>); method @Nullable public String getExtraLocationControllerPackage(); method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public int getGnssBatchSize(); method @Deprecated public int getGnssBatchSize(); method @RequiresPermission(android.Manifest.permission.ACCESS_FINE_LOCATION) public void injectGnssMeasurementCorrections(@NonNull android.location.GnssMeasurementCorrections); method public boolean isExtraLocationControllerPackageEnabled(); method public boolean isLocationEnabledForUser(@NonNull android.os.UserHandle); method public boolean isProviderEnabledForUser(@NonNull String, @NonNull android.os.UserHandle); method @Deprecated @RequiresPermission(android.Manifest.permission.READ_DEVICE_CONFIG) public boolean isProviderPackage(@NonNull String); method @RequiresPermission(android.Manifest.permission.READ_DEVICE_CONFIG) public boolean isProviderPackage(@Nullable String, @NonNull String); method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public boolean registerGnssBatchedLocationCallback(long, boolean, @NonNull android.location.BatchedLocationCallback, @Nullable android.os.Handler); method @Deprecated @RequiresPermission(allOf={android.Manifest.permission.LOCATION_HARDWARE, android.Manifest.permission.UPDATE_APP_OPS_STATS}) public boolean registerGnssBatchedLocationCallback(long, boolean, @NonNull android.location.BatchedLocationCallback, @Nullable android.os.Handler); method @RequiresPermission(allOf={android.Manifest.permission.ACCESS_FINE_LOCATION, android.Manifest.permission.LOCATION_HARDWARE}) public boolean registerGnssMeasurementsCallback(@NonNull android.location.GnssRequest, @NonNull java.util.concurrent.Executor, @NonNull android.location.GnssMeasurementsEvent.Callback); method @Deprecated @RequiresPermission(anyOf={android.Manifest.permission.ACCESS_COARSE_LOCATION, android.Manifest.permission.ACCESS_FINE_LOCATION}) public void requestLocationUpdates(@Nullable android.location.LocationRequest, @NonNull android.location.LocationListener, @Nullable android.os.Looper); method @Deprecated @RequiresPermission(anyOf={android.Manifest.permission.ACCESS_COARSE_LOCATION, android.Manifest.permission.ACCESS_FINE_LOCATION}) public void requestLocationUpdates(@Nullable android.location.LocationRequest, @NonNull java.util.concurrent.Executor, @NonNull android.location.LocationListener); Loading @@ -4124,7 +4124,7 @@ package android.location { method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void setExtraLocationControllerPackageEnabled(boolean); method @RequiresPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS) public void setLocationEnabledForUser(boolean, @NonNull android.os.UserHandle); method @Deprecated @RequiresPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS) public boolean setProviderEnabledForUser(@NonNull String, boolean, @NonNull android.os.UserHandle); method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public boolean unregisterGnssBatchedLocationCallback(@NonNull android.location.BatchedLocationCallback); method @Deprecated @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public boolean unregisterGnssBatchedLocationCallback(@NonNull android.location.BatchedLocationCallback); } public final class LocationRequest implements android.os.Parcelable { Loading Loading @@ -4171,6 +4171,10 @@ package android.location { method @NonNull @RequiresPermission(android.Manifest.permission.UPDATE_DEVICE_STATS) public android.location.LocationRequest.Builder setWorkSource(@Nullable android.os.WorkSource); } public final class LocationResult implements android.os.Parcelable { method @NonNull public static android.location.LocationResult wrap(@NonNull android.location.Location); } } package android.media { Loading
location/java/android/location/ILocationListener.aidl +3 −2 Original line number Diff line number Diff line Loading @@ -16,7 +16,7 @@ package android.location; import android.location.Location; import android.location.LocationResult; import android.os.IRemoteCallback; /** Loading @@ -24,6 +24,7 @@ import android.os.IRemoteCallback; */ oneway interface ILocationListener { void onLocationChanged(in Location location, in @nullable IRemoteCallback onCompleteCallback); void onLocationChanged(in LocationResult locationResult, in @nullable IRemoteCallback onCompleteCallback); void onProviderEnabledChanged(String provider, boolean enabled); void onFlushComplete(int requestCode); }