1// Signature format: 2.0 2package 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 9 public final class CorrelationVector implements android.os.Parcelable { 10 method public int describeContents(); 11 method @FloatRange(from=0.0f) public double getFrequencyOffsetMetersPerSecond(); 12 method @NonNull public int[] getMagnitude(); 13 method @FloatRange(from=0.0f) public double getSamplingStartMeters(); 14 method @FloatRange(from=0.0f, fromInclusive=false) public double getSamplingWidthMeters(); 15 method public void writeToParcel(@NonNull android.os.Parcel, int); 16 field @NonNull public static final android.os.Parcelable.Creator<android.location.CorrelationVector> CREATOR; 17 } 18 19 public static final class CorrelationVector.Builder { 20 ctor public CorrelationVector.Builder(); 21 method @NonNull public android.location.CorrelationVector build(); 22 method @NonNull public android.location.CorrelationVector.Builder setFrequencyOffsetMetersPerSecond(@FloatRange(from=0.0f) double); 23 method @NonNull public android.location.CorrelationVector.Builder setMagnitude(@NonNull int[]); 24 method @NonNull public android.location.CorrelationVector.Builder setSamplingStartMeters(@FloatRange(from=0.0f) double); 25 method @NonNull public android.location.CorrelationVector.Builder setSamplingWidthMeters(@FloatRange(from=0.0f, fromInclusive=false) double); 26 } 27 28 public final class Country implements android.os.Parcelable { 29 ctor public Country(@NonNull String, int); 30 method public int describeContents(); 31 method @NonNull public String getCountryCode(); 32 method public int getSource(); 33 method public void writeToParcel(@NonNull android.os.Parcel, int); 34 field public static final int COUNTRY_SOURCE_LOCALE = 3; // 0x3 35 field public static final int COUNTRY_SOURCE_LOCATION = 1; // 0x1 36 field public static final int COUNTRY_SOURCE_NETWORK = 0; // 0x0 37 field public static final int COUNTRY_SOURCE_SIM = 2; // 0x2 38 field @NonNull public static final android.os.Parcelable.Creator<android.location.Country> CREATOR; 39 } 40 41 public class CountryDetector { 42 method public void registerCountryDetectorCallback(@NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer<android.location.Country>); 43 method public void unregisterCountryDetectorCallback(@NonNull java.util.function.Consumer<android.location.Country>); 44 } 45 46 public final class GnssCapabilities implements android.os.Parcelable { 47 method @Deprecated public boolean hasMeasurementCorrectionsReflectingPane(); 48 method @Deprecated public boolean hasNavMessages(); 49 method @Deprecated public boolean hasSatelliteBlacklist(); 50 } 51 52 public final class GnssExcessPathInfo implements android.os.Parcelable { 53 method public int describeContents(); 54 method @FloatRange(from=0.0f) public float getAttenuationDb(); 55 method @FloatRange(from=0.0f) public float getExcessPathLengthMeters(); 56 method @FloatRange(from=0.0f) public float getExcessPathLengthUncertaintyMeters(); 57 method @NonNull public android.location.GnssReflectingPlane getReflectingPlane(); 58 method public boolean hasAttenuation(); 59 method public boolean hasExcessPathLength(); 60 method public boolean hasExcessPathLengthUncertainty(); 61 method public boolean hasReflectingPlane(); 62 method public void writeToParcel(@NonNull android.os.Parcel, int); 63 field @NonNull public static final android.os.Parcelable.Creator<android.location.GnssExcessPathInfo> CREATOR; 64 } 65 66 public static final class GnssExcessPathInfo.Builder { 67 ctor public GnssExcessPathInfo.Builder(); 68 method @NonNull public android.location.GnssExcessPathInfo build(); 69 method @NonNull public android.location.GnssExcessPathInfo.Builder clearAttenuationDb(); 70 method @NonNull public android.location.GnssExcessPathInfo.Builder clearExcessPathLengthMeters(); 71 method @NonNull public android.location.GnssExcessPathInfo.Builder clearExcessPathLengthUncertaintyMeters(); 72 method @NonNull public android.location.GnssExcessPathInfo.Builder setAttenuationDb(@FloatRange(from=0.0f) float); 73 method @NonNull public android.location.GnssExcessPathInfo.Builder setExcessPathLengthMeters(@FloatRange(from=0.0f) float); 74 method @NonNull public android.location.GnssExcessPathInfo.Builder setExcessPathLengthUncertaintyMeters(@FloatRange(from=0.0f) float); 75 method @NonNull public android.location.GnssExcessPathInfo.Builder setReflectingPlane(@Nullable android.location.GnssReflectingPlane); 76 } 77 78 public final class GnssMeasurement implements android.os.Parcelable { 79 method @Nullable public java.util.Collection<android.location.CorrelationVector> getCorrelationVectors(); 80 method @Nullable public android.location.SatellitePvt getSatellitePvt(); 81 method public boolean hasCorrelationVectors(); 82 method public boolean hasSatellitePvt(); 83 } 84 85 public final class GnssMeasurementCorrections implements android.os.Parcelable { 86 method public int describeContents(); 87 method @FloatRange(from=-1000.0F, to=10000.0f) public double getAltitudeMeters(); 88 method @FloatRange(from=0.0f, to=360.0f) public float getEnvironmentBearingDegrees(); 89 method @FloatRange(from=0.0f, to=180.0f) public float getEnvironmentBearingUncertaintyDegrees(); 90 method @FloatRange(from=0.0f) public double getHorizontalPositionUncertaintyMeters(); 91 method @FloatRange(from=-90.0F, to=90.0f) public double getLatitudeDegrees(); 92 method @FloatRange(from=-180.0F, to=180.0f) public double getLongitudeDegrees(); 93 method @NonNull public java.util.List<android.location.GnssSingleSatCorrection> getSingleSatelliteCorrectionList(); 94 method @IntRange(from=0) public long getToaGpsNanosecondsOfWeek(); 95 method @FloatRange(from=0.0f) public double getVerticalPositionUncertaintyMeters(); 96 method public boolean hasEnvironmentBearing(); 97 method public void writeToParcel(@NonNull android.os.Parcel, int); 98 field public static final android.os.Parcelable.Creator<android.location.GnssMeasurementCorrections> CREATOR; 99 } 100 101 public static final class GnssMeasurementCorrections.Builder { 102 ctor public GnssMeasurementCorrections.Builder(); 103 method @NonNull public android.location.GnssMeasurementCorrections build(); 104 method @NonNull public android.location.GnssMeasurementCorrections.Builder setAltitudeMeters(@FloatRange(from=-1000.0F, to=10000.0f) double); 105 method @NonNull public android.location.GnssMeasurementCorrections.Builder setEnvironmentBearingDegrees(@FloatRange(from=0.0f, to=360.0f) float); 106 method @NonNull public android.location.GnssMeasurementCorrections.Builder setEnvironmentBearingUncertaintyDegrees(@FloatRange(from=0.0f, to=180.0f) float); 107 method @NonNull public android.location.GnssMeasurementCorrections.Builder setHorizontalPositionUncertaintyMeters(@FloatRange(from=0.0f) double); 108 method @NonNull public android.location.GnssMeasurementCorrections.Builder setLatitudeDegrees(@FloatRange(from=-90.0F, to=90.0f) double); 109 method @NonNull public android.location.GnssMeasurementCorrections.Builder setLongitudeDegrees(@FloatRange(from=-180.0F, to=180.0f) double); 110 method @NonNull public android.location.GnssMeasurementCorrections.Builder setSingleSatelliteCorrectionList(@NonNull java.util.List<android.location.GnssSingleSatCorrection>); 111 method @NonNull public android.location.GnssMeasurementCorrections.Builder setToaGpsNanosecondsOfWeek(@IntRange(from=0) long); 112 method @NonNull public android.location.GnssMeasurementCorrections.Builder setVerticalPositionUncertaintyMeters(@FloatRange(from=0.0f) double); 113 } 114 115 public final class GnssMeasurementRequest implements android.os.Parcelable { 116 method @FlaggedApi("android.location.flags.gnss_api_measurement_request_work_source") @NonNull public android.os.WorkSource getWorkSource(); 117 method public boolean isCorrelationVectorOutputsEnabled(); 118 } 119 120 public static final class GnssMeasurementRequest.Builder { 121 method @NonNull public android.location.GnssMeasurementRequest.Builder setCorrelationVectorOutputsEnabled(boolean); 122 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); 123 } 124 125 public final class GnssReflectingPlane implements android.os.Parcelable { 126 method public int describeContents(); 127 method @FloatRange(from=-1000.0F, to=10000.0f) public double getAltitudeMeters(); 128 method @FloatRange(from=0.0f, to=360.0f) public double getAzimuthDegrees(); 129 method @FloatRange(from=-90.0F, to=90.0f) public double getLatitudeDegrees(); 130 method @FloatRange(from=-180.0F, to=180.0f) public double getLongitudeDegrees(); 131 method public void writeToParcel(@NonNull android.os.Parcel, int); 132 field public static final android.os.Parcelable.Creator<android.location.GnssReflectingPlane> CREATOR; 133 } 134 135 public static final class GnssReflectingPlane.Builder { 136 ctor public GnssReflectingPlane.Builder(); 137 method @NonNull public android.location.GnssReflectingPlane build(); 138 method @NonNull public android.location.GnssReflectingPlane.Builder setAltitudeMeters(@FloatRange(from=-1000.0F, to=10000.0f) double); 139 method @NonNull public android.location.GnssReflectingPlane.Builder setAzimuthDegrees(@FloatRange(from=0.0f, to=360.0f) double); 140 method @NonNull public android.location.GnssReflectingPlane.Builder setLatitudeDegrees(@FloatRange(from=-90.0F, to=90.0f) double); 141 method @NonNull public android.location.GnssReflectingPlane.Builder setLongitudeDegrees(@FloatRange(from=-180.0F, to=180.0f) double); 142 } 143 144 public final class GnssRequest implements android.os.Parcelable { 145 method public int describeContents(); 146 method public boolean isFullTracking(); 147 method public void writeToParcel(@NonNull android.os.Parcel, int); 148 field @NonNull public static final android.os.Parcelable.Creator<android.location.GnssRequest> CREATOR; 149 } 150 151 public static final class GnssRequest.Builder { 152 ctor public GnssRequest.Builder(); 153 ctor public GnssRequest.Builder(@NonNull android.location.GnssRequest); 154 method @NonNull public android.location.GnssRequest build(); 155 method @NonNull public android.location.GnssRequest.Builder setFullTracking(boolean); 156 } 157 158 public final class GnssSingleSatCorrection implements android.os.Parcelable { 159 method public int describeContents(); 160 method @FloatRange(from=0.0f, fromInclusive=false) public float getCarrierFrequencyHz(); 161 method @FloatRange(from=0.0f) public float getCombinedAttenuationDb(); 162 method public int getConstellationType(); 163 method @FloatRange(from=0.0f) public float getExcessPathLengthMeters(); 164 method @FloatRange(from=0.0f) public float getExcessPathLengthUncertaintyMeters(); 165 method @NonNull public java.util.List<android.location.GnssExcessPathInfo> getGnssExcessPathInfoList(); 166 method @FloatRange(from=0.0f, to=1.0f) public float getProbabilityLineOfSight(); 167 method @Deprecated @Nullable public android.location.GnssReflectingPlane getReflectingPlane(); 168 method @IntRange(from=0) public int getSatelliteId(); 169 method public boolean hasCombinedAttenuation(); 170 method public boolean hasExcessPathLength(); 171 method public boolean hasExcessPathLengthUncertainty(); 172 method @Deprecated public boolean hasReflectingPlane(); 173 method public boolean hasValidSatelliteLineOfSight(); 174 method public void writeToParcel(@NonNull android.os.Parcel, int); 175 field public static final android.os.Parcelable.Creator<android.location.GnssSingleSatCorrection> CREATOR; 176 } 177 178 public static final class GnssSingleSatCorrection.Builder { 179 ctor public GnssSingleSatCorrection.Builder(); 180 method @NonNull public android.location.GnssSingleSatCorrection build(); 181 method @NonNull public android.location.GnssSingleSatCorrection.Builder clearCombinedAttenuationDb(); 182 method @NonNull public android.location.GnssSingleSatCorrection.Builder clearExcessPathLengthMeters(); 183 method @NonNull public android.location.GnssSingleSatCorrection.Builder clearExcessPathLengthUncertaintyMeters(); 184 method @NonNull public android.location.GnssSingleSatCorrection.Builder clearProbabilityLineOfSight(); 185 method @NonNull public android.location.GnssSingleSatCorrection.Builder setCarrierFrequencyHz(@FloatRange(from=0.0f, fromInclusive=false) float); 186 method @NonNull public android.location.GnssSingleSatCorrection.Builder setCombinedAttenuationDb(@FloatRange(from=0.0f) float); 187 method @NonNull public android.location.GnssSingleSatCorrection.Builder setConstellationType(int); 188 method @NonNull public android.location.GnssSingleSatCorrection.Builder setExcessPathLengthMeters(@FloatRange(from=0.0f) float); 189 method @NonNull public android.location.GnssSingleSatCorrection.Builder setExcessPathLengthUncertaintyMeters(@FloatRange(from=0.0f) float); 190 method @NonNull public android.location.GnssSingleSatCorrection.Builder setGnssExcessPathInfoList(@NonNull java.util.List<android.location.GnssExcessPathInfo>); 191 method @NonNull public android.location.GnssSingleSatCorrection.Builder setProbabilityLineOfSight(@FloatRange(from=0.0f, to=1.0f) float); 192 method @Deprecated @NonNull public android.location.GnssSingleSatCorrection.Builder setReflectingPlane(@Nullable android.location.GnssReflectingPlane); 193 method @NonNull public android.location.GnssSingleSatCorrection.Builder setSatelliteId(@IntRange(from=0) int); 194 } 195 196 @Deprecated public class GpsClock implements android.os.Parcelable { 197 method @Deprecated public int describeContents(); 198 method @Deprecated public double getBiasInNs(); 199 method @Deprecated public double getBiasUncertaintyInNs(); 200 method @Deprecated public double getDriftInNsPerSec(); 201 method @Deprecated public double getDriftUncertaintyInNsPerSec(); 202 method @Deprecated public long getFullBiasInNs(); 203 method @Deprecated public short getLeapSecond(); 204 method @Deprecated public long getTimeInNs(); 205 method @Deprecated public double getTimeUncertaintyInNs(); 206 method @Deprecated public byte getType(); 207 method @Deprecated public boolean hasBiasInNs(); 208 method @Deprecated public boolean hasBiasUncertaintyInNs(); 209 method @Deprecated public boolean hasDriftInNsPerSec(); 210 method @Deprecated public boolean hasDriftUncertaintyInNsPerSec(); 211 method @Deprecated public boolean hasFullBiasInNs(); 212 method @Deprecated public boolean hasLeapSecond(); 213 method @Deprecated public boolean hasTimeUncertaintyInNs(); 214 method @Deprecated public void reset(); 215 method @Deprecated public void resetBiasInNs(); 216 method @Deprecated public void resetBiasUncertaintyInNs(); 217 method @Deprecated public void resetDriftInNsPerSec(); 218 method @Deprecated public void resetDriftUncertaintyInNsPerSec(); 219 method @Deprecated public void resetFullBiasInNs(); 220 method @Deprecated public void resetLeapSecond(); 221 method @Deprecated public void resetTimeUncertaintyInNs(); 222 method @Deprecated public void set(android.location.GpsClock); 223 method @Deprecated public void setBiasInNs(double); 224 method @Deprecated public void setBiasUncertaintyInNs(double); 225 method @Deprecated public void setDriftInNsPerSec(double); 226 method @Deprecated public void setDriftUncertaintyInNsPerSec(double); 227 method @Deprecated public void setFullBiasInNs(long); 228 method @Deprecated public void setLeapSecond(short); 229 method @Deprecated public void setTimeInNs(long); 230 method @Deprecated public void setTimeUncertaintyInNs(double); 231 method @Deprecated public void setType(byte); 232 method @Deprecated public void writeToParcel(android.os.Parcel, int); 233 field @Deprecated @NonNull public static final android.os.Parcelable.Creator<android.location.GpsClock> CREATOR; 234 field @Deprecated public static final byte TYPE_GPS_TIME = 2; // 0x2 235 field @Deprecated public static final byte TYPE_LOCAL_HW_TIME = 1; // 0x1 236 field @Deprecated public static final byte TYPE_UNKNOWN = 0; // 0x0 237 } 238 239 @Deprecated public class GpsMeasurement implements android.os.Parcelable { 240 method @Deprecated public int describeContents(); 241 method @Deprecated public double getAccumulatedDeltaRangeInMeters(); 242 method @Deprecated public short getAccumulatedDeltaRangeState(); 243 method @Deprecated public double getAccumulatedDeltaRangeUncertaintyInMeters(); 244 method @Deprecated public double getAzimuthInDeg(); 245 method @Deprecated public double getAzimuthUncertaintyInDeg(); 246 method @Deprecated public int getBitNumber(); 247 method @Deprecated public long getCarrierCycles(); 248 method @Deprecated public float getCarrierFrequencyInHz(); 249 method @Deprecated public double getCarrierPhase(); 250 method @Deprecated public double getCarrierPhaseUncertainty(); 251 method @Deprecated public double getCn0InDbHz(); 252 method @Deprecated public double getCodePhaseInChips(); 253 method @Deprecated public double getCodePhaseUncertaintyInChips(); 254 method @Deprecated public double getDopplerShiftInHz(); 255 method @Deprecated public double getDopplerShiftUncertaintyInHz(); 256 method @Deprecated public double getElevationInDeg(); 257 method @Deprecated public double getElevationUncertaintyInDeg(); 258 method @Deprecated public byte getLossOfLock(); 259 method @Deprecated public byte getMultipathIndicator(); 260 method @Deprecated public byte getPrn(); 261 method @Deprecated public double getPseudorangeInMeters(); 262 method @Deprecated public double getPseudorangeRateInMetersPerSec(); 263 method @Deprecated public double getPseudorangeRateUncertaintyInMetersPerSec(); 264 method @Deprecated public double getPseudorangeUncertaintyInMeters(); 265 method @Deprecated public long getReceivedGpsTowInNs(); 266 method @Deprecated public long getReceivedGpsTowUncertaintyInNs(); 267 method @Deprecated public double getSnrInDb(); 268 method @Deprecated public short getState(); 269 method @Deprecated public short getTimeFromLastBitInMs(); 270 method @Deprecated public double getTimeOffsetInNs(); 271 method @Deprecated public boolean hasAzimuthInDeg(); 272 method @Deprecated public boolean hasAzimuthUncertaintyInDeg(); 273 method @Deprecated public boolean hasBitNumber(); 274 method @Deprecated public boolean hasCarrierCycles(); 275 method @Deprecated public boolean hasCarrierFrequencyInHz(); 276 method @Deprecated public boolean hasCarrierPhase(); 277 method @Deprecated public boolean hasCarrierPhaseUncertainty(); 278 method @Deprecated public boolean hasCodePhaseInChips(); 279 method @Deprecated public boolean hasCodePhaseUncertaintyInChips(); 280 method @Deprecated public boolean hasDopplerShiftInHz(); 281 method @Deprecated public boolean hasDopplerShiftUncertaintyInHz(); 282 method @Deprecated public boolean hasElevationInDeg(); 283 method @Deprecated public boolean hasElevationUncertaintyInDeg(); 284 method @Deprecated public boolean hasPseudorangeInMeters(); 285 method @Deprecated public boolean hasPseudorangeUncertaintyInMeters(); 286 method @Deprecated public boolean hasSnrInDb(); 287 method @Deprecated public boolean hasTimeFromLastBitInMs(); 288 method @Deprecated public boolean isPseudorangeRateCorrected(); 289 method @Deprecated public boolean isUsedInFix(); 290 method @Deprecated public void reset(); 291 method @Deprecated public void resetAzimuthInDeg(); 292 method @Deprecated public void resetAzimuthUncertaintyInDeg(); 293 method @Deprecated public void resetBitNumber(); 294 method @Deprecated public void resetCarrierCycles(); 295 method @Deprecated public void resetCarrierFrequencyInHz(); 296 method @Deprecated public void resetCarrierPhase(); 297 method @Deprecated public void resetCarrierPhaseUncertainty(); 298 method @Deprecated public void resetCodePhaseInChips(); 299 method @Deprecated public void resetCodePhaseUncertaintyInChips(); 300 method @Deprecated public void resetDopplerShiftInHz(); 301 method @Deprecated public void resetDopplerShiftUncertaintyInHz(); 302 method @Deprecated public void resetElevationInDeg(); 303 method @Deprecated public void resetElevationUncertaintyInDeg(); 304 method @Deprecated public void resetPseudorangeInMeters(); 305 method @Deprecated public void resetPseudorangeUncertaintyInMeters(); 306 method @Deprecated public void resetSnrInDb(); 307 method @Deprecated public void resetTimeFromLastBitInMs(); 308 method @Deprecated public void set(android.location.GpsMeasurement); 309 method @Deprecated public void setAccumulatedDeltaRangeInMeters(double); 310 method @Deprecated public void setAccumulatedDeltaRangeState(short); 311 method @Deprecated public void setAccumulatedDeltaRangeUncertaintyInMeters(double); 312 method @Deprecated public void setAzimuthInDeg(double); 313 method @Deprecated public void setAzimuthUncertaintyInDeg(double); 314 method @Deprecated public void setBitNumber(int); 315 method @Deprecated public void setCarrierCycles(long); 316 method @Deprecated public void setCarrierFrequencyInHz(float); 317 method @Deprecated public void setCarrierPhase(double); 318 method @Deprecated public void setCarrierPhaseUncertainty(double); 319 method @Deprecated public void setCn0InDbHz(double); 320 method @Deprecated public void setCodePhaseInChips(double); 321 method @Deprecated public void setCodePhaseUncertaintyInChips(double); 322 method @Deprecated public void setDopplerShiftInHz(double); 323 method @Deprecated public void setDopplerShiftUncertaintyInHz(double); 324 method @Deprecated public void setElevationInDeg(double); 325 method @Deprecated public void setElevationUncertaintyInDeg(double); 326 method @Deprecated public void setLossOfLock(byte); 327 method @Deprecated public void setMultipathIndicator(byte); 328 method @Deprecated public void setPrn(byte); 329 method @Deprecated public void setPseudorangeInMeters(double); 330 method @Deprecated public void setPseudorangeRateInMetersPerSec(double); 331 method @Deprecated public void setPseudorangeRateUncertaintyInMetersPerSec(double); 332 method @Deprecated public void setPseudorangeUncertaintyInMeters(double); 333 method @Deprecated public void setReceivedGpsTowInNs(long); 334 method @Deprecated public void setReceivedGpsTowUncertaintyInNs(long); 335 method @Deprecated public void setSnrInDb(double); 336 method @Deprecated public void setState(short); 337 method @Deprecated public void setTimeFromLastBitInMs(short); 338 method @Deprecated public void setTimeOffsetInNs(double); 339 method @Deprecated public void setUsedInFix(boolean); 340 method @Deprecated public void writeToParcel(android.os.Parcel, int); 341 field @Deprecated public static final short ADR_STATE_CYCLE_SLIP = 4; // 0x4 342 field @Deprecated public static final short ADR_STATE_RESET = 2; // 0x2 343 field @Deprecated public static final short ADR_STATE_UNKNOWN = 0; // 0x0 344 field @Deprecated public static final short ADR_STATE_VALID = 1; // 0x1 345 field @Deprecated @NonNull public static final android.os.Parcelable.Creator<android.location.GpsMeasurement> CREATOR; 346 field @Deprecated public static final byte LOSS_OF_LOCK_CYCLE_SLIP = 2; // 0x2 347 field @Deprecated public static final byte LOSS_OF_LOCK_OK = 1; // 0x1 348 field @Deprecated public static final byte LOSS_OF_LOCK_UNKNOWN = 0; // 0x0 349 field @Deprecated public static final byte MULTIPATH_INDICATOR_DETECTED = 1; // 0x1 350 field @Deprecated public static final byte MULTIPATH_INDICATOR_NOT_USED = 2; // 0x2 351 field @Deprecated public static final byte MULTIPATH_INDICATOR_UNKNOWN = 0; // 0x0 352 field @Deprecated public static final short STATE_BIT_SYNC = 2; // 0x2 353 field @Deprecated public static final short STATE_CODE_LOCK = 1; // 0x1 354 field @Deprecated public static final short STATE_MSEC_AMBIGUOUS = 16; // 0x10 355 field @Deprecated public static final short STATE_SUBFRAME_SYNC = 4; // 0x4 356 field @Deprecated public static final short STATE_TOW_DECODED = 8; // 0x8 357 field @Deprecated public static final short STATE_UNKNOWN = 0; // 0x0 358 } 359 360 @Deprecated public class GpsMeasurementsEvent implements android.os.Parcelable { 361 ctor @Deprecated public GpsMeasurementsEvent(android.location.GpsClock, android.location.GpsMeasurement[]); 362 method @Deprecated public int describeContents(); 363 method @Deprecated @NonNull public android.location.GpsClock getClock(); 364 method @Deprecated @NonNull public java.util.Collection<android.location.GpsMeasurement> getMeasurements(); 365 method @Deprecated public void writeToParcel(android.os.Parcel, int); 366 field @Deprecated @NonNull public static final android.os.Parcelable.Creator<android.location.GpsMeasurementsEvent> CREATOR; 367 field @Deprecated public static final int STATUS_GPS_LOCATION_DISABLED = 2; // 0x2 368 field @Deprecated public static final int STATUS_NOT_SUPPORTED = 0; // 0x0 369 field @Deprecated public static final int STATUS_READY = 1; // 0x1 370 } 371 372 @Deprecated public static interface GpsMeasurementsEvent.Listener { 373 method @Deprecated public void onGpsMeasurementsReceived(android.location.GpsMeasurementsEvent); 374 method @Deprecated public void onStatusChanged(int); 375 } 376 377 @Deprecated public class GpsNavigationMessage implements android.os.Parcelable { 378 method @Deprecated public int describeContents(); 379 method @Deprecated @NonNull public byte[] getData(); 380 method @Deprecated public short getMessageId(); 381 method @Deprecated public byte getPrn(); 382 method @Deprecated public short getStatus(); 383 method @Deprecated public short getSubmessageId(); 384 method @Deprecated public byte getType(); 385 method @Deprecated public void reset(); 386 method @Deprecated public void set(android.location.GpsNavigationMessage); 387 method @Deprecated public void setData(byte[]); 388 method @Deprecated public void setMessageId(short); 389 method @Deprecated public void setPrn(byte); 390 method @Deprecated public void setStatus(short); 391 method @Deprecated public void setSubmessageId(short); 392 method @Deprecated public void setType(byte); 393 method @Deprecated public void writeToParcel(android.os.Parcel, int); 394 field @Deprecated @NonNull public static final android.os.Parcelable.Creator<android.location.GpsNavigationMessage> CREATOR; 395 field @Deprecated public static final short STATUS_PARITY_PASSED = 1; // 0x1 396 field @Deprecated public static final short STATUS_PARITY_REBUILT = 2; // 0x2 397 field @Deprecated public static final short STATUS_UNKNOWN = 0; // 0x0 398 field @Deprecated public static final byte TYPE_CNAV2 = 4; // 0x4 399 field @Deprecated public static final byte TYPE_L1CA = 1; // 0x1 400 field @Deprecated public static final byte TYPE_L2CNAV = 2; // 0x2 401 field @Deprecated public static final byte TYPE_L5CNAV = 3; // 0x3 402 field @Deprecated public static final byte TYPE_UNKNOWN = 0; // 0x0 403 } 404 405 @Deprecated public class GpsNavigationMessageEvent implements android.os.Parcelable { 406 ctor @Deprecated public GpsNavigationMessageEvent(android.location.GpsNavigationMessage); 407 method @Deprecated public int describeContents(); 408 method @Deprecated @NonNull public android.location.GpsNavigationMessage getNavigationMessage(); 409 method @Deprecated public void writeToParcel(android.os.Parcel, int); 410 field @Deprecated @NonNull public static final android.os.Parcelable.Creator<android.location.GpsNavigationMessageEvent> CREATOR; 411 field @Deprecated public static int STATUS_GPS_LOCATION_DISABLED; 412 field @Deprecated public static int STATUS_NOT_SUPPORTED; 413 field @Deprecated public static int STATUS_READY; 414 } 415 416 @Deprecated public static interface GpsNavigationMessageEvent.Listener { 417 method @Deprecated public void onGpsNavigationMessageReceived(android.location.GpsNavigationMessageEvent); 418 method @Deprecated public void onStatusChanged(int); 419 } 420 421 public final class LastLocationRequest implements android.os.Parcelable { 422 method public int describeContents(); 423 method public boolean isAdasGnssBypass(); 424 method public boolean isHiddenFromAppOps(); 425 method public boolean isLocationSettingsIgnored(); 426 method public void writeToParcel(@NonNull android.os.Parcel, int); 427 field @NonNull public static final android.os.Parcelable.Creator<android.location.LastLocationRequest> CREATOR; 428 } 429 430 public static final class LastLocationRequest.Builder { 431 ctor public LastLocationRequest.Builder(); 432 ctor public LastLocationRequest.Builder(@NonNull android.location.LastLocationRequest); 433 method @NonNull public android.location.LastLocationRequest build(); 434 method @NonNull @RequiresPermission(android.Manifest.permission.LOCATION_BYPASS) public android.location.LastLocationRequest.Builder setAdasGnssBypass(boolean); 435 method @NonNull @RequiresPermission(android.Manifest.permission.UPDATE_APP_OPS_STATS) public android.location.LastLocationRequest.Builder setHiddenFromAppOps(boolean); 436 method @NonNull @RequiresPermission(android.Manifest.permission.LOCATION_BYPASS) public android.location.LastLocationRequest.Builder setLocationSettingsIgnored(boolean); 437 } 438 439 public class LocationManager { 440 method @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); 441 method @Deprecated @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void flushGnssBatch(); 442 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>); 443 method @Nullable public String getExtraLocationControllerPackage(); 444 method @Deprecated public int getGnssBatchSize(); 445 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); 446 method @RequiresPermission(android.Manifest.permission.ACCESS_FINE_LOCATION) public void injectGnssMeasurementCorrections(@NonNull android.location.GnssMeasurementCorrections); 447 method public boolean isAdasGnssLocationEnabled(); 448 method public boolean isExtraLocationControllerPackageEnabled(); 449 method public boolean isLocationEnabledForUser(@NonNull android.os.UserHandle); 450 method public boolean isProviderEnabledForUser(@NonNull String, @NonNull android.os.UserHandle); 451 method @Deprecated @RequiresPermission(android.Manifest.permission.READ_DEVICE_CONFIG) public boolean isProviderPackage(@NonNull String); 452 method @RequiresPermission(android.Manifest.permission.READ_DEVICE_CONFIG) public boolean isProviderPackage(@Nullable String, @NonNull String, @Nullable String); 453 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); 454 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); 455 method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void removeProviderRequestChangedListener(@NonNull android.location.provider.ProviderRequest.ChangedListener); 456 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); 457 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); 458 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); 459 method @RequiresPermission(android.Manifest.permission.LOCATION_BYPASS) public void setAdasGnssLocationEnabled(boolean); 460 method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void setExtraLocationControllerPackage(@Nullable String); 461 method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void setExtraLocationControllerPackageEnabled(boolean); 462 method @RequiresPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS) public void setLocationEnabledForUser(boolean, @NonNull android.os.UserHandle); 463 method @Deprecated @RequiresPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS) public boolean setProviderEnabledForUser(@NonNull String, boolean, @NonNull android.os.UserHandle); 464 method @Deprecated @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public boolean unregisterGnssBatchedLocationCallback(@NonNull android.location.BatchedLocationCallback); 465 field public static final String ACTION_ADAS_GNSS_ENABLED_CHANGED = "android.location.action.ADAS_GNSS_ENABLED_CHANGED"; 466 field public static final String EXTRA_ADAS_GNSS_ENABLED = "android.location.extra.ADAS_GNSS_ENABLED"; 467 field @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public static final String GPS_HARDWARE_PROVIDER = "gps_hardware"; 468 } 469 470 public final class LocationRequest implements android.os.Parcelable { 471 method @Deprecated @NonNull public static android.location.LocationRequest create(); 472 method @Deprecated @NonNull public static android.location.LocationRequest createFromDeprecatedCriteria(@NonNull android.location.Criteria, long, float, boolean); 473 method @Deprecated @NonNull public static android.location.LocationRequest createFromDeprecatedProvider(@NonNull String, long, float, boolean); 474 method @Deprecated public long getExpireAt(); 475 method @Deprecated public long getExpireIn(); 476 method @Deprecated public long getFastestInterval(); 477 method @Deprecated public boolean getHideFromAppOps(); 478 method @Deprecated public long getInterval(); 479 method @Deprecated public int getNumUpdates(); 480 method @Deprecated @NonNull public String getProvider(); 481 method @Deprecated public float getSmallestDisplacement(); 482 method @NonNull public android.os.WorkSource getWorkSource(); 483 method public boolean isAdasGnssBypass(); 484 method public boolean isHiddenFromAppOps(); 485 method public boolean isLocationSettingsIgnored(); 486 method public boolean isLowPower(); 487 method @Deprecated public boolean isLowPowerMode(); 488 method @Deprecated @NonNull public android.location.LocationRequest setExpireAt(long); 489 method @Deprecated @NonNull public android.location.LocationRequest setExpireIn(long); 490 method @Deprecated @NonNull public android.location.LocationRequest setFastestInterval(long); 491 method @Deprecated public void setHideFromAppOps(boolean); 492 method @Deprecated @NonNull public android.location.LocationRequest setInterval(long); 493 method @Deprecated @NonNull @RequiresPermission(android.Manifest.permission.LOCATION_BYPASS) public android.location.LocationRequest setLocationSettingsIgnored(boolean); 494 method @Deprecated @NonNull public android.location.LocationRequest setLowPowerMode(boolean); 495 method @Deprecated @NonNull public android.location.LocationRequest setNumUpdates(int); 496 method @Deprecated @NonNull public android.location.LocationRequest setProvider(@NonNull String); 497 method @Deprecated @NonNull public android.location.LocationRequest setQuality(int); 498 method @Deprecated @NonNull public android.location.LocationRequest setSmallestDisplacement(float); 499 method @Deprecated public void setWorkSource(@Nullable android.os.WorkSource); 500 field @Deprecated public static final int ACCURACY_BLOCK = 102; // 0x66 501 field @Deprecated public static final int ACCURACY_CITY = 104; // 0x68 502 field @Deprecated public static final int ACCURACY_FINE = 100; // 0x64 503 field @Deprecated public static final int POWER_HIGH = 203; // 0xcb 504 field @Deprecated public static final int POWER_LOW = 201; // 0xc9 505 field @Deprecated public static final int POWER_NONE = 200; // 0xc8 506 } 507 508 public static final class LocationRequest.Builder { 509 method @NonNull @RequiresPermission(android.Manifest.permission.LOCATION_BYPASS) public android.location.LocationRequest.Builder setAdasGnssBypass(boolean); 510 method @NonNull @RequiresPermission(android.Manifest.permission.UPDATE_APP_OPS_STATS) public android.location.LocationRequest.Builder setHiddenFromAppOps(boolean); 511 method @NonNull @RequiresPermission(android.Manifest.permission.LOCATION_BYPASS) public android.location.LocationRequest.Builder setLocationSettingsIgnored(boolean); 512 method @NonNull @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public android.location.LocationRequest.Builder setLowPower(boolean); 513 method @NonNull @RequiresPermission(android.Manifest.permission.UPDATE_DEVICE_STATS) public android.location.LocationRequest.Builder setWorkSource(@Nullable android.os.WorkSource); 514 } 515 516 public final class SatellitePvt implements android.os.Parcelable { 517 method public int describeContents(); 518 method @Nullable public android.location.SatellitePvt.ClockInfo getClockInfo(); 519 method public int getEphemerisSource(); 520 method @FloatRange public double getIonoDelayMeters(); 521 method @IntRange(from=0, to=1023) public int getIssueOfDataClock(); 522 method @IntRange(from=0, to=1023) public int getIssueOfDataEphemeris(); 523 method @Nullable public android.location.SatellitePvt.PositionEcef getPositionEcef(); 524 method @IntRange(from=0) public long getTimeOfClockSeconds(); 525 method @IntRange(from=0) public long getTimeOfEphemerisSeconds(); 526 method @FloatRange public double getTropoDelayMeters(); 527 method @Nullable public android.location.SatellitePvt.VelocityEcef getVelocityEcef(); 528 method public boolean hasIono(); 529 method public boolean hasIssueOfDataClock(); 530 method public boolean hasIssueOfDataEphemeris(); 531 method public boolean hasPositionVelocityClockInfo(); 532 method public boolean hasTimeOfClockSeconds(); 533 method public boolean hasTimeOfEphemerisSeconds(); 534 method public boolean hasTropo(); 535 method public void writeToParcel(@NonNull android.os.Parcel, int); 536 field @NonNull public static final android.os.Parcelable.Creator<android.location.SatellitePvt> CREATOR; 537 field public static final int EPHEMERIS_SOURCE_DEMODULATED = 0; // 0x0 538 field public static final int EPHEMERIS_SOURCE_OTHER = 3; // 0x3 539 field public static final int EPHEMERIS_SOURCE_SERVER_LONG_TERM = 2; // 0x2 540 field public static final int EPHEMERIS_SOURCE_SERVER_NORMAL = 1; // 0x1 541 } 542 543 public static final class SatellitePvt.Builder { 544 ctor public SatellitePvt.Builder(); 545 method @NonNull public android.location.SatellitePvt build(); 546 method @NonNull public android.location.SatellitePvt.Builder setClockInfo(@NonNull android.location.SatellitePvt.ClockInfo); 547 method @NonNull public android.location.SatellitePvt.Builder setEphemerisSource(int); 548 method @NonNull public android.location.SatellitePvt.Builder setIonoDelayMeters(@FloatRange(from=0.0f, to=100.0f) double); 549 method @NonNull public android.location.SatellitePvt.Builder setIssueOfDataClock(@IntRange(from=0, to=1023) int); 550 method @NonNull public android.location.SatellitePvt.Builder setIssueOfDataEphemeris(@IntRange(from=0, to=1023) int); 551 method @NonNull public android.location.SatellitePvt.Builder setPositionEcef(@NonNull android.location.SatellitePvt.PositionEcef); 552 method @NonNull public android.location.SatellitePvt.Builder setTimeOfClockSeconds(@IntRange(from=0) long); 553 method @NonNull public android.location.SatellitePvt.Builder setTimeOfEphemerisSeconds(@IntRange(from=0) long); 554 method @NonNull public android.location.SatellitePvt.Builder setTropoDelayMeters(@FloatRange(from=0.0f, to=100.0f) double); 555 method @NonNull public android.location.SatellitePvt.Builder setVelocityEcef(@NonNull android.location.SatellitePvt.VelocityEcef); 556 } 557 558 public static final class SatellitePvt.ClockInfo implements android.os.Parcelable { 559 ctor public SatellitePvt.ClockInfo(double, double, double); 560 method public int describeContents(); 561 method @FloatRange public double getClockDriftMetersPerSecond(); 562 method @FloatRange public double getHardwareCodeBiasMeters(); 563 method @FloatRange public double getTimeCorrectionMeters(); 564 method public void writeToParcel(@NonNull android.os.Parcel, int); 565 field @NonNull public static final android.os.Parcelable.Creator<android.location.SatellitePvt.ClockInfo> CREATOR; 566 } 567 568 public static final class SatellitePvt.PositionEcef implements android.os.Parcelable { 569 ctor public SatellitePvt.PositionEcef(double, double, double, double); 570 method public int describeContents(); 571 method @FloatRange(from=0.0f, fromInclusive=false) public double getUreMeters(); 572 method @FloatRange public double getXMeters(); 573 method @FloatRange public double getYMeters(); 574 method @FloatRange public double getZMeters(); 575 method public void writeToParcel(@NonNull android.os.Parcel, int); 576 field @NonNull public static final android.os.Parcelable.Creator<android.location.SatellitePvt.PositionEcef> CREATOR; 577 } 578 579 public static final class SatellitePvt.VelocityEcef implements android.os.Parcelable { 580 ctor public SatellitePvt.VelocityEcef(double, double, double, double); 581 method public int describeContents(); 582 method @FloatRange(from=0.0f, fromInclusive=false) public double getUreRateMetersPerSecond(); 583 method @FloatRange public double getXMetersPerSecond(); 584 method @FloatRange public double getYMetersPerSecond(); 585 method @FloatRange public double getZMetersPerSecond(); 586 method public void writeToParcel(@NonNull android.os.Parcel, int); 587 field @NonNull public static final android.os.Parcelable.Creator<android.location.SatellitePvt.VelocityEcef> CREATOR; 588 } 589 590} 591 592package android.location.provider { 593 594 @FlaggedApi("android.location.flags.new_geocoder") public final class ForwardGeocodeRequest implements android.os.Parcelable { 595 method public int describeContents(); 596 method @Nullable public String getCallingAttributionTag(); 597 method @NonNull public String getCallingPackage(); 598 method public int getCallingUid(); 599 method @NonNull public java.util.Locale getLocale(); 600 method @NonNull public String getLocationName(); 601 method @FloatRange(from=-90.0, to=90.0) public double getLowerLeftLatitude(); 602 method @FloatRange(from=-180.0, to=180.0) public double getLowerLeftLongitude(); 603 method @IntRange(from=1) public int getMaxResults(); 604 method @FloatRange(from=-90.0, to=90.0) public double getUpperRightLatitude(); 605 method @FloatRange(from=-180.0, to=180.0) public double getUpperRightLongitude(); 606 method public void writeToParcel(@NonNull android.os.Parcel, int); 607 field @NonNull public static final android.os.Parcelable.Creator<android.location.provider.ForwardGeocodeRequest> CREATOR; 608 } 609 610 public static final class ForwardGeocodeRequest.Builder { 611 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); 612 method @NonNull public android.location.provider.ForwardGeocodeRequest build(); 613 method @NonNull public android.location.provider.ForwardGeocodeRequest.Builder setCallingAttributionTag(@NonNull String); 614 } 615 616 @FlaggedApi("android.location.flags.new_geocoder") public abstract class GeocodeProviderBase { 617 ctor public GeocodeProviderBase(@NonNull android.content.Context, @NonNull String); 618 method @NonNull public final android.os.IBinder getBinder(); 619 method public abstract void onForwardGeocode(@NonNull android.location.provider.ForwardGeocodeRequest, @NonNull android.os.OutcomeReceiver<java.util.List<android.location.Address>,java.lang.Throwable>); 620 method public abstract void onReverseGeocode(@NonNull android.location.provider.ReverseGeocodeRequest, @NonNull android.os.OutcomeReceiver<java.util.List<android.location.Address>,java.lang.Throwable>); 621 field public static final String ACTION_GEOCODE_PROVIDER = "com.android.location.service.GeocodeProvider"; 622 } 623 624 public abstract class LocationProviderBase { 625 ctor public LocationProviderBase(@NonNull android.content.Context, @NonNull String, @NonNull android.location.provider.ProviderProperties); 626 method @Nullable public final android.os.IBinder getBinder(); 627 method @NonNull public android.location.provider.ProviderProperties getProperties(); 628 method public boolean isAllowed(); 629 method public abstract void onFlush(@NonNull android.location.provider.LocationProviderBase.OnFlushCompleteCallback); 630 method public abstract void onSendExtraCommand(@NonNull String, @Nullable android.os.Bundle); 631 method public abstract void onSetRequest(@NonNull android.location.provider.ProviderRequest); 632 method public void reportLocation(@NonNull android.location.Location); 633 method public void reportLocations(@NonNull java.util.List<android.location.Location>); 634 method public void setAllowed(boolean); 635 method public void setProperties(@NonNull android.location.provider.ProviderProperties); 636 field public static final String ACTION_FUSED_PROVIDER = "com.android.location.service.FusedLocationProvider"; 637 field public static final String ACTION_GNSS_PROVIDER = "android.location.provider.action.GNSS_PROVIDER"; 638 field public static final String ACTION_NETWORK_PROVIDER = "com.android.location.service.v3.NetworkLocationProvider"; 639 } 640 641 public static interface LocationProviderBase.OnFlushCompleteCallback { 642 method public void onFlushComplete(); 643 } 644 645 public final class ProviderRequest implements android.os.Parcelable { 646 method public int describeContents(); 647 method @IntRange(from=0) public long getIntervalMillis(); 648 method @IntRange(from=0) public long getMaxUpdateDelayMillis(); 649 method public int getQuality(); 650 method @NonNull public android.os.WorkSource getWorkSource(); 651 method public boolean isActive(); 652 method public boolean isLocationSettingsIgnored(); 653 method public boolean isLowPower(); 654 method public void writeToParcel(@NonNull android.os.Parcel, int); 655 field @NonNull public static final android.os.Parcelable.Creator<android.location.provider.ProviderRequest> CREATOR; 656 field @NonNull public static final android.location.provider.ProviderRequest EMPTY_REQUEST; 657 field public static final long INTERVAL_DISABLED = 9223372036854775807L; // 0x7fffffffffffffffL 658 } 659 660 public static final class ProviderRequest.Builder { 661 ctor public ProviderRequest.Builder(); 662 method @NonNull public android.location.provider.ProviderRequest build(); 663 method @NonNull public android.location.provider.ProviderRequest.Builder setIntervalMillis(@IntRange(from=0) long); 664 method @NonNull public android.location.provider.ProviderRequest.Builder setLocationSettingsIgnored(boolean); 665 method @NonNull public android.location.provider.ProviderRequest.Builder setLowPower(boolean); 666 method @NonNull public android.location.provider.ProviderRequest.Builder setMaxUpdateDelayMillis(@IntRange(from=0) long); 667 method @NonNull public android.location.provider.ProviderRequest.Builder setQuality(int); 668 method @NonNull public android.location.provider.ProviderRequest.Builder setWorkSource(@NonNull android.os.WorkSource); 669 } 670 671 public static interface ProviderRequest.ChangedListener { 672 method public void onProviderRequestChanged(@NonNull String, @NonNull android.location.provider.ProviderRequest); 673 } 674 675 @FlaggedApi("android.location.flags.new_geocoder") public final class ReverseGeocodeRequest implements android.os.Parcelable { 676 method public int describeContents(); 677 method @Nullable public String getCallingAttributionTag(); 678 method @NonNull public String getCallingPackage(); 679 method public int getCallingUid(); 680 method @FloatRange(from=-90.0, to=90.0) public double getLatitude(); 681 method @NonNull public java.util.Locale getLocale(); 682 method @FloatRange(from=-180.0, to=180.0) public double getLongitude(); 683 method @IntRange(from=1) public int getMaxResults(); 684 method public void writeToParcel(@NonNull android.os.Parcel, int); 685 field @NonNull public static final android.os.Parcelable.Creator<android.location.provider.ReverseGeocodeRequest> CREATOR; 686 } 687 688 public static final class ReverseGeocodeRequest.Builder { 689 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); 690 method @NonNull public android.location.provider.ReverseGeocodeRequest build(); 691 method @NonNull public android.location.provider.ReverseGeocodeRequest.Builder setCallingAttributionTag(@NonNull String); 692 } 693 694} 695 696