blob: d1b39b350d73ca23b85dada48e0a13c1aef312ed [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 {
Tor Norbye68ea0c32018-12-26 19:55:07 -080010 ctor public LocationProviderBase(String, com.android.location.provider.ProviderPropertiesUnbundled);
Sundong Ahn50cd1a92018-05-21 17:39:23 +090011 method public android.os.IBinder getBinder();
Soonil Nagarkar1575a042018-10-24 17:54:54 -070012 method public boolean isEnabled();
Tor Norbye68ea0c32018-12-26 19:55:07 -080013 method @Deprecated protected void onDisable();
Soonil Nagarkar91f0d2d2019-02-22 11:55:36 -080014 method @Deprecated protected void onDump(java.io.FileDescriptor, java.io.PrintWriter, String[]);
Tor Norbye68ea0c32018-12-26 19:55:07 -080015 method @Deprecated protected void onEnable();
16 method @Deprecated protected int onGetStatus(android.os.Bundle);
17 method @Deprecated protected long onGetStatusUpdateTime();
Soonil Nagarkar1575a042018-10-24 17:54:54 -070018 method protected void onInit();
Tor Norbye68ea0c32018-12-26 19:55:07 -080019 method protected boolean onSendExtraCommand(@Nullable String, @Nullable android.os.Bundle);
Soonil Nagarkar1575a042018-10-24 17:54:54 -070020 method protected abstract void onSetRequest(com.android.location.provider.ProviderRequestUnbundled, android.os.WorkSource);
21 method public void reportLocation(android.location.Location);
Soonil Nagarkar0d77ea62019-01-31 14:36:56 -080022 method public void setAdditionalProviderPackages(java.util.List<java.lang.String>);
Soonil Nagarkar1575a042018-10-24 17:54:54 -070023 method public void setEnabled(boolean);
24 method public void setProperties(com.android.location.provider.ProviderPropertiesUnbundled);
Tor Norbye68ea0c32018-12-26 19:55:07 -080025 field public static final String EXTRA_NO_GPS_LOCATION = "noGPSLocation";
26 field public static final String FUSED_PROVIDER = "fused";
Sundong Ahn50cd1a92018-05-21 17:39:23 +090027 }
28
29 public final class LocationRequestUnbundled {
30 method public long getFastestInterval();
31 method public long getInterval();
32 method public int getQuality();
33 method public float getSmallestDisplacement();
Soonil Nagarkar509580f2019-02-06 15:57:26 -080034 method public boolean isLocationSettingsIgnored();
Sundong Ahn50cd1a92018-05-21 17:39:23 +090035 field public static final int ACCURACY_BLOCK = 102; // 0x66
36 field public static final int ACCURACY_CITY = 104; // 0x68
37 field public static final int ACCURACY_FINE = 100; // 0x64
38 field public static final int POWER_HIGH = 203; // 0xcb
39 field public static final int POWER_LOW = 201; // 0xc9
40 field public static final int POWER_NONE = 200; // 0xc8
41 }
42
43 public final class ProviderPropertiesUnbundled {
44 method public static com.android.location.provider.ProviderPropertiesUnbundled create(boolean, boolean, boolean, boolean, boolean, boolean, boolean, int, int);
45 }
46
47 public final class ProviderRequestUnbundled {
Sundong Ahn50cd1a92018-05-21 17:39:23 +090048 method public long getInterval();
49 method public java.util.List<com.android.location.provider.LocationRequestUnbundled> getLocationRequests();
50 method public boolean getReportLocation();
Soonil Nagarkar509580f2019-02-06 15:57:26 -080051 method public boolean isLocationSettingsIgnored();
Sundong Ahn50cd1a92018-05-21 17:39:23 +090052 }
53
54}
55