xref: /aosp_15_r20/frameworks/base/location/lib/api/current.txt (revision d57664e9bc4670b3ecf6748a746a57c557b6bc9e)
1*d57664e9SAndroid Build Coastguard Worker// Signature format: 2.0
2*d57664e9SAndroid Build Coastguard Workerpackage com.android.location.provider {
3*d57664e9SAndroid Build Coastguard Worker
4*d57664e9SAndroid Build Coastguard Worker  @Deprecated public abstract class FusedProvider {
5*d57664e9SAndroid Build Coastguard Worker    ctor @Deprecated public FusedProvider();
6*d57664e9SAndroid Build Coastguard Worker    method @Deprecated public android.os.IBinder getBinder();
7*d57664e9SAndroid Build Coastguard Worker  }
8*d57664e9SAndroid Build Coastguard Worker
9*d57664e9SAndroid Build Coastguard Worker  @Deprecated public abstract class LocationProviderBase {
10*d57664e9SAndroid Build Coastguard Worker    ctor @Deprecated public LocationProviderBase(String, com.android.location.provider.ProviderPropertiesUnbundled);
11*d57664e9SAndroid Build Coastguard Worker    ctor @Deprecated @RequiresApi(android.os.Build.VERSION_CODES.R) public LocationProviderBase(android.content.Context, String, com.android.location.provider.ProviderPropertiesUnbundled);
12*d57664e9SAndroid Build Coastguard Worker    method @Deprecated public android.os.IBinder getBinder();
13*d57664e9SAndroid Build Coastguard Worker    method @Deprecated @RequiresApi(android.os.Build.VERSION_CODES.R) public boolean isAllowed();
14*d57664e9SAndroid Build Coastguard Worker    method @Deprecated @RequiresApi(android.os.Build.VERSION_CODES.Q) public boolean isEnabled();
15*d57664e9SAndroid Build Coastguard Worker    method @Deprecated protected void onDisable();
16*d57664e9SAndroid Build Coastguard Worker    method @Deprecated protected void onDump(java.io.FileDescriptor, java.io.PrintWriter, String[]);
17*d57664e9SAndroid Build Coastguard Worker    method @Deprecated protected void onEnable();
18*d57664e9SAndroid Build Coastguard Worker    method @Deprecated protected void onFlush(com.android.location.provider.LocationProviderBase.OnFlushCompleteCallback);
19*d57664e9SAndroid Build Coastguard Worker    method @Deprecated protected int onGetStatus(android.os.Bundle);
20*d57664e9SAndroid Build Coastguard Worker    method @Deprecated protected long onGetStatusUpdateTime();
21*d57664e9SAndroid Build Coastguard Worker    method @Deprecated protected void onInit();
22*d57664e9SAndroid Build Coastguard Worker    method @Deprecated protected boolean onSendExtraCommand(@Nullable String, @Nullable android.os.Bundle);
23*d57664e9SAndroid Build Coastguard Worker    method @Deprecated protected abstract void onSetRequest(com.android.location.provider.ProviderRequestUnbundled, android.os.WorkSource);
24*d57664e9SAndroid Build Coastguard Worker    method @Deprecated public void reportLocation(@NonNull android.location.Location);
25*d57664e9SAndroid Build Coastguard Worker    method @Deprecated public void reportLocations(@NonNull java.util.List<android.location.Location>);
26*d57664e9SAndroid Build Coastguard Worker    method @Deprecated @RequiresApi(android.os.Build.VERSION_CODES.Q) public void setAdditionalProviderPackages(java.util.List<java.lang.String>);
27*d57664e9SAndroid Build Coastguard Worker    method @Deprecated @RequiresApi(android.os.Build.VERSION_CODES.R) public void setAllowed(boolean);
28*d57664e9SAndroid Build Coastguard Worker    method @Deprecated @RequiresApi(android.os.Build.VERSION_CODES.Q) public void setEnabled(boolean);
29*d57664e9SAndroid Build Coastguard Worker    method @Deprecated @RequiresApi(android.os.Build.VERSION_CODES.Q) public void setProperties(com.android.location.provider.ProviderPropertiesUnbundled);
30*d57664e9SAndroid Build Coastguard Worker    field @Deprecated public static final String EXTRA_NO_GPS_LOCATION = "noGPSLocation";
31*d57664e9SAndroid Build Coastguard Worker    field @Deprecated public static final String FUSED_PROVIDER = "fused";
32*d57664e9SAndroid Build Coastguard Worker  }
33*d57664e9SAndroid Build Coastguard Worker
34*d57664e9SAndroid Build Coastguard Worker  @Deprecated protected static interface LocationProviderBase.OnFlushCompleteCallback {
35*d57664e9SAndroid Build Coastguard Worker    method @Deprecated public void onFlushComplete();
36*d57664e9SAndroid Build Coastguard Worker  }
37*d57664e9SAndroid Build Coastguard Worker
38*d57664e9SAndroid Build Coastguard Worker  @Deprecated public final class LocationRequestUnbundled {
39*d57664e9SAndroid Build Coastguard Worker    method @Deprecated public long getFastestInterval();
40*d57664e9SAndroid Build Coastguard Worker    method @Deprecated public long getInterval();
41*d57664e9SAndroid Build Coastguard Worker    method @Deprecated @android.location.LocationRequest.Quality public int getQuality();
42*d57664e9SAndroid Build Coastguard Worker    method @Deprecated public float getSmallestDisplacement();
43*d57664e9SAndroid Build Coastguard Worker    method @Deprecated public boolean isLocationSettingsIgnored();
44*d57664e9SAndroid Build Coastguard Worker    field @Deprecated public static final int ACCURACY_BLOCK = 102; // 0x66
45*d57664e9SAndroid Build Coastguard Worker    field @Deprecated public static final int ACCURACY_CITY = 104; // 0x68
46*d57664e9SAndroid Build Coastguard Worker    field @Deprecated public static final int ACCURACY_FINE = 100; // 0x64
47*d57664e9SAndroid Build Coastguard Worker    field @Deprecated public static final int POWER_HIGH = 203; // 0xcb
48*d57664e9SAndroid Build Coastguard Worker    field @Deprecated public static final int POWER_LOW = 201; // 0xc9
49*d57664e9SAndroid Build Coastguard Worker    field @Deprecated public static final int POWER_NONE = 200; // 0xc8
50*d57664e9SAndroid Build Coastguard Worker  }
51*d57664e9SAndroid Build Coastguard Worker
52*d57664e9SAndroid Build Coastguard Worker  public final class ProviderPropertiesUnbundled {
53*d57664e9SAndroid Build Coastguard Worker    method @NonNull public static com.android.location.provider.ProviderPropertiesUnbundled create(boolean, boolean, boolean, boolean, boolean, boolean, boolean, int, int);
54*d57664e9SAndroid Build Coastguard Worker  }
55*d57664e9SAndroid Build Coastguard Worker
56*d57664e9SAndroid Build Coastguard Worker  public final class ProviderRequestUnbundled {
57*d57664e9SAndroid Build Coastguard Worker    method public long getInterval();
58*d57664e9SAndroid Build Coastguard Worker    method @Deprecated @NonNull public java.util.List<com.android.location.provider.LocationRequestUnbundled> getLocationRequests();
59*d57664e9SAndroid Build Coastguard Worker    method @RequiresApi(android.os.Build.VERSION_CODES.S) public long getMaxUpdateDelayMillis();
60*d57664e9SAndroid Build Coastguard Worker    method @android.location.LocationRequest.Quality @RequiresApi(android.os.Build.VERSION_CODES.S) public int getQuality();
61*d57664e9SAndroid Build Coastguard Worker    method public boolean getReportLocation();
62*d57664e9SAndroid Build Coastguard Worker    method @NonNull @RequiresApi(android.os.Build.VERSION_CODES.S) public android.os.WorkSource getWorkSource();
63*d57664e9SAndroid Build Coastguard Worker    method @RequiresApi(android.os.Build.VERSION_CODES.Q) public boolean isLocationSettingsIgnored();
64*d57664e9SAndroid Build Coastguard Worker    method @RequiresApi(android.os.Build.VERSION_CODES.S) public boolean isLowPower();
65*d57664e9SAndroid Build Coastguard Worker    field public static final long INTERVAL_DISABLED = 9223372036854775807L; // 0x7fffffffffffffffL
66*d57664e9SAndroid Build Coastguard Worker  }
67*d57664e9SAndroid Build Coastguard Worker
68*d57664e9SAndroid Build Coastguard Worker}
69*d57664e9SAndroid Build Coastguard Worker
70