blob: 023bad26e4f5382767ab1ec7f6865863db6e3b10 [file] [log] [blame]
Mark White9ee18662023-08-07 11:18:09 +00001// Signature format: 2.0
Mark White5b3c64d2023-08-17 23:53:46 +00002package android.location {
3
4 public abstract class BatchedLocationCallback {
5 ctor public BatchedLocationCallback();
6 method public void onLocationBatch(java.util.List<android.location.Location>);
7 }
8
Shinru Hanb39d62d2024-12-06 03:43:44 +00009 @FlaggedApi("android.location.flags.gnss_assistance_interface") public final class BeidouAssistance implements android.os.Parcelable {
10 method public int describeContents();
11 method @Nullable public android.location.GnssAlmanac getAlmanac();
12 method @Nullable public android.location.KlobucharIonosphericModel getIonosphericModel();
13 method @Nullable public android.location.LeapSecondsModel getLeapSecondsModel();
14 method @NonNull public java.util.List<android.location.RealTimeIntegrityModel> getRealTimeIntegrityModels();
15 method @NonNull public java.util.List<android.location.GnssAssistance.GnssSatelliteCorrections> getSatelliteCorrections();
16 method @NonNull public java.util.List<android.location.BeidouSatelliteEphemeris> getSatelliteEphemeris();
17 method @NonNull public java.util.List<android.location.TimeModel> getTimeModels();
18 method @Nullable public android.location.UtcModel getUtcModel();
19 method public void writeToParcel(@NonNull android.os.Parcel, int);
20 field @NonNull public static final android.os.Parcelable.Creator<android.location.BeidouAssistance> CREATOR;
21 }
22
23 public static final class BeidouAssistance.Builder {
24 ctor public BeidouAssistance.Builder();
25 method @NonNull public android.location.BeidouAssistance build();
26 method @NonNull public android.location.BeidouAssistance.Builder setAlmanac(@Nullable android.location.GnssAlmanac);
27 method @NonNull public android.location.BeidouAssistance.Builder setIonosphericModel(@Nullable android.location.KlobucharIonosphericModel);
28 method @NonNull public android.location.BeidouAssistance.Builder setLeapSecondsModel(@Nullable android.location.LeapSecondsModel);
29 method @NonNull public android.location.BeidouAssistance.Builder setRealTimeIntegrityModels(@Nullable java.util.List<android.location.RealTimeIntegrityModel>);
30 method @NonNull public android.location.BeidouAssistance.Builder setSatelliteCorrections(@Nullable java.util.List<android.location.GnssAssistance.GnssSatelliteCorrections>);
31 method @NonNull public android.location.BeidouAssistance.Builder setSatelliteEphemeris(@Nullable java.util.List<android.location.BeidouSatelliteEphemeris>);
32 method @NonNull public android.location.BeidouAssistance.Builder setTimeModels(@Nullable java.util.List<android.location.TimeModel>);
33 method @NonNull public android.location.BeidouAssistance.Builder setUtcModel(@Nullable android.location.UtcModel);
34 }
35
36 @FlaggedApi("android.location.flags.gnss_assistance_interface") public final class BeidouSatelliteEphemeris implements android.os.Parcelable {
37 method public int describeContents();
Shinru Hanb39d62d2024-12-06 03:43:44 +000038 method @NonNull public android.location.BeidouSatelliteEphemeris.BeidouSatelliteClockModel getSatelliteClockModel();
39 method @NonNull public android.location.BeidouSatelliteEphemeris.BeidouSatelliteEphemerisTime getSatelliteEphemerisTime();
40 method @NonNull public android.location.BeidouSatelliteEphemeris.BeidouSatelliteHealth getSatelliteHealth();
41 method @NonNull public android.location.KeplerianOrbitModel getSatelliteOrbitModel();
Shinru Han03f52952024-12-16 05:54:11 -080042 method @IntRange(from=1, to=63) public int getSvid();
Shinru Hanb39d62d2024-12-06 03:43:44 +000043 method public void writeToParcel(@NonNull android.os.Parcel, int);
44 field @NonNull public static final android.os.Parcelable.Creator<android.location.BeidouSatelliteEphemeris> CREATOR;
45 }
46
47 public static final class BeidouSatelliteEphemeris.BeidouSatelliteClockModel implements android.os.Parcelable {
48 method public int describeContents();
49 method @FloatRange(from=-0.00977F, to=0.00977f) public double getAf0();
50 method @FloatRange(from=-1.87E-9F, to=1.87E-9f) public double getAf1();
51 method @FloatRange(from=-1.39E-17F, to=1.39E-17f) public double getAf2();
52 method @IntRange(from=0, to=31) public int getAodc();
53 method @FloatRange(from=-5.12E-8F, to=5.12E-8f) public double getTgd1();
54 method @FloatRange(from=-5.12E-8F, to=5.12E-8f) public double getTgd2();
55 method @IntRange(from=0) public long getTimeOfClockSeconds();
56 method public void writeToParcel(@NonNull android.os.Parcel, int);
57 field @NonNull public static final android.os.Parcelable.Creator<android.location.BeidouSatelliteEphemeris.BeidouSatelliteClockModel> CREATOR;
58 }
59
60 public static final class BeidouSatelliteEphemeris.BeidouSatelliteClockModel.Builder {
61 ctor public BeidouSatelliteEphemeris.BeidouSatelliteClockModel.Builder();
62 method @NonNull public android.location.BeidouSatelliteEphemeris.BeidouSatelliteClockModel build();
63 method @NonNull public android.location.BeidouSatelliteEphemeris.BeidouSatelliteClockModel.Builder setAf0(@FloatRange(from=-0.00977F, to=0.00977f) double);
64 method @NonNull public android.location.BeidouSatelliteEphemeris.BeidouSatelliteClockModel.Builder setAf1(@FloatRange(from=-1.87E-9F, to=1.87E-9f) double);
65 method @NonNull public android.location.BeidouSatelliteEphemeris.BeidouSatelliteClockModel.Builder setAf2(@FloatRange(from=-1.39E-17F, to=1.39E-17f) double);
66 method @NonNull public android.location.BeidouSatelliteEphemeris.BeidouSatelliteClockModel.Builder setAodc(@IntRange(from=0, to=31) int);
67 method @NonNull public android.location.BeidouSatelliteEphemeris.BeidouSatelliteClockModel.Builder setTgd1(@FloatRange(from=-5.12E-8F, to=5.12E-8f) double);
68 method @NonNull public android.location.BeidouSatelliteEphemeris.BeidouSatelliteClockModel.Builder setTgd2(@FloatRange(from=-5.12E-8F, to=5.12E-8f) double);
69 method @NonNull public android.location.BeidouSatelliteEphemeris.BeidouSatelliteClockModel.Builder setTimeOfClockSeconds(@IntRange(from=0) long);
70 }
71
72 public static final class BeidouSatelliteEphemeris.BeidouSatelliteEphemerisTime implements android.os.Parcelable {
73 method public int describeContents();
74 method @IntRange(from=0) public int getBeidouWeekNumber();
75 method @IntRange(from=0, to=31) public int getIode();
76 method @IntRange(from=0, to=604792) public int getToeSeconds();
77 method public void writeToParcel(@NonNull android.os.Parcel, int);
78 field @NonNull public static final android.os.Parcelable.Creator<android.location.BeidouSatelliteEphemeris.BeidouSatelliteEphemerisTime> CREATOR;
79 }
80
81 public static final class BeidouSatelliteEphemeris.BeidouSatelliteEphemerisTime.Builder {
82 ctor public BeidouSatelliteEphemeris.BeidouSatelliteEphemerisTime.Builder();
83 method @NonNull public android.location.BeidouSatelliteEphemeris.BeidouSatelliteEphemerisTime build();
84 method @NonNull public android.location.BeidouSatelliteEphemeris.BeidouSatelliteEphemerisTime.Builder setBeidouWeekNumber(@IntRange(from=0) int);
85 method @NonNull public android.location.BeidouSatelliteEphemeris.BeidouSatelliteEphemerisTime.Builder setIode(int);
86 method @NonNull public android.location.BeidouSatelliteEphemeris.BeidouSatelliteEphemerisTime.Builder setToeSeconds(@IntRange(from=0, to=604792) int);
87 }
88
89 public static final class BeidouSatelliteEphemeris.BeidouSatelliteHealth implements android.os.Parcelable {
90 method public int describeContents();
91 method @IntRange(from=0, to=1) public int getSatH1();
92 method @FloatRange(from=0.0f, to=8192.0f) public double getSvAccur();
93 method public void writeToParcel(@NonNull android.os.Parcel, int);
94 field @NonNull public static final android.os.Parcelable.Creator<android.location.BeidouSatelliteEphemeris.BeidouSatelliteHealth> CREATOR;
95 }
96
97 public static final class BeidouSatelliteEphemeris.BeidouSatelliteHealth.Builder {
98 ctor public BeidouSatelliteEphemeris.BeidouSatelliteHealth.Builder();
99 method @NonNull public android.location.BeidouSatelliteEphemeris.BeidouSatelliteHealth build();
100 method @NonNull public android.location.BeidouSatelliteEphemeris.BeidouSatelliteHealth.Builder setSatH1(int);
101 method @NonNull public android.location.BeidouSatelliteEphemeris.BeidouSatelliteHealth.Builder setSvAccur(double);
102 }
103
104 public static final class BeidouSatelliteEphemeris.Builder {
105 ctor public BeidouSatelliteEphemeris.Builder();
106 method @NonNull public android.location.BeidouSatelliteEphemeris build();
Shinru Hanb39d62d2024-12-06 03:43:44 +0000107 method @NonNull public android.location.BeidouSatelliteEphemeris.Builder setSatelliteClockModel(@NonNull android.location.BeidouSatelliteEphemeris.BeidouSatelliteClockModel);
108 method @NonNull public android.location.BeidouSatelliteEphemeris.Builder setSatelliteEphemerisTime(@NonNull android.location.BeidouSatelliteEphemeris.BeidouSatelliteEphemerisTime);
109 method @NonNull public android.location.BeidouSatelliteEphemeris.Builder setSatelliteHealth(@NonNull android.location.BeidouSatelliteEphemeris.BeidouSatelliteHealth);
110 method @NonNull public android.location.BeidouSatelliteEphemeris.Builder setSatelliteOrbitModel(@NonNull android.location.KeplerianOrbitModel);
Shinru Han03f52952024-12-16 05:54:11 -0800111 method @NonNull public android.location.BeidouSatelliteEphemeris.Builder setSvid(int);
Shinru Hanb39d62d2024-12-06 03:43:44 +0000112 }
113
Mark White5b3c64d2023-08-17 23:53:46 +0000114 public final class CorrelationVector implements android.os.Parcelable {
115 method public int describeContents();
116 method @FloatRange(from=0.0f) public double getFrequencyOffsetMetersPerSecond();
117 method @NonNull public int[] getMagnitude();
118 method @FloatRange(from=0.0f) public double getSamplingStartMeters();
119 method @FloatRange(from=0.0f, fromInclusive=false) public double getSamplingWidthMeters();
120 method public void writeToParcel(@NonNull android.os.Parcel, int);
121 field @NonNull public static final android.os.Parcelable.Creator<android.location.CorrelationVector> CREATOR;
122 }
123
124 public static final class CorrelationVector.Builder {
125 ctor public CorrelationVector.Builder();
126 method @NonNull public android.location.CorrelationVector build();
127 method @NonNull public android.location.CorrelationVector.Builder setFrequencyOffsetMetersPerSecond(@FloatRange(from=0.0f) double);
128 method @NonNull public android.location.CorrelationVector.Builder setMagnitude(@NonNull int[]);
129 method @NonNull public android.location.CorrelationVector.Builder setSamplingStartMeters(@FloatRange(from=0.0f) double);
130 method @NonNull public android.location.CorrelationVector.Builder setSamplingWidthMeters(@FloatRange(from=0.0f, fromInclusive=false) double);
131 }
132
133 public final class Country implements android.os.Parcelable {
134 ctor public Country(@NonNull String, int);
135 method public int describeContents();
136 method @NonNull public String getCountryCode();
137 method public int getSource();
138 method public void writeToParcel(@NonNull android.os.Parcel, int);
139 field public static final int COUNTRY_SOURCE_LOCALE = 3; // 0x3
140 field public static final int COUNTRY_SOURCE_LOCATION = 1; // 0x1
141 field public static final int COUNTRY_SOURCE_NETWORK = 0; // 0x0
142 field public static final int COUNTRY_SOURCE_SIM = 2; // 0x2
143 field @NonNull public static final android.os.Parcelable.Creator<android.location.Country> CREATOR;
144 }
145
146 public class CountryDetector {
147 method public void registerCountryDetectorCallback(@NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer<android.location.Country>);
148 method public void unregisterCountryDetectorCallback(@NonNull java.util.function.Consumer<android.location.Country>);
149 }
150
Shinru Hanb39d62d2024-12-06 03:43:44 +0000151 @FlaggedApi("android.location.flags.gnss_assistance_interface") public final class GalileoAssistance implements android.os.Parcelable {
152 method public int describeContents();
153 method @Nullable public android.location.GnssAlmanac getAlmanac();
154 method @Nullable public android.location.KlobucharIonosphericModel getIonosphericModel();
155 method @Nullable public android.location.LeapSecondsModel getLeapSecondsModel();
156 method @NonNull public java.util.List<android.location.RealTimeIntegrityModel> getRealTimeIntegrityModels();
157 method @NonNull public java.util.List<android.location.GnssAssistance.GnssSatelliteCorrections> getSatelliteCorrections();
158 method @NonNull public java.util.List<android.location.GalileoSatelliteEphemeris> getSatelliteEphemeris();
159 method @NonNull public java.util.List<android.location.TimeModel> getTimeModels();
160 method @Nullable public android.location.UtcModel getUtcModel();
161 method public void writeToParcel(@NonNull android.os.Parcel, int);
162 field @NonNull public static final android.os.Parcelable.Creator<android.location.GalileoAssistance> CREATOR;
163 }
164
165 public static final class GalileoAssistance.Builder {
166 ctor public GalileoAssistance.Builder();
167 method @NonNull public android.location.GalileoAssistance build();
168 method @NonNull public android.location.GalileoAssistance.Builder setAlmanac(@Nullable android.location.GnssAlmanac);
169 method @NonNull public android.location.GalileoAssistance.Builder setIonosphericModel(@Nullable android.location.KlobucharIonosphericModel);
170 method @NonNull public android.location.GalileoAssistance.Builder setLeapSecondsModel(@Nullable android.location.LeapSecondsModel);
171 method @NonNull public android.location.GalileoAssistance.Builder setRealTimeIntegrityModels(@Nullable java.util.List<android.location.RealTimeIntegrityModel>);
172 method @NonNull public android.location.GalileoAssistance.Builder setSatelliteCorrections(@Nullable java.util.List<android.location.GnssAssistance.GnssSatelliteCorrections>);
173 method @NonNull public android.location.GalileoAssistance.Builder setSatelliteEphemeris(@Nullable java.util.List<android.location.GalileoSatelliteEphemeris>);
174 method @NonNull public android.location.GalileoAssistance.Builder setTimeModels(@Nullable java.util.List<android.location.TimeModel>);
175 method @NonNull public android.location.GalileoAssistance.Builder setUtcModel(@Nullable android.location.UtcModel);
176 }
177
178 @FlaggedApi("android.location.flags.gnss_assistance_interface") public final class GalileoIonosphericModel implements android.os.Parcelable {
179 method public int describeContents();
180 method @FloatRange(from=0.0f, to=512.0f) public double getAi0();
181 method @FloatRange(from=-4.0F, to=4.0f) public double getAi1();
182 method @FloatRange(from=-0.5F, to=0.5f) public double getAi2();
183 method public void writeToParcel(@NonNull android.os.Parcel, int);
184 field @NonNull public static final android.os.Parcelable.Creator<android.location.GalileoIonosphericModel> CREATOR;
185 }
186
187 public static final class GalileoIonosphericModel.Builder {
188 ctor public GalileoIonosphericModel.Builder();
189 method @NonNull public android.location.GalileoIonosphericModel build();
190 method @NonNull public android.location.GalileoIonosphericModel.Builder setAi0(@FloatRange(from=0.0f, to=512.0f) double);
191 method @NonNull public android.location.GalileoIonosphericModel.Builder setAi1(@FloatRange(from=-4.0F, to=4.0f) double);
192 method @NonNull public android.location.GalileoIonosphericModel.Builder setAi2(@FloatRange(from=-0.5F, to=0.5f) double);
193 }
194
195 @FlaggedApi("android.location.flags.gnss_assistance_interface") public final class GalileoSatelliteEphemeris implements android.os.Parcelable {
196 method public int describeContents();
197 method @NonNull public java.util.List<android.location.GalileoSatelliteEphemeris.GalileoSatelliteClockModel> getSatelliteClockModels();
Shinru Hanb39d62d2024-12-06 03:43:44 +0000198 method @NonNull public android.location.SatelliteEphemerisTime getSatelliteEphemerisTime();
199 method @NonNull public android.location.GalileoSatelliteEphemeris.GalileoSvHealth getSatelliteHealth();
200 method @NonNull public android.location.KeplerianOrbitModel getSatelliteOrbitModel();
Shinru Han03f52952024-12-16 05:54:11 -0800201 method @IntRange(from=1, to=36) public int getSvid();
Shinru Hanb39d62d2024-12-06 03:43:44 +0000202 method public void writeToParcel(@NonNull android.os.Parcel, int);
203 field @NonNull public static final android.os.Parcelable.Creator<android.location.GalileoSatelliteEphemeris> CREATOR;
204 }
205
206 public static final class GalileoSatelliteEphemeris.Builder {
207 ctor public GalileoSatelliteEphemeris.Builder();
208 method @NonNull public android.location.GalileoSatelliteEphemeris build();
209 method @NonNull public android.location.GalileoSatelliteEphemeris.Builder setSatelliteClockModels(@NonNull java.util.List<android.location.GalileoSatelliteEphemeris.GalileoSatelliteClockModel>);
Shinru Hanb39d62d2024-12-06 03:43:44 +0000210 method @NonNull public android.location.GalileoSatelliteEphemeris.Builder setSatelliteEphemerisTime(@NonNull android.location.SatelliteEphemerisTime);
211 method @NonNull public android.location.GalileoSatelliteEphemeris.Builder setSatelliteHealth(@NonNull android.location.GalileoSatelliteEphemeris.GalileoSvHealth);
212 method @NonNull public android.location.GalileoSatelliteEphemeris.Builder setSatelliteOrbitModel(@NonNull android.location.KeplerianOrbitModel);
Shinru Han03f52952024-12-16 05:54:11 -0800213 method @NonNull public android.location.GalileoSatelliteEphemeris.Builder setSvid(@IntRange(from=1, to=36) int);
Shinru Hanb39d62d2024-12-06 03:43:44 +0000214 }
215
216 public static final class GalileoSatelliteEphemeris.GalileoSatelliteClockModel implements android.os.Parcelable {
217 method public int describeContents();
218 method @FloatRange(from=-0.0625F, to=0.0625f) public double getAf0();
219 method @FloatRange(from=-1.5E-8F, to=1.5E-8f) public double getAf1();
220 method @FloatRange(from=-5.56E-17F, to=5.56E-17f) public double getAf2();
221 method @FloatRange(from=-1.2E-7F, to=1.2E-7f) public double getBgdSeconds();
222 method public int getSatelliteClockType();
223 method @FloatRange(from=0.0f) public double getSisaMeters();
224 method @IntRange(from=0) public long getTimeOfClockSeconds();
225 method public void writeToParcel(@NonNull android.os.Parcel, int);
226 field @NonNull public static final android.os.Parcelable.Creator<android.location.GalileoSatelliteEphemeris.GalileoSatelliteClockModel> CREATOR;
227 field public static final int TYPE_FNAV = 1; // 0x1
228 field public static final int TYPE_INAV = 2; // 0x2
229 field public static final int TYPE_UNDEFINED = 0; // 0x0
230 }
231
232 public static final class GalileoSatelliteEphemeris.GalileoSatelliteClockModel.Builder {
233 ctor public GalileoSatelliteEphemeris.GalileoSatelliteClockModel.Builder();
234 method @NonNull public android.location.GalileoSatelliteEphemeris.GalileoSatelliteClockModel build();
235 method @NonNull public android.location.GalileoSatelliteEphemeris.GalileoSatelliteClockModel.Builder setAf0(@FloatRange(from=-0.0625F, to=0.0625f) double);
236 method @NonNull public android.location.GalileoSatelliteEphemeris.GalileoSatelliteClockModel.Builder setAf1(@FloatRange(from=-1.5E-8F, to=1.5E-8f) double);
237 method @NonNull public android.location.GalileoSatelliteEphemeris.GalileoSatelliteClockModel.Builder setAf2(@FloatRange(from=-5.56E-17F, to=5.56E-17f) double);
238 method @NonNull public android.location.GalileoSatelliteEphemeris.GalileoSatelliteClockModel.Builder setBgdSeconds(@FloatRange(from=-1.2E-7F, to=1.2E-7f) double);
239 method @NonNull public android.location.GalileoSatelliteEphemeris.GalileoSatelliteClockModel.Builder setSatelliteClockType(int);
240 method @NonNull public android.location.GalileoSatelliteEphemeris.GalileoSatelliteClockModel.Builder setSisaMeters(@FloatRange(from=0.0f) double);
241 method @NonNull public android.location.GalileoSatelliteEphemeris.GalileoSatelliteClockModel.Builder setTimeOfClockSeconds(@IntRange(from=0) long);
242 }
243
244 public static final class GalileoSatelliteEphemeris.GalileoSvHealth implements android.os.Parcelable {
245 method public int describeContents();
Shinru Han03f52952024-12-16 05:54:11 -0800246 method public int getDataValidityStatusE1b();
247 method public int getDataValidityStatusE5a();
248 method public int getDataValidityStatusE5b();
249 method public int getSignalHealthStatusE1b();
250 method public int getSignalHealthStatusE5a();
251 method public int getSignalHealthStatusE5b();
Shinru Hanb39d62d2024-12-06 03:43:44 +0000252 method public void writeToParcel(@NonNull android.os.Parcel, int);
253 field @NonNull public static final android.os.Parcelable.Creator<android.location.GalileoSatelliteEphemeris.GalileoSvHealth> CREATOR;
Shinru Han03f52952024-12-16 05:54:11 -0800254 field public static final int DATA_STATUS_DATA_VALID = 0; // 0x0
255 field public static final int DATA_STATUS_WORKING_WITHOUT_GUARANTEE = 1; // 0x1
256 field public static final int HEALTH_STATUS_EXTENDED_OPERATION_MODE = 2; // 0x2
257 field public static final int HEALTH_STATUS_IN_TEST = 3; // 0x3
258 field public static final int HEALTH_STATUS_OK = 0; // 0x0
259 field public static final int HEALTH_STATUS_OUT_OF_SERVICE = 1; // 0x1
Shinru Hanb39d62d2024-12-06 03:43:44 +0000260 }
261
262 public static final class GalileoSatelliteEphemeris.GalileoSvHealth.Builder {
263 ctor public GalileoSatelliteEphemeris.GalileoSvHealth.Builder();
264 method @NonNull public android.location.GalileoSatelliteEphemeris.GalileoSvHealth build();
Shinru Han03f52952024-12-16 05:54:11 -0800265 method @NonNull public android.location.GalileoSatelliteEphemeris.GalileoSvHealth.Builder setDataValidityStatusE1b(int);
266 method @NonNull public android.location.GalileoSatelliteEphemeris.GalileoSvHealth.Builder setDataValidityStatusE5a(int);
267 method @NonNull public android.location.GalileoSatelliteEphemeris.GalileoSvHealth.Builder setDataValidityStatusE5b(int);
268 method @NonNull public android.location.GalileoSatelliteEphemeris.GalileoSvHealth.Builder setSignalHealthStatusE1b(int);
269 method @NonNull public android.location.GalileoSatelliteEphemeris.GalileoSvHealth.Builder setSignalHealthStatusE5a(int);
270 method @NonNull public android.location.GalileoSatelliteEphemeris.GalileoSvHealth.Builder setSignalHealthStatusE5b(int);
Shinru Hanb39d62d2024-12-06 03:43:44 +0000271 }
272
273 @FlaggedApi("android.location.flags.gnss_assistance_interface") public final class GlonassAlmanac implements android.os.Parcelable {
274 ctor public GlonassAlmanac(@IntRange(from=0) long, @NonNull java.util.List<android.location.GlonassAlmanac.GlonassSatelliteAlmanac>);
275 method public int describeContents();
276 method @IntRange(from=0) public long getIssueDateMillis();
277 method @NonNull public java.util.List<android.location.GlonassAlmanac.GlonassSatelliteAlmanac> getSatelliteAlmanacs();
278 method public void writeToParcel(@NonNull android.os.Parcel, int);
279 field @NonNull public static final android.os.Parcelable.Creator<android.location.GlonassAlmanac> CREATOR;
280 }
281
282 public static final class GlonassAlmanac.GlonassSatelliteAlmanac implements android.os.Parcelable {
283 method public int describeContents();
Shinru Han03f52952024-12-16 05:54:11 -0800284 method @IntRange(from=1, to=1461) public int getCalendarDayNumber();
Shinru Hanb39d62d2024-12-06 03:43:44 +0000285 method @FloatRange(from=-0.067F, to=0.067f) public double getDeltaI();
286 method @FloatRange(from=-3600.0F, to=3600.0f) public double getDeltaT();
287 method @FloatRange(from=-0.004F, to=0.004f) public double getDeltaTDot();
288 method @FloatRange(from=0.0f, to=0.03f) public double getEccentricity();
Shinru Han03f52952024-12-16 05:54:11 -0800289 method @IntRange(from=0, to=31) public int getFrequencyChannelNumber();
290 method public int getHealthState();
Shinru Hanb39d62d2024-12-06 03:43:44 +0000291 method @FloatRange(from=-1.0F, to=1.0f) public double getLambda();
292 method @FloatRange(from=-1.0F, to=1.0f) public double getOmega();
293 method @IntRange(from=1, to=25) public int getSlotNumber();
Shinru Hanb39d62d2024-12-06 03:43:44 +0000294 method @FloatRange(from=0.0f, to=44100.0f) public double getTLambda();
295 method @FloatRange(from=-0.0019F, to=0.0019f) public double getTau();
Shinru Han03f52952024-12-16 05:54:11 -0800296 method public boolean isGlonassM();
Shinru Hanb39d62d2024-12-06 03:43:44 +0000297 method public void writeToParcel(@NonNull android.os.Parcel, int);
298 field @NonNull public static final android.os.Parcelable.Creator<android.location.GlonassAlmanac.GlonassSatelliteAlmanac> CREATOR;
299 }
300
301 public static final class GlonassAlmanac.GlonassSatelliteAlmanac.Builder {
302 ctor public GlonassAlmanac.GlonassSatelliteAlmanac.Builder();
303 method @NonNull public android.location.GlonassAlmanac.GlonassSatelliteAlmanac build();
Shinru Han03f52952024-12-16 05:54:11 -0800304 method @NonNull public android.location.GlonassAlmanac.GlonassSatelliteAlmanac.Builder setCalendarDayNumber(@IntRange(from=1, to=1461) int);
Shinru Hanb39d62d2024-12-06 03:43:44 +0000305 method @NonNull public android.location.GlonassAlmanac.GlonassSatelliteAlmanac.Builder setDeltaI(@FloatRange(from=-0.067F, to=0.067f) double);
306 method @NonNull public android.location.GlonassAlmanac.GlonassSatelliteAlmanac.Builder setDeltaT(@FloatRange(from=-3600.0F, to=3600.0f) double);
307 method @NonNull public android.location.GlonassAlmanac.GlonassSatelliteAlmanac.Builder setDeltaTDot(@FloatRange(from=-0.004F, to=0.004f) double);
308 method @NonNull public android.location.GlonassAlmanac.GlonassSatelliteAlmanac.Builder setEccentricity(@FloatRange(from=0.0f, to=0.03f) double);
Shinru Han03f52952024-12-16 05:54:11 -0800309 method @NonNull public android.location.GlonassAlmanac.GlonassSatelliteAlmanac.Builder setFrequencyChannelNumber(@IntRange(from=0, to=31) int);
310 method @NonNull public android.location.GlonassAlmanac.GlonassSatelliteAlmanac.Builder setGlonassM(boolean);
311 method @NonNull public android.location.GlonassAlmanac.GlonassSatelliteAlmanac.Builder setHealthState(int);
Shinru Hanb39d62d2024-12-06 03:43:44 +0000312 method @NonNull public android.location.GlonassAlmanac.GlonassSatelliteAlmanac.Builder setLambda(@FloatRange(from=-1.0F, to=1.0f) double);
313 method @NonNull public android.location.GlonassAlmanac.GlonassSatelliteAlmanac.Builder setOmega(@FloatRange(from=-1.0F, to=1.0f) double);
314 method @NonNull public android.location.GlonassAlmanac.GlonassSatelliteAlmanac.Builder setSlotNumber(@IntRange(from=1, to=25) int);
Shinru Hanb39d62d2024-12-06 03:43:44 +0000315 method @NonNull public android.location.GlonassAlmanac.GlonassSatelliteAlmanac.Builder setTLambda(@FloatRange(from=0.0f, to=44100.0f) double);
316 method @NonNull public android.location.GlonassAlmanac.GlonassSatelliteAlmanac.Builder setTau(@FloatRange(from=-0.0019F, to=0.0019f) double);
317 }
318
319 @FlaggedApi("android.location.flags.gnss_assistance_interface") public final class GlonassAssistance implements android.os.Parcelable {
320 method public int describeContents();
321 method @Nullable public android.location.GlonassAlmanac getAlmanac();
322 method @NonNull public java.util.List<android.location.GnssAssistance.GnssSatelliteCorrections> getSatelliteCorrections();
323 method @NonNull public java.util.List<android.location.GlonassSatelliteEphemeris> getSatelliteEphemeris();
324 method @NonNull public java.util.List<android.location.TimeModel> getTimeModels();
325 method @Nullable public android.location.UtcModel getUtcModel();
326 method public void writeToParcel(@NonNull android.os.Parcel, int);
327 field @NonNull public static final android.os.Parcelable.Creator<android.location.GlonassAssistance> CREATOR;
328 }
329
330 public static final class GlonassAssistance.Builder {
331 ctor public GlonassAssistance.Builder();
332 method @NonNull public android.location.GlonassAssistance build();
333 method @NonNull public android.location.GlonassAssistance.Builder setAlmanac(@Nullable android.location.GlonassAlmanac);
334 method @NonNull public android.location.GlonassAssistance.Builder setSatelliteCorrections(@Nullable java.util.List<android.location.GnssAssistance.GnssSatelliteCorrections>);
335 method @NonNull public android.location.GlonassAssistance.Builder setSatelliteEphemeris(@Nullable java.util.List<android.location.GlonassSatelliteEphemeris>);
336 method @NonNull public android.location.GlonassAssistance.Builder setTimeModels(@Nullable java.util.List<android.location.TimeModel>);
337 method @NonNull public android.location.GlonassAssistance.Builder setUtcModel(@Nullable android.location.UtcModel);
338 }
339
340 @FlaggedApi("android.location.flags.gnss_assistance_interface") public final class GlonassSatelliteEphemeris implements android.os.Parcelable {
341 method public int describeContents();
342 method @IntRange(from=0, to=31) public int getAgeInDays();
343 method @FloatRange(from=0.0f) public double getFrameTimeSeconds();
Shinru Han03f52952024-12-16 05:54:11 -0800344 method public int getHealthState();
Shinru Hanb39d62d2024-12-06 03:43:44 +0000345 method @NonNull public android.location.GlonassSatelliteEphemeris.GlonassSatelliteClockModel getSatelliteClockModel();
346 method @NonNull public android.location.GlonassSatelliteEphemeris.GlonassSatelliteOrbitModel getSatelliteOrbitModel();
347 method @IntRange(from=1, to=25) public int getSlotNumber();
Shinru Han03f52952024-12-16 05:54:11 -0800348 method @IntRange(from=0, to=60) public int getUpdateIntervalMinutes();
349 method public boolean isGlonassM();
350 method public boolean isUpdateIntervalOdd();
Shinru Hanb39d62d2024-12-06 03:43:44 +0000351 method public void writeToParcel(@NonNull android.os.Parcel, int);
352 field @NonNull public static final android.os.Parcelable.Creator<android.location.GlonassSatelliteEphemeris> CREATOR;
Shinru Han03f52952024-12-16 05:54:11 -0800353 field public static final int HEALTH_STATUS_HEALTHY = 0; // 0x0
354 field public static final int HEALTH_STATUS_UNHEALTHY = 1; // 0x1
Shinru Hanb39d62d2024-12-06 03:43:44 +0000355 }
356
357 public static final class GlonassSatelliteEphemeris.Builder {
358 ctor public GlonassSatelliteEphemeris.Builder();
359 method @NonNull public android.location.GlonassSatelliteEphemeris build();
360 method @NonNull public android.location.GlonassSatelliteEphemeris.Builder setAgeInDays(@IntRange(from=0, to=31) int);
361 method @NonNull public android.location.GlonassSatelliteEphemeris.Builder setFrameTimeSeconds(@FloatRange(from=0.0f) double);
Shinru Han03f52952024-12-16 05:54:11 -0800362 method @NonNull public android.location.GlonassSatelliteEphemeris.Builder setGlonassM(boolean);
363 method @NonNull public android.location.GlonassSatelliteEphemeris.Builder setHealthState(int);
Shinru Hanb39d62d2024-12-06 03:43:44 +0000364 method @NonNull public android.location.GlonassSatelliteEphemeris.Builder setSatelliteClockModel(@NonNull android.location.GlonassSatelliteEphemeris.GlonassSatelliteClockModel);
365 method @NonNull public android.location.GlonassSatelliteEphemeris.Builder setSatelliteOrbitModel(@NonNull android.location.GlonassSatelliteEphemeris.GlonassSatelliteOrbitModel);
366 method @NonNull public android.location.GlonassSatelliteEphemeris.Builder setSlotNumber(@IntRange(from=1, to=25) int);
Shinru Han03f52952024-12-16 05:54:11 -0800367 method @NonNull public android.location.GlonassSatelliteEphemeris.Builder setUpdateIntervalMinutes(@IntRange(from=0, to=60) int);
368 method @NonNull public android.location.GlonassSatelliteEphemeris.Builder setUpdateIntervalOdd(boolean);
Shinru Hanb39d62d2024-12-06 03:43:44 +0000369 }
370
371 public static final class GlonassSatelliteEphemeris.GlonassSatelliteClockModel implements android.os.Parcelable {
372 method public int describeContents();
373 method @FloatRange(from=-0.002F, to=0.002f) public double getClockBias();
374 method @FloatRange(from=-9.32E-10F, to=9.32E-10f) public double getFrequencyBias();
Shinru Han03f52952024-12-16 05:54:11 -0800375 method @IntRange(from=0xfffffff9, to=6) public int getFrequencyChannelNumber();
376 method @FloatRange(from=-1.4E-8F, to=1.4E-8f) public double getGroupDelayDiffSeconds();
Shinru Hanb39d62d2024-12-06 03:43:44 +0000377 method @IntRange(from=0) public long getTimeOfClockSeconds();
Shinru Han03f52952024-12-16 05:54:11 -0800378 method public boolean isGroupDelayDiffSecondsAvailable();
Shinru Hanb39d62d2024-12-06 03:43:44 +0000379 method public void writeToParcel(@NonNull android.os.Parcel, int);
380 field @NonNull public static final android.os.Parcelable.Creator<android.location.GlonassSatelliteEphemeris.GlonassSatelliteClockModel> CREATOR;
381 }
382
383 public static final class GlonassSatelliteEphemeris.GlonassSatelliteClockModel.Builder {
384 ctor public GlonassSatelliteEphemeris.GlonassSatelliteClockModel.Builder();
385 method @NonNull public android.location.GlonassSatelliteEphemeris.GlonassSatelliteClockModel build();
386 method @NonNull public android.location.GlonassSatelliteEphemeris.GlonassSatelliteClockModel.Builder setClockBias(@FloatRange(from=-0.002F, to=0.002f) double);
387 method @NonNull public android.location.GlonassSatelliteEphemeris.GlonassSatelliteClockModel.Builder setFrequencyBias(@FloatRange(from=-9.32E-10F, to=9.32E-10f) double);
Shinru Han03f52952024-12-16 05:54:11 -0800388 method @NonNull public android.location.GlonassSatelliteEphemeris.GlonassSatelliteClockModel.Builder setFrequencyChannelNumber(@IntRange(from=0xfffffff9, to=6) int);
389 method @NonNull public android.location.GlonassSatelliteEphemeris.GlonassSatelliteClockModel.Builder setGroupDelayDiffSeconds(@FloatRange(from=-1.4E-8F, to=1.4E-8f) double);
390 method @NonNull public android.location.GlonassSatelliteEphemeris.GlonassSatelliteClockModel.Builder setGroupDelayDiffSecondsAvailable(boolean);
Shinru Hanb39d62d2024-12-06 03:43:44 +0000391 method @NonNull public android.location.GlonassSatelliteEphemeris.GlonassSatelliteClockModel.Builder setTimeOfClockSeconds(@IntRange(from=0) long);
392 }
393
394 public static final class GlonassSatelliteEphemeris.GlonassSatelliteOrbitModel implements android.os.Parcelable {
395 method public int describeContents();
396 method @FloatRange(from=-27000.0F, to=27000.0f) public double getX();
397 method @FloatRange(from=-6.2E-9F, to=6.2E-9f) public double getXAccel();
398 method @FloatRange(from=-4.3F, to=4.3f) public double getXDot();
399 method @FloatRange(from=-27000.0F, to=27000.0f) public double getY();
400 method @FloatRange(from=-6.2E-9F, to=6.2E-9f) public double getYAccel();
401 method @FloatRange(from=-4.3F, to=4.3f) public double getYDot();
402 method @FloatRange(from=-27000.0F, to=27000.0f) public double getZ();
403 method @FloatRange(from=-6.2E-9F, to=6.2E-9f) public double getZAccel();
404 method @FloatRange(from=-4.3F, to=4.3f) public double getZDot();
405 method public void writeToParcel(@NonNull android.os.Parcel, int);
406 field @NonNull public static final android.os.Parcelable.Creator<android.location.GlonassSatelliteEphemeris.GlonassSatelliteOrbitModel> CREATOR;
407 }
408
409 public static final class GlonassSatelliteEphemeris.GlonassSatelliteOrbitModel.Builder {
410 ctor public GlonassSatelliteEphemeris.GlonassSatelliteOrbitModel.Builder();
411 method @NonNull public android.location.GlonassSatelliteEphemeris.GlonassSatelliteOrbitModel build();
412 method @NonNull public android.location.GlonassSatelliteEphemeris.GlonassSatelliteOrbitModel.Builder setX(@FloatRange(from=-27000.0F, to=27000.0f) double);
413 method @NonNull public android.location.GlonassSatelliteEphemeris.GlonassSatelliteOrbitModel.Builder setXAccel(@FloatRange(from=-6.2E-9F, to=6.2E-9f) double);
414 method @NonNull public android.location.GlonassSatelliteEphemeris.GlonassSatelliteOrbitModel.Builder setXDot(@FloatRange(from=-4.3F, to=4.3f) double);
415 method @NonNull public android.location.GlonassSatelliteEphemeris.GlonassSatelliteOrbitModel.Builder setY(@FloatRange(from=-27000.0F, to=27000.0f) double);
416 method @NonNull public android.location.GlonassSatelliteEphemeris.GlonassSatelliteOrbitModel.Builder setYAccel(@FloatRange(from=-6.2E-9F, to=6.2E-9f) double);
417 method @NonNull public android.location.GlonassSatelliteEphemeris.GlonassSatelliteOrbitModel.Builder setYDot(@FloatRange(from=-4.3F, to=4.3f) double);
418 method @NonNull public android.location.GlonassSatelliteEphemeris.GlonassSatelliteOrbitModel.Builder setZ(@FloatRange(from=-27000.0F, to=27000.0f) double);
419 method @NonNull public android.location.GlonassSatelliteEphemeris.GlonassSatelliteOrbitModel.Builder setZAccel(@FloatRange(from=-6.2E-9F, to=6.2E-9f) double);
420 method @NonNull public android.location.GlonassSatelliteEphemeris.GlonassSatelliteOrbitModel.Builder setZDot(@FloatRange(from=-4.3F, to=4.3f) double);
421 }
422
423 @FlaggedApi("android.location.flags.gnss_assistance_interface") public final class GnssAlmanac implements android.os.Parcelable {
424 method public int describeContents();
425 method @NonNull public java.util.List<android.location.GnssAlmanac.GnssSatelliteAlmanac> getGnssSatelliteAlmanacs();
Shinru Han03f52952024-12-16 05:54:11 -0800426 method @IntRange(from=0) public int getIoda();
Shinru Hanb39d62d2024-12-06 03:43:44 +0000427 method @IntRange(from=0) public long getIssueDateMillis();
428 method @IntRange(from=0, to=604800) public int getToaSeconds();
429 method @IntRange(from=0) public int getWeekNumber();
Shinru Han03f52952024-12-16 05:54:11 -0800430 method public boolean isCompleteAlmanacProvided();
Shinru Hanb39d62d2024-12-06 03:43:44 +0000431 method public void writeToParcel(@NonNull android.os.Parcel, int);
432 field @NonNull public static final android.os.Parcelable.Creator<android.location.GnssAlmanac> CREATOR;
433 }
434
435 public static final class GnssAlmanac.Builder {
436 ctor public GnssAlmanac.Builder();
437 method @NonNull public android.location.GnssAlmanac build();
Shinru Han03f52952024-12-16 05:54:11 -0800438 method @NonNull public android.location.GnssAlmanac.Builder setCompleteAlmanacProvided(boolean);
Shinru Hanb39d62d2024-12-06 03:43:44 +0000439 method @NonNull public android.location.GnssAlmanac.Builder setGnssSatelliteAlmanacs(@NonNull java.util.List<android.location.GnssAlmanac.GnssSatelliteAlmanac>);
Shinru Han03f52952024-12-16 05:54:11 -0800440 method @NonNull public android.location.GnssAlmanac.Builder setIoda(@IntRange(from=0) int);
Shinru Hanb39d62d2024-12-06 03:43:44 +0000441 method @NonNull public android.location.GnssAlmanac.Builder setIssueDateMillis(@IntRange(from=0) long);
442 method @NonNull public android.location.GnssAlmanac.Builder setToaSeconds(@IntRange(from=0, to=604800) int);
443 method @NonNull public android.location.GnssAlmanac.Builder setWeekNumber(@IntRange(from=0) int);
444 }
445
446 public static final class GnssAlmanac.GnssSatelliteAlmanac implements android.os.Parcelable {
447 method public int describeContents();
448 method @FloatRange(from=-0.0625F, to=0.0625f) public double getAf0();
449 method @FloatRange(from=-1.5E-8F, to=1.5E-8f) public double getAf1();
450 method @FloatRange(from=0.0f) public double getEccentricity();
451 method @FloatRange(from=-1.0F, to=1.0f) public double getInclination();
452 method @FloatRange(from=-1.0F, to=1.0f) public double getM0();
453 method @FloatRange(from=-1.0F, to=1.0f) public double getOmega();
454 method @FloatRange(from=-1.0F, to=1.0f) public double getOmega0();
455 method @FloatRange(from=-1.0F, to=1.0f) public double getOmegaDot();
456 method @FloatRange(from=0.0f, to=8192.0f) public double getRootA();
457 method @IntRange(from=0) public int getSvHealth();
458 method @IntRange(from=1) public int getSvid();
459 method public void writeToParcel(@NonNull android.os.Parcel, int);
460 field @NonNull public static final android.os.Parcelable.Creator<android.location.GnssAlmanac.GnssSatelliteAlmanac> CREATOR;
461 }
462
463 public static final class GnssAlmanac.GnssSatelliteAlmanac.Builder {
464 ctor public GnssAlmanac.GnssSatelliteAlmanac.Builder();
465 method @NonNull public android.location.GnssAlmanac.GnssSatelliteAlmanac build();
466 method @NonNull public android.location.GnssAlmanac.GnssSatelliteAlmanac.Builder setAf0(@FloatRange(from=-0.0625F, to=0.0625f) double);
467 method @NonNull public android.location.GnssAlmanac.GnssSatelliteAlmanac.Builder setAf1(@FloatRange(from=-1.5E-8F, to=1.5E-8f) double);
468 method @NonNull public android.location.GnssAlmanac.GnssSatelliteAlmanac.Builder setEccentricity(@FloatRange(from=0.0f) double);
469 method @NonNull public android.location.GnssAlmanac.GnssSatelliteAlmanac.Builder setInclination(@FloatRange(from=-1.0F, to=1.0f) double);
470 method @NonNull public android.location.GnssAlmanac.GnssSatelliteAlmanac.Builder setM0(@FloatRange(from=-1.0F, to=1.0f) double);
471 method @NonNull public android.location.GnssAlmanac.GnssSatelliteAlmanac.Builder setOmega(@FloatRange(from=-1.0F, to=1.0f) double);
472 method @NonNull public android.location.GnssAlmanac.GnssSatelliteAlmanac.Builder setOmega0(@FloatRange(from=-1.0F, to=1.0f) double);
473 method @NonNull public android.location.GnssAlmanac.GnssSatelliteAlmanac.Builder setOmegaDot(@FloatRange(from=-1.0F, to=1.0f) double);
474 method @NonNull public android.location.GnssAlmanac.GnssSatelliteAlmanac.Builder setRootA(@FloatRange(from=0.0f, to=8192.0f) double);
475 method @NonNull public android.location.GnssAlmanac.GnssSatelliteAlmanac.Builder setSvHealth(@IntRange(from=0) int);
476 method @NonNull public android.location.GnssAlmanac.GnssSatelliteAlmanac.Builder setSvid(@IntRange(from=1) int);
477 }
478
479 @FlaggedApi("android.location.flags.gnss_assistance_interface") public final class GnssAssistance implements android.os.Parcelable {
480 method public int describeContents();
481 method @Nullable public android.location.BeidouAssistance getBeidouAssistance();
482 method @Nullable public android.location.GalileoAssistance getGalileoAssistance();
483 method @Nullable public android.location.GlonassAssistance getGlonassAssistance();
484 method @Nullable public android.location.GpsAssistance getGpsAssistance();
485 method @Nullable public android.location.QzssAssistance getQzssAssistance();
486 method public void writeToParcel(@NonNull android.os.Parcel, int);
487 field @NonNull public static final android.os.Parcelable.Creator<android.location.GnssAssistance> CREATOR;
488 }
489
490 public static final class GnssAssistance.Builder {
491 ctor public GnssAssistance.Builder();
492 method @NonNull public android.location.GnssAssistance build();
493 method @NonNull public android.location.GnssAssistance.Builder setBeidouAssistance(@Nullable android.location.BeidouAssistance);
494 method @NonNull public android.location.GnssAssistance.Builder setGalileoAssistance(@Nullable android.location.GalileoAssistance);
495 method @NonNull public android.location.GnssAssistance.Builder setGlonassAssistance(@Nullable android.location.GlonassAssistance);
496 method @NonNull public android.location.GnssAssistance.Builder setGpsAssistance(@Nullable android.location.GpsAssistance);
497 method @NonNull public android.location.GnssAssistance.Builder setQzssAssistance(@Nullable android.location.QzssAssistance);
498 }
499
500 public static final class GnssAssistance.GnssSatelliteCorrections implements android.os.Parcelable {
501 ctor public GnssAssistance.GnssSatelliteCorrections(@IntRange(from=1, to=206) int, @NonNull java.util.List<android.location.IonosphericCorrection>);
502 method public int describeContents();
503 method @NonNull public java.util.List<android.location.IonosphericCorrection> getIonosphericCorrections();
504 method @IntRange(from=1, to=206) public int getSvid();
505 method public void writeToParcel(@NonNull android.os.Parcel, int);
506 field @NonNull public static final android.os.Parcelable.Creator<android.location.GnssAssistance.GnssSatelliteCorrections> CREATOR;
507 }
508
Mark White5b3c64d2023-08-17 23:53:46 +0000509 public final class GnssCapabilities implements android.os.Parcelable {
510 method @Deprecated public boolean hasMeasurementCorrectionsReflectingPane();
511 method @Deprecated public boolean hasNavMessages();
512 method @Deprecated public boolean hasSatelliteBlacklist();
513 }
514
Shinru Hanb39d62d2024-12-06 03:43:44 +0000515 @FlaggedApi("android.location.flags.gnss_assistance_interface") public final class GnssCorrectionComponent implements android.os.Parcelable {
516 ctor public GnssCorrectionComponent(@NonNull String, @NonNull android.location.GnssCorrectionComponent.GnssInterval, @NonNull android.location.GnssCorrectionComponent.PseudorangeCorrection);
517 method public int describeContents();
518 method @NonNull public android.location.GnssCorrectionComponent.PseudorangeCorrection getPseudorangeCorrection();
519 method @NonNull public String getSourceKey();
520 method @NonNull public android.location.GnssCorrectionComponent.GnssInterval getValidityInterval();
521 method public void writeToParcel(@NonNull android.os.Parcel, int);
522 field @NonNull public static final android.os.Parcelable.Creator<android.location.GnssCorrectionComponent> CREATOR;
523 }
524
525 public static final class GnssCorrectionComponent.GnssInterval implements android.os.Parcelable {
526 ctor public GnssCorrectionComponent.GnssInterval(@IntRange(from=0) long, @IntRange(from=0) long);
527 method public int describeContents();
528 method @IntRange(from=0) public long getEndMillisSinceGpsEpoch();
529 method @IntRange(from=0) public long getStartMillisSinceGpsEpoch();
530 method public void writeToParcel(@NonNull android.os.Parcel, int);
531 field @NonNull public static final android.os.Parcelable.Creator<android.location.GnssCorrectionComponent.GnssInterval> CREATOR;
532 }
533
534 public static final class GnssCorrectionComponent.PseudorangeCorrection implements android.os.Parcelable {
535 ctor public GnssCorrectionComponent.PseudorangeCorrection(double, double, double);
536 method public int describeContents();
537 method public double getCorrectionMeters();
538 method public double getCorrectionRateMetersPerSecond();
539 method @FloatRange(from=0.0f) public double getCorrectionUncertaintyMeters();
540 method public void writeToParcel(@NonNull android.os.Parcel, int);
541 field @NonNull public static final android.os.Parcelable.Creator<android.location.GnssCorrectionComponent.PseudorangeCorrection> CREATOR;
542 }
543
Mark White5b3c64d2023-08-17 23:53:46 +0000544 public final class GnssExcessPathInfo implements android.os.Parcelable {
545 method public int describeContents();
546 method @FloatRange(from=0.0f) public float getAttenuationDb();
547 method @FloatRange(from=0.0f) public float getExcessPathLengthMeters();
548 method @FloatRange(from=0.0f) public float getExcessPathLengthUncertaintyMeters();
549 method @NonNull public android.location.GnssReflectingPlane getReflectingPlane();
550 method public boolean hasAttenuation();
551 method public boolean hasExcessPathLength();
552 method public boolean hasExcessPathLengthUncertainty();
553 method public boolean hasReflectingPlane();
554 method public void writeToParcel(@NonNull android.os.Parcel, int);
555 field @NonNull public static final android.os.Parcelable.Creator<android.location.GnssExcessPathInfo> CREATOR;
556 }
557
558 public static final class GnssExcessPathInfo.Builder {
559 ctor public GnssExcessPathInfo.Builder();
560 method @NonNull public android.location.GnssExcessPathInfo build();
561 method @NonNull public android.location.GnssExcessPathInfo.Builder clearAttenuationDb();
562 method @NonNull public android.location.GnssExcessPathInfo.Builder clearExcessPathLengthMeters();
563 method @NonNull public android.location.GnssExcessPathInfo.Builder clearExcessPathLengthUncertaintyMeters();
564 method @NonNull public android.location.GnssExcessPathInfo.Builder setAttenuationDb(@FloatRange(from=0.0f) float);
565 method @NonNull public android.location.GnssExcessPathInfo.Builder setExcessPathLengthMeters(@FloatRange(from=0.0f) float);
566 method @NonNull public android.location.GnssExcessPathInfo.Builder setExcessPathLengthUncertaintyMeters(@FloatRange(from=0.0f) float);
567 method @NonNull public android.location.GnssExcessPathInfo.Builder setReflectingPlane(@Nullable android.location.GnssReflectingPlane);
568 }
569
570 public final class GnssMeasurement implements android.os.Parcelable {
571 method @Nullable public java.util.Collection<android.location.CorrelationVector> getCorrelationVectors();
572 method @Nullable public android.location.SatellitePvt getSatellitePvt();
573 method public boolean hasCorrelationVectors();
574 method public boolean hasSatellitePvt();
575 }
576
577 public final class GnssMeasurementCorrections implements android.os.Parcelable {
578 method public int describeContents();
579 method @FloatRange(from=-1000.0F, to=10000.0f) public double getAltitudeMeters();
580 method @FloatRange(from=0.0f, to=360.0f) public float getEnvironmentBearingDegrees();
581 method @FloatRange(from=0.0f, to=180.0f) public float getEnvironmentBearingUncertaintyDegrees();
582 method @FloatRange(from=0.0f) public double getHorizontalPositionUncertaintyMeters();
583 method @FloatRange(from=-90.0F, to=90.0f) public double getLatitudeDegrees();
584 method @FloatRange(from=-180.0F, to=180.0f) public double getLongitudeDegrees();
585 method @NonNull public java.util.List<android.location.GnssSingleSatCorrection> getSingleSatelliteCorrectionList();
586 method @IntRange(from=0) public long getToaGpsNanosecondsOfWeek();
587 method @FloatRange(from=0.0f) public double getVerticalPositionUncertaintyMeters();
588 method public boolean hasEnvironmentBearing();
589 method public void writeToParcel(@NonNull android.os.Parcel, int);
590 field public static final android.os.Parcelable.Creator<android.location.GnssMeasurementCorrections> CREATOR;
591 }
592
593 public static final class GnssMeasurementCorrections.Builder {
594 ctor public GnssMeasurementCorrections.Builder();
595 method @NonNull public android.location.GnssMeasurementCorrections build();
596 method @NonNull public android.location.GnssMeasurementCorrections.Builder setAltitudeMeters(@FloatRange(from=-1000.0F, to=10000.0f) double);
597 method @NonNull public android.location.GnssMeasurementCorrections.Builder setEnvironmentBearingDegrees(@FloatRange(from=0.0f, to=360.0f) float);
598 method @NonNull public android.location.GnssMeasurementCorrections.Builder setEnvironmentBearingUncertaintyDegrees(@FloatRange(from=0.0f, to=180.0f) float);
599 method @NonNull public android.location.GnssMeasurementCorrections.Builder setHorizontalPositionUncertaintyMeters(@FloatRange(from=0.0f) double);
600 method @NonNull public android.location.GnssMeasurementCorrections.Builder setLatitudeDegrees(@FloatRange(from=-90.0F, to=90.0f) double);
601 method @NonNull public android.location.GnssMeasurementCorrections.Builder setLongitudeDegrees(@FloatRange(from=-180.0F, to=180.0f) double);
602 method @NonNull public android.location.GnssMeasurementCorrections.Builder setSingleSatelliteCorrectionList(@NonNull java.util.List<android.location.GnssSingleSatCorrection>);
603 method @NonNull public android.location.GnssMeasurementCorrections.Builder setToaGpsNanosecondsOfWeek(@IntRange(from=0) long);
604 method @NonNull public android.location.GnssMeasurementCorrections.Builder setVerticalPositionUncertaintyMeters(@FloatRange(from=0.0f) double);
605 }
606
607 public final class GnssMeasurementRequest implements android.os.Parcelable {
Paul Duffind2580662024-04-18 19:20:53 +0100608 method @FlaggedApi("android.location.flags.gnss_api_measurement_request_work_source") @NonNull public android.os.WorkSource getWorkSource();
Mark White5b3c64d2023-08-17 23:53:46 +0000609 method public boolean isCorrelationVectorOutputsEnabled();
610 }
611
612 public static final class GnssMeasurementRequest.Builder {
613 method @NonNull public android.location.GnssMeasurementRequest.Builder setCorrelationVectorOutputsEnabled(boolean);
Paul Duffind2580662024-04-18 19:20:53 +0100614 method @FlaggedApi("android.location.flags.gnss_api_measurement_request_work_source") @NonNull @RequiresPermission(android.Manifest.permission.UPDATE_DEVICE_STATS) public android.location.GnssMeasurementRequest.Builder setWorkSource(@Nullable android.os.WorkSource);
Mark White5b3c64d2023-08-17 23:53:46 +0000615 }
616
617 public final class GnssReflectingPlane implements android.os.Parcelable {
618 method public int describeContents();
619 method @FloatRange(from=-1000.0F, to=10000.0f) public double getAltitudeMeters();
620 method @FloatRange(from=0.0f, to=360.0f) public double getAzimuthDegrees();
621 method @FloatRange(from=-90.0F, to=90.0f) public double getLatitudeDegrees();
622 method @FloatRange(from=-180.0F, to=180.0f) public double getLongitudeDegrees();
623 method public void writeToParcel(@NonNull android.os.Parcel, int);
624 field public static final android.os.Parcelable.Creator<android.location.GnssReflectingPlane> CREATOR;
625 }
626
627 public static final class GnssReflectingPlane.Builder {
628 ctor public GnssReflectingPlane.Builder();
629 method @NonNull public android.location.GnssReflectingPlane build();
630 method @NonNull public android.location.GnssReflectingPlane.Builder setAltitudeMeters(@FloatRange(from=-1000.0F, to=10000.0f) double);
631 method @NonNull public android.location.GnssReflectingPlane.Builder setAzimuthDegrees(@FloatRange(from=0.0f, to=360.0f) double);
632 method @NonNull public android.location.GnssReflectingPlane.Builder setLatitudeDegrees(@FloatRange(from=-90.0F, to=90.0f) double);
633 method @NonNull public android.location.GnssReflectingPlane.Builder setLongitudeDegrees(@FloatRange(from=-180.0F, to=180.0f) double);
634 }
635
636 public final class GnssRequest implements android.os.Parcelable {
637 method public int describeContents();
638 method public boolean isFullTracking();
639 method public void writeToParcel(@NonNull android.os.Parcel, int);
640 field @NonNull public static final android.os.Parcelable.Creator<android.location.GnssRequest> CREATOR;
641 }
642
643 public static final class GnssRequest.Builder {
644 ctor public GnssRequest.Builder();
645 ctor public GnssRequest.Builder(@NonNull android.location.GnssRequest);
646 method @NonNull public android.location.GnssRequest build();
647 method @NonNull public android.location.GnssRequest.Builder setFullTracking(boolean);
648 }
649
650 public final class GnssSingleSatCorrection implements android.os.Parcelable {
651 method public int describeContents();
652 method @FloatRange(from=0.0f, fromInclusive=false) public float getCarrierFrequencyHz();
653 method @FloatRange(from=0.0f) public float getCombinedAttenuationDb();
654 method public int getConstellationType();
655 method @FloatRange(from=0.0f) public float getExcessPathLengthMeters();
656 method @FloatRange(from=0.0f) public float getExcessPathLengthUncertaintyMeters();
657 method @NonNull public java.util.List<android.location.GnssExcessPathInfo> getGnssExcessPathInfoList();
658 method @FloatRange(from=0.0f, to=1.0f) public float getProbabilityLineOfSight();
659 method @Deprecated @Nullable public android.location.GnssReflectingPlane getReflectingPlane();
660 method @IntRange(from=0) public int getSatelliteId();
661 method public boolean hasCombinedAttenuation();
662 method public boolean hasExcessPathLength();
663 method public boolean hasExcessPathLengthUncertainty();
664 method @Deprecated public boolean hasReflectingPlane();
665 method public boolean hasValidSatelliteLineOfSight();
666 method public void writeToParcel(@NonNull android.os.Parcel, int);
667 field public static final android.os.Parcelable.Creator<android.location.GnssSingleSatCorrection> CREATOR;
668 }
669
670 public static final class GnssSingleSatCorrection.Builder {
671 ctor public GnssSingleSatCorrection.Builder();
672 method @NonNull public android.location.GnssSingleSatCorrection build();
673 method @NonNull public android.location.GnssSingleSatCorrection.Builder clearCombinedAttenuationDb();
674 method @NonNull public android.location.GnssSingleSatCorrection.Builder clearExcessPathLengthMeters();
675 method @NonNull public android.location.GnssSingleSatCorrection.Builder clearExcessPathLengthUncertaintyMeters();
676 method @NonNull public android.location.GnssSingleSatCorrection.Builder clearProbabilityLineOfSight();
677 method @NonNull public android.location.GnssSingleSatCorrection.Builder setCarrierFrequencyHz(@FloatRange(from=0.0f, fromInclusive=false) float);
678 method @NonNull public android.location.GnssSingleSatCorrection.Builder setCombinedAttenuationDb(@FloatRange(from=0.0f) float);
679 method @NonNull public android.location.GnssSingleSatCorrection.Builder setConstellationType(int);
680 method @NonNull public android.location.GnssSingleSatCorrection.Builder setExcessPathLengthMeters(@FloatRange(from=0.0f) float);
681 method @NonNull public android.location.GnssSingleSatCorrection.Builder setExcessPathLengthUncertaintyMeters(@FloatRange(from=0.0f) float);
682 method @NonNull public android.location.GnssSingleSatCorrection.Builder setGnssExcessPathInfoList(@NonNull java.util.List<android.location.GnssExcessPathInfo>);
683 method @NonNull public android.location.GnssSingleSatCorrection.Builder setProbabilityLineOfSight(@FloatRange(from=0.0f, to=1.0f) float);
684 method @Deprecated @NonNull public android.location.GnssSingleSatCorrection.Builder setReflectingPlane(@Nullable android.location.GnssReflectingPlane);
685 method @NonNull public android.location.GnssSingleSatCorrection.Builder setSatelliteId(@IntRange(from=0) int);
686 }
687
Shinru Hanb39d62d2024-12-06 03:43:44 +0000688 @FlaggedApi("android.location.flags.gnss_assistance_interface") public final class GpsAssistance implements android.os.Parcelable {
689 method public int describeContents();
690 method @Nullable public android.location.GnssAlmanac getAlmanac();
691 method @Nullable public android.location.KlobucharIonosphericModel getIonosphericModel();
692 method @Nullable public android.location.LeapSecondsModel getLeapSecondsModel();
693 method @NonNull public java.util.List<android.location.RealTimeIntegrityModel> getRealTimeIntegrityModels();
694 method @NonNull public java.util.List<android.location.GnssAssistance.GnssSatelliteCorrections> getSatelliteCorrections();
695 method @NonNull public java.util.List<android.location.GpsSatelliteEphemeris> getSatelliteEphemeris();
696 method @NonNull public java.util.List<android.location.TimeModel> getTimeModels();
697 method @Nullable public android.location.UtcModel getUtcModel();
698 method public void writeToParcel(@NonNull android.os.Parcel, int);
699 field @NonNull public static final android.os.Parcelable.Creator<android.location.GpsAssistance> CREATOR;
700 }
701
702 public static final class GpsAssistance.Builder {
703 ctor public GpsAssistance.Builder();
704 method @NonNull public android.location.GpsAssistance build();
705 method @NonNull public android.location.GpsAssistance.Builder setAlmanac(@Nullable android.location.GnssAlmanac);
706 method @NonNull public android.location.GpsAssistance.Builder setIonosphericModel(@Nullable android.location.KlobucharIonosphericModel);
707 method @NonNull public android.location.GpsAssistance.Builder setLeapSecondsModel(@Nullable android.location.LeapSecondsModel);
708 method @NonNull public android.location.GpsAssistance.Builder setRealTimeIntegrityModels(@Nullable java.util.List<android.location.RealTimeIntegrityModel>);
709 method @NonNull public android.location.GpsAssistance.Builder setSatelliteCorrections(@Nullable java.util.List<android.location.GnssAssistance.GnssSatelliteCorrections>);
710 method @NonNull public android.location.GpsAssistance.Builder setSatelliteEphemeris(@Nullable java.util.List<android.location.GpsSatelliteEphemeris>);
711 method @NonNull public android.location.GpsAssistance.Builder setTimeModels(@Nullable java.util.List<android.location.TimeModel>);
712 method @NonNull public android.location.GpsAssistance.Builder setUtcModel(@Nullable android.location.UtcModel);
713 }
714
Mark White5b3c64d2023-08-17 23:53:46 +0000715 @Deprecated public class GpsClock implements android.os.Parcelable {
716 method @Deprecated public int describeContents();
717 method @Deprecated public double getBiasInNs();
718 method @Deprecated public double getBiasUncertaintyInNs();
719 method @Deprecated public double getDriftInNsPerSec();
720 method @Deprecated public double getDriftUncertaintyInNsPerSec();
721 method @Deprecated public long getFullBiasInNs();
722 method @Deprecated public short getLeapSecond();
723 method @Deprecated public long getTimeInNs();
724 method @Deprecated public double getTimeUncertaintyInNs();
725 method @Deprecated public byte getType();
726 method @Deprecated public boolean hasBiasInNs();
727 method @Deprecated public boolean hasBiasUncertaintyInNs();
728 method @Deprecated public boolean hasDriftInNsPerSec();
729 method @Deprecated public boolean hasDriftUncertaintyInNsPerSec();
730 method @Deprecated public boolean hasFullBiasInNs();
731 method @Deprecated public boolean hasLeapSecond();
732 method @Deprecated public boolean hasTimeUncertaintyInNs();
733 method @Deprecated public void reset();
734 method @Deprecated public void resetBiasInNs();
735 method @Deprecated public void resetBiasUncertaintyInNs();
736 method @Deprecated public void resetDriftInNsPerSec();
737 method @Deprecated public void resetDriftUncertaintyInNsPerSec();
738 method @Deprecated public void resetFullBiasInNs();
739 method @Deprecated public void resetLeapSecond();
740 method @Deprecated public void resetTimeUncertaintyInNs();
741 method @Deprecated public void set(android.location.GpsClock);
742 method @Deprecated public void setBiasInNs(double);
743 method @Deprecated public void setBiasUncertaintyInNs(double);
744 method @Deprecated public void setDriftInNsPerSec(double);
745 method @Deprecated public void setDriftUncertaintyInNsPerSec(double);
746 method @Deprecated public void setFullBiasInNs(long);
747 method @Deprecated public void setLeapSecond(short);
748 method @Deprecated public void setTimeInNs(long);
749 method @Deprecated public void setTimeUncertaintyInNs(double);
750 method @Deprecated public void setType(byte);
751 method @Deprecated public void writeToParcel(android.os.Parcel, int);
752 field @Deprecated @NonNull public static final android.os.Parcelable.Creator<android.location.GpsClock> CREATOR;
753 field @Deprecated public static final byte TYPE_GPS_TIME = 2; // 0x2
754 field @Deprecated public static final byte TYPE_LOCAL_HW_TIME = 1; // 0x1
755 field @Deprecated public static final byte TYPE_UNKNOWN = 0; // 0x0
756 }
757
758 @Deprecated public class GpsMeasurement implements android.os.Parcelable {
759 method @Deprecated public int describeContents();
760 method @Deprecated public double getAccumulatedDeltaRangeInMeters();
761 method @Deprecated public short getAccumulatedDeltaRangeState();
762 method @Deprecated public double getAccumulatedDeltaRangeUncertaintyInMeters();
763 method @Deprecated public double getAzimuthInDeg();
764 method @Deprecated public double getAzimuthUncertaintyInDeg();
765 method @Deprecated public int getBitNumber();
766 method @Deprecated public long getCarrierCycles();
767 method @Deprecated public float getCarrierFrequencyInHz();
768 method @Deprecated public double getCarrierPhase();
769 method @Deprecated public double getCarrierPhaseUncertainty();
770 method @Deprecated public double getCn0InDbHz();
771 method @Deprecated public double getCodePhaseInChips();
772 method @Deprecated public double getCodePhaseUncertaintyInChips();
773 method @Deprecated public double getDopplerShiftInHz();
774 method @Deprecated public double getDopplerShiftUncertaintyInHz();
775 method @Deprecated public double getElevationInDeg();
776 method @Deprecated public double getElevationUncertaintyInDeg();
777 method @Deprecated public byte getLossOfLock();
778 method @Deprecated public byte getMultipathIndicator();
779 method @Deprecated public byte getPrn();
780 method @Deprecated public double getPseudorangeInMeters();
781 method @Deprecated public double getPseudorangeRateInMetersPerSec();
782 method @Deprecated public double getPseudorangeRateUncertaintyInMetersPerSec();
783 method @Deprecated public double getPseudorangeUncertaintyInMeters();
784 method @Deprecated public long getReceivedGpsTowInNs();
785 method @Deprecated public long getReceivedGpsTowUncertaintyInNs();
786 method @Deprecated public double getSnrInDb();
787 method @Deprecated public short getState();
788 method @Deprecated public short getTimeFromLastBitInMs();
789 method @Deprecated public double getTimeOffsetInNs();
790 method @Deprecated public boolean hasAzimuthInDeg();
791 method @Deprecated public boolean hasAzimuthUncertaintyInDeg();
792 method @Deprecated public boolean hasBitNumber();
793 method @Deprecated public boolean hasCarrierCycles();
794 method @Deprecated public boolean hasCarrierFrequencyInHz();
795 method @Deprecated public boolean hasCarrierPhase();
796 method @Deprecated public boolean hasCarrierPhaseUncertainty();
797 method @Deprecated public boolean hasCodePhaseInChips();
798 method @Deprecated public boolean hasCodePhaseUncertaintyInChips();
799 method @Deprecated public boolean hasDopplerShiftInHz();
800 method @Deprecated public boolean hasDopplerShiftUncertaintyInHz();
801 method @Deprecated public boolean hasElevationInDeg();
802 method @Deprecated public boolean hasElevationUncertaintyInDeg();
803 method @Deprecated public boolean hasPseudorangeInMeters();
804 method @Deprecated public boolean hasPseudorangeUncertaintyInMeters();
805 method @Deprecated public boolean hasSnrInDb();
806 method @Deprecated public boolean hasTimeFromLastBitInMs();
807 method @Deprecated public boolean isPseudorangeRateCorrected();
808 method @Deprecated public boolean isUsedInFix();
809 method @Deprecated public void reset();
810 method @Deprecated public void resetAzimuthInDeg();
811 method @Deprecated public void resetAzimuthUncertaintyInDeg();
812 method @Deprecated public void resetBitNumber();
813 method @Deprecated public void resetCarrierCycles();
814 method @Deprecated public void resetCarrierFrequencyInHz();
815 method @Deprecated public void resetCarrierPhase();
816 method @Deprecated public void resetCarrierPhaseUncertainty();
817 method @Deprecated public void resetCodePhaseInChips();
818 method @Deprecated public void resetCodePhaseUncertaintyInChips();
819 method @Deprecated public void resetDopplerShiftInHz();
820 method @Deprecated public void resetDopplerShiftUncertaintyInHz();
821 method @Deprecated public void resetElevationInDeg();
822 method @Deprecated public void resetElevationUncertaintyInDeg();
823 method @Deprecated public void resetPseudorangeInMeters();
824 method @Deprecated public void resetPseudorangeUncertaintyInMeters();
825 method @Deprecated public void resetSnrInDb();
826 method @Deprecated public void resetTimeFromLastBitInMs();
827 method @Deprecated public void set(android.location.GpsMeasurement);
828 method @Deprecated public void setAccumulatedDeltaRangeInMeters(double);
829 method @Deprecated public void setAccumulatedDeltaRangeState(short);
830 method @Deprecated public void setAccumulatedDeltaRangeUncertaintyInMeters(double);
831 method @Deprecated public void setAzimuthInDeg(double);
832 method @Deprecated public void setAzimuthUncertaintyInDeg(double);
833 method @Deprecated public void setBitNumber(int);
834 method @Deprecated public void setCarrierCycles(long);
835 method @Deprecated public void setCarrierFrequencyInHz(float);
836 method @Deprecated public void setCarrierPhase(double);
837 method @Deprecated public void setCarrierPhaseUncertainty(double);
838 method @Deprecated public void setCn0InDbHz(double);
839 method @Deprecated public void setCodePhaseInChips(double);
840 method @Deprecated public void setCodePhaseUncertaintyInChips(double);
841 method @Deprecated public void setDopplerShiftInHz(double);
842 method @Deprecated public void setDopplerShiftUncertaintyInHz(double);
843 method @Deprecated public void setElevationInDeg(double);
844 method @Deprecated public void setElevationUncertaintyInDeg(double);
845 method @Deprecated public void setLossOfLock(byte);
846 method @Deprecated public void setMultipathIndicator(byte);
847 method @Deprecated public void setPrn(byte);
848 method @Deprecated public void setPseudorangeInMeters(double);
849 method @Deprecated public void setPseudorangeRateInMetersPerSec(double);
850 method @Deprecated public void setPseudorangeRateUncertaintyInMetersPerSec(double);
851 method @Deprecated public void setPseudorangeUncertaintyInMeters(double);
852 method @Deprecated public void setReceivedGpsTowInNs(long);
853 method @Deprecated public void setReceivedGpsTowUncertaintyInNs(long);
854 method @Deprecated public void setSnrInDb(double);
855 method @Deprecated public void setState(short);
856 method @Deprecated public void setTimeFromLastBitInMs(short);
857 method @Deprecated public void setTimeOffsetInNs(double);
858 method @Deprecated public void setUsedInFix(boolean);
859 method @Deprecated public void writeToParcel(android.os.Parcel, int);
860 field @Deprecated public static final short ADR_STATE_CYCLE_SLIP = 4; // 0x4
861 field @Deprecated public static final short ADR_STATE_RESET = 2; // 0x2
862 field @Deprecated public static final short ADR_STATE_UNKNOWN = 0; // 0x0
863 field @Deprecated public static final short ADR_STATE_VALID = 1; // 0x1
864 field @Deprecated @NonNull public static final android.os.Parcelable.Creator<android.location.GpsMeasurement> CREATOR;
865 field @Deprecated public static final byte LOSS_OF_LOCK_CYCLE_SLIP = 2; // 0x2
866 field @Deprecated public static final byte LOSS_OF_LOCK_OK = 1; // 0x1
867 field @Deprecated public static final byte LOSS_OF_LOCK_UNKNOWN = 0; // 0x0
868 field @Deprecated public static final byte MULTIPATH_INDICATOR_DETECTED = 1; // 0x1
869 field @Deprecated public static final byte MULTIPATH_INDICATOR_NOT_USED = 2; // 0x2
870 field @Deprecated public static final byte MULTIPATH_INDICATOR_UNKNOWN = 0; // 0x0
871 field @Deprecated public static final short STATE_BIT_SYNC = 2; // 0x2
872 field @Deprecated public static final short STATE_CODE_LOCK = 1; // 0x1
873 field @Deprecated public static final short STATE_MSEC_AMBIGUOUS = 16; // 0x10
874 field @Deprecated public static final short STATE_SUBFRAME_SYNC = 4; // 0x4
875 field @Deprecated public static final short STATE_TOW_DECODED = 8; // 0x8
876 field @Deprecated public static final short STATE_UNKNOWN = 0; // 0x0
877 }
878
879 @Deprecated public class GpsMeasurementsEvent implements android.os.Parcelable {
880 ctor @Deprecated public GpsMeasurementsEvent(android.location.GpsClock, android.location.GpsMeasurement[]);
881 method @Deprecated public int describeContents();
882 method @Deprecated @NonNull public android.location.GpsClock getClock();
883 method @Deprecated @NonNull public java.util.Collection<android.location.GpsMeasurement> getMeasurements();
884 method @Deprecated public void writeToParcel(android.os.Parcel, int);
885 field @Deprecated @NonNull public static final android.os.Parcelable.Creator<android.location.GpsMeasurementsEvent> CREATOR;
886 field @Deprecated public static final int STATUS_GPS_LOCATION_DISABLED = 2; // 0x2
887 field @Deprecated public static final int STATUS_NOT_SUPPORTED = 0; // 0x0
888 field @Deprecated public static final int STATUS_READY = 1; // 0x1
889 }
890
891 @Deprecated public static interface GpsMeasurementsEvent.Listener {
892 method @Deprecated public void onGpsMeasurementsReceived(android.location.GpsMeasurementsEvent);
893 method @Deprecated public void onStatusChanged(int);
894 }
895
896 @Deprecated public class GpsNavigationMessage implements android.os.Parcelable {
897 method @Deprecated public int describeContents();
898 method @Deprecated @NonNull public byte[] getData();
899 method @Deprecated public short getMessageId();
900 method @Deprecated public byte getPrn();
901 method @Deprecated public short getStatus();
902 method @Deprecated public short getSubmessageId();
903 method @Deprecated public byte getType();
904 method @Deprecated public void reset();
905 method @Deprecated public void set(android.location.GpsNavigationMessage);
906 method @Deprecated public void setData(byte[]);
907 method @Deprecated public void setMessageId(short);
908 method @Deprecated public void setPrn(byte);
909 method @Deprecated public void setStatus(short);
910 method @Deprecated public void setSubmessageId(short);
911 method @Deprecated public void setType(byte);
912 method @Deprecated public void writeToParcel(android.os.Parcel, int);
913 field @Deprecated @NonNull public static final android.os.Parcelable.Creator<android.location.GpsNavigationMessage> CREATOR;
914 field @Deprecated public static final short STATUS_PARITY_PASSED = 1; // 0x1
915 field @Deprecated public static final short STATUS_PARITY_REBUILT = 2; // 0x2
916 field @Deprecated public static final short STATUS_UNKNOWN = 0; // 0x0
917 field @Deprecated public static final byte TYPE_CNAV2 = 4; // 0x4
918 field @Deprecated public static final byte TYPE_L1CA = 1; // 0x1
919 field @Deprecated public static final byte TYPE_L2CNAV = 2; // 0x2
920 field @Deprecated public static final byte TYPE_L5CNAV = 3; // 0x3
921 field @Deprecated public static final byte TYPE_UNKNOWN = 0; // 0x0
922 }
923
924 @Deprecated public class GpsNavigationMessageEvent implements android.os.Parcelable {
925 ctor @Deprecated public GpsNavigationMessageEvent(android.location.GpsNavigationMessage);
926 method @Deprecated public int describeContents();
927 method @Deprecated @NonNull public android.location.GpsNavigationMessage getNavigationMessage();
928 method @Deprecated public void writeToParcel(android.os.Parcel, int);
929 field @Deprecated @NonNull public static final android.os.Parcelable.Creator<android.location.GpsNavigationMessageEvent> CREATOR;
930 field @Deprecated public static int STATUS_GPS_LOCATION_DISABLED;
931 field @Deprecated public static int STATUS_NOT_SUPPORTED;
932 field @Deprecated public static int STATUS_READY;
933 }
934
935 @Deprecated public static interface GpsNavigationMessageEvent.Listener {
936 method @Deprecated public void onGpsNavigationMessageReceived(android.location.GpsNavigationMessageEvent);
937 method @Deprecated public void onStatusChanged(int);
938 }
939
Shinru Hanb39d62d2024-12-06 03:43:44 +0000940 @FlaggedApi("android.location.flags.gnss_assistance_interface") public final class GpsSatelliteEphemeris implements android.os.Parcelable {
941 method public int describeContents();
942 method @NonNull public android.location.GpsSatelliteEphemeris.GpsL2Params getGpsL2Params();
Shinru Hanb39d62d2024-12-06 03:43:44 +0000943 method @NonNull public android.location.GpsSatelliteEphemeris.GpsSatelliteClockModel getSatelliteClockModel();
944 method @NonNull public android.location.SatelliteEphemerisTime getSatelliteEphemerisTime();
945 method @NonNull public android.location.GpsSatelliteEphemeris.GpsSatelliteHealth getSatelliteHealth();
946 method @NonNull public android.location.KeplerianOrbitModel getSatelliteOrbitModel();
Shinru Han03f52952024-12-16 05:54:11 -0800947 method @IntRange(from=1, to=32) public int getSvid();
Shinru Hanb39d62d2024-12-06 03:43:44 +0000948 method public void writeToParcel(@NonNull android.os.Parcel, int);
949 field @NonNull public static final android.os.Parcelable.Creator<android.location.GpsSatelliteEphemeris> CREATOR;
950 }
951
952 public static final class GpsSatelliteEphemeris.Builder {
953 ctor public GpsSatelliteEphemeris.Builder();
954 method @NonNull public android.location.GpsSatelliteEphemeris build();
955 method @NonNull public android.location.GpsSatelliteEphemeris.Builder setGpsL2Params(@NonNull android.location.GpsSatelliteEphemeris.GpsL2Params);
Shinru Hanb39d62d2024-12-06 03:43:44 +0000956 method @NonNull public android.location.GpsSatelliteEphemeris.Builder setSatelliteClockModel(@NonNull android.location.GpsSatelliteEphemeris.GpsSatelliteClockModel);
957 method @NonNull public android.location.GpsSatelliteEphemeris.Builder setSatelliteEphemerisTime(@NonNull android.location.SatelliteEphemerisTime);
958 method @NonNull public android.location.GpsSatelliteEphemeris.Builder setSatelliteHealth(@NonNull android.location.GpsSatelliteEphemeris.GpsSatelliteHealth);
959 method @NonNull public android.location.GpsSatelliteEphemeris.Builder setSatelliteOrbitModel(@NonNull android.location.KeplerianOrbitModel);
Shinru Han03f52952024-12-16 05:54:11 -0800960 method @NonNull public android.location.GpsSatelliteEphemeris.Builder setSvid(@IntRange(from=1, to=32) int);
Shinru Hanb39d62d2024-12-06 03:43:44 +0000961 }
962
963 public static final class GpsSatelliteEphemeris.GpsL2Params implements android.os.Parcelable {
964 method public int describeContents();
965 method @IntRange(from=0, to=3) public int getL2Code();
966 method @IntRange(from=0, to=1) public int getL2Flag();
967 method public void writeToParcel(@NonNull android.os.Parcel, int);
968 field @NonNull public static final android.os.Parcelable.Creator<android.location.GpsSatelliteEphemeris.GpsL2Params> CREATOR;
969 }
970
971 public static final class GpsSatelliteEphemeris.GpsL2Params.Builder {
972 ctor public GpsSatelliteEphemeris.GpsL2Params.Builder();
973 method @NonNull public android.location.GpsSatelliteEphemeris.GpsL2Params build();
974 method @NonNull public android.location.GpsSatelliteEphemeris.GpsL2Params.Builder setL2Code(@IntRange(from=0, to=3) int);
975 method @NonNull public android.location.GpsSatelliteEphemeris.GpsL2Params.Builder setL2Flag(@IntRange(from=0, to=1) int);
976 }
977
978 public static final class GpsSatelliteEphemeris.GpsSatelliteClockModel implements android.os.Parcelable {
979 method public int describeContents();
980 method @FloatRange(from=-0.00977F, to=0.00977f) public double getAf0();
981 method @FloatRange(from=-3.73E-9F, to=3.73E-9f) public double getAf1();
982 method @FloatRange(from=-3.56E-15F, to=3.56E-15f) public double getAf2();
983 method @IntRange(from=0, to=1023) public int getIodc();
984 method @FloatRange(from=-5.97E-8F, to=5.97E-8f) public double getTgd();
985 method @IntRange(from=0) public long getTimeOfClockSeconds();
986 method public void writeToParcel(@NonNull android.os.Parcel, int);
987 field @NonNull public static final android.os.Parcelable.Creator<android.location.GpsSatelliteEphemeris.GpsSatelliteClockModel> CREATOR;
988 }
989
990 public static final class GpsSatelliteEphemeris.GpsSatelliteClockModel.Builder {
991 ctor public GpsSatelliteEphemeris.GpsSatelliteClockModel.Builder();
992 method @NonNull public android.location.GpsSatelliteEphemeris.GpsSatelliteClockModel build();
993 method @NonNull public android.location.GpsSatelliteEphemeris.GpsSatelliteClockModel.Builder setAf0(@FloatRange(from=-0.00977F, to=0.00977f) double);
994 method @NonNull public android.location.GpsSatelliteEphemeris.GpsSatelliteClockModel.Builder setAf1(@FloatRange(from=-3.73E-9F, to=3.73E-9f) double);
995 method @NonNull public android.location.GpsSatelliteEphemeris.GpsSatelliteClockModel.Builder setAf2(@FloatRange(from=-3.56E-15F, to=3.56E-15f) double);
996 method @NonNull public android.location.GpsSatelliteEphemeris.GpsSatelliteClockModel.Builder setIodc(@IntRange(from=0, to=1023) int);
997 method @NonNull public android.location.GpsSatelliteEphemeris.GpsSatelliteClockModel.Builder setTgd(@FloatRange(from=-5.97E-8F, to=5.97E-8f) double);
998 method @NonNull public android.location.GpsSatelliteEphemeris.GpsSatelliteClockModel.Builder setTimeOfClockSeconds(@IntRange(from=0) long);
999 }
1000
1001 public static final class GpsSatelliteEphemeris.GpsSatelliteHealth implements android.os.Parcelable {
1002 method public int describeContents();
1003 method @FloatRange(from=0.0f) public double getFitInt();
1004 method @FloatRange(from=0.0f, to=8192.0f) public double getSvAccur();
1005 method @IntRange(from=0, to=63) public int getSvHealth();
1006 method public void writeToParcel(@NonNull android.os.Parcel, int);
1007 field @NonNull public static final android.os.Parcelable.Creator<android.location.GpsSatelliteEphemeris.GpsSatelliteHealth> CREATOR;
1008 }
1009
1010 public static final class GpsSatelliteEphemeris.GpsSatelliteHealth.Builder {
1011 ctor public GpsSatelliteEphemeris.GpsSatelliteHealth.Builder();
1012 method @NonNull public android.location.GpsSatelliteEphemeris.GpsSatelliteHealth build();
1013 method @NonNull public android.location.GpsSatelliteEphemeris.GpsSatelliteHealth.Builder setFitInt(@FloatRange(from=0.0f) double);
1014 method @NonNull public android.location.GpsSatelliteEphemeris.GpsSatelliteHealth.Builder setSvAccur(@FloatRange(from=0.0f, to=8192.0f) double);
1015 method @NonNull public android.location.GpsSatelliteEphemeris.GpsSatelliteHealth.Builder setSvHealth(@IntRange(from=0, to=63) int);
1016 }
1017
1018 @FlaggedApi("android.location.flags.gnss_assistance_interface") public final class IonosphericCorrection implements android.os.Parcelable {
1019 ctor public IonosphericCorrection(@IntRange(from=0) long, @NonNull android.location.GnssCorrectionComponent);
1020 method public int describeContents();
1021 method @IntRange(from=0) public long getCarrierFrequencyHz();
1022 method @NonNull public android.location.GnssCorrectionComponent getIonosphericCorrection();
1023 method public void writeToParcel(@NonNull android.os.Parcel, int);
1024 field @NonNull public static final android.os.Parcelable.Creator<android.location.IonosphericCorrection> CREATOR;
1025 }
1026
1027 @FlaggedApi("android.location.flags.gnss_assistance_interface") public final class KeplerianOrbitModel implements android.os.Parcelable {
1028 method public int describeContents();
1029 method @FloatRange(from=-1.18E-8F, to=1.18E-8f) public double getDeltaN();
1030 method @FloatRange(from=0.0f, to=0.5f) public double getEccentricity();
1031 method @FloatRange(from=-3.15F, to=3.15f) public double getI0();
1032 method @FloatRange(from=-2.94E-9F, to=2.94E-9f) public double getIDot();
1033 method @FloatRange(from=-3.15F, to=3.15f) public double getM0();
1034 method @FloatRange(from=-3.15F, to=3.15f) public double getOmega();
1035 method @FloatRange(from=-3.15F, to=3.15f) public double getOmega0();
1036 method @FloatRange(from=-3.1E-6F, to=3.1E-6f) public double getOmegaDot();
1037 method @FloatRange(from=0.0f, to=8192.0f) public double getRootA();
1038 method @NonNull public android.location.KeplerianOrbitModel.SecondOrderHarmonicPerturbation getSecondOrderHarmonicPerturbation();
1039 method public void writeToParcel(@NonNull android.os.Parcel, int);
1040 field @NonNull public static final android.os.Parcelable.Creator<android.location.KeplerianOrbitModel> CREATOR;
1041 }
1042
1043 public static final class KeplerianOrbitModel.Builder {
1044 ctor public KeplerianOrbitModel.Builder();
1045 method @NonNull public android.location.KeplerianOrbitModel build();
1046 method @NonNull public android.location.KeplerianOrbitModel.Builder setDeltaN(@FloatRange(from=-1.18E-8F, to=1.18E-8f) double);
1047 method @NonNull public android.location.KeplerianOrbitModel.Builder setEccentricity(@FloatRange(from=0.0f, to=0.5f) double);
1048 method @NonNull public android.location.KeplerianOrbitModel.Builder setI0(@FloatRange(from=-3.15F, to=3.15f) double);
1049 method @NonNull public android.location.KeplerianOrbitModel.Builder setIDot(@FloatRange(from=-2.94E-9F, to=2.94E-9f) double);
1050 method @NonNull public android.location.KeplerianOrbitModel.Builder setM0(@FloatRange(from=-3.15F, to=3.15f) double);
1051 method @NonNull public android.location.KeplerianOrbitModel.Builder setOmega(@FloatRange(from=-3.15F, to=3.15f) double);
1052 method @NonNull public android.location.KeplerianOrbitModel.Builder setOmega0(@FloatRange(from=-3.15F, to=3.15f) double);
1053 method @NonNull public android.location.KeplerianOrbitModel.Builder setOmegaDot(@FloatRange(from=-3.1E-6F, to=3.1E-6f) double);
1054 method @NonNull public android.location.KeplerianOrbitModel.Builder setRootA(@FloatRange(from=0.0f, to=8192.0f) double);
1055 method @NonNull public android.location.KeplerianOrbitModel.Builder setSecondOrderHarmonicPerturbation(@NonNull android.location.KeplerianOrbitModel.SecondOrderHarmonicPerturbation);
1056 }
1057
1058 public static final class KeplerianOrbitModel.SecondOrderHarmonicPerturbation implements android.os.Parcelable {
1059 method public int describeContents();
1060 method @FloatRange(from=-6.11E-5F, to=6.11E-5f) public double getCic();
1061 method @FloatRange(from=-6.11E-5F, to=6.11E-5f) public double getCis();
1062 method @FloatRange(from=-2048.0F, to=2048.0f) public double getCrc();
1063 method @FloatRange(from=-2048.0F, to=2048.0f) public double getCrs();
1064 method @FloatRange(from=-6.11E-5F, to=6.11E-5f) public double getCuc();
1065 method @FloatRange(from=-6.11E-5F, to=6.11E-5f) public double getCus();
1066 method public void writeToParcel(@NonNull android.os.Parcel, int);
1067 field @NonNull public static final android.os.Parcelable.Creator<android.location.KeplerianOrbitModel.SecondOrderHarmonicPerturbation> CREATOR;
1068 }
1069
1070 public static final class KeplerianOrbitModel.SecondOrderHarmonicPerturbation.Builder {
1071 ctor public KeplerianOrbitModel.SecondOrderHarmonicPerturbation.Builder();
1072 method @NonNull public android.location.KeplerianOrbitModel.SecondOrderHarmonicPerturbation build();
1073 method @NonNull public android.location.KeplerianOrbitModel.SecondOrderHarmonicPerturbation.Builder setCic(@FloatRange(from=-6.11E-5F, to=6.11E-5f) double);
1074 method @NonNull public android.location.KeplerianOrbitModel.SecondOrderHarmonicPerturbation.Builder setCis(@FloatRange(from=-6.11E-5F, to=6.11E-5f) double);
1075 method @NonNull public android.location.KeplerianOrbitModel.SecondOrderHarmonicPerturbation.Builder setCrc(@FloatRange(from=-2048.0F, to=2048.0f) double);
1076 method @NonNull public android.location.KeplerianOrbitModel.SecondOrderHarmonicPerturbation.Builder setCrs(@FloatRange(from=-2048.0F, to=2048.0f) double);
1077 method @NonNull public android.location.KeplerianOrbitModel.SecondOrderHarmonicPerturbation.Builder setCuc(@FloatRange(from=-6.11E-5F, to=6.11E-5f) double);
1078 method @NonNull public android.location.KeplerianOrbitModel.SecondOrderHarmonicPerturbation.Builder setCus(@FloatRange(from=-6.11E-5F, to=6.11E-5f) double);
1079 }
1080
1081 @FlaggedApi("android.location.flags.gnss_assistance_interface") public final class KlobucharIonosphericModel implements android.os.Parcelable {
1082 method public int describeContents();
1083 method @FloatRange(from=-1.193E-7F, to=1.193E-7f) public double getAlpha0();
1084 method @FloatRange(from=-9.54E-7F, to=9.54E-7f) public double getAlpha1();
1085 method @FloatRange(from=-7.63E-6F, to=7.63E-6f) public double getAlpha2();
1086 method @FloatRange(from=-7.63E-6F, to=7.63E-6f) public double getAlpha3();
1087 method @FloatRange(from=-262144.0F, to=262144.0f) public double getBeta0();
1088 method @FloatRange(from=-2097152.0F, to=2097152.0f) public double getBeta1();
1089 method @FloatRange(from=-8388608.0F, to=8388608.0f) public double getBeta2();
1090 method @FloatRange(from=-8388608.0F, to=8388608.0f) public double getBeta3();
1091 method public void writeToParcel(@NonNull android.os.Parcel, int);
1092 field @NonNull public static final android.os.Parcelable.Creator<android.location.KlobucharIonosphericModel> CREATOR;
1093 }
1094
1095 public static final class KlobucharIonosphericModel.Builder {
1096 ctor public KlobucharIonosphericModel.Builder();
1097 method @NonNull public android.location.KlobucharIonosphericModel build();
1098 method @NonNull public android.location.KlobucharIonosphericModel.Builder setAlpha0(@FloatRange(from=-1.193E-7F, to=1.193E-7f) double);
1099 method @NonNull public android.location.KlobucharIonosphericModel.Builder setAlpha1(@FloatRange(from=-9.54E-7F, to=9.54E-7f) double);
1100 method @NonNull public android.location.KlobucharIonosphericModel.Builder setAlpha2(@FloatRange(from=-7.63E-6F, to=7.63E-6f) double);
1101 method @NonNull public android.location.KlobucharIonosphericModel.Builder setAlpha3(@FloatRange(from=-7.63E-6F, to=7.63E-6f) double);
1102 method @NonNull public android.location.KlobucharIonosphericModel.Builder setBeta0(@FloatRange(from=-262144.0F, to=262144.0f) double);
1103 method @NonNull public android.location.KlobucharIonosphericModel.Builder setBeta1(@FloatRange(from=-2097152.0F, to=2097152.0f) double);
1104 method @NonNull public android.location.KlobucharIonosphericModel.Builder setBeta2(@FloatRange(from=-8388608.0F, to=8388608.0f) double);
1105 method @NonNull public android.location.KlobucharIonosphericModel.Builder setBeta3(@FloatRange(from=-8388608.0F, to=8388608.0f) double);
1106 }
1107
Mark White5b3c64d2023-08-17 23:53:46 +00001108 public final class LastLocationRequest implements android.os.Parcelable {
1109 method public int describeContents();
1110 method public boolean isAdasGnssBypass();
1111 method public boolean isHiddenFromAppOps();
1112 method public boolean isLocationSettingsIgnored();
1113 method public void writeToParcel(@NonNull android.os.Parcel, int);
1114 field @NonNull public static final android.os.Parcelable.Creator<android.location.LastLocationRequest> CREATOR;
1115 }
1116
1117 public static final class LastLocationRequest.Builder {
1118 ctor public LastLocationRequest.Builder();
1119 ctor public LastLocationRequest.Builder(@NonNull android.location.LastLocationRequest);
1120 method @NonNull public android.location.LastLocationRequest build();
1121 method @NonNull @RequiresPermission(android.Manifest.permission.LOCATION_BYPASS) public android.location.LastLocationRequest.Builder setAdasGnssBypass(boolean);
1122 method @NonNull @RequiresPermission(android.Manifest.permission.UPDATE_APP_OPS_STATS) public android.location.LastLocationRequest.Builder setHiddenFromAppOps(boolean);
1123 method @NonNull @RequiresPermission(android.Manifest.permission.LOCATION_BYPASS) public android.location.LastLocationRequest.Builder setLocationSettingsIgnored(boolean);
1124 }
1125
Shinru Hanb39d62d2024-12-06 03:43:44 +00001126 @FlaggedApi("android.location.flags.gnss_assistance_interface") public final class LeapSecondsModel implements android.os.Parcelable {
1127 method public int describeContents();
1128 method @IntRange(from=0) public int getDayNumberLeapSecondsFuture();
1129 method @IntRange(from=0) public int getLeapSeconds();
1130 method @IntRange(from=0) public int getLeapSecondsFuture();
1131 method @IntRange(from=0) public int getWeekNumberLeapSecondsFuture();
1132 method public void writeToParcel(@NonNull android.os.Parcel, int);
1133 field @NonNull public static final android.os.Parcelable.Creator<android.location.LeapSecondsModel> CREATOR;
1134 }
1135
1136 public static final class LeapSecondsModel.Builder {
1137 ctor public LeapSecondsModel.Builder();
1138 method @NonNull public android.location.LeapSecondsModel build();
1139 method @NonNull public android.location.LeapSecondsModel.Builder setDayNumberLeapSecondsFuture(@IntRange(from=0) int);
1140 method @NonNull public android.location.LeapSecondsModel.Builder setLeapSeconds(@IntRange(from=0) int);
1141 method @NonNull public android.location.LeapSecondsModel.Builder setLeapSecondsFuture(@IntRange(from=0) int);
1142 method @NonNull public android.location.LeapSecondsModel.Builder setWeekNumberLeapSecondsFuture(@IntRange(from=0) int);
1143 }
1144
Mark White5b3c64d2023-08-17 23:53:46 +00001145 public class LocationManager {
Soonil Nagarkard1e55512024-08-22 13:23:03 -07001146 method @Deprecated @FlaggedApi("android.location.flags.deprecate_provider_request_apis") @RequiresPermission(allOf={android.Manifest.permission.LOCATION_HARDWARE, android.Manifest.permission.INTERACT_ACROSS_USERS}) public void addProviderRequestChangedListener(@NonNull java.util.concurrent.Executor, @NonNull android.location.provider.ProviderRequest.ChangedListener);
Mark White5b3c64d2023-08-17 23:53:46 +00001147 method @Deprecated @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void flushGnssBatch();
1148 method @Deprecated @RequiresPermission(anyOf={android.Manifest.permission.ACCESS_COARSE_LOCATION, android.Manifest.permission.ACCESS_FINE_LOCATION}) public void getCurrentLocation(@NonNull android.location.LocationRequest, @Nullable android.os.CancellationSignal, @NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer<android.location.Location>);
1149 method @Nullable public String getExtraLocationControllerPackage();
1150 method @Deprecated public int getGnssBatchSize();
1151 method @Nullable @RequiresPermission(anyOf={android.Manifest.permission.ACCESS_COARSE_LOCATION, android.Manifest.permission.ACCESS_FINE_LOCATION}) public android.location.Location getLastKnownLocation(@NonNull String, @NonNull android.location.LastLocationRequest);
1152 method @RequiresPermission(android.Manifest.permission.ACCESS_FINE_LOCATION) public void injectGnssMeasurementCorrections(@NonNull android.location.GnssMeasurementCorrections);
1153 method public boolean isAdasGnssLocationEnabled();
1154 method public boolean isExtraLocationControllerPackageEnabled();
1155 method public boolean isLocationEnabledForUser(@NonNull android.os.UserHandle);
1156 method public boolean isProviderEnabledForUser(@NonNull String, @NonNull android.os.UserHandle);
1157 method @Deprecated @RequiresPermission(android.Manifest.permission.READ_DEVICE_CONFIG) public boolean isProviderPackage(@NonNull String);
1158 method @RequiresPermission(android.Manifest.permission.READ_DEVICE_CONFIG) public boolean isProviderPackage(@Nullable String, @NonNull String, @Nullable String);
1159 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);
1160 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);
Soonil Nagarkard1e55512024-08-22 13:23:03 -07001161 method @Deprecated @FlaggedApi("android.location.flags.deprecate_provider_request_apis") @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void removeProviderRequestChangedListener(@NonNull android.location.provider.ProviderRequest.ChangedListener);
Mark White5b3c64d2023-08-17 23:53:46 +00001162 method @Deprecated @RequiresPermission(anyOf={android.Manifest.permission.ACCESS_COARSE_LOCATION, android.Manifest.permission.ACCESS_FINE_LOCATION}) public void requestLocationUpdates(@Nullable android.location.LocationRequest, @NonNull android.location.LocationListener, @Nullable android.os.Looper);
1163 method @Deprecated @RequiresPermission(anyOf={android.Manifest.permission.ACCESS_COARSE_LOCATION, android.Manifest.permission.ACCESS_FINE_LOCATION}) public void requestLocationUpdates(@Nullable android.location.LocationRequest, @NonNull java.util.concurrent.Executor, @NonNull android.location.LocationListener);
1164 method @Deprecated @RequiresPermission(anyOf={android.Manifest.permission.ACCESS_COARSE_LOCATION, android.Manifest.permission.ACCESS_FINE_LOCATION}) public void requestLocationUpdates(@Nullable android.location.LocationRequest, @NonNull android.app.PendingIntent);
1165 method @RequiresPermission(android.Manifest.permission.LOCATION_BYPASS) public void setAdasGnssLocationEnabled(boolean);
1166 method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void setExtraLocationControllerPackage(@Nullable String);
1167 method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void setExtraLocationControllerPackageEnabled(boolean);
1168 method @RequiresPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS) public void setLocationEnabledForUser(boolean, @NonNull android.os.UserHandle);
1169 method @Deprecated @RequiresPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS) public boolean setProviderEnabledForUser(@NonNull String, boolean, @NonNull android.os.UserHandle);
1170 method @Deprecated @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public boolean unregisterGnssBatchedLocationCallback(@NonNull android.location.BatchedLocationCallback);
1171 field public static final String ACTION_ADAS_GNSS_ENABLED_CHANGED = "android.location.action.ADAS_GNSS_ENABLED_CHANGED";
1172 field public static final String EXTRA_ADAS_GNSS_ENABLED = "android.location.extra.ADAS_GNSS_ENABLED";
1173 field @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public static final String GPS_HARDWARE_PROVIDER = "gps_hardware";
1174 }
1175
1176 public final class LocationRequest implements android.os.Parcelable {
1177 method @Deprecated @NonNull public static android.location.LocationRequest create();
1178 method @Deprecated @NonNull public static android.location.LocationRequest createFromDeprecatedCriteria(@NonNull android.location.Criteria, long, float, boolean);
1179 method @Deprecated @NonNull public static android.location.LocationRequest createFromDeprecatedProvider(@NonNull String, long, float, boolean);
1180 method @Deprecated public long getExpireAt();
1181 method @Deprecated public long getExpireIn();
1182 method @Deprecated public long getFastestInterval();
1183 method @Deprecated public boolean getHideFromAppOps();
1184 method @Deprecated public long getInterval();
1185 method @Deprecated public int getNumUpdates();
1186 method @Deprecated @NonNull public String getProvider();
1187 method @Deprecated public float getSmallestDisplacement();
1188 method @NonNull public android.os.WorkSource getWorkSource();
1189 method public boolean isAdasGnssBypass();
1190 method public boolean isHiddenFromAppOps();
1191 method public boolean isLocationSettingsIgnored();
1192 method public boolean isLowPower();
1193 method @Deprecated public boolean isLowPowerMode();
1194 method @Deprecated @NonNull public android.location.LocationRequest setExpireAt(long);
1195 method @Deprecated @NonNull public android.location.LocationRequest setExpireIn(long);
1196 method @Deprecated @NonNull public android.location.LocationRequest setFastestInterval(long);
1197 method @Deprecated public void setHideFromAppOps(boolean);
1198 method @Deprecated @NonNull public android.location.LocationRequest setInterval(long);
1199 method @Deprecated @NonNull @RequiresPermission(android.Manifest.permission.LOCATION_BYPASS) public android.location.LocationRequest setLocationSettingsIgnored(boolean);
1200 method @Deprecated @NonNull public android.location.LocationRequest setLowPowerMode(boolean);
1201 method @Deprecated @NonNull public android.location.LocationRequest setNumUpdates(int);
1202 method @Deprecated @NonNull public android.location.LocationRequest setProvider(@NonNull String);
1203 method @Deprecated @NonNull public android.location.LocationRequest setQuality(int);
1204 method @Deprecated @NonNull public android.location.LocationRequest setSmallestDisplacement(float);
1205 method @Deprecated public void setWorkSource(@Nullable android.os.WorkSource);
1206 field @Deprecated public static final int ACCURACY_BLOCK = 102; // 0x66
1207 field @Deprecated public static final int ACCURACY_CITY = 104; // 0x68
1208 field @Deprecated public static final int ACCURACY_FINE = 100; // 0x64
1209 field @Deprecated public static final int POWER_HIGH = 203; // 0xcb
1210 field @Deprecated public static final int POWER_LOW = 201; // 0xc9
1211 field @Deprecated public static final int POWER_NONE = 200; // 0xc8
1212 }
1213
1214 public static final class LocationRequest.Builder {
1215 method @NonNull @RequiresPermission(android.Manifest.permission.LOCATION_BYPASS) public android.location.LocationRequest.Builder setAdasGnssBypass(boolean);
1216 method @NonNull @RequiresPermission(android.Manifest.permission.UPDATE_APP_OPS_STATS) public android.location.LocationRequest.Builder setHiddenFromAppOps(boolean);
1217 method @NonNull @RequiresPermission(android.Manifest.permission.LOCATION_BYPASS) public android.location.LocationRequest.Builder setLocationSettingsIgnored(boolean);
1218 method @NonNull @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public android.location.LocationRequest.Builder setLowPower(boolean);
1219 method @NonNull @RequiresPermission(android.Manifest.permission.UPDATE_DEVICE_STATS) public android.location.LocationRequest.Builder setWorkSource(@Nullable android.os.WorkSource);
1220 }
1221
Shinru Hanb39d62d2024-12-06 03:43:44 +00001222 @FlaggedApi("android.location.flags.gnss_assistance_interface") public final class QzssAssistance implements android.os.Parcelable {
1223 method public int describeContents();
1224 method @Nullable public android.location.GnssAlmanac getAlmanac();
1225 method @Nullable public android.location.KlobucharIonosphericModel getIonosphericModel();
1226 method @Nullable public android.location.LeapSecondsModel getLeapSecondsModel();
1227 method @NonNull public java.util.List<android.location.RealTimeIntegrityModel> getRealTimeIntegrityModels();
1228 method @NonNull public java.util.List<android.location.GnssAssistance.GnssSatelliteCorrections> getSatelliteCorrections();
1229 method @NonNull public java.util.List<android.location.QzssSatelliteEphemeris> getSatelliteEphemeris();
1230 method @NonNull public java.util.List<android.location.TimeModel> getTimeModels();
1231 method @Nullable public android.location.UtcModel getUtcModel();
1232 method public void writeToParcel(@NonNull android.os.Parcel, int);
1233 field @NonNull public static final android.os.Parcelable.Creator<android.location.QzssAssistance> CREATOR;
1234 }
1235
1236 public static final class QzssAssistance.Builder {
1237 ctor public QzssAssistance.Builder();
1238 method @NonNull public android.location.QzssAssistance build();
1239 method @NonNull public android.location.QzssAssistance.Builder setAlmanac(@Nullable android.location.GnssAlmanac);
1240 method @NonNull public android.location.QzssAssistance.Builder setIonosphericModel(@Nullable android.location.KlobucharIonosphericModel);
1241 method @NonNull public android.location.QzssAssistance.Builder setLeapSecondsModel(@Nullable android.location.LeapSecondsModel);
1242 method @NonNull public android.location.QzssAssistance.Builder setRealTimeIntegrityModels(@Nullable java.util.List<android.location.RealTimeIntegrityModel>);
1243 method @NonNull public android.location.QzssAssistance.Builder setSatelliteCorrections(@Nullable java.util.List<android.location.GnssAssistance.GnssSatelliteCorrections>);
1244 method @NonNull public android.location.QzssAssistance.Builder setSatelliteEphemeris(@Nullable java.util.List<android.location.QzssSatelliteEphemeris>);
1245 method @NonNull public android.location.QzssAssistance.Builder setTimeModels(@Nullable java.util.List<android.location.TimeModel>);
1246 method @NonNull public android.location.QzssAssistance.Builder setUtcModel(@Nullable android.location.UtcModel);
1247 }
1248
1249 @FlaggedApi("android.location.flags.gnss_assistance_interface") public final class QzssSatelliteEphemeris implements android.os.Parcelable {
1250 method public int describeContents();
1251 method @NonNull public android.location.GpsSatelliteEphemeris.GpsL2Params getGpsL2Params();
Shinru Hanb39d62d2024-12-06 03:43:44 +00001252 method @NonNull public android.location.GpsSatelliteEphemeris.GpsSatelliteClockModel getSatelliteClockModel();
1253 method @NonNull public android.location.SatelliteEphemerisTime getSatelliteEphemerisTime();
1254 method @NonNull public android.location.GpsSatelliteEphemeris.GpsSatelliteHealth getSatelliteHealth();
1255 method @NonNull public android.location.KeplerianOrbitModel getSatelliteOrbitModel();
Shinru Han03f52952024-12-16 05:54:11 -08001256 method @IntRange(from=183, to=206) public int getSvid();
Shinru Hanb39d62d2024-12-06 03:43:44 +00001257 method public void writeToParcel(@NonNull android.os.Parcel, int);
1258 field @NonNull public static final android.os.Parcelable.Creator<android.location.QzssSatelliteEphemeris> CREATOR;
1259 }
1260
1261 public static final class QzssSatelliteEphemeris.Builder {
1262 ctor public QzssSatelliteEphemeris.Builder();
1263 method @NonNull public android.location.QzssSatelliteEphemeris build();
1264 method @NonNull public android.location.QzssSatelliteEphemeris.Builder setGpsL2Params(@NonNull android.location.GpsSatelliteEphemeris.GpsL2Params);
Shinru Hanb39d62d2024-12-06 03:43:44 +00001265 method @NonNull public android.location.QzssSatelliteEphemeris.Builder setSatelliteClockModel(@NonNull android.location.GpsSatelliteEphemeris.GpsSatelliteClockModel);
1266 method @NonNull public android.location.QzssSatelliteEphemeris.Builder setSatelliteEphemerisTime(@NonNull android.location.SatelliteEphemerisTime);
1267 method @NonNull public android.location.QzssSatelliteEphemeris.Builder setSatelliteHealth(@NonNull android.location.GpsSatelliteEphemeris.GpsSatelliteHealth);
1268 method @NonNull public android.location.QzssSatelliteEphemeris.Builder setSatelliteOrbitModel(@NonNull android.location.KeplerianOrbitModel);
Shinru Han03f52952024-12-16 05:54:11 -08001269 method @NonNull public android.location.QzssSatelliteEphemeris.Builder setSvid(@IntRange(from=183, to=206) int);
Shinru Hanb39d62d2024-12-06 03:43:44 +00001270 }
1271
1272 @FlaggedApi("android.location.flags.gnss_assistance_interface") public final class RealTimeIntegrityModel implements android.os.Parcelable {
1273 method public int describeContents();
1274 method @NonNull public String getAdvisoryNumber();
1275 method @NonNull public String getAdvisoryType();
1276 method @IntRange(from=0) public long getEndDateSeconds();
1277 method @IntRange(from=0) public long getPublishDateSeconds();
1278 method @IntRange(from=0) public long getStartDateSeconds();
1279 method @IntRange(from=1, to=206) public int getSvid();
1280 method public boolean isUsable();
1281 method public void writeToParcel(@NonNull android.os.Parcel, int);
1282 field @NonNull public static final android.os.Parcelable.Creator<android.location.RealTimeIntegrityModel> CREATOR;
1283 }
1284
1285 public static final class RealTimeIntegrityModel.Builder {
1286 ctor public RealTimeIntegrityModel.Builder();
1287 method @NonNull public android.location.RealTimeIntegrityModel build();
1288 method @NonNull public android.location.RealTimeIntegrityModel.Builder setAdvisoryNumber(@NonNull String);
1289 method @NonNull public android.location.RealTimeIntegrityModel.Builder setAdvisoryType(@NonNull String);
1290 method @NonNull public android.location.RealTimeIntegrityModel.Builder setEndDateSeconds(@IntRange(from=0) long);
1291 method @NonNull public android.location.RealTimeIntegrityModel.Builder setPublishDateSeconds(@IntRange(from=0) long);
1292 method @NonNull public android.location.RealTimeIntegrityModel.Builder setStartDateSeconds(@IntRange(from=0) long);
1293 method @NonNull public android.location.RealTimeIntegrityModel.Builder setSvid(@IntRange(from=1, to=206) int);
1294 method @NonNull public android.location.RealTimeIntegrityModel.Builder setUsable(boolean);
1295 }
1296
1297 @FlaggedApi("android.location.flags.gnss_assistance_interface") public final class SatelliteEphemerisTime implements android.os.Parcelable {
1298 method public int describeContents();
1299 method @IntRange(from=0, to=1023) public int getIode();
1300 method @IntRange(from=0, to=604799) public int getToeSeconds();
1301 method @IntRange(from=0) public int getWeekNumber();
1302 method public void writeToParcel(@NonNull android.os.Parcel, int);
1303 field @NonNull public static final android.os.Parcelable.Creator<android.location.SatelliteEphemerisTime> CREATOR;
1304 }
1305
1306 public static final class SatelliteEphemerisTime.Builder {
1307 ctor public SatelliteEphemerisTime.Builder();
1308 method @NonNull public android.location.SatelliteEphemerisTime build();
1309 method @NonNull public android.location.SatelliteEphemerisTime.Builder setIode(@IntRange(from=0, to=1023) int);
1310 method @NonNull public android.location.SatelliteEphemerisTime.Builder setToeSeconds(@IntRange(from=0, to=604799) int);
1311 method @NonNull public android.location.SatelliteEphemerisTime.Builder setWeekNumber(@IntRange(from=0) int);
1312 }
1313
Mark White5b3c64d2023-08-17 23:53:46 +00001314 public final class SatellitePvt implements android.os.Parcelable {
1315 method public int describeContents();
1316 method @Nullable public android.location.SatellitePvt.ClockInfo getClockInfo();
1317 method public int getEphemerisSource();
1318 method @FloatRange public double getIonoDelayMeters();
1319 method @IntRange(from=0, to=1023) public int getIssueOfDataClock();
1320 method @IntRange(from=0, to=1023) public int getIssueOfDataEphemeris();
1321 method @Nullable public android.location.SatellitePvt.PositionEcef getPositionEcef();
1322 method @IntRange(from=0) public long getTimeOfClockSeconds();
1323 method @IntRange(from=0) public long getTimeOfEphemerisSeconds();
1324 method @FloatRange public double getTropoDelayMeters();
1325 method @Nullable public android.location.SatellitePvt.VelocityEcef getVelocityEcef();
1326 method public boolean hasIono();
1327 method public boolean hasIssueOfDataClock();
1328 method public boolean hasIssueOfDataEphemeris();
1329 method public boolean hasPositionVelocityClockInfo();
1330 method public boolean hasTimeOfClockSeconds();
1331 method public boolean hasTimeOfEphemerisSeconds();
1332 method public boolean hasTropo();
1333 method public void writeToParcel(@NonNull android.os.Parcel, int);
1334 field @NonNull public static final android.os.Parcelable.Creator<android.location.SatellitePvt> CREATOR;
1335 field public static final int EPHEMERIS_SOURCE_DEMODULATED = 0; // 0x0
1336 field public static final int EPHEMERIS_SOURCE_OTHER = 3; // 0x3
1337 field public static final int EPHEMERIS_SOURCE_SERVER_LONG_TERM = 2; // 0x2
1338 field public static final int EPHEMERIS_SOURCE_SERVER_NORMAL = 1; // 0x1
1339 }
1340
1341 public static final class SatellitePvt.Builder {
1342 ctor public SatellitePvt.Builder();
1343 method @NonNull public android.location.SatellitePvt build();
1344 method @NonNull public android.location.SatellitePvt.Builder setClockInfo(@NonNull android.location.SatellitePvt.ClockInfo);
1345 method @NonNull public android.location.SatellitePvt.Builder setEphemerisSource(int);
1346 method @NonNull public android.location.SatellitePvt.Builder setIonoDelayMeters(@FloatRange(from=0.0f, to=100.0f) double);
1347 method @NonNull public android.location.SatellitePvt.Builder setIssueOfDataClock(@IntRange(from=0, to=1023) int);
1348 method @NonNull public android.location.SatellitePvt.Builder setIssueOfDataEphemeris(@IntRange(from=0, to=1023) int);
1349 method @NonNull public android.location.SatellitePvt.Builder setPositionEcef(@NonNull android.location.SatellitePvt.PositionEcef);
1350 method @NonNull public android.location.SatellitePvt.Builder setTimeOfClockSeconds(@IntRange(from=0) long);
1351 method @NonNull public android.location.SatellitePvt.Builder setTimeOfEphemerisSeconds(@IntRange(from=0) long);
1352 method @NonNull public android.location.SatellitePvt.Builder setTropoDelayMeters(@FloatRange(from=0.0f, to=100.0f) double);
1353 method @NonNull public android.location.SatellitePvt.Builder setVelocityEcef(@NonNull android.location.SatellitePvt.VelocityEcef);
1354 }
1355
1356 public static final class SatellitePvt.ClockInfo implements android.os.Parcelable {
1357 ctor public SatellitePvt.ClockInfo(double, double, double);
1358 method public int describeContents();
1359 method @FloatRange public double getClockDriftMetersPerSecond();
1360 method @FloatRange public double getHardwareCodeBiasMeters();
1361 method @FloatRange public double getTimeCorrectionMeters();
1362 method public void writeToParcel(@NonNull android.os.Parcel, int);
1363 field @NonNull public static final android.os.Parcelable.Creator<android.location.SatellitePvt.ClockInfo> CREATOR;
1364 }
1365
1366 public static final class SatellitePvt.PositionEcef implements android.os.Parcelable {
1367 ctor public SatellitePvt.PositionEcef(double, double, double, double);
1368 method public int describeContents();
1369 method @FloatRange(from=0.0f, fromInclusive=false) public double getUreMeters();
1370 method @FloatRange public double getXMeters();
1371 method @FloatRange public double getYMeters();
1372 method @FloatRange public double getZMeters();
1373 method public void writeToParcel(@NonNull android.os.Parcel, int);
1374 field @NonNull public static final android.os.Parcelable.Creator<android.location.SatellitePvt.PositionEcef> CREATOR;
1375 }
1376
1377 public static final class SatellitePvt.VelocityEcef implements android.os.Parcelable {
1378 ctor public SatellitePvt.VelocityEcef(double, double, double, double);
1379 method public int describeContents();
1380 method @FloatRange(from=0.0f, fromInclusive=false) public double getUreRateMetersPerSecond();
1381 method @FloatRange public double getXMetersPerSecond();
1382 method @FloatRange public double getYMetersPerSecond();
1383 method @FloatRange public double getZMetersPerSecond();
1384 method public void writeToParcel(@NonNull android.os.Parcel, int);
1385 field @NonNull public static final android.os.Parcelable.Creator<android.location.SatellitePvt.VelocityEcef> CREATOR;
1386 }
1387
Shinru Hanb39d62d2024-12-06 03:43:44 +00001388 @FlaggedApi("android.location.flags.gnss_assistance_interface") public final class TimeModel implements android.os.Parcelable {
1389 method public int describeContents();
1390 method @FloatRange(from=-1.0F, to=1.0f) public double getA0();
1391 method @FloatRange(from=-3.28E-6F, to=3.28E-6f) public double getA1();
1392 method @IntRange(from=0, to=604800) public int getTimeOfWeek();
1393 method public int getToGnss();
1394 method @IntRange(from=0) public int getWeekNumber();
1395 method public void writeToParcel(@NonNull android.os.Parcel, int);
1396 field @NonNull public static final android.os.Parcelable.Creator<android.location.TimeModel> CREATOR;
1397 }
1398
1399 public static final class TimeModel.Builder {
1400 ctor public TimeModel.Builder();
1401 method @NonNull public android.location.TimeModel build();
1402 method @NonNull public android.location.TimeModel.Builder setA0(@FloatRange(from=-1.0F, to=1.0f) double);
1403 method @NonNull public android.location.TimeModel.Builder setA1(@FloatRange(from=-3.28E-6F, to=3.28E-6f) double);
1404 method @NonNull public android.location.TimeModel.Builder setTimeOfWeek(@IntRange(from=0, to=604800) int);
1405 method @NonNull public android.location.TimeModel.Builder setToGnss(int);
1406 method @NonNull public android.location.TimeModel.Builder setWeekNumber(@IntRange(from=0) int);
1407 }
1408
1409 @FlaggedApi("android.location.flags.gnss_assistance_interface") public final class UtcModel implements android.os.Parcelable {
1410 method public int describeContents();
1411 method @FloatRange(from=-2.0F, to=2.0f) public double getA0();
1412 method @FloatRange(from=-7.45E-9F, to=7.45E-9f) public double getA1();
1413 method @IntRange(from=0, to=604800) public int getTimeOfWeek();
1414 method @IntRange(from=0) public int getWeekNumber();
1415 method public void writeToParcel(@NonNull android.os.Parcel, int);
1416 field @NonNull public static final android.os.Parcelable.Creator<android.location.UtcModel> CREATOR;
1417 }
1418
1419 public static final class UtcModel.Builder {
1420 ctor public UtcModel.Builder();
1421 method @NonNull public android.location.UtcModel build();
1422 method @NonNull public android.location.UtcModel.Builder setA0(@FloatRange(from=-2.0F, to=2.0f) double);
1423 method @NonNull public android.location.UtcModel.Builder setA1(@FloatRange(from=-7.45E-9F, to=7.45E-9f) double);
1424 method @NonNull public android.location.UtcModel.Builder setTimeOfWeek(@IntRange(from=0, to=604800) int);
1425 method @NonNull public android.location.UtcModel.Builder setWeekNumber(@IntRange(from=0) int);
1426 }
1427
Mark White5b3c64d2023-08-17 23:53:46 +00001428}
1429
1430package android.location.provider {
1431
Paul Duffind2580662024-04-18 19:20:53 +01001432 @FlaggedApi("android.location.flags.new_geocoder") public final class ForwardGeocodeRequest implements android.os.Parcelable {
Soonil Nagarkar8e54d082023-12-14 17:51:58 -08001433 method public int describeContents();
1434 method @Nullable public String getCallingAttributionTag();
1435 method @NonNull public String getCallingPackage();
1436 method public int getCallingUid();
1437 method @NonNull public java.util.Locale getLocale();
1438 method @NonNull public String getLocationName();
1439 method @FloatRange(from=-90.0, to=90.0) public double getLowerLeftLatitude();
1440 method @FloatRange(from=-180.0, to=180.0) public double getLowerLeftLongitude();
1441 method @IntRange(from=1) public int getMaxResults();
1442 method @FloatRange(from=-90.0, to=90.0) public double getUpperRightLatitude();
1443 method @FloatRange(from=-180.0, to=180.0) public double getUpperRightLongitude();
1444 method public void writeToParcel(@NonNull android.os.Parcel, int);
1445 field @NonNull public static final android.os.Parcelable.Creator<android.location.provider.ForwardGeocodeRequest> CREATOR;
1446 }
1447
1448 public static final class ForwardGeocodeRequest.Builder {
1449 ctor public ForwardGeocodeRequest.Builder(@NonNull String, @FloatRange(from=-90.0, to=90.0) double, @FloatRange(from=-180.0, to=180.0) double, @FloatRange(from=-90.0, to=90.0) double, @FloatRange(from=-180.0, to=180.0) double, @IntRange(from=1) int, @NonNull java.util.Locale, int, @NonNull String);
1450 method @NonNull public android.location.provider.ForwardGeocodeRequest build();
1451 method @NonNull public android.location.provider.ForwardGeocodeRequest.Builder setCallingAttributionTag(@NonNull String);
1452 }
1453
Paul Duffind2580662024-04-18 19:20:53 +01001454 @FlaggedApi("android.location.flags.new_geocoder") public abstract class GeocodeProviderBase {
Soonil Nagarkar8e54d082023-12-14 17:51:58 -08001455 ctor public GeocodeProviderBase(@NonNull android.content.Context, @NonNull String);
1456 method @NonNull public final android.os.IBinder getBinder();
Soonil Nagarkar7200cd52024-03-08 10:39:14 -08001457 method public abstract void onForwardGeocode(@NonNull android.location.provider.ForwardGeocodeRequest, @NonNull android.os.OutcomeReceiver<java.util.List<android.location.Address>,java.lang.Throwable>);
1458 method public abstract void onReverseGeocode(@NonNull android.location.provider.ReverseGeocodeRequest, @NonNull android.os.OutcomeReceiver<java.util.List<android.location.Address>,java.lang.Throwable>);
Soonil Nagarkar8e54d082023-12-14 17:51:58 -08001459 field public static final String ACTION_GEOCODE_PROVIDER = "com.android.location.service.GeocodeProvider";
1460 }
1461
Yu-Han Yangf5e016e2024-04-26 01:30:06 +00001462 @FlaggedApi("android.location.flags.gnss_assistance_interface") public abstract class GnssAssistanceProviderBase {
1463 ctor public GnssAssistanceProviderBase(@NonNull android.content.Context, @NonNull String);
1464 method @NonNull public final android.os.IBinder getBinder();
1465 method public abstract void onRequest(@NonNull android.os.OutcomeReceiver<android.location.GnssAssistance,java.lang.Throwable>);
1466 field public static final String ACTION_GNSS_ASSISTANCE_PROVIDER = "android.location.provider.action.GNSS_ASSISTANCE_PROVIDER";
1467 }
1468
Mark White5b3c64d2023-08-17 23:53:46 +00001469 public abstract class LocationProviderBase {
1470 ctor public LocationProviderBase(@NonNull android.content.Context, @NonNull String, @NonNull android.location.provider.ProviderProperties);
1471 method @Nullable public final android.os.IBinder getBinder();
1472 method @NonNull public android.location.provider.ProviderProperties getProperties();
1473 method public boolean isAllowed();
1474 method public abstract void onFlush(@NonNull android.location.provider.LocationProviderBase.OnFlushCompleteCallback);
1475 method public abstract void onSendExtraCommand(@NonNull String, @Nullable android.os.Bundle);
1476 method public abstract void onSetRequest(@NonNull android.location.provider.ProviderRequest);
1477 method public void reportLocation(@NonNull android.location.Location);
1478 method public void reportLocations(@NonNull java.util.List<android.location.Location>);
1479 method public void setAllowed(boolean);
1480 method public void setProperties(@NonNull android.location.provider.ProviderProperties);
1481 field public static final String ACTION_FUSED_PROVIDER = "com.android.location.service.FusedLocationProvider";
1482 field public static final String ACTION_GNSS_PROVIDER = "android.location.provider.action.GNSS_PROVIDER";
1483 field public static final String ACTION_NETWORK_PROVIDER = "com.android.location.service.v3.NetworkLocationProvider";
1484 }
1485
1486 public static interface LocationProviderBase.OnFlushCompleteCallback {
1487 method public void onFlushComplete();
1488 }
1489
Ludovic Barman4f699aa2024-11-20 15:45:48 +00001490 @FlaggedApi("android.location.flags.population_density_provider") public abstract class PopulationDensityProviderBase {
1491 ctor public PopulationDensityProviderBase(@NonNull android.content.Context, @NonNull String);
1492 method @Nullable public final android.os.IBinder getBinder();
Ludovic Barman49fe79b2024-11-29 15:57:34 +00001493 method public abstract void onGetCoarsenedS2Cells(double, double, @IntRange(from=0) int, @NonNull android.os.OutcomeReceiver<long[],java.lang.Throwable>);
Ludovic Barman4f699aa2024-11-20 15:45:48 +00001494 method public abstract void onGetDefaultCoarseningLevel(@NonNull android.os.OutcomeReceiver<java.lang.Integer,java.lang.Throwable>);
1495 field public static final String ACTION_POPULATION_DENSITY_PROVIDER = "com.android.location.service.PopulationDensityProvider";
1496 }
1497
Mark White5b3c64d2023-08-17 23:53:46 +00001498 public final class ProviderRequest implements android.os.Parcelable {
1499 method public int describeContents();
1500 method @IntRange(from=0) public long getIntervalMillis();
1501 method @IntRange(from=0) public long getMaxUpdateDelayMillis();
1502 method public int getQuality();
1503 method @NonNull public android.os.WorkSource getWorkSource();
1504 method public boolean isActive();
1505 method public boolean isLocationSettingsIgnored();
1506 method public boolean isLowPower();
1507 method public void writeToParcel(@NonNull android.os.Parcel, int);
1508 field @NonNull public static final android.os.Parcelable.Creator<android.location.provider.ProviderRequest> CREATOR;
1509 field @NonNull public static final android.location.provider.ProviderRequest EMPTY_REQUEST;
1510 field public static final long INTERVAL_DISABLED = 9223372036854775807L; // 0x7fffffffffffffffL
1511 }
1512
1513 public static final class ProviderRequest.Builder {
1514 ctor public ProviderRequest.Builder();
1515 method @NonNull public android.location.provider.ProviderRequest build();
1516 method @NonNull public android.location.provider.ProviderRequest.Builder setIntervalMillis(@IntRange(from=0) long);
1517 method @NonNull public android.location.provider.ProviderRequest.Builder setLocationSettingsIgnored(boolean);
1518 method @NonNull public android.location.provider.ProviderRequest.Builder setLowPower(boolean);
1519 method @NonNull public android.location.provider.ProviderRequest.Builder setMaxUpdateDelayMillis(@IntRange(from=0) long);
1520 method @NonNull public android.location.provider.ProviderRequest.Builder setQuality(int);
1521 method @NonNull public android.location.provider.ProviderRequest.Builder setWorkSource(@NonNull android.os.WorkSource);
1522 }
1523
1524 public static interface ProviderRequest.ChangedListener {
1525 method public void onProviderRequestChanged(@NonNull String, @NonNull android.location.provider.ProviderRequest);
1526 }
1527
Paul Duffind2580662024-04-18 19:20:53 +01001528 @FlaggedApi("android.location.flags.new_geocoder") public final class ReverseGeocodeRequest implements android.os.Parcelable {
Soonil Nagarkar8e54d082023-12-14 17:51:58 -08001529 method public int describeContents();
1530 method @Nullable public String getCallingAttributionTag();
1531 method @NonNull public String getCallingPackage();
1532 method public int getCallingUid();
1533 method @FloatRange(from=-90.0, to=90.0) public double getLatitude();
1534 method @NonNull public java.util.Locale getLocale();
1535 method @FloatRange(from=-180.0, to=180.0) public double getLongitude();
1536 method @IntRange(from=1) public int getMaxResults();
1537 method public void writeToParcel(@NonNull android.os.Parcel, int);
1538 field @NonNull public static final android.os.Parcelable.Creator<android.location.provider.ReverseGeocodeRequest> CREATOR;
1539 }
1540
1541 public static final class ReverseGeocodeRequest.Builder {
1542 ctor public ReverseGeocodeRequest.Builder(@FloatRange(from=-90.0, to=90.0) double, @FloatRange(from=-180.0, to=180.0) double, @IntRange(from=0) int, @NonNull java.util.Locale, int, @NonNull String);
1543 method @NonNull public android.location.provider.ReverseGeocodeRequest build();
1544 method @NonNull public android.location.provider.ReverseGeocodeRequest.Builder setCallingAttributionTag(@NonNull String);
1545 }
1546
Mark White5b3c64d2023-08-17 23:53:46 +00001547}
1548