blob: 4d0acea15263e5a19b420e7d3fde8618b72d5209 [file] [log] [blame]
Tor Norbye68ea0c32018-12-26 19:55:07 -08001// Signature format: 2.0
Sundong Ahn50cd1a92018-05-21 17:39:23 +09002package com.android.location.provider {
3
Tor Norbye68ea0c32018-12-26 19:55:07 -08004 @Deprecated public abstract class FusedProvider {
5 ctor @Deprecated public FusedProvider();
6 method @Deprecated public android.os.IBinder getBinder();
Sundong Ahn50cd1a92018-05-21 17:39:23 +09007 }
8
9 public abstract class LocationProviderBase {
Soonil Nagarkar470c8f6a2020-03-04 12:18:57 -080010 ctor @Deprecated public LocationProviderBase(String, com.android.location.provider.ProviderPropertiesUnbundled);
11 ctor @RequiresApi(android.os.Build.VERSION_CODES.R) public LocationProviderBase(android.content.Context, String, com.android.location.provider.ProviderPropertiesUnbundled);
Sundong Ahn50cd1a92018-05-21 17:39:23 +090012 method public android.os.IBinder getBinder();
Soonil Nagarkar980ce6a2020-01-23 18:06:31 -080013 method @RequiresApi(android.os.Build.VERSION_CODES.R) public boolean isAllowed();
14 method @Deprecated @RequiresApi(android.os.Build.VERSION_CODES.Q) public boolean isEnabled();
Tor Norbye68ea0c32018-12-26 19:55:07 -080015 method @Deprecated protected void onDisable();
Soonil Nagarkar91f0d2d2019-02-22 11:55:36 -080016 method @Deprecated protected void onDump(java.io.FileDescriptor, java.io.PrintWriter, String[]);
Tor Norbye68ea0c32018-12-26 19:55:07 -080017 method @Deprecated protected void onEnable();
18 method @Deprecated protected int onGetStatus(android.os.Bundle);
19 method @Deprecated protected long onGetStatusUpdateTime();
Soonil Nagarkar1575a042018-10-24 17:54:54 -070020 method protected void onInit();
Tor Norbye68ea0c32018-12-26 19:55:07 -080021 method protected boolean onSendExtraCommand(@Nullable String, @Nullable android.os.Bundle);
Soonil Nagarkar1575a042018-10-24 17:54:54 -070022 method protected abstract void onSetRequest(com.android.location.provider.ProviderRequestUnbundled, android.os.WorkSource);
23 method public void reportLocation(android.location.Location);
Soonil Nagarkar470c8f6a2020-03-04 12:18:57 -080024 method @Deprecated @RequiresApi(android.os.Build.VERSION_CODES.Q) public void setAdditionalProviderPackages(java.util.List<java.lang.String>);
Soonil Nagarkar980ce6a2020-01-23 18:06:31 -080025 method @RequiresApi(android.os.Build.VERSION_CODES.R) public void setAllowed(boolean);
26 method @Deprecated @RequiresApi(android.os.Build.VERSION_CODES.Q) public void setEnabled(boolean);
Soonil Nagarkar44efeae2019-04-15 13:22:52 -070027 method @RequiresApi(android.os.Build.VERSION_CODES.Q) public void setProperties(com.android.location.provider.ProviderPropertiesUnbundled);
Soonil Nagarkar470c8f6a2020-03-04 12:18:57 -080028 field @Deprecated public static final String EXTRA_NO_GPS_LOCATION = "noGPSLocation";
Tor Norbye68ea0c32018-12-26 19:55:07 -080029 field public static final String FUSED_PROVIDER = "fused";
Sundong Ahn50cd1a92018-05-21 17:39:23 +090030 }
31
32 public final class LocationRequestUnbundled {
33 method public long getFastestInterval();
34 method public long getInterval();
35 method public int getQuality();
36 method public float getSmallestDisplacement();
Soonil Nagarkar509580f2019-02-06 15:57:26 -080037 method public boolean isLocationSettingsIgnored();
Sundong Ahn50cd1a92018-05-21 17:39:23 +090038 field public static final int ACCURACY_BLOCK = 102; // 0x66
39 field public static final int ACCURACY_CITY = 104; // 0x68
40 field public static final int ACCURACY_FINE = 100; // 0x64
41 field public static final int POWER_HIGH = 203; // 0xcb
42 field public static final int POWER_LOW = 201; // 0xc9
43 field public static final int POWER_NONE = 200; // 0xc8
44 }
45
46 public final class ProviderPropertiesUnbundled {
47 method public static com.android.location.provider.ProviderPropertiesUnbundled create(boolean, boolean, boolean, boolean, boolean, boolean, boolean, int, int);
48 }
49
50 public final class ProviderRequestUnbundled {
Sundong Ahn50cd1a92018-05-21 17:39:23 +090051 method public long getInterval();
52 method public java.util.List<com.android.location.provider.LocationRequestUnbundled> getLocationRequests();
53 method public boolean getReportLocation();
Soonil Nagarkar44efeae2019-04-15 13:22:52 -070054 method @RequiresApi(android.os.Build.VERSION_CODES.Q) public boolean isLocationSettingsIgnored();
Sundong Ahn50cd1a92018-05-21 17:39:23 +090055 }
56
57}
58