1*344a7f5eSAndroid Build Coastguard Worker// Signature format: 2.0 2*344a7f5eSAndroid Build Coastguard Workerpackage android.location { 3*344a7f5eSAndroid Build Coastguard Worker 4*344a7f5eSAndroid Build Coastguard Worker public class Address implements android.os.Parcelable { 5*344a7f5eSAndroid Build Coastguard Worker ctor public Address(java.util.Locale); 6*344a7f5eSAndroid Build Coastguard Worker method public void clearLatitude(); 7*344a7f5eSAndroid Build Coastguard Worker method public void clearLongitude(); 8*344a7f5eSAndroid Build Coastguard Worker method public int describeContents(); 9*344a7f5eSAndroid Build Coastguard Worker method public String getAddressLine(int); 10*344a7f5eSAndroid Build Coastguard Worker method public String getAdminArea(); 11*344a7f5eSAndroid Build Coastguard Worker method public String getCountryCode(); 12*344a7f5eSAndroid Build Coastguard Worker method public String getCountryName(); 13*344a7f5eSAndroid Build Coastguard Worker method public android.os.Bundle getExtras(); 14*344a7f5eSAndroid Build Coastguard Worker method public String getFeatureName(); 15*344a7f5eSAndroid Build Coastguard Worker method public double getLatitude(); 16*344a7f5eSAndroid Build Coastguard Worker method public java.util.Locale getLocale(); 17*344a7f5eSAndroid Build Coastguard Worker method public String getLocality(); 18*344a7f5eSAndroid Build Coastguard Worker method public double getLongitude(); 19*344a7f5eSAndroid Build Coastguard Worker method public int getMaxAddressLineIndex(); 20*344a7f5eSAndroid Build Coastguard Worker method public String getPhone(); 21*344a7f5eSAndroid Build Coastguard Worker method public String getPostalCode(); 22*344a7f5eSAndroid Build Coastguard Worker method public String getPremises(); 23*344a7f5eSAndroid Build Coastguard Worker method public String getSubAdminArea(); 24*344a7f5eSAndroid Build Coastguard Worker method public String getSubLocality(); 25*344a7f5eSAndroid Build Coastguard Worker method public String getSubThoroughfare(); 26*344a7f5eSAndroid Build Coastguard Worker method public String getThoroughfare(); 27*344a7f5eSAndroid Build Coastguard Worker method public String getUrl(); 28*344a7f5eSAndroid Build Coastguard Worker method public boolean hasLatitude(); 29*344a7f5eSAndroid Build Coastguard Worker method public boolean hasLongitude(); 30*344a7f5eSAndroid Build Coastguard Worker method public void setAddressLine(int, String); 31*344a7f5eSAndroid Build Coastguard Worker method public void setAdminArea(String); 32*344a7f5eSAndroid Build Coastguard Worker method public void setCountryCode(String); 33*344a7f5eSAndroid Build Coastguard Worker method public void setCountryName(String); 34*344a7f5eSAndroid Build Coastguard Worker method public void setExtras(android.os.Bundle); 35*344a7f5eSAndroid Build Coastguard Worker method public void setFeatureName(String); 36*344a7f5eSAndroid Build Coastguard Worker method public void setLatitude(double); 37*344a7f5eSAndroid Build Coastguard Worker method public void setLocality(String); 38*344a7f5eSAndroid Build Coastguard Worker method public void setLongitude(double); 39*344a7f5eSAndroid Build Coastguard Worker method public void setPhone(String); 40*344a7f5eSAndroid Build Coastguard Worker method public void setPostalCode(String); 41*344a7f5eSAndroid Build Coastguard Worker method public void setPremises(String); 42*344a7f5eSAndroid Build Coastguard Worker method public void setSubAdminArea(String); 43*344a7f5eSAndroid Build Coastguard Worker method public void setSubLocality(String); 44*344a7f5eSAndroid Build Coastguard Worker method public void setSubThoroughfare(String); 45*344a7f5eSAndroid Build Coastguard Worker method public void setThoroughfare(String); 46*344a7f5eSAndroid Build Coastguard Worker method public void setUrl(String); 47*344a7f5eSAndroid Build Coastguard Worker method public void writeToParcel(android.os.Parcel, int); 48*344a7f5eSAndroid Build Coastguard Worker field @NonNull public static final android.os.Parcelable.Creator<android.location.Address> CREATOR; 49*344a7f5eSAndroid Build Coastguard Worker } 50*344a7f5eSAndroid Build Coastguard Worker 51*344a7f5eSAndroid Build Coastguard Worker @Deprecated public class Criteria implements android.os.Parcelable { 52*344a7f5eSAndroid Build Coastguard Worker ctor @Deprecated public Criteria(); 53*344a7f5eSAndroid Build Coastguard Worker ctor @Deprecated public Criteria(android.location.Criteria); 54*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public int describeContents(); 55*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public int getAccuracy(); 56*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public int getBearingAccuracy(); 57*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public int getHorizontalAccuracy(); 58*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public int getPowerRequirement(); 59*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public int getSpeedAccuracy(); 60*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public int getVerticalAccuracy(); 61*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public boolean isAltitudeRequired(); 62*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public boolean isBearingRequired(); 63*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public boolean isCostAllowed(); 64*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public boolean isSpeedRequired(); 65*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public void setAccuracy(int); 66*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public void setAltitudeRequired(boolean); 67*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public void setBearingAccuracy(int); 68*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public void setBearingRequired(boolean); 69*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public void setCostAllowed(boolean); 70*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public void setHorizontalAccuracy(int); 71*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public void setPowerRequirement(int); 72*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public void setSpeedAccuracy(int); 73*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public void setSpeedRequired(boolean); 74*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public void setVerticalAccuracy(int); 75*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public void writeToParcel(android.os.Parcel, int); 76*344a7f5eSAndroid Build Coastguard Worker field @Deprecated public static final int ACCURACY_COARSE = 2; // 0x2 77*344a7f5eSAndroid Build Coastguard Worker field @Deprecated public static final int ACCURACY_FINE = 1; // 0x1 78*344a7f5eSAndroid Build Coastguard Worker field @Deprecated public static final int ACCURACY_HIGH = 3; // 0x3 79*344a7f5eSAndroid Build Coastguard Worker field @Deprecated public static final int ACCURACY_LOW = 1; // 0x1 80*344a7f5eSAndroid Build Coastguard Worker field @Deprecated public static final int ACCURACY_MEDIUM = 2; // 0x2 81*344a7f5eSAndroid Build Coastguard Worker field @Deprecated @NonNull public static final android.os.Parcelable.Creator<android.location.Criteria> CREATOR; 82*344a7f5eSAndroid Build Coastguard Worker field @Deprecated public static final int NO_REQUIREMENT = 0; // 0x0 83*344a7f5eSAndroid Build Coastguard Worker field @Deprecated public static final int POWER_HIGH = 3; // 0x3 84*344a7f5eSAndroid Build Coastguard Worker field @Deprecated public static final int POWER_LOW = 1; // 0x1 85*344a7f5eSAndroid Build Coastguard Worker field @Deprecated public static final int POWER_MEDIUM = 2; // 0x2 86*344a7f5eSAndroid Build Coastguard Worker } 87*344a7f5eSAndroid Build Coastguard Worker 88*344a7f5eSAndroid Build Coastguard Worker public final class Geocoder { 89*344a7f5eSAndroid Build Coastguard Worker ctor public Geocoder(@NonNull android.content.Context); 90*344a7f5eSAndroid Build Coastguard Worker ctor public Geocoder(@NonNull android.content.Context, @NonNull java.util.Locale); 91*344a7f5eSAndroid Build Coastguard Worker method @Deprecated @Nullable public java.util.List<android.location.Address> getFromLocation(@FloatRange(from=-90.0, to=90.0) double, @FloatRange(from=-180.0, to=180.0) double, @IntRange int) throws java.io.IOException; 92*344a7f5eSAndroid Build Coastguard Worker method public void getFromLocation(@FloatRange(from=-90.0, to=90.0) double, @FloatRange(from=-180.0, to=180.0) double, @IntRange int, @NonNull android.location.Geocoder.GeocodeListener); 93*344a7f5eSAndroid Build Coastguard Worker method @Deprecated @Nullable public java.util.List<android.location.Address> getFromLocationName(@NonNull String, @IntRange int) throws java.io.IOException; 94*344a7f5eSAndroid Build Coastguard Worker method public void getFromLocationName(@NonNull String, @IntRange int, @NonNull android.location.Geocoder.GeocodeListener); 95*344a7f5eSAndroid Build Coastguard Worker method @Deprecated @Nullable public java.util.List<android.location.Address> getFromLocationName(@NonNull String, @IntRange int, @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) throws java.io.IOException; 96*344a7f5eSAndroid Build Coastguard Worker method public void getFromLocationName(@NonNull String, @IntRange int, @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, @NonNull android.location.Geocoder.GeocodeListener); 97*344a7f5eSAndroid Build Coastguard Worker method public static boolean isPresent(); 98*344a7f5eSAndroid Build Coastguard Worker } 99*344a7f5eSAndroid Build Coastguard Worker 100*344a7f5eSAndroid Build Coastguard Worker public static interface Geocoder.GeocodeListener { 101*344a7f5eSAndroid Build Coastguard Worker method public default void onError(@Nullable String); 102*344a7f5eSAndroid Build Coastguard Worker method public void onGeocode(@NonNull java.util.List<android.location.Address>); 103*344a7f5eSAndroid Build Coastguard Worker } 104*344a7f5eSAndroid Build Coastguard Worker 105*344a7f5eSAndroid Build Coastguard Worker public final class GnssAntennaInfo implements android.os.Parcelable { 106*344a7f5eSAndroid Build Coastguard Worker method public int describeContents(); 107*344a7f5eSAndroid Build Coastguard Worker method @FloatRange(from=0.0f) public double getCarrierFrequencyMHz(); 108*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.GnssAntennaInfo.PhaseCenterOffset getPhaseCenterOffset(); 109*344a7f5eSAndroid Build Coastguard Worker method @Nullable public android.location.GnssAntennaInfo.SphericalCorrections getPhaseCenterVariationCorrections(); 110*344a7f5eSAndroid Build Coastguard Worker method @Nullable public android.location.GnssAntennaInfo.SphericalCorrections getSignalGainCorrections(); 111*344a7f5eSAndroid Build Coastguard Worker method public void writeToParcel(@NonNull android.os.Parcel, int); 112*344a7f5eSAndroid Build Coastguard Worker field @NonNull public static final android.os.Parcelable.Creator<android.location.GnssAntennaInfo> CREATOR; 113*344a7f5eSAndroid Build Coastguard Worker } 114*344a7f5eSAndroid Build Coastguard Worker 115*344a7f5eSAndroid Build Coastguard Worker public static class GnssAntennaInfo.Builder { 116*344a7f5eSAndroid Build Coastguard Worker ctor @Deprecated public GnssAntennaInfo.Builder(); 117*344a7f5eSAndroid Build Coastguard Worker ctor public GnssAntennaInfo.Builder(double, @NonNull android.location.GnssAntennaInfo.PhaseCenterOffset); 118*344a7f5eSAndroid Build Coastguard Worker ctor public GnssAntennaInfo.Builder(@NonNull android.location.GnssAntennaInfo); 119*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.GnssAntennaInfo build(); 120*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.GnssAntennaInfo.Builder setCarrierFrequencyMHz(@FloatRange(from=0.0f) double); 121*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.GnssAntennaInfo.Builder setPhaseCenterOffset(@NonNull android.location.GnssAntennaInfo.PhaseCenterOffset); 122*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.GnssAntennaInfo.Builder setPhaseCenterVariationCorrections(@Nullable android.location.GnssAntennaInfo.SphericalCorrections); 123*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.GnssAntennaInfo.Builder setSignalGainCorrections(@Nullable android.location.GnssAntennaInfo.SphericalCorrections); 124*344a7f5eSAndroid Build Coastguard Worker } 125*344a7f5eSAndroid Build Coastguard Worker 126*344a7f5eSAndroid Build Coastguard Worker public static interface GnssAntennaInfo.Listener { 127*344a7f5eSAndroid Build Coastguard Worker method public void onGnssAntennaInfoReceived(@NonNull java.util.List<android.location.GnssAntennaInfo>); 128*344a7f5eSAndroid Build Coastguard Worker } 129*344a7f5eSAndroid Build Coastguard Worker 130*344a7f5eSAndroid Build Coastguard Worker public static final class GnssAntennaInfo.PhaseCenterOffset implements android.os.Parcelable { 131*344a7f5eSAndroid Build Coastguard Worker ctor public GnssAntennaInfo.PhaseCenterOffset(double, double, double, double, double, double); 132*344a7f5eSAndroid Build Coastguard Worker method public int describeContents(); 133*344a7f5eSAndroid Build Coastguard Worker method @FloatRange public double getXOffsetMm(); 134*344a7f5eSAndroid Build Coastguard Worker method @FloatRange public double getXOffsetUncertaintyMm(); 135*344a7f5eSAndroid Build Coastguard Worker method @FloatRange public double getYOffsetMm(); 136*344a7f5eSAndroid Build Coastguard Worker method @FloatRange public double getYOffsetUncertaintyMm(); 137*344a7f5eSAndroid Build Coastguard Worker method @FloatRange public double getZOffsetMm(); 138*344a7f5eSAndroid Build Coastguard Worker method @FloatRange public double getZOffsetUncertaintyMm(); 139*344a7f5eSAndroid Build Coastguard Worker method public void writeToParcel(@NonNull android.os.Parcel, int); 140*344a7f5eSAndroid Build Coastguard Worker field @NonNull public static final android.os.Parcelable.Creator<android.location.GnssAntennaInfo.PhaseCenterOffset> CREATOR; 141*344a7f5eSAndroid Build Coastguard Worker } 142*344a7f5eSAndroid Build Coastguard Worker 143*344a7f5eSAndroid Build Coastguard Worker public static final class GnssAntennaInfo.SphericalCorrections implements android.os.Parcelable { 144*344a7f5eSAndroid Build Coastguard Worker ctor public GnssAntennaInfo.SphericalCorrections(@NonNull double[][], @NonNull double[][]); 145*344a7f5eSAndroid Build Coastguard Worker method public int describeContents(); 146*344a7f5eSAndroid Build Coastguard Worker method @NonNull public double[][] getCorrectionUncertaintiesArray(); 147*344a7f5eSAndroid Build Coastguard Worker method @NonNull public double[][] getCorrectionsArray(); 148*344a7f5eSAndroid Build Coastguard Worker method @FloatRange(from=0.0f, to=180.0f) public double getDeltaPhi(); 149*344a7f5eSAndroid Build Coastguard Worker method @FloatRange(from=0.0f, to=360.0f) public double getDeltaTheta(); 150*344a7f5eSAndroid Build Coastguard Worker method public void writeToParcel(@NonNull android.os.Parcel, int); 151*344a7f5eSAndroid Build Coastguard Worker field @NonNull public static final android.os.Parcelable.Creator<android.location.GnssAntennaInfo.SphericalCorrections> CREATOR; 152*344a7f5eSAndroid Build Coastguard Worker } 153*344a7f5eSAndroid Build Coastguard Worker 154*344a7f5eSAndroid Build Coastguard Worker public final class GnssAutomaticGainControl implements android.os.Parcelable { 155*344a7f5eSAndroid Build Coastguard Worker method public int describeContents(); 156*344a7f5eSAndroid Build Coastguard Worker method @IntRange(from=0) public long getCarrierFrequencyHz(); 157*344a7f5eSAndroid Build Coastguard Worker method public int getConstellationType(); 158*344a7f5eSAndroid Build Coastguard Worker method @FloatRange(from=0xffffd8f0, to=10000) public double getLevelDb(); 159*344a7f5eSAndroid Build Coastguard Worker method public void writeToParcel(@NonNull android.os.Parcel, int); 160*344a7f5eSAndroid Build Coastguard Worker field @NonNull public static final android.os.Parcelable.Creator<android.location.GnssAutomaticGainControl> CREATOR; 161*344a7f5eSAndroid Build Coastguard Worker } 162*344a7f5eSAndroid Build Coastguard Worker 163*344a7f5eSAndroid Build Coastguard Worker public static final class GnssAutomaticGainControl.Builder { 164*344a7f5eSAndroid Build Coastguard Worker ctor public GnssAutomaticGainControl.Builder(); 165*344a7f5eSAndroid Build Coastguard Worker ctor public GnssAutomaticGainControl.Builder(@NonNull android.location.GnssAutomaticGainControl); 166*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.GnssAutomaticGainControl build(); 167*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.GnssAutomaticGainControl.Builder setCarrierFrequencyHz(@IntRange(from=0) long); 168*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.GnssAutomaticGainControl.Builder setConstellationType(int); 169*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.GnssAutomaticGainControl.Builder setLevelDb(@FloatRange(from=0xffffd8f0, to=10000) double); 170*344a7f5eSAndroid Build Coastguard Worker } 171*344a7f5eSAndroid Build Coastguard Worker 172*344a7f5eSAndroid Build Coastguard Worker public final class GnssCapabilities implements android.os.Parcelable { 173*344a7f5eSAndroid Build Coastguard Worker method public int describeContents(); 174*344a7f5eSAndroid Build Coastguard Worker method @NonNull public java.util.List<android.location.GnssSignalType> getGnssSignalTypes(); 175*344a7f5eSAndroid Build Coastguard Worker method public int hasAccumulatedDeltaRange(); 176*344a7f5eSAndroid Build Coastguard Worker method public boolean hasAntennaInfo(); 177*344a7f5eSAndroid Build Coastguard Worker method public boolean hasGeofencing(); 178*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public boolean hasGnssAntennaInfo(); 179*344a7f5eSAndroid Build Coastguard Worker method public boolean hasLowPowerMode(); 180*344a7f5eSAndroid Build Coastguard Worker method public boolean hasMeasurementCorrections(); 181*344a7f5eSAndroid Build Coastguard Worker method public boolean hasMeasurementCorrectionsExcessPathLength(); 182*344a7f5eSAndroid Build Coastguard Worker method public boolean hasMeasurementCorrectionsForDriving(); 183*344a7f5eSAndroid Build Coastguard Worker method public boolean hasMeasurementCorrectionsLosSats(); 184*344a7f5eSAndroid Build Coastguard Worker method public boolean hasMeasurementCorrectionsReflectingPlane(); 185*344a7f5eSAndroid Build Coastguard Worker method public boolean hasMeasurementCorrelationVectors(); 186*344a7f5eSAndroid Build Coastguard Worker method public boolean hasMeasurements(); 187*344a7f5eSAndroid Build Coastguard Worker method public boolean hasMsa(); 188*344a7f5eSAndroid Build Coastguard Worker method public boolean hasMsb(); 189*344a7f5eSAndroid Build Coastguard Worker method public boolean hasNavigationMessages(); 190*344a7f5eSAndroid Build Coastguard Worker method public boolean hasOnDemandTime(); 191*344a7f5eSAndroid Build Coastguard Worker method public boolean hasPowerMultibandAcquisition(); 192*344a7f5eSAndroid Build Coastguard Worker method public boolean hasPowerMultibandTracking(); 193*344a7f5eSAndroid Build Coastguard Worker method public boolean hasPowerOtherModes(); 194*344a7f5eSAndroid Build Coastguard Worker method public boolean hasPowerSinglebandAcquisition(); 195*344a7f5eSAndroid Build Coastguard Worker method public boolean hasPowerSinglebandTracking(); 196*344a7f5eSAndroid Build Coastguard Worker method public boolean hasPowerTotal(); 197*344a7f5eSAndroid Build Coastguard Worker method public boolean hasSatelliteBlocklist(); 198*344a7f5eSAndroid Build Coastguard Worker method public boolean hasSatellitePvt(); 199*344a7f5eSAndroid Build Coastguard Worker method public boolean hasScheduling(); 200*344a7f5eSAndroid Build Coastguard Worker method public boolean hasSingleShotFix(); 201*344a7f5eSAndroid Build Coastguard Worker method public void writeToParcel(@NonNull android.os.Parcel, int); 202*344a7f5eSAndroid Build Coastguard Worker field public static final int CAPABILITY_SUPPORTED = 1; // 0x1 203*344a7f5eSAndroid Build Coastguard Worker field public static final int CAPABILITY_UNKNOWN = 0; // 0x0 204*344a7f5eSAndroid Build Coastguard Worker field public static final int CAPABILITY_UNSUPPORTED = 2; // 0x2 205*344a7f5eSAndroid Build Coastguard Worker field @NonNull public static final android.os.Parcelable.Creator<android.location.GnssCapabilities> CREATOR; 206*344a7f5eSAndroid Build Coastguard Worker } 207*344a7f5eSAndroid Build Coastguard Worker 208*344a7f5eSAndroid Build Coastguard Worker public static final class GnssCapabilities.Builder { 209*344a7f5eSAndroid Build Coastguard Worker ctor public GnssCapabilities.Builder(); 210*344a7f5eSAndroid Build Coastguard Worker ctor public GnssCapabilities.Builder(@NonNull android.location.GnssCapabilities); 211*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.GnssCapabilities build(); 212*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.GnssCapabilities.Builder setGnssSignalTypes(@NonNull java.util.List<android.location.GnssSignalType>); 213*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.GnssCapabilities.Builder setHasAccumulatedDeltaRange(int); 214*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.GnssCapabilities.Builder setHasAntennaInfo(boolean); 215*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.GnssCapabilities.Builder setHasGeofencing(boolean); 216*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.GnssCapabilities.Builder setHasLowPowerMode(boolean); 217*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.GnssCapabilities.Builder setHasMeasurementCorrections(boolean); 218*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.GnssCapabilities.Builder setHasMeasurementCorrectionsExcessPathLength(boolean); 219*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.GnssCapabilities.Builder setHasMeasurementCorrectionsForDriving(boolean); 220*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.GnssCapabilities.Builder setHasMeasurementCorrectionsLosSats(boolean); 221*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.GnssCapabilities.Builder setHasMeasurementCorrectionsReflectingPlane(boolean); 222*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.GnssCapabilities.Builder setHasMeasurementCorrelationVectors(boolean); 223*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.GnssCapabilities.Builder setHasMeasurements(boolean); 224*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.GnssCapabilities.Builder setHasMsa(boolean); 225*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.GnssCapabilities.Builder setHasMsb(boolean); 226*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.GnssCapabilities.Builder setHasNavigationMessages(boolean); 227*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.GnssCapabilities.Builder setHasOnDemandTime(boolean); 228*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.GnssCapabilities.Builder setHasPowerMultibandAcquisition(boolean); 229*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.GnssCapabilities.Builder setHasPowerMultibandTracking(boolean); 230*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.GnssCapabilities.Builder setHasPowerOtherModes(boolean); 231*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.GnssCapabilities.Builder setHasPowerSinglebandAcquisition(boolean); 232*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.GnssCapabilities.Builder setHasPowerSinglebandTracking(boolean); 233*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.GnssCapabilities.Builder setHasPowerTotal(boolean); 234*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.GnssCapabilities.Builder setHasSatelliteBlocklist(boolean); 235*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.GnssCapabilities.Builder setHasSatellitePvt(boolean); 236*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.GnssCapabilities.Builder setHasScheduling(boolean); 237*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.GnssCapabilities.Builder setHasSingleShotFix(boolean); 238*344a7f5eSAndroid Build Coastguard Worker } 239*344a7f5eSAndroid Build Coastguard Worker 240*344a7f5eSAndroid Build Coastguard Worker public final class GnssClock implements android.os.Parcelable { 241*344a7f5eSAndroid Build Coastguard Worker method public int describeContents(); 242*344a7f5eSAndroid Build Coastguard Worker method public double getBiasNanos(); 243*344a7f5eSAndroid Build Coastguard Worker method @FloatRange(from=0.0f) public double getBiasUncertaintyNanos(); 244*344a7f5eSAndroid Build Coastguard Worker method public double getDriftNanosPerSecond(); 245*344a7f5eSAndroid Build Coastguard Worker method @FloatRange(from=0.0f) public double getDriftUncertaintyNanosPerSecond(); 246*344a7f5eSAndroid Build Coastguard Worker method public long getElapsedRealtimeNanos(); 247*344a7f5eSAndroid Build Coastguard Worker method @FloatRange(from=0.0f) public double getElapsedRealtimeUncertaintyNanos(); 248*344a7f5eSAndroid Build Coastguard Worker method public long getFullBiasNanos(); 249*344a7f5eSAndroid Build Coastguard Worker method public int getHardwareClockDiscontinuityCount(); 250*344a7f5eSAndroid Build Coastguard Worker method public int getLeapSecond(); 251*344a7f5eSAndroid Build Coastguard Worker method @FloatRange(from=0.0) public double getReferenceCarrierFrequencyHzForIsb(); 252*344a7f5eSAndroid Build Coastguard Worker method @NonNull public String getReferenceCodeTypeForIsb(); 253*344a7f5eSAndroid Build Coastguard Worker method public int getReferenceConstellationTypeForIsb(); 254*344a7f5eSAndroid Build Coastguard Worker method public long getTimeNanos(); 255*344a7f5eSAndroid Build Coastguard Worker method @FloatRange(from=0.0f) public double getTimeUncertaintyNanos(); 256*344a7f5eSAndroid Build Coastguard Worker method public boolean hasBiasNanos(); 257*344a7f5eSAndroid Build Coastguard Worker method public boolean hasBiasUncertaintyNanos(); 258*344a7f5eSAndroid Build Coastguard Worker method public boolean hasDriftNanosPerSecond(); 259*344a7f5eSAndroid Build Coastguard Worker method public boolean hasDriftUncertaintyNanosPerSecond(); 260*344a7f5eSAndroid Build Coastguard Worker method public boolean hasElapsedRealtimeNanos(); 261*344a7f5eSAndroid Build Coastguard Worker method public boolean hasElapsedRealtimeUncertaintyNanos(); 262*344a7f5eSAndroid Build Coastguard Worker method public boolean hasFullBiasNanos(); 263*344a7f5eSAndroid Build Coastguard Worker method public boolean hasLeapSecond(); 264*344a7f5eSAndroid Build Coastguard Worker method public boolean hasReferenceCarrierFrequencyHzForIsb(); 265*344a7f5eSAndroid Build Coastguard Worker method public boolean hasReferenceCodeTypeForIsb(); 266*344a7f5eSAndroid Build Coastguard Worker method public boolean hasReferenceConstellationTypeForIsb(); 267*344a7f5eSAndroid Build Coastguard Worker method public boolean hasTimeUncertaintyNanos(); 268*344a7f5eSAndroid Build Coastguard Worker method public void writeToParcel(android.os.Parcel, int); 269*344a7f5eSAndroid Build Coastguard Worker field @NonNull public static final android.os.Parcelable.Creator<android.location.GnssClock> CREATOR; 270*344a7f5eSAndroid Build Coastguard Worker } 271*344a7f5eSAndroid Build Coastguard Worker 272*344a7f5eSAndroid Build Coastguard Worker public final class GnssMeasurement implements android.os.Parcelable { 273*344a7f5eSAndroid Build Coastguard Worker method public int describeContents(); 274*344a7f5eSAndroid Build Coastguard Worker method public double getAccumulatedDeltaRangeMeters(); 275*344a7f5eSAndroid Build Coastguard Worker method public int getAccumulatedDeltaRangeState(); 276*344a7f5eSAndroid Build Coastguard Worker method public double getAccumulatedDeltaRangeUncertaintyMeters(); 277*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public double getAutomaticGainControlLevelDb(); 278*344a7f5eSAndroid Build Coastguard Worker method @FloatRange(from=0, to=63) public double getBasebandCn0DbHz(); 279*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public long getCarrierCycles(); 280*344a7f5eSAndroid Build Coastguard Worker method public float getCarrierFrequencyHz(); 281*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public double getCarrierPhase(); 282*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public double getCarrierPhaseUncertainty(); 283*344a7f5eSAndroid Build Coastguard Worker method @FloatRange(from=0, to=63) public double getCn0DbHz(); 284*344a7f5eSAndroid Build Coastguard Worker method @NonNull public String getCodeType(); 285*344a7f5eSAndroid Build Coastguard Worker method public int getConstellationType(); 286*344a7f5eSAndroid Build Coastguard Worker method public double getFullInterSignalBiasNanos(); 287*344a7f5eSAndroid Build Coastguard Worker method @FloatRange(from=0.0) public double getFullInterSignalBiasUncertaintyNanos(); 288*344a7f5eSAndroid Build Coastguard Worker method public int getMultipathIndicator(); 289*344a7f5eSAndroid Build Coastguard Worker method public double getPseudorangeRateMetersPerSecond(); 290*344a7f5eSAndroid Build Coastguard Worker method public double getPseudorangeRateUncertaintyMetersPerSecond(); 291*344a7f5eSAndroid Build Coastguard Worker method public long getReceivedSvTimeNanos(); 292*344a7f5eSAndroid Build Coastguard Worker method public long getReceivedSvTimeUncertaintyNanos(); 293*344a7f5eSAndroid Build Coastguard Worker method public double getSatelliteInterSignalBiasNanos(); 294*344a7f5eSAndroid Build Coastguard Worker method @FloatRange(from=0.0) public double getSatelliteInterSignalBiasUncertaintyNanos(); 295*344a7f5eSAndroid Build Coastguard Worker method public double getSnrInDb(); 296*344a7f5eSAndroid Build Coastguard Worker method public int getState(); 297*344a7f5eSAndroid Build Coastguard Worker method public int getSvid(); 298*344a7f5eSAndroid Build Coastguard Worker method public double getTimeOffsetNanos(); 299*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public boolean hasAutomaticGainControlLevelDb(); 300*344a7f5eSAndroid Build Coastguard Worker method public boolean hasBasebandCn0DbHz(); 301*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public boolean hasCarrierCycles(); 302*344a7f5eSAndroid Build Coastguard Worker method public boolean hasCarrierFrequencyHz(); 303*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public boolean hasCarrierPhase(); 304*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public boolean hasCarrierPhaseUncertainty(); 305*344a7f5eSAndroid Build Coastguard Worker method public boolean hasCodeType(); 306*344a7f5eSAndroid Build Coastguard Worker method public boolean hasFullInterSignalBiasNanos(); 307*344a7f5eSAndroid Build Coastguard Worker method public boolean hasFullInterSignalBiasUncertaintyNanos(); 308*344a7f5eSAndroid Build Coastguard Worker method public boolean hasSatelliteInterSignalBiasNanos(); 309*344a7f5eSAndroid Build Coastguard Worker method public boolean hasSatelliteInterSignalBiasUncertaintyNanos(); 310*344a7f5eSAndroid Build Coastguard Worker method public boolean hasSnrInDb(); 311*344a7f5eSAndroid Build Coastguard Worker method public void writeToParcel(android.os.Parcel, int); 312*344a7f5eSAndroid Build Coastguard Worker field public static final int ADR_STATE_CYCLE_SLIP = 4; // 0x4 313*344a7f5eSAndroid Build Coastguard Worker field public static final int ADR_STATE_HALF_CYCLE_REPORTED = 16; // 0x10 314*344a7f5eSAndroid Build Coastguard Worker field public static final int ADR_STATE_HALF_CYCLE_RESOLVED = 8; // 0x8 315*344a7f5eSAndroid Build Coastguard Worker field public static final int ADR_STATE_RESET = 2; // 0x2 316*344a7f5eSAndroid Build Coastguard Worker field public static final int ADR_STATE_UNKNOWN = 0; // 0x0 317*344a7f5eSAndroid Build Coastguard Worker field public static final int ADR_STATE_VALID = 1; // 0x1 318*344a7f5eSAndroid Build Coastguard Worker field @NonNull public static final android.os.Parcelable.Creator<android.location.GnssMeasurement> CREATOR; 319*344a7f5eSAndroid Build Coastguard Worker field public static final int MULTIPATH_INDICATOR_DETECTED = 1; // 0x1 320*344a7f5eSAndroid Build Coastguard Worker field public static final int MULTIPATH_INDICATOR_NOT_DETECTED = 2; // 0x2 321*344a7f5eSAndroid Build Coastguard Worker field public static final int MULTIPATH_INDICATOR_UNKNOWN = 0; // 0x0 322*344a7f5eSAndroid Build Coastguard Worker field public static final int STATE_2ND_CODE_LOCK = 65536; // 0x10000 323*344a7f5eSAndroid Build Coastguard Worker field public static final int STATE_BDS_D2_BIT_SYNC = 256; // 0x100 324*344a7f5eSAndroid Build Coastguard Worker field public static final int STATE_BDS_D2_SUBFRAME_SYNC = 512; // 0x200 325*344a7f5eSAndroid Build Coastguard Worker field public static final int STATE_BIT_SYNC = 2; // 0x2 326*344a7f5eSAndroid Build Coastguard Worker field public static final int STATE_CODE_LOCK = 1; // 0x1 327*344a7f5eSAndroid Build Coastguard Worker field public static final int STATE_GAL_E1BC_CODE_LOCK = 1024; // 0x400 328*344a7f5eSAndroid Build Coastguard Worker field public static final int STATE_GAL_E1B_PAGE_SYNC = 4096; // 0x1000 329*344a7f5eSAndroid Build Coastguard Worker field public static final int STATE_GAL_E1C_2ND_CODE_LOCK = 2048; // 0x800 330*344a7f5eSAndroid Build Coastguard Worker field public static final int STATE_GLO_STRING_SYNC = 64; // 0x40 331*344a7f5eSAndroid Build Coastguard Worker field public static final int STATE_GLO_TOD_DECODED = 128; // 0x80 332*344a7f5eSAndroid Build Coastguard Worker field public static final int STATE_GLO_TOD_KNOWN = 32768; // 0x8000 333*344a7f5eSAndroid Build Coastguard Worker field public static final int STATE_MSEC_AMBIGUOUS = 16; // 0x10 334*344a7f5eSAndroid Build Coastguard Worker field public static final int STATE_SBAS_SYNC = 8192; // 0x2000 335*344a7f5eSAndroid Build Coastguard Worker field public static final int STATE_SUBFRAME_SYNC = 4; // 0x4 336*344a7f5eSAndroid Build Coastguard Worker field public static final int STATE_SYMBOL_SYNC = 32; // 0x20 337*344a7f5eSAndroid Build Coastguard Worker field public static final int STATE_TOW_DECODED = 8; // 0x8 338*344a7f5eSAndroid Build Coastguard Worker field public static final int STATE_TOW_KNOWN = 16384; // 0x4000 339*344a7f5eSAndroid Build Coastguard Worker field public static final int STATE_UNKNOWN = 0; // 0x0 340*344a7f5eSAndroid Build Coastguard Worker } 341*344a7f5eSAndroid Build Coastguard Worker 342*344a7f5eSAndroid Build Coastguard Worker public final class GnssMeasurementRequest implements android.os.Parcelable { 343*344a7f5eSAndroid Build Coastguard Worker method public int describeContents(); 344*344a7f5eSAndroid Build Coastguard Worker method @IntRange(from=0) public int getIntervalMillis(); 345*344a7f5eSAndroid Build Coastguard Worker method public boolean isFullTracking(); 346*344a7f5eSAndroid Build Coastguard Worker method public void writeToParcel(@NonNull android.os.Parcel, int); 347*344a7f5eSAndroid Build Coastguard Worker field @NonNull public static final android.os.Parcelable.Creator<android.location.GnssMeasurementRequest> CREATOR; 348*344a7f5eSAndroid Build Coastguard Worker field public static final int PASSIVE_INTERVAL = 2147483647; // 0x7fffffff 349*344a7f5eSAndroid Build Coastguard Worker } 350*344a7f5eSAndroid Build Coastguard Worker 351*344a7f5eSAndroid Build Coastguard Worker public static final class GnssMeasurementRequest.Builder { 352*344a7f5eSAndroid Build Coastguard Worker ctor public GnssMeasurementRequest.Builder(); 353*344a7f5eSAndroid Build Coastguard Worker ctor public GnssMeasurementRequest.Builder(@NonNull android.location.GnssMeasurementRequest); 354*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.GnssMeasurementRequest build(); 355*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.GnssMeasurementRequest.Builder setFullTracking(boolean); 356*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.GnssMeasurementRequest.Builder setIntervalMillis(@IntRange(from=0) int); 357*344a7f5eSAndroid Build Coastguard Worker } 358*344a7f5eSAndroid Build Coastguard Worker 359*344a7f5eSAndroid Build Coastguard Worker public final class GnssMeasurementsEvent implements android.os.Parcelable { 360*344a7f5eSAndroid Build Coastguard Worker method public int describeContents(); 361*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.GnssClock getClock(); 362*344a7f5eSAndroid Build Coastguard Worker method @NonNull public java.util.Collection<android.location.GnssAutomaticGainControl> getGnssAutomaticGainControls(); 363*344a7f5eSAndroid Build Coastguard Worker method @NonNull public java.util.Collection<android.location.GnssMeasurement> getMeasurements(); 364*344a7f5eSAndroid Build Coastguard Worker method public boolean hasIsFullTracking(); 365*344a7f5eSAndroid Build Coastguard Worker method public boolean isFullTracking(); 366*344a7f5eSAndroid Build Coastguard Worker method public void writeToParcel(android.os.Parcel, int); 367*344a7f5eSAndroid Build Coastguard Worker field @NonNull public static final android.os.Parcelable.Creator<android.location.GnssMeasurementsEvent> CREATOR; 368*344a7f5eSAndroid Build Coastguard Worker } 369*344a7f5eSAndroid Build Coastguard Worker 370*344a7f5eSAndroid Build Coastguard Worker public static final class GnssMeasurementsEvent.Builder { 371*344a7f5eSAndroid Build Coastguard Worker ctor public GnssMeasurementsEvent.Builder(); 372*344a7f5eSAndroid Build Coastguard Worker ctor public GnssMeasurementsEvent.Builder(@NonNull android.location.GnssMeasurementsEvent); 373*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.GnssMeasurementsEvent build(); 374*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.GnssMeasurementsEvent.Builder clearIsFullTracking(); 375*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.GnssMeasurementsEvent.Builder setClock(@NonNull android.location.GnssClock); 376*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.GnssMeasurementsEvent.Builder setGnssAutomaticGainControls(@NonNull java.util.Collection<android.location.GnssAutomaticGainControl>); 377*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.GnssMeasurementsEvent.Builder setIsFullTracking(boolean); 378*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.GnssMeasurementsEvent.Builder setMeasurements(@NonNull java.util.Collection<android.location.GnssMeasurement>); 379*344a7f5eSAndroid Build Coastguard Worker } 380*344a7f5eSAndroid Build Coastguard Worker 381*344a7f5eSAndroid Build Coastguard Worker public abstract static class GnssMeasurementsEvent.Callback { 382*344a7f5eSAndroid Build Coastguard Worker ctor public GnssMeasurementsEvent.Callback(); 383*344a7f5eSAndroid Build Coastguard Worker method public void onGnssMeasurementsReceived(android.location.GnssMeasurementsEvent); 384*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public void onStatusChanged(int); 385*344a7f5eSAndroid Build Coastguard Worker field @Deprecated public static final int STATUS_LOCATION_DISABLED = 2; // 0x2 386*344a7f5eSAndroid Build Coastguard Worker field @Deprecated public static final int STATUS_NOT_ALLOWED = 3; // 0x3 387*344a7f5eSAndroid Build Coastguard Worker field @Deprecated public static final int STATUS_NOT_SUPPORTED = 0; // 0x0 388*344a7f5eSAndroid Build Coastguard Worker field @Deprecated public static final int STATUS_READY = 1; // 0x1 389*344a7f5eSAndroid Build Coastguard Worker } 390*344a7f5eSAndroid Build Coastguard Worker 391*344a7f5eSAndroid Build Coastguard Worker public final class GnssNavigationMessage implements android.os.Parcelable { 392*344a7f5eSAndroid Build Coastguard Worker method public int describeContents(); 393*344a7f5eSAndroid Build Coastguard Worker method @NonNull public byte[] getData(); 394*344a7f5eSAndroid Build Coastguard Worker method @IntRange(from=0xffffffff, to=120) public int getMessageId(); 395*344a7f5eSAndroid Build Coastguard Worker method public int getStatus(); 396*344a7f5eSAndroid Build Coastguard Worker method @IntRange(from=1) public int getSubmessageId(); 397*344a7f5eSAndroid Build Coastguard Worker method @IntRange(from=1, to=200) public int getSvid(); 398*344a7f5eSAndroid Build Coastguard Worker method public int getType(); 399*344a7f5eSAndroid Build Coastguard Worker method public void writeToParcel(android.os.Parcel, int); 400*344a7f5eSAndroid Build Coastguard Worker field @NonNull public static final android.os.Parcelable.Creator<android.location.GnssNavigationMessage> CREATOR; 401*344a7f5eSAndroid Build Coastguard Worker field public static final int STATUS_PARITY_PASSED = 1; // 0x1 402*344a7f5eSAndroid Build Coastguard Worker field public static final int STATUS_PARITY_REBUILT = 2; // 0x2 403*344a7f5eSAndroid Build Coastguard Worker field public static final int STATUS_UNKNOWN = 0; // 0x0 404*344a7f5eSAndroid Build Coastguard Worker field public static final int TYPE_BDS_CNAV1 = 1283; // 0x503 405*344a7f5eSAndroid Build Coastguard Worker field public static final int TYPE_BDS_CNAV2 = 1284; // 0x504 406*344a7f5eSAndroid Build Coastguard Worker field public static final int TYPE_BDS_D1 = 1281; // 0x501 407*344a7f5eSAndroid Build Coastguard Worker field public static final int TYPE_BDS_D2 = 1282; // 0x502 408*344a7f5eSAndroid Build Coastguard Worker field public static final int TYPE_GAL_F = 1538; // 0x602 409*344a7f5eSAndroid Build Coastguard Worker field public static final int TYPE_GAL_I = 1537; // 0x601 410*344a7f5eSAndroid Build Coastguard Worker field public static final int TYPE_GLO_L1CA = 769; // 0x301 411*344a7f5eSAndroid Build Coastguard Worker field public static final int TYPE_GPS_CNAV2 = 260; // 0x104 412*344a7f5eSAndroid Build Coastguard Worker field public static final int TYPE_GPS_L1CA = 257; // 0x101 413*344a7f5eSAndroid Build Coastguard Worker field public static final int TYPE_GPS_L2CNAV = 258; // 0x102 414*344a7f5eSAndroid Build Coastguard Worker field public static final int TYPE_GPS_L5CNAV = 259; // 0x103 415*344a7f5eSAndroid Build Coastguard Worker field public static final int TYPE_IRN_L5CA = 1793; // 0x701 416*344a7f5eSAndroid Build Coastguard Worker field public static final int TYPE_QZS_L1CA = 1025; // 0x401 417*344a7f5eSAndroid Build Coastguard Worker field public static final int TYPE_SBS = 513; // 0x201 418*344a7f5eSAndroid Build Coastguard Worker field public static final int TYPE_UNKNOWN = 0; // 0x0 419*344a7f5eSAndroid Build Coastguard Worker } 420*344a7f5eSAndroid Build Coastguard Worker 421*344a7f5eSAndroid Build Coastguard Worker public abstract static class GnssNavigationMessage.Callback { 422*344a7f5eSAndroid Build Coastguard Worker ctor public GnssNavigationMessage.Callback(); 423*344a7f5eSAndroid Build Coastguard Worker method public void onGnssNavigationMessageReceived(android.location.GnssNavigationMessage); 424*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public void onStatusChanged(int); 425*344a7f5eSAndroid Build Coastguard Worker field @Deprecated public static final int STATUS_LOCATION_DISABLED = 2; // 0x2 426*344a7f5eSAndroid Build Coastguard Worker field @Deprecated public static final int STATUS_NOT_SUPPORTED = 0; // 0x0 427*344a7f5eSAndroid Build Coastguard Worker field @Deprecated public static final int STATUS_READY = 1; // 0x1 428*344a7f5eSAndroid Build Coastguard Worker } 429*344a7f5eSAndroid Build Coastguard Worker 430*344a7f5eSAndroid Build Coastguard Worker public final class GnssSignalType implements android.os.Parcelable { 431*344a7f5eSAndroid Build Coastguard Worker method @NonNull public static android.location.GnssSignalType create(int, @FloatRange(from=0.0f, fromInclusive=false) double, @NonNull String); 432*344a7f5eSAndroid Build Coastguard Worker method public int describeContents(); 433*344a7f5eSAndroid Build Coastguard Worker method @FloatRange(from=0.0f, fromInclusive=false) public double getCarrierFrequencyHz(); 434*344a7f5eSAndroid Build Coastguard Worker method @NonNull public String getCodeType(); 435*344a7f5eSAndroid Build Coastguard Worker method public int getConstellationType(); 436*344a7f5eSAndroid Build Coastguard Worker method public void writeToParcel(@NonNull android.os.Parcel, int); 437*344a7f5eSAndroid Build Coastguard Worker field @NonNull public static final android.os.Parcelable.Creator<android.location.GnssSignalType> CREATOR; 438*344a7f5eSAndroid Build Coastguard Worker } 439*344a7f5eSAndroid Build Coastguard Worker 440*344a7f5eSAndroid Build Coastguard Worker public final class GnssStatus implements android.os.Parcelable { 441*344a7f5eSAndroid Build Coastguard Worker method public int describeContents(); 442*344a7f5eSAndroid Build Coastguard Worker method @FloatRange(from=0, to=360) public float getAzimuthDegrees(@IntRange(from=0) int); 443*344a7f5eSAndroid Build Coastguard Worker method @FloatRange(from=0, to=63) public float getBasebandCn0DbHz(@IntRange(from=0) int); 444*344a7f5eSAndroid Build Coastguard Worker method @FloatRange(from=0) public float getCarrierFrequencyHz(@IntRange(from=0) int); 445*344a7f5eSAndroid Build Coastguard Worker method @FloatRange(from=0, to=63) public float getCn0DbHz(@IntRange(from=0) int); 446*344a7f5eSAndroid Build Coastguard Worker method public int getConstellationType(@IntRange(from=0) int); 447*344a7f5eSAndroid Build Coastguard Worker method @FloatRange(from=0xffffffa6, to=90) public float getElevationDegrees(@IntRange(from=0) int); 448*344a7f5eSAndroid Build Coastguard Worker method @IntRange(from=0) public int getSatelliteCount(); 449*344a7f5eSAndroid Build Coastguard Worker method @IntRange(from=1, to=206) public int getSvid(@IntRange(from=0) int); 450*344a7f5eSAndroid Build Coastguard Worker method public boolean hasAlmanacData(@IntRange(from=0) int); 451*344a7f5eSAndroid Build Coastguard Worker method public boolean hasBasebandCn0DbHz(@IntRange(from=0) int); 452*344a7f5eSAndroid Build Coastguard Worker method public boolean hasCarrierFrequencyHz(@IntRange(from=0) int); 453*344a7f5eSAndroid Build Coastguard Worker method public boolean hasEphemerisData(@IntRange(from=0) int); 454*344a7f5eSAndroid Build Coastguard Worker method public boolean usedInFix(@IntRange(from=0) int); 455*344a7f5eSAndroid Build Coastguard Worker method public void writeToParcel(@NonNull android.os.Parcel, int); 456*344a7f5eSAndroid Build Coastguard Worker field public static final int CONSTELLATION_BEIDOU = 5; // 0x5 457*344a7f5eSAndroid Build Coastguard Worker field public static final int CONSTELLATION_GALILEO = 6; // 0x6 458*344a7f5eSAndroid Build Coastguard Worker field public static final int CONSTELLATION_GLONASS = 3; // 0x3 459*344a7f5eSAndroid Build Coastguard Worker field public static final int CONSTELLATION_GPS = 1; // 0x1 460*344a7f5eSAndroid Build Coastguard Worker field public static final int CONSTELLATION_IRNSS = 7; // 0x7 461*344a7f5eSAndroid Build Coastguard Worker field public static final int CONSTELLATION_QZSS = 4; // 0x4 462*344a7f5eSAndroid Build Coastguard Worker field public static final int CONSTELLATION_SBAS = 2; // 0x2 463*344a7f5eSAndroid Build Coastguard Worker field public static final int CONSTELLATION_UNKNOWN = 0; // 0x0 464*344a7f5eSAndroid Build Coastguard Worker field @NonNull public static final android.os.Parcelable.Creator<android.location.GnssStatus> CREATOR; 465*344a7f5eSAndroid Build Coastguard Worker } 466*344a7f5eSAndroid Build Coastguard Worker 467*344a7f5eSAndroid Build Coastguard Worker public static final class GnssStatus.Builder { 468*344a7f5eSAndroid Build Coastguard Worker ctor public GnssStatus.Builder(); 469*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.GnssStatus.Builder addSatellite(int, @IntRange(from=1, to=200) int, @FloatRange(from=0, to=63) float, @FloatRange(from=0xffffffa6, to=90) float, @FloatRange(from=0, to=360) float, boolean, boolean, boolean, boolean, @FloatRange(from=0) float, boolean, @FloatRange(from=0, to=63) float); 470*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.GnssStatus build(); 471*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.GnssStatus.Builder clearSatellites(); 472*344a7f5eSAndroid Build Coastguard Worker } 473*344a7f5eSAndroid Build Coastguard Worker 474*344a7f5eSAndroid Build Coastguard Worker public abstract static class GnssStatus.Callback { 475*344a7f5eSAndroid Build Coastguard Worker ctor public GnssStatus.Callback(); 476*344a7f5eSAndroid Build Coastguard Worker method public void onFirstFix(int); 477*344a7f5eSAndroid Build Coastguard Worker method public void onSatelliteStatusChanged(@NonNull android.location.GnssStatus); 478*344a7f5eSAndroid Build Coastguard Worker method public void onStarted(); 479*344a7f5eSAndroid Build Coastguard Worker method public void onStopped(); 480*344a7f5eSAndroid Build Coastguard Worker } 481*344a7f5eSAndroid Build Coastguard Worker 482*344a7f5eSAndroid Build Coastguard Worker @Deprecated public final class GpsSatellite { 483*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public float getAzimuth(); 484*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public float getElevation(); 485*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public int getPrn(); 486*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public float getSnr(); 487*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public boolean hasAlmanac(); 488*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public boolean hasEphemeris(); 489*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public boolean usedInFix(); 490*344a7f5eSAndroid Build Coastguard Worker } 491*344a7f5eSAndroid Build Coastguard Worker 492*344a7f5eSAndroid Build Coastguard Worker @Deprecated public final class GpsStatus { 493*344a7f5eSAndroid Build Coastguard Worker method @Deprecated @NonNull public static android.location.GpsStatus create(@NonNull android.location.GnssStatus, int); 494*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public int getMaxSatellites(); 495*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public Iterable<android.location.GpsSatellite> getSatellites(); 496*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public int getTimeToFirstFix(); 497*344a7f5eSAndroid Build Coastguard Worker field @Deprecated public static final int GPS_EVENT_FIRST_FIX = 3; // 0x3 498*344a7f5eSAndroid Build Coastguard Worker field @Deprecated public static final int GPS_EVENT_SATELLITE_STATUS = 4; // 0x4 499*344a7f5eSAndroid Build Coastguard Worker field @Deprecated public static final int GPS_EVENT_STARTED = 1; // 0x1 500*344a7f5eSAndroid Build Coastguard Worker field @Deprecated public static final int GPS_EVENT_STOPPED = 2; // 0x2 501*344a7f5eSAndroid Build Coastguard Worker } 502*344a7f5eSAndroid Build Coastguard Worker 503*344a7f5eSAndroid Build Coastguard Worker @Deprecated public static interface GpsStatus.Listener { 504*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public void onGpsStatusChanged(int); 505*344a7f5eSAndroid Build Coastguard Worker } 506*344a7f5eSAndroid Build Coastguard Worker 507*344a7f5eSAndroid Build Coastguard Worker @Deprecated public static interface GpsStatus.NmeaListener { 508*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public void onNmeaReceived(long, String); 509*344a7f5eSAndroid Build Coastguard Worker } 510*344a7f5eSAndroid Build Coastguard Worker 511*344a7f5eSAndroid Build Coastguard Worker public interface LocationListener { 512*344a7f5eSAndroid Build Coastguard Worker method public default void onFlushComplete(int); 513*344a7f5eSAndroid Build Coastguard Worker method public void onLocationChanged(@NonNull android.location.Location); 514*344a7f5eSAndroid Build Coastguard Worker method public default void onLocationChanged(@NonNull java.util.List<android.location.Location>); 515*344a7f5eSAndroid Build Coastguard Worker method public default void onProviderDisabled(@NonNull String); 516*344a7f5eSAndroid Build Coastguard Worker method public default void onProviderEnabled(@NonNull String); 517*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public default void onStatusChanged(String, int, android.os.Bundle); 518*344a7f5eSAndroid Build Coastguard Worker } 519*344a7f5eSAndroid Build Coastguard Worker 520*344a7f5eSAndroid Build Coastguard Worker public class LocationManager { 521*344a7f5eSAndroid Build Coastguard Worker method @Deprecated @RequiresPermission(android.Manifest.permission.ACCESS_FINE_LOCATION) public boolean addGpsStatusListener(android.location.GpsStatus.Listener); 522*344a7f5eSAndroid Build Coastguard Worker method @Deprecated @RequiresPermission(android.Manifest.permission.ACCESS_FINE_LOCATION) public boolean addNmeaListener(@NonNull android.location.GpsStatus.NmeaListener); 523*344a7f5eSAndroid Build Coastguard Worker method @Deprecated @RequiresPermission(android.Manifest.permission.ACCESS_FINE_LOCATION) public boolean addNmeaListener(@NonNull android.location.OnNmeaMessageListener); 524*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.ACCESS_FINE_LOCATION) public boolean addNmeaListener(@NonNull android.location.OnNmeaMessageListener, @Nullable android.os.Handler); 525*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.ACCESS_FINE_LOCATION) public boolean addNmeaListener(@NonNull java.util.concurrent.Executor, @NonNull android.location.OnNmeaMessageListener); 526*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(anyOf={android.Manifest.permission.ACCESS_COARSE_LOCATION, android.Manifest.permission.ACCESS_FINE_LOCATION}) public void addProximityAlert(double, double, float, long, @NonNull android.app.PendingIntent); 527*344a7f5eSAndroid Build Coastguard Worker method public void addTestProvider(@NonNull String, boolean, boolean, boolean, boolean, boolean, boolean, boolean, int, int); 528*344a7f5eSAndroid Build Coastguard Worker method public void addTestProvider(@NonNull String, @NonNull android.location.provider.ProviderProperties); 529*344a7f5eSAndroid Build Coastguard Worker method public void addTestProvider(@NonNull String, @NonNull android.location.provider.ProviderProperties, @NonNull java.util.Set<java.lang.String>); 530*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public void clearTestProviderEnabled(@NonNull String); 531*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public void clearTestProviderLocation(@NonNull String); 532*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public void clearTestProviderStatus(@NonNull String); 533*344a7f5eSAndroid Build Coastguard Worker method @NonNull public java.util.List<java.lang.String> getAllProviders(); 534*344a7f5eSAndroid Build Coastguard Worker method @Deprecated @Nullable public String getBestProvider(@NonNull android.location.Criteria, boolean); 535*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(anyOf={android.Manifest.permission.ACCESS_COARSE_LOCATION, android.Manifest.permission.ACCESS_FINE_LOCATION}) public void getCurrentLocation(@NonNull String, @Nullable android.os.CancellationSignal, @NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer<android.location.Location>); 536*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(anyOf={android.Manifest.permission.ACCESS_COARSE_LOCATION, android.Manifest.permission.ACCESS_FINE_LOCATION}) public void getCurrentLocation(@NonNull String, @NonNull android.location.LocationRequest, @Nullable android.os.CancellationSignal, @NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer<android.location.Location>); 537*344a7f5eSAndroid Build Coastguard Worker method @Nullable public java.util.List<android.location.GnssAntennaInfo> getGnssAntennaInfos(); 538*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.GnssCapabilities getGnssCapabilities(); 539*344a7f5eSAndroid Build Coastguard Worker method @Nullable public String getGnssHardwareModelName(); 540*344a7f5eSAndroid Build Coastguard Worker method public int getGnssYearOfHardware(); 541*344a7f5eSAndroid Build Coastguard Worker method @Deprecated @Nullable @RequiresPermission(android.Manifest.permission.ACCESS_FINE_LOCATION) public android.location.GpsStatus getGpsStatus(@Nullable android.location.GpsStatus); 542*344a7f5eSAndroid Build Coastguard Worker method @Nullable @RequiresPermission(anyOf={android.Manifest.permission.ACCESS_COARSE_LOCATION, android.Manifest.permission.ACCESS_FINE_LOCATION}) public android.location.Location getLastKnownLocation(@NonNull String); 543*344a7f5eSAndroid Build Coastguard Worker method @Deprecated @Nullable public android.location.LocationProvider getProvider(@NonNull String); 544*344a7f5eSAndroid Build Coastguard Worker method @Nullable public android.location.provider.ProviderProperties getProviderProperties(@NonNull String); 545*344a7f5eSAndroid Build Coastguard Worker method @NonNull public java.util.List<java.lang.String> getProviders(boolean); 546*344a7f5eSAndroid Build Coastguard Worker method @Deprecated @NonNull public java.util.List<java.lang.String> getProviders(@NonNull android.location.Criteria, boolean); 547*344a7f5eSAndroid Build Coastguard Worker method public boolean hasProvider(@NonNull String); 548*344a7f5eSAndroid Build Coastguard Worker method public boolean isLocationEnabled(); 549*344a7f5eSAndroid Build Coastguard Worker method public boolean isProviderEnabled(@NonNull String); 550*344a7f5eSAndroid Build Coastguard Worker method public boolean registerAntennaInfoListener(@NonNull java.util.concurrent.Executor, @NonNull android.location.GnssAntennaInfo.Listener); 551*344a7f5eSAndroid Build Coastguard Worker method @Deprecated @RequiresPermission(android.Manifest.permission.ACCESS_FINE_LOCATION) public boolean registerGnssMeasurementsCallback(@NonNull android.location.GnssMeasurementsEvent.Callback); 552*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.ACCESS_FINE_LOCATION) public boolean registerGnssMeasurementsCallback(@NonNull android.location.GnssMeasurementsEvent.Callback, @Nullable android.os.Handler); 553*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.ACCESS_FINE_LOCATION) public boolean registerGnssMeasurementsCallback(@NonNull java.util.concurrent.Executor, @NonNull android.location.GnssMeasurementsEvent.Callback); 554*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.ACCESS_FINE_LOCATION) public boolean registerGnssMeasurementsCallback(@NonNull android.location.GnssMeasurementRequest, @NonNull java.util.concurrent.Executor, @NonNull android.location.GnssMeasurementsEvent.Callback); 555*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public boolean registerGnssNavigationMessageCallback(@NonNull android.location.GnssNavigationMessage.Callback); 556*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.ACCESS_FINE_LOCATION) public boolean registerGnssNavigationMessageCallback(@NonNull android.location.GnssNavigationMessage.Callback, @Nullable android.os.Handler); 557*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.ACCESS_FINE_LOCATION) public boolean registerGnssNavigationMessageCallback(@NonNull java.util.concurrent.Executor, @NonNull android.location.GnssNavigationMessage.Callback); 558*344a7f5eSAndroid Build Coastguard Worker method @Deprecated @RequiresPermission(android.Manifest.permission.ACCESS_FINE_LOCATION) public boolean registerGnssStatusCallback(@NonNull android.location.GnssStatus.Callback); 559*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.ACCESS_FINE_LOCATION) public boolean registerGnssStatusCallback(@NonNull android.location.GnssStatus.Callback, @Nullable android.os.Handler); 560*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.ACCESS_FINE_LOCATION) public boolean registerGnssStatusCallback(@NonNull java.util.concurrent.Executor, @NonNull android.location.GnssStatus.Callback); 561*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public void removeGpsStatusListener(android.location.GpsStatus.Listener); 562*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public void removeNmeaListener(@NonNull android.location.GpsStatus.NmeaListener); 563*344a7f5eSAndroid Build Coastguard Worker method public void removeNmeaListener(@NonNull android.location.OnNmeaMessageListener); 564*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(anyOf={"android.permission.ACCESS_COARSE_LOCATION", "android.permission.ACCESS_FINE_LOCATION"}, apis="..22") public void removeProximityAlert(@NonNull android.app.PendingIntent); 565*344a7f5eSAndroid Build Coastguard Worker method public void removeTestProvider(@NonNull String); 566*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(anyOf={"android.permission.ACCESS_COARSE_LOCATION", "android.permission.ACCESS_FINE_LOCATION"}, apis="..22") public void removeUpdates(@NonNull android.location.LocationListener); 567*344a7f5eSAndroid Build Coastguard Worker method public void removeUpdates(@NonNull android.app.PendingIntent); 568*344a7f5eSAndroid Build Coastguard Worker method public void requestFlush(@NonNull String, @NonNull android.location.LocationListener, int); 569*344a7f5eSAndroid Build Coastguard Worker method public void requestFlush(@NonNull String, @NonNull android.app.PendingIntent, int); 570*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(anyOf={android.Manifest.permission.ACCESS_COARSE_LOCATION, android.Manifest.permission.ACCESS_FINE_LOCATION}) public void requestLocationUpdates(@NonNull String, long, float, @NonNull android.location.LocationListener); 571*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(anyOf={android.Manifest.permission.ACCESS_COARSE_LOCATION, android.Manifest.permission.ACCESS_FINE_LOCATION}) public void requestLocationUpdates(@NonNull String, long, float, @NonNull android.location.LocationListener, @Nullable android.os.Looper); 572*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(anyOf={android.Manifest.permission.ACCESS_COARSE_LOCATION, android.Manifest.permission.ACCESS_FINE_LOCATION}) public void requestLocationUpdates(@NonNull String, long, float, @NonNull java.util.concurrent.Executor, @NonNull android.location.LocationListener); 573*344a7f5eSAndroid Build Coastguard Worker method @Deprecated @RequiresPermission(anyOf={android.Manifest.permission.ACCESS_COARSE_LOCATION, android.Manifest.permission.ACCESS_FINE_LOCATION}) public void requestLocationUpdates(long, float, @NonNull android.location.Criteria, @NonNull android.location.LocationListener, @Nullable android.os.Looper); 574*344a7f5eSAndroid Build Coastguard Worker method @Deprecated @RequiresPermission(anyOf={android.Manifest.permission.ACCESS_COARSE_LOCATION, android.Manifest.permission.ACCESS_FINE_LOCATION}) public void requestLocationUpdates(long, float, @NonNull android.location.Criteria, @NonNull java.util.concurrent.Executor, @NonNull android.location.LocationListener); 575*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(anyOf={android.Manifest.permission.ACCESS_COARSE_LOCATION, android.Manifest.permission.ACCESS_FINE_LOCATION}) public void requestLocationUpdates(@NonNull String, long, float, @NonNull android.app.PendingIntent); 576*344a7f5eSAndroid Build Coastguard Worker method @Deprecated @RequiresPermission(anyOf={android.Manifest.permission.ACCESS_COARSE_LOCATION, android.Manifest.permission.ACCESS_FINE_LOCATION}) public void requestLocationUpdates(long, float, @NonNull android.location.Criteria, @NonNull android.app.PendingIntent); 577*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(anyOf={android.Manifest.permission.ACCESS_COARSE_LOCATION, android.Manifest.permission.ACCESS_FINE_LOCATION}) public void requestLocationUpdates(@NonNull String, @NonNull android.location.LocationRequest, @NonNull java.util.concurrent.Executor, @NonNull android.location.LocationListener); 578*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(anyOf={android.Manifest.permission.ACCESS_COARSE_LOCATION, android.Manifest.permission.ACCESS_FINE_LOCATION}) public void requestLocationUpdates(@NonNull String, @NonNull android.location.LocationRequest, @NonNull android.app.PendingIntent); 579*344a7f5eSAndroid Build Coastguard Worker method @Deprecated @RequiresPermission(anyOf={android.Manifest.permission.ACCESS_COARSE_LOCATION, android.Manifest.permission.ACCESS_FINE_LOCATION}) public void requestSingleUpdate(@NonNull String, @NonNull android.location.LocationListener, @Nullable android.os.Looper); 580*344a7f5eSAndroid Build Coastguard Worker method @Deprecated @RequiresPermission(anyOf={android.Manifest.permission.ACCESS_COARSE_LOCATION, android.Manifest.permission.ACCESS_FINE_LOCATION}) public void requestSingleUpdate(@NonNull android.location.Criteria, @NonNull android.location.LocationListener, @Nullable android.os.Looper); 581*344a7f5eSAndroid Build Coastguard Worker method @Deprecated @RequiresPermission(anyOf={android.Manifest.permission.ACCESS_COARSE_LOCATION, android.Manifest.permission.ACCESS_FINE_LOCATION}) public void requestSingleUpdate(@NonNull String, @NonNull android.app.PendingIntent); 582*344a7f5eSAndroid Build Coastguard Worker method @Deprecated @RequiresPermission(anyOf={android.Manifest.permission.ACCESS_COARSE_LOCATION, android.Manifest.permission.ACCESS_FINE_LOCATION}) public void requestSingleUpdate(@NonNull android.location.Criteria, @NonNull android.app.PendingIntent); 583*344a7f5eSAndroid Build Coastguard Worker method public boolean sendExtraCommand(@NonNull String, @NonNull String, @Nullable android.os.Bundle); 584*344a7f5eSAndroid Build Coastguard Worker method public void setTestProviderEnabled(@NonNull String, boolean); 585*344a7f5eSAndroid Build Coastguard Worker method public void setTestProviderLocation(@NonNull String, @NonNull android.location.Location); 586*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public void setTestProviderStatus(@NonNull String, int, @Nullable android.os.Bundle, long); 587*344a7f5eSAndroid Build Coastguard Worker method public void unregisterAntennaInfoListener(@NonNull android.location.GnssAntennaInfo.Listener); 588*344a7f5eSAndroid Build Coastguard Worker method public void unregisterGnssMeasurementsCallback(@NonNull android.location.GnssMeasurementsEvent.Callback); 589*344a7f5eSAndroid Build Coastguard Worker method public void unregisterGnssNavigationMessageCallback(@NonNull android.location.GnssNavigationMessage.Callback); 590*344a7f5eSAndroid Build Coastguard Worker method public void unregisterGnssStatusCallback(@NonNull android.location.GnssStatus.Callback); 591*344a7f5eSAndroid Build Coastguard Worker field public static final String ACTION_GNSS_CAPABILITIES_CHANGED = "android.location.action.GNSS_CAPABILITIES_CHANGED"; 592*344a7f5eSAndroid Build Coastguard Worker field public static final String EXTRA_GNSS_CAPABILITIES = "android.location.extra.GNSS_CAPABILITIES"; 593*344a7f5eSAndroid Build Coastguard Worker field public static final String EXTRA_LOCATION_ENABLED = "android.location.extra.LOCATION_ENABLED"; 594*344a7f5eSAndroid Build Coastguard Worker field public static final String EXTRA_PROVIDER_ENABLED = "android.location.extra.PROVIDER_ENABLED"; 595*344a7f5eSAndroid Build Coastguard Worker field public static final String EXTRA_PROVIDER_NAME = "android.location.extra.PROVIDER_NAME"; 596*344a7f5eSAndroid Build Coastguard Worker field public static final String FUSED_PROVIDER = "fused"; 597*344a7f5eSAndroid Build Coastguard Worker field public static final String GPS_PROVIDER = "gps"; 598*344a7f5eSAndroid Build Coastguard Worker field public static final String KEY_FLUSH_COMPLETE = "flushComplete"; 599*344a7f5eSAndroid Build Coastguard Worker field public static final String KEY_LOCATIONS = "locations"; 600*344a7f5eSAndroid Build Coastguard Worker field public static final String KEY_LOCATION_CHANGED = "location"; 601*344a7f5eSAndroid Build Coastguard Worker field public static final String KEY_PROVIDER_ENABLED = "providerEnabled"; 602*344a7f5eSAndroid Build Coastguard Worker field public static final String KEY_PROXIMITY_ENTERING = "entering"; 603*344a7f5eSAndroid Build Coastguard Worker field @Deprecated public static final String KEY_STATUS_CHANGED = "status"; 604*344a7f5eSAndroid Build Coastguard Worker field public static final String MODE_CHANGED_ACTION = "android.location.MODE_CHANGED"; 605*344a7f5eSAndroid Build Coastguard Worker field public static final String NETWORK_PROVIDER = "network"; 606*344a7f5eSAndroid Build Coastguard Worker field public static final String PASSIVE_PROVIDER = "passive"; 607*344a7f5eSAndroid Build Coastguard Worker field public static final String PROVIDERS_CHANGED_ACTION = "android.location.PROVIDERS_CHANGED"; 608*344a7f5eSAndroid Build Coastguard Worker } 609*344a7f5eSAndroid Build Coastguard Worker 610*344a7f5eSAndroid Build Coastguard Worker @Deprecated public class LocationProvider { 611*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public int getAccuracy(); 612*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public String getName(); 613*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public int getPowerRequirement(); 614*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public boolean hasMonetaryCost(); 615*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public boolean meetsCriteria(android.location.Criteria); 616*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public boolean requiresCell(); 617*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public boolean requiresNetwork(); 618*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public boolean requiresSatellite(); 619*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public boolean supportsAltitude(); 620*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public boolean supportsBearing(); 621*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public boolean supportsSpeed(); 622*344a7f5eSAndroid Build Coastguard Worker field @Deprecated public static final int AVAILABLE = 2; // 0x2 623*344a7f5eSAndroid Build Coastguard Worker field @Deprecated public static final int OUT_OF_SERVICE = 0; // 0x0 624*344a7f5eSAndroid Build Coastguard Worker field @Deprecated public static final int TEMPORARILY_UNAVAILABLE = 1; // 0x1 625*344a7f5eSAndroid Build Coastguard Worker } 626*344a7f5eSAndroid Build Coastguard Worker 627*344a7f5eSAndroid Build Coastguard Worker public final class LocationRequest implements android.os.Parcelable { 628*344a7f5eSAndroid Build Coastguard Worker method public int describeContents(); 629*344a7f5eSAndroid Build Coastguard Worker method @IntRange(from=1) public long getDurationMillis(); 630*344a7f5eSAndroid Build Coastguard Worker method @IntRange(from=0) public long getIntervalMillis(); 631*344a7f5eSAndroid Build Coastguard Worker method @IntRange(from=0) public long getMaxUpdateDelayMillis(); 632*344a7f5eSAndroid Build Coastguard Worker method @IntRange(from=1, to=java.lang.Integer.MAX_VALUE) public int getMaxUpdates(); 633*344a7f5eSAndroid Build Coastguard Worker method @FloatRange(from=0, to=java.lang.Float.MAX_VALUE) public float getMinUpdateDistanceMeters(); 634*344a7f5eSAndroid Build Coastguard Worker method @IntRange(from=0) public long getMinUpdateIntervalMillis(); 635*344a7f5eSAndroid Build Coastguard Worker method public int getQuality(); 636*344a7f5eSAndroid Build Coastguard Worker method public void writeToParcel(@NonNull android.os.Parcel, int); 637*344a7f5eSAndroid Build Coastguard Worker field @NonNull public static final android.os.Parcelable.Creator<android.location.LocationRequest> CREATOR; 638*344a7f5eSAndroid Build Coastguard Worker field public static final long PASSIVE_INTERVAL = 9223372036854775807L; // 0x7fffffffffffffffL 639*344a7f5eSAndroid Build Coastguard Worker field public static final int QUALITY_BALANCED_POWER_ACCURACY = 102; // 0x66 640*344a7f5eSAndroid Build Coastguard Worker field public static final int QUALITY_HIGH_ACCURACY = 100; // 0x64 641*344a7f5eSAndroid Build Coastguard Worker field public static final int QUALITY_LOW_POWER = 104; // 0x68 642*344a7f5eSAndroid Build Coastguard Worker } 643*344a7f5eSAndroid Build Coastguard Worker 644*344a7f5eSAndroid Build Coastguard Worker public static final class LocationRequest.Builder { 645*344a7f5eSAndroid Build Coastguard Worker ctor public LocationRequest.Builder(long); 646*344a7f5eSAndroid Build Coastguard Worker ctor public LocationRequest.Builder(@NonNull android.location.LocationRequest); 647*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.LocationRequest build(); 648*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.LocationRequest.Builder clearMinUpdateIntervalMillis(); 649*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.LocationRequest.Builder setDurationMillis(@IntRange(from=1) long); 650*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.LocationRequest.Builder setIntervalMillis(@IntRange(from=0) long); 651*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.LocationRequest.Builder setMaxUpdateDelayMillis(@IntRange(from=0) long); 652*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.LocationRequest.Builder setMaxUpdates(@IntRange(from=1, to=java.lang.Integer.MAX_VALUE) int); 653*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.LocationRequest.Builder setMinUpdateDistanceMeters(@FloatRange(from=0, to=java.lang.Float.MAX_VALUE) float); 654*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.LocationRequest.Builder setMinUpdateIntervalMillis(@IntRange(from=0) long); 655*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.LocationRequest.Builder setQuality(int); 656*344a7f5eSAndroid Build Coastguard Worker } 657*344a7f5eSAndroid Build Coastguard Worker 658*344a7f5eSAndroid Build Coastguard Worker public interface OnNmeaMessageListener { 659*344a7f5eSAndroid Build Coastguard Worker method public void onNmeaMessage(String, long); 660*344a7f5eSAndroid Build Coastguard Worker } 661*344a7f5eSAndroid Build Coastguard Worker 662*344a7f5eSAndroid Build Coastguard Worker public abstract class SettingInjectorService extends android.app.Service { 663*344a7f5eSAndroid Build Coastguard Worker ctor public SettingInjectorService(String); 664*344a7f5eSAndroid Build Coastguard Worker method public final android.os.IBinder onBind(android.content.Intent); 665*344a7f5eSAndroid Build Coastguard Worker method protected abstract boolean onGetEnabled(); 666*344a7f5eSAndroid Build Coastguard Worker method protected abstract String onGetSummary(); 667*344a7f5eSAndroid Build Coastguard Worker method public final void onStart(android.content.Intent, int); 668*344a7f5eSAndroid Build Coastguard Worker method public final int onStartCommand(android.content.Intent, int, int); 669*344a7f5eSAndroid Build Coastguard Worker method public static final void refreshSettings(@NonNull android.content.Context); 670*344a7f5eSAndroid Build Coastguard Worker field public static final String ACTION_INJECTED_SETTING_CHANGED = "android.location.InjectedSettingChanged"; 671*344a7f5eSAndroid Build Coastguard Worker field public static final String ACTION_SERVICE_INTENT = "android.location.SettingInjectorService"; 672*344a7f5eSAndroid Build Coastguard Worker field public static final String ATTRIBUTES_NAME = "injected-location-setting"; 673*344a7f5eSAndroid Build Coastguard Worker field public static final String META_DATA_NAME = "android.location.SettingInjectorService"; 674*344a7f5eSAndroid Build Coastguard Worker } 675*344a7f5eSAndroid Build Coastguard Worker 676*344a7f5eSAndroid Build Coastguard Worker} 677*344a7f5eSAndroid Build Coastguard Worker 678*344a7f5eSAndroid Build Coastguard Workerpackage android.location.altitude { 679*344a7f5eSAndroid Build Coastguard Worker 680*344a7f5eSAndroid Build Coastguard Worker public final class AltitudeConverter { 681*344a7f5eSAndroid Build Coastguard Worker ctor public AltitudeConverter(); 682*344a7f5eSAndroid Build Coastguard Worker method @WorkerThread public void addMslAltitudeToLocation(@NonNull android.content.Context, @NonNull android.location.Location) throws java.io.IOException; 683*344a7f5eSAndroid Build Coastguard Worker } 684*344a7f5eSAndroid Build Coastguard Worker 685*344a7f5eSAndroid Build Coastguard Worker} 686*344a7f5eSAndroid Build Coastguard Worker 687*344a7f5eSAndroid Build Coastguard Workerpackage android.location.provider { 688*344a7f5eSAndroid Build Coastguard Worker 689*344a7f5eSAndroid Build Coastguard Worker public final class ProviderProperties implements android.os.Parcelable { 690*344a7f5eSAndroid Build Coastguard Worker method public int describeContents(); 691*344a7f5eSAndroid Build Coastguard Worker method public int getAccuracy(); 692*344a7f5eSAndroid Build Coastguard Worker method public int getPowerUsage(); 693*344a7f5eSAndroid Build Coastguard Worker method public boolean hasAltitudeSupport(); 694*344a7f5eSAndroid Build Coastguard Worker method public boolean hasBearingSupport(); 695*344a7f5eSAndroid Build Coastguard Worker method public boolean hasCellRequirement(); 696*344a7f5eSAndroid Build Coastguard Worker method public boolean hasMonetaryCost(); 697*344a7f5eSAndroid Build Coastguard Worker method public boolean hasNetworkRequirement(); 698*344a7f5eSAndroid Build Coastguard Worker method public boolean hasSatelliteRequirement(); 699*344a7f5eSAndroid Build Coastguard Worker method public boolean hasSpeedSupport(); 700*344a7f5eSAndroid Build Coastguard Worker method public void writeToParcel(@NonNull android.os.Parcel, int); 701*344a7f5eSAndroid Build Coastguard Worker field public static final int ACCURACY_COARSE = 2; // 0x2 702*344a7f5eSAndroid Build Coastguard Worker field public static final int ACCURACY_FINE = 1; // 0x1 703*344a7f5eSAndroid Build Coastguard Worker field @NonNull public static final android.os.Parcelable.Creator<android.location.provider.ProviderProperties> CREATOR; 704*344a7f5eSAndroid Build Coastguard Worker field public static final int POWER_USAGE_HIGH = 3; // 0x3 705*344a7f5eSAndroid Build Coastguard Worker field public static final int POWER_USAGE_LOW = 1; // 0x1 706*344a7f5eSAndroid Build Coastguard Worker field public static final int POWER_USAGE_MEDIUM = 2; // 0x2 707*344a7f5eSAndroid Build Coastguard Worker } 708*344a7f5eSAndroid Build Coastguard Worker 709*344a7f5eSAndroid Build Coastguard Worker public static final class ProviderProperties.Builder { 710*344a7f5eSAndroid Build Coastguard Worker ctor public ProviderProperties.Builder(); 711*344a7f5eSAndroid Build Coastguard Worker ctor public ProviderProperties.Builder(@NonNull android.location.provider.ProviderProperties); 712*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.provider.ProviderProperties build(); 713*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.provider.ProviderProperties.Builder setAccuracy(int); 714*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.provider.ProviderProperties.Builder setHasAltitudeSupport(boolean); 715*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.provider.ProviderProperties.Builder setHasBearingSupport(boolean); 716*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.provider.ProviderProperties.Builder setHasCellRequirement(boolean); 717*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.provider.ProviderProperties.Builder setHasMonetaryCost(boolean); 718*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.provider.ProviderProperties.Builder setHasNetworkRequirement(boolean); 719*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.provider.ProviderProperties.Builder setHasSatelliteRequirement(boolean); 720*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.provider.ProviderProperties.Builder setHasSpeedSupport(boolean); 721*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.location.provider.ProviderProperties.Builder setPowerUsage(int); 722*344a7f5eSAndroid Build Coastguard Worker } 723*344a7f5eSAndroid Build Coastguard Worker 724*344a7f5eSAndroid Build Coastguard Worker} 725