Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame] | 1 | // Signature format: 2.0 |
Sundong Ahn | 50cd1a9 | 2018-05-21 17:39:23 +0900 | [diff] [blame] | 2 | package com.android.location.provider { |
| 3 | |
Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame] | 4 | @Deprecated public abstract class FusedProvider { |
| 5 | ctor @Deprecated public FusedProvider(); |
| 6 | method @Deprecated public android.os.IBinder getBinder(); |
Sundong Ahn | 50cd1a9 | 2018-05-21 17:39:23 +0900 | [diff] [blame] | 7 | } |
| 8 | |
| 9 | public abstract class LocationProviderBase { |
Soonil Nagarkar | 470c8f6a | 2020-03-04 12:18:57 -0800 | [diff] [blame] | 10 | 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 Ahn | 50cd1a9 | 2018-05-21 17:39:23 +0900 | [diff] [blame] | 12 | method public android.os.IBinder getBinder(); |
Soonil Nagarkar | 980ce6a | 2020-01-23 18:06:31 -0800 | [diff] [blame] | 13 | 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 Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame] | 15 | method @Deprecated protected void onDisable(); |
Soonil Nagarkar | 91f0d2d | 2019-02-22 11:55:36 -0800 | [diff] [blame] | 16 | method @Deprecated protected void onDump(java.io.FileDescriptor, java.io.PrintWriter, String[]); |
Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame] | 17 | method @Deprecated protected void onEnable(); |
| 18 | method @Deprecated protected int onGetStatus(android.os.Bundle); |
| 19 | method @Deprecated protected long onGetStatusUpdateTime(); |
Soonil Nagarkar | 1575a04 | 2018-10-24 17:54:54 -0700 | [diff] [blame] | 20 | method protected void onInit(); |
Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame] | 21 | method protected boolean onSendExtraCommand(@Nullable String, @Nullable android.os.Bundle); |
Soonil Nagarkar | 1575a04 | 2018-10-24 17:54:54 -0700 | [diff] [blame] | 22 | method protected abstract void onSetRequest(com.android.location.provider.ProviderRequestUnbundled, android.os.WorkSource); |
| 23 | method public void reportLocation(android.location.Location); |
Soonil Nagarkar | 470c8f6a | 2020-03-04 12:18:57 -0800 | [diff] [blame] | 24 | method @Deprecated @RequiresApi(android.os.Build.VERSION_CODES.Q) public void setAdditionalProviderPackages(java.util.List<java.lang.String>); |
Soonil Nagarkar | 980ce6a | 2020-01-23 18:06:31 -0800 | [diff] [blame] | 25 | 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 Nagarkar | 44efeae | 2019-04-15 13:22:52 -0700 | [diff] [blame] | 27 | method @RequiresApi(android.os.Build.VERSION_CODES.Q) public void setProperties(com.android.location.provider.ProviderPropertiesUnbundled); |
Soonil Nagarkar | 470c8f6a | 2020-03-04 12:18:57 -0800 | [diff] [blame] | 28 | field @Deprecated public static final String EXTRA_NO_GPS_LOCATION = "noGPSLocation"; |
Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame] | 29 | field public static final String FUSED_PROVIDER = "fused"; |
Sundong Ahn | 50cd1a9 | 2018-05-21 17:39:23 +0900 | [diff] [blame] | 30 | } |
| 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 Nagarkar | 509580f | 2019-02-06 15:57:26 -0800 | [diff] [blame] | 37 | method public boolean isLocationSettingsIgnored(); |
Sundong Ahn | 50cd1a9 | 2018-05-21 17:39:23 +0900 | [diff] [blame] | 38 | 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 Ahn | 50cd1a9 | 2018-05-21 17:39:23 +0900 | [diff] [blame] | 51 | method public long getInterval(); |
| 52 | method public java.util.List<com.android.location.provider.LocationRequestUnbundled> getLocationRequests(); |
| 53 | method public boolean getReportLocation(); |
Soonil Nagarkar | 44efeae | 2019-04-15 13:22:52 -0700 | [diff] [blame] | 54 | method @RequiresApi(android.os.Build.VERSION_CODES.Q) public boolean isLocationSettingsIgnored(); |
Sundong Ahn | 50cd1a9 | 2018-05-21 17:39:23 +0900 | [diff] [blame] | 55 | } |
| 56 | |
| 57 | } |
| 58 | |