Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 725a2ea2 authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Clean up "Deprecated at Birth" APIs.

When APIs are refactored mid-release, they can often be left marked
as @Deprecated with the intention of eventually removing them before
the SDK is finalized.

Well, the time has come to finalize the SDK, so let's clean them up.

Bug: 189325658
Test: manual
Change-Id: I48e3e1c1306fbaf071e4acfd9e8107e6ad564ffe
parent 4b097031
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -4930,10 +4930,6 @@ package android.location {
    field @Deprecated public static final String EXTRA_NO_GPS_LOCATION = "noGPSLocation";
  }
  public final class LocationDeviceConfig {
    field public static final String IGNORE_SETTINGS_ALLOWLIST = "ignore_settings_allowlist";
  }
  public class LocationManager {
    method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void addProviderRequestChangedListener(@NonNull java.util.concurrent.Executor, @NonNull android.location.provider.ProviderRequest.ChangedListener);
    method @Deprecated @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void flushGnssBatch();
@@ -4946,7 +4942,6 @@ package android.location {
    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 @Deprecated @RequiresPermission(android.Manifest.permission.READ_DEVICE_CONFIG) public boolean isProviderPackage(@Nullable String, @NonNull String);
    method @RequiresPermission(android.Manifest.permission.READ_DEVICE_CONFIG) public boolean isProviderPackage(@Nullable String, @NonNull String, @Nullable String);
    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 @Deprecated @RequiresPermission(android.Manifest.permission.ACCESS_FINE_LOCATION) public boolean registerGnssMeasurementsCallback(@NonNull android.location.GnssRequest, @NonNull java.util.concurrent.Executor, @NonNull android.location.GnssMeasurementsEvent.Callback);
+1 −0
Original line number Diff line number Diff line
@@ -135,6 +135,7 @@ package android.location {
  public class LocationManager {
    method @Deprecated public boolean addGpsMeasurementListener(android.location.GpsMeasurementsEvent.Listener);
    method @Deprecated public boolean addGpsNavigationMessageListener(android.location.GpsNavigationMessageEvent.Listener);
    method @Deprecated @RequiresPermission(android.Manifest.permission.READ_DEVICE_CONFIG) public boolean isProviderPackage(@Nullable String, @NonNull String);
    method @Deprecated public void removeGpsMeasurementListener(android.location.GpsMeasurementsEvent.Listener);
    method @Deprecated public void removeGpsNavigationMessageListener(android.location.GpsNavigationMessageEvent.Listener);
    method @Deprecated @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void setLocationControllerExtraPackage(String);
+0 −4
Original line number Diff line number Diff line
@@ -1360,10 +1360,6 @@ package android.location {
    method public void setType(int);
  }

  public final class LocationDeviceConfig {
    field public static final String IGNORE_SETTINGS_ALLOWLIST = "ignore_settings_allowlist";
  }

  public class LocationManager {
    method @NonNull public String[] getBackgroundThrottlingWhitelist();
    method @NonNull public android.os.PackageTagsList getIgnoreSettingsAllowlist();
+0 −5
Original line number Diff line number Diff line
@@ -16,16 +16,11 @@

package android.location;

import android.annotation.SystemApi;
import android.annotation.TestApi;

/**
 * DeviceConfig keys within the location namespace.
 *
 * @hide
 */
@SystemApi
@TestApi
public final class LocationDeviceConfig {

    /**
+1 −0
Original line number Diff line number Diff line
@@ -1823,6 +1823,7 @@ public class LocationManager {
     * @deprecated Use {@link #isProviderPackage(String, String, String)} instead.
     *
     * @hide
     * @removed
     */
    @Deprecated
    @SystemApi