Update javadocs for RINEX4.0

Update the Javadocs based on doc:https://docs.google.com/document/d/1SliduwZ8TlV5kMDZpxM5CUg-Txsw3IxBe8JTnr_ZOl0/edit?resourcekey=0-HTfqV3iJLkQtaMp_lsy3Vg

Test: Change Javadoc only.
Bug: 277260039
Change-Id: Idb0f83885b3183812d54f6ec79da590c03c05b10
This commit is contained in:
Zhanghao 2023-08-08 19:23:12 -04:00 committed by Yu-Han Yang
parent 85218f8fed
commit 8cb81f70ec
30 changed files with 184 additions and 167 deletions

View file

@ -216,7 +216,7 @@
</hal>
<hal format="aidl" optional="true">
<name>android.hardware.gnss</name>
<version>2-3</version>
<version>2-4</version>
<interface>
<name>IGnss</name>
<instance>default</instance>

View file

@ -27,7 +27,7 @@ cc_binary {
"android.hardware.gnss@2.0",
"android.hardware.gnss@1.1",
"android.hardware.gnss@1.0",
"android.hardware.gnss-V3-ndk",
"android.hardware.gnss-V4-ndk",
],
static_libs: [
"android.hardware.gnss@common-default-lib",

View file

@ -36,7 +36,7 @@ cc_test {
"android.hardware.gnss@1.1",
"android.hardware.gnss@2.0",
"android.hardware.gnss@common-vts-lib",
"android.hardware.gnss-V3-cpp",
"android.hardware.gnss-V4-cpp",
],
shared_libs: [
"android.hardware.gnss.measurement_corrections@1.0",

View file

@ -50,7 +50,7 @@ cc_binary {
"android.hardware.gnss@2.0",
"android.hardware.gnss@1.1",
"android.hardware.gnss@1.0",
"android.hardware.gnss-V3-ndk",
"android.hardware.gnss-V4-ndk",
],
static_libs: [
"android.hardware.gnss@common-default-lib",

View file

@ -39,7 +39,7 @@ cc_test {
"android.hardware.gnss@2.0",
"android.hardware.gnss@2.1",
"android.hardware.gnss@common-vts-lib",
"android.hardware.gnss-V3-cpp",
"android.hardware.gnss-V4-cpp",
],
test_suites: [
"general-tests",

View file

@ -44,7 +44,7 @@ cc_binary {
"android.hardware.gnss@1.0",
"android.hardware.gnss@1.1",
"android.hardware.gnss@2.0",
"android.hardware.gnss-V3-ndk",
"android.hardware.gnss-V4-ndk",
],
static_libs: [
"android.hardware.gnss@common-default-lib",

View file

@ -40,7 +40,7 @@ cc_test {
"android.hardware.gnss@2.0",
"android.hardware.gnss@2.1",
"android.hardware.gnss@common-vts-lib",
"android.hardware.gnss-V3-cpp",
"android.hardware.gnss-V4-cpp",
],
shared_libs: [
"libvintf",

View file

@ -52,6 +52,6 @@ aidl_interface {
},
],
frozen: true,
frozen: false,
}

View file

@ -38,6 +38,6 @@ parcelable ElapsedRealtime {
int flags;
long timestampNs;
double timeUncertaintyNs;
const int HAS_TIMESTAMP_NS = 1;
const int HAS_TIME_UNCERTAINTY_NS = 2;
const int HAS_TIMESTAMP_NS = (1 << 0) /* 1 */;
const int HAS_TIME_UNCERTAINTY_NS = (1 << 1) /* 2 */;
}

View file

@ -46,11 +46,11 @@ parcelable GnssClock {
double driftUncertaintyNsps;
int hwClockDiscontinuityCount;
android.hardware.gnss.GnssSignalType referenceSignalTypeForIsb;
const int HAS_LEAP_SECOND = 1;
const int HAS_TIME_UNCERTAINTY = 2;
const int HAS_FULL_BIAS = 4;
const int HAS_BIAS = 8;
const int HAS_BIAS_UNCERTAINTY = 16;
const int HAS_DRIFT = 32;
const int HAS_DRIFT_UNCERTAINTY = 64;
const int HAS_LEAP_SECOND = (1 << 0) /* 1 */;
const int HAS_TIME_UNCERTAINTY = (1 << 1) /* 2 */;
const int HAS_FULL_BIAS = (1 << 2) /* 4 */;
const int HAS_BIAS = (1 << 3) /* 8 */;
const int HAS_BIAS_UNCERTAINTY = (1 << 4) /* 16 */;
const int HAS_DRIFT = (1 << 5) /* 32 */;
const int HAS_DRIFT_UNCERTAINTY = (1 << 6) /* 64 */;
}

View file

@ -47,12 +47,12 @@ parcelable GnssLocation {
double bearingAccuracyDegrees;
long timestampMillis;
android.hardware.gnss.ElapsedRealtime elapsedRealtime;
const int HAS_LAT_LONG = 1;
const int HAS_ALTITUDE = 2;
const int HAS_SPEED = 4;
const int HAS_BEARING = 8;
const int HAS_HORIZONTAL_ACCURACY = 16;
const int HAS_VERTICAL_ACCURACY = 32;
const int HAS_SPEED_ACCURACY = 64;
const int HAS_BEARING_ACCURACY = 128;
const int HAS_LAT_LONG = 0x0001;
const int HAS_ALTITUDE = 0x0002;
const int HAS_SPEED = 0x0004;
const int HAS_BEARING = 0x0008;
const int HAS_HORIZONTAL_ACCURACY = 0x0010;
const int HAS_VERTICAL_ACCURACY = 0x0020;
const int HAS_SPEED_ACCURACY = 0x0040;
const int HAS_BEARING_ACCURACY = 0x0080;
}

View file

@ -61,39 +61,39 @@ parcelable GnssMeasurement {
double satelliteInterSignalBiasUncertaintyNs;
android.hardware.gnss.SatellitePvt satellitePvt;
android.hardware.gnss.CorrelationVector[] correlationVectors;
const int HAS_SNR = 1;
const int HAS_CARRIER_FREQUENCY = 512;
const int HAS_CARRIER_CYCLES = 1024;
const int HAS_CARRIER_PHASE = 2048;
const int HAS_CARRIER_PHASE_UNCERTAINTY = 4096;
const int HAS_AUTOMATIC_GAIN_CONTROL = 8192;
const int HAS_FULL_ISB = 65536;
const int HAS_FULL_ISB_UNCERTAINTY = 131072;
const int HAS_SATELLITE_ISB = 262144;
const int HAS_SATELLITE_ISB_UNCERTAINTY = 524288;
const int HAS_SATELLITE_PVT = 1048576;
const int HAS_CORRELATION_VECTOR = 2097152;
const int HAS_SNR = (1 << 0) /* 1 */;
const int HAS_CARRIER_FREQUENCY = (1 << 9) /* 512 */;
const int HAS_CARRIER_CYCLES = (1 << 10) /* 1024 */;
const int HAS_CARRIER_PHASE = (1 << 11) /* 2048 */;
const int HAS_CARRIER_PHASE_UNCERTAINTY = (1 << 12) /* 4096 */;
const int HAS_AUTOMATIC_GAIN_CONTROL = (1 << 13) /* 8192 */;
const int HAS_FULL_ISB = (1 << 16) /* 65536 */;
const int HAS_FULL_ISB_UNCERTAINTY = (1 << 17) /* 131072 */;
const int HAS_SATELLITE_ISB = (1 << 18) /* 262144 */;
const int HAS_SATELLITE_ISB_UNCERTAINTY = (1 << 19) /* 524288 */;
const int HAS_SATELLITE_PVT = (1 << 20) /* 1048576 */;
const int HAS_CORRELATION_VECTOR = (1 << 21) /* 2097152 */;
const int STATE_UNKNOWN = 0;
const int STATE_CODE_LOCK = 1;
const int STATE_BIT_SYNC = 2;
const int STATE_SUBFRAME_SYNC = 4;
const int STATE_TOW_DECODED = 8;
const int STATE_MSEC_AMBIGUOUS = 16;
const int STATE_SYMBOL_SYNC = 32;
const int STATE_GLO_STRING_SYNC = 64;
const int STATE_GLO_TOD_DECODED = 128;
const int STATE_BDS_D2_BIT_SYNC = 256;
const int STATE_BDS_D2_SUBFRAME_SYNC = 512;
const int STATE_GAL_E1BC_CODE_LOCK = 1024;
const int STATE_GAL_E1C_2ND_CODE_LOCK = 2048;
const int STATE_GAL_E1B_PAGE_SYNC = 4096;
const int STATE_SBAS_SYNC = 8192;
const int STATE_TOW_KNOWN = 16384;
const int STATE_GLO_TOD_KNOWN = 32768;
const int STATE_2ND_CODE_LOCK = 65536;
const int STATE_CODE_LOCK = (1 << 0) /* 1 */;
const int STATE_BIT_SYNC = (1 << 1) /* 2 */;
const int STATE_SUBFRAME_SYNC = (1 << 2) /* 4 */;
const int STATE_TOW_DECODED = (1 << 3) /* 8 */;
const int STATE_MSEC_AMBIGUOUS = (1 << 4) /* 16 */;
const int STATE_SYMBOL_SYNC = (1 << 5) /* 32 */;
const int STATE_GLO_STRING_SYNC = (1 << 6) /* 64 */;
const int STATE_GLO_TOD_DECODED = (1 << 7) /* 128 */;
const int STATE_BDS_D2_BIT_SYNC = (1 << 8) /* 256 */;
const int STATE_BDS_D2_SUBFRAME_SYNC = (1 << 9) /* 512 */;
const int STATE_GAL_E1BC_CODE_LOCK = (1 << 10) /* 1024 */;
const int STATE_GAL_E1C_2ND_CODE_LOCK = (1 << 11) /* 2048 */;
const int STATE_GAL_E1B_PAGE_SYNC = (1 << 12) /* 4096 */;
const int STATE_SBAS_SYNC = (1 << 13) /* 8192 */;
const int STATE_TOW_KNOWN = (1 << 14) /* 16384 */;
const int STATE_GLO_TOD_KNOWN = (1 << 15) /* 32768 */;
const int STATE_2ND_CODE_LOCK = (1 << 16) /* 65536 */;
const int ADR_STATE_UNKNOWN = 0;
const int ADR_STATE_VALID = 1;
const int ADR_STATE_RESET = 2;
const int ADR_STATE_CYCLE_SLIP = 4;
const int ADR_STATE_HALF_CYCLE_RESOLVED = 8;
const int ADR_STATE_VALID = (1 << 0) /* 1 */;
const int ADR_STATE_RESET = (1 << 1) /* 2 */;
const int ADR_STATE_CYCLE_SLIP = (1 << 2) /* 4 */;
const int ADR_STATE_HALF_CYCLE_RESOLVED = (1 << 3) /* 8 */;
}

View file

@ -42,6 +42,7 @@ parcelable GnssSignalType {
const @utf8InCpp String CODE_TYPE_B = "B";
const @utf8InCpp String CODE_TYPE_C = "C";
const @utf8InCpp String CODE_TYPE_D = "D";
const @utf8InCpp String CODE_TYPE_E = "E";
const @utf8InCpp String CODE_TYPE_I = "I";
const @utf8InCpp String CODE_TYPE_L = "L";
const @utf8InCpp String CODE_TYPE_M = "M";

View file

@ -40,8 +40,8 @@ interface IAGnssRil {
void setSetId(in android.hardware.gnss.IAGnssRil.SetIdType type, in @utf8InCpp String setid);
void updateNetworkState(in android.hardware.gnss.IAGnssRil.NetworkAttributes attributes);
void injectNiSuplMessageData(in byte[] msgData, in int slotIndex);
const int NETWORK_CAPABILITY_NOT_METERED = 1;
const int NETWORK_CAPABILITY_NOT_ROAMING = 2;
const int NETWORK_CAPABILITY_NOT_METERED = 0x01;
const int NETWORK_CAPABILITY_NOT_ROAMING = 0x02;
@Backing(type="int") @VintfStability
enum AGnssRefLocationType {
GSM_CELLID = 1,

View file

@ -77,19 +77,19 @@ interface IGnss {
}
@Backing(type="int") @VintfStability
enum GnssAidingData {
EPHEMERIS = 1,
ALMANAC = 2,
POSITION = 4,
TIME = 8,
IONO = 16,
UTC = 32,
HEALTH = 64,
SVDIR = 128,
SVSTEER = 256,
SADATA = 512,
RTI = 1024,
CELLDB_INFO = 32768,
ALL = 65535,
EPHEMERIS = 0x0001,
ALMANAC = 0x0002,
POSITION = 0x0004,
TIME = 0x0008,
IONO = 0x0010,
UTC = 0x0020,
HEALTH = 0x0040,
SVDIR = 0x0080,
SVSTEER = 0x0100,
SADATA = 0x0200,
RTI = 0x0400,
CELLDB_INFO = 0x8000,
ALL = 0xFFFF,
}
@VintfStability
parcelable PositionModeOptions {

View file

@ -41,7 +41,7 @@ interface IGnssBatching {
void flush();
void stop();
void cleanup();
const int WAKEUP_ON_FIFO_FULL = 1;
const int WAKEUP_ON_FIFO_FULL = 0x01;
@VintfStability
parcelable Options {
long periodNanos;

View file

@ -46,22 +46,22 @@ interface IGnssCallback {
void gnssRequestTimeCb();
void gnssRequestLocationCb(in boolean independentFromGnss, in boolean isUserEmergency);
void gnssSetSignalTypeCapabilitiesCb(in android.hardware.gnss.GnssSignalType[] gnssSignalTypes);
const int CAPABILITY_SCHEDULING = 1;
const int CAPABILITY_MSB = 2;
const int CAPABILITY_MSA = 4;
const int CAPABILITY_SINGLE_SHOT = 8;
const int CAPABILITY_ON_DEMAND_TIME = 16;
const int CAPABILITY_GEOFENCING = 32;
const int CAPABILITY_MEASUREMENTS = 64;
const int CAPABILITY_NAV_MESSAGES = 128;
const int CAPABILITY_LOW_POWER_MODE = 256;
const int CAPABILITY_SATELLITE_BLOCKLIST = 512;
const int CAPABILITY_MEASUREMENT_CORRECTIONS = 1024;
const int CAPABILITY_ANTENNA_INFO = 2048;
const int CAPABILITY_CORRELATION_VECTOR = 4096;
const int CAPABILITY_SATELLITE_PVT = 8192;
const int CAPABILITY_MEASUREMENT_CORRECTIONS_FOR_DRIVING = 16384;
const int CAPABILITY_ACCUMULATED_DELTA_RANGE = 32768;
const int CAPABILITY_SCHEDULING = (1 << 0) /* 1 */;
const int CAPABILITY_MSB = (1 << 1) /* 2 */;
const int CAPABILITY_MSA = (1 << 2) /* 4 */;
const int CAPABILITY_SINGLE_SHOT = (1 << 3) /* 8 */;
const int CAPABILITY_ON_DEMAND_TIME = (1 << 4) /* 16 */;
const int CAPABILITY_GEOFENCING = (1 << 5) /* 32 */;
const int CAPABILITY_MEASUREMENTS = (1 << 6) /* 64 */;
const int CAPABILITY_NAV_MESSAGES = (1 << 7) /* 128 */;
const int CAPABILITY_LOW_POWER_MODE = (1 << 8) /* 256 */;
const int CAPABILITY_SATELLITE_BLOCKLIST = (1 << 9) /* 512 */;
const int CAPABILITY_MEASUREMENT_CORRECTIONS = (1 << 10) /* 1024 */;
const int CAPABILITY_ANTENNA_INFO = (1 << 11) /* 2048 */;
const int CAPABILITY_CORRELATION_VECTOR = (1 << 12) /* 4096 */;
const int CAPABILITY_SATELLITE_PVT = (1 << 13) /* 8192 */;
const int CAPABILITY_MEASUREMENT_CORRECTIONS_FOR_DRIVING = (1 << 14) /* 16384 */;
const int CAPABILITY_ACCUMULATED_DELTA_RANGE = (1 << 15) /* 32768 */;
@Backing(type="int") @VintfStability
enum GnssStatusValue {
NONE = 0,
@ -73,10 +73,10 @@ interface IGnssCallback {
@Backing(type="int") @VintfStability
enum GnssSvFlags {
NONE = 0,
HAS_EPHEMERIS_DATA = 1,
HAS_ALMANAC_DATA = 2,
USED_IN_FIX = 4,
HAS_CARRIER_FREQUENCY = 8,
HAS_EPHEMERIS_DATA = (1 << 0) /* 1 */,
HAS_ALMANAC_DATA = (1 << 1) /* 2 */,
USED_IN_FIX = (1 << 2) /* 4 */,
HAS_CARRIER_FREQUENCY = (1 << 3) /* 8 */,
}
@VintfStability
parcelable GnssSvInfo {

View file

@ -42,11 +42,11 @@ interface IGnssConfiguration {
void setEmergencySuplPdn(in boolean enable);
void setEsExtensionSec(in int emergencyExtensionSeconds);
void setBlocklist(in android.hardware.gnss.BlocklistedSource[] blocklist);
const int SUPL_MODE_MSB = 1;
const int SUPL_MODE_MSA = 2;
const int LPP_PROFILE_USER_PLANE = 1;
const int LPP_PROFILE_CONTROL_PLANE = 2;
const int GLONASS_POS_PROTOCOL_RRC_CPLANE = 1;
const int GLONASS_POS_PROTOCOL_RRLP_UPLANE = 2;
const int GLONASS_POS_PROTOCOL_LPP_UPLANE = 4;
const int SUPL_MODE_MSB = 0x01;
const int SUPL_MODE_MSA = 0x02;
const int LPP_PROFILE_USER_PLANE = 0x01;
const int LPP_PROFILE_CONTROL_PLANE = 0x02;
const int GLONASS_POS_PROTOCOL_RRC_CPLANE = 0x01;
const int GLONASS_POS_PROTOCOL_RRLP_UPLANE = 0x02;
const int GLONASS_POS_PROTOCOL_LPP_UPLANE = 0x04;
}

View file

@ -41,15 +41,15 @@ interface IGnssGeofenceCallback {
void gnssGeofenceRemoveCb(in int geofenceId, in int status);
void gnssGeofencePauseCb(in int geofenceId, in int status);
void gnssGeofenceResumeCb(in int geofenceId, in int status);
const int ENTERED = 1;
const int EXITED = 2;
const int UNCERTAIN = 4;
const int UNAVAILABLE = 1;
const int AVAILABLE = 2;
const int ENTERED = (1 << 0) /* 1 */;
const int EXITED = (1 << 1) /* 2 */;
const int UNCERTAIN = (1 << 2) /* 4 */;
const int UNAVAILABLE = (1 << 0) /* 1 */;
const int AVAILABLE = (1 << 1) /* 2 */;
const int OPERATION_SUCCESS = 0;
const int ERROR_TOO_MANY_GEOFENCES = -100;
const int ERROR_ID_EXISTS = -101;
const int ERROR_ID_UNKNOWN = -102;
const int ERROR_INVALID_TRANSITION = -103;
const int ERROR_GENERIC = -149;
const int ERROR_TOO_MANY_GEOFENCES = (-100) /* -100 */;
const int ERROR_ID_EXISTS = (-101) /* -101 */;
const int ERROR_ID_UNKNOWN = (-102) /* -102 */;
const int ERROR_INVALID_TRANSITION = (-103) /* -103 */;
const int ERROR_GENERIC = (-149) /* -149 */;
}

View file

@ -44,26 +44,26 @@ interface IGnssNavigationMessageCallback {
int messageId;
int submessageId;
byte[] data;
const int STATUS_PARITY_PASSED = 1;
const int STATUS_PARITY_REBUILT = 2;
const int STATUS_PARITY_PASSED = (1 << 0) /* 1 */;
const int STATUS_PARITY_REBUILT = (1 << 1) /* 2 */;
const int STATUS_UNKNOWN = 0;
@Backing(type="int") @VintfStability
enum GnssNavigationMessageType {
UNKNOWN = 0,
GPS_L1CA = 257,
GPS_L2CNAV = 258,
GPS_L5CNAV = 259,
SBS = 513,
GPS_CNAV2 = 260,
GLO_L1CA = 769,
QZS_L1CA = 1025,
BDS_D1 = 1281,
BDS_D2 = 1282,
BDS_CNAV1 = 1283,
BDS_CNAV2 = 1284,
GAL_I = 1537,
GAL_F = 1538,
IRN_L5CA = 1793,
GPS_L1CA = 0x0101,
GPS_L2CNAV = 0x0102,
GPS_L5CNAV = 0x0103,
SBS = 0x0201,
GPS_CNAV2 = 0x0104,
GLO_L1CA = 0x0301,
QZS_L1CA = 0x0401,
BDS_D1 = 0x0501,
BDS_D2 = 0x0502,
BDS_CNAV1 = 0x0503,
BDS_CNAV2 = 0x0504,
GAL_I = 0x0601,
GAL_F = 0x0602,
IRN_L5CA = 0x0701,
}
}
}

View file

@ -37,10 +37,10 @@ package android.hardware.gnss;
interface IGnssPowerIndicationCallback {
void setCapabilitiesCb(in int capabilities);
oneway void gnssPowerStatsCb(in android.hardware.gnss.GnssPowerStats gnssPowerStats);
const int CAPABILITY_TOTAL = 1;
const int CAPABILITY_SINGLEBAND_TRACKING = 2;
const int CAPABILITY_MULTIBAND_TRACKING = 4;
const int CAPABILITY_SINGLEBAND_ACQUISITION = 8;
const int CAPABILITY_MULTIBAND_ACQUISITION = 16;
const int CAPABILITY_OTHER_MODES = 32;
const int CAPABILITY_TOTAL = (1 << 0) /* 1 */;
const int CAPABILITY_SINGLEBAND_TRACKING = (1 << 1) /* 2 */;
const int CAPABILITY_MULTIBAND_TRACKING = (1 << 2) /* 4 */;
const int CAPABILITY_SINGLEBAND_ACQUISITION = (1 << 3) /* 8 */;
const int CAPABILITY_MULTIBAND_ACQUISITION = (1 << 4) /* 16 */;
const int CAPABILITY_OTHER_MODES = (1 << 5) /* 32 */;
}

View file

@ -46,9 +46,9 @@ parcelable SatellitePvt {
long timeOfEphemerisSeconds;
int issueOfDataEphemeris;
android.hardware.gnss.SatellitePvt.SatelliteEphemerisSource ephemerisSource = android.hardware.gnss.SatellitePvt.SatelliteEphemerisSource.OTHER;
const int HAS_POSITION_VELOCITY_CLOCK_INFO = 1;
const int HAS_IONO = 2;
const int HAS_TROPO = 4;
const int HAS_POSITION_VELOCITY_CLOCK_INFO = (1 << 0) /* 1 */;
const int HAS_IONO = (1 << 1) /* 2 */;
const int HAS_TROPO = (1 << 2) /* 4 */;
@Backing(type="int") @VintfStability
enum SatelliteEphemerisSource {
DEMODULATED = 0,

View file

@ -36,7 +36,7 @@ package android.hardware.gnss.measurement_corrections;
@VintfStability
interface IMeasurementCorrectionsCallback {
void setCapabilitiesCb(in int capabilities);
const int CAPABILITY_LOS_SATS = 1;
const int CAPABILITY_EXCESS_PATH_LENGTH = 2;
const int CAPABILITY_REFLECTING_PLANE = 4;
const int CAPABILITY_LOS_SATS = (1 << 0) /* 1 */;
const int CAPABILITY_EXCESS_PATH_LENGTH = (1 << 1) /* 2 */;
const int CAPABILITY_REFLECTING_PLANE = (1 << 2) /* 4 */;
}

View file

@ -44,10 +44,10 @@ parcelable SingleSatCorrection {
float combinedExcessPathLengthUncertaintyMeters;
float combinedAttenuationDb;
android.hardware.gnss.measurement_corrections.SingleSatCorrection.ExcessPathInfo[] excessPathInfos;
const int SINGLE_SAT_CORRECTION_HAS_SAT_IS_LOS_PROBABILITY = 1;
const int SINGLE_SAT_CORRECTION_HAS_COMBINED_EXCESS_PATH_LENGTH = 2;
const int SINGLE_SAT_CORRECTION_HAS_COMBINED_EXCESS_PATH_LENGTH_UNC = 4;
const int SINGLE_SAT_CORRECTION_HAS_COMBINED_ATTENUATION = 16;
const int SINGLE_SAT_CORRECTION_HAS_SAT_IS_LOS_PROBABILITY = 0x0001;
const int SINGLE_SAT_CORRECTION_HAS_COMBINED_EXCESS_PATH_LENGTH = 0x0002;
const int SINGLE_SAT_CORRECTION_HAS_COMBINED_EXCESS_PATH_LENGTH_UNC = 0x0004;
const int SINGLE_SAT_CORRECTION_HAS_COMBINED_ATTENUATION = 0x0010;
@VintfStability
parcelable ExcessPathInfo {
int excessPathInfoFlags;
@ -55,9 +55,9 @@ parcelable SingleSatCorrection {
float excessPathLengthUncertaintyMeters;
android.hardware.gnss.measurement_corrections.ReflectingPlane reflectingPlane;
float attenuationDb;
const int EXCESS_PATH_INFO_HAS_EXCESS_PATH_LENGTH = 1;
const int EXCESS_PATH_INFO_HAS_EXCESS_PATH_LENGTH_UNC = 2;
const int EXCESS_PATH_INFO_HAS_REFLECTING_PLANE = 4;
const int EXCESS_PATH_INFO_HAS_ATTENUATION = 8;
const int EXCESS_PATH_INFO_HAS_EXCESS_PATH_LENGTH = 0x0001;
const int EXCESS_PATH_INFO_HAS_EXCESS_PATH_LENGTH_UNC = 0x0002;
const int EXCESS_PATH_INFO_HAS_REFLECTING_PLANE = 0x0004;
const int EXCESS_PATH_INFO_HAS_ATTENUATION = 0x0008;
}
}

View file

@ -46,26 +46,35 @@ parcelable GnssSignalType {
double carrierFrequencyHz;
/**
* GNSS signal code type "A" representing GALILEO E1A, GALILEO E6A, IRNSS L5A, IRNSS SA.
* GNSS signal code type "A" representing GALILEO E1A, GALILEO E6A, IRNSS L5A SPS, IRNSS SA SPS,
* GLONASS G1a L1OCd, GLONASS G2a L2CSI.
*/
const @utf8InCpp String CODE_TYPE_A = "A";
/**
* GNSS signal code type "B" representing GALILEO E1B, GALILEO E6B, IRNSS L5B, IRNSS SB.
* GNSS signal code type "B" representing GALILEO E1B, GALILEO E6B, IRNSS L5B RS (D),
* IRNSS SB RS (D), GLONASS G1a L1OCp, GLONASS G2a L2OCp, QZSS L1Sb.
*/
const @utf8InCpp String CODE_TYPE_B = "B";
/**
* GNSS signal code type "C" representing GPS L1 C/A, GPS L2 C/A, GLONASS G1 C/A,
* GLONASS G2 C/A, GALILEO E1C, GALILEO E6C, SBAS L1 C/A, QZSS L1 C/A, IRNSS L5C.
* GLONASS G2 C/A, GALILEO E1C, GALILEO E6C, SBAS L1 C/A, QZSS L1 C/A, IRNSS L5C RS (P),
* IRNSS SC RS (P).
*/
const @utf8InCpp String CODE_TYPE_C = "C";
/**
* GNSS signal code type "D" representing BDS B1C D.
* GNSS signal code type "D" representing GPS L2 (L1(C/A) + (P2-P1) (semi-codeless)),
* QZSS L5S(I), BDS B1C Data, BDS B2a Data, BDS B2b Data, BDS B2 (B2a+B2b) Data, BDS B3a Data.
*/
const @utf8InCpp String CODE_TYPE_D = "D";
/**
* GNSS signal code type "E" representing QZSS L1 C/B, QZSS L6E.
*/
const @utf8InCpp String CODE_TYPE_E = "E";
/**
* GNSS signal code type "I" representing GPS L5 I, GLONASS G3 I, GALILEO E5a I, GALILEO E5b I,
* GALILEO E5a+b I, SBAS L5 I, QZSS L5 I, BDS B1 I, BDS B2 I, BDS B3 I.
@ -74,7 +83,7 @@ parcelable GnssSignalType {
/**
* GNSS signal code type "L" representing GPS L1C (P), GPS L2C (L), QZSS L1C (P), QZSS L2C (L),
* LEX(6) L.
* QZSS L6P, BDS B1a Pilot.
*/
const @utf8InCpp String CODE_TYPE_L = "L";
@ -89,7 +98,9 @@ parcelable GnssSignalType {
const @utf8InCpp String CODE_TYPE_N = "N";
/**
* GNSS signal code type "P" representing GPS L1P, GPS L2P, GLONASS G1P, GLONASS G2P, BDS B1C P.
* GNSS signal code type "P" representing GPS L1P, GPS L2P, GLONASS G1P, GLONASS G2P,
* BDS B1C Pilot, BDS B2a Pilot, BDS B2b Pilot, BDS B2 (B2a+B2b) Pilot, BDS B3a Pilot,
* QZSS L5S(Q).
*/
const @utf8InCpp String CODE_TYPE_P = "P";
@ -101,7 +112,7 @@ parcelable GnssSignalType {
/**
* GNSS signal code type "S" represents GPS L1C (D), GPS L2C (M), QZSS L1C (D), QZSS L2C (M),
* LEX(6) S.
* QZSS L6D, BDS B1a Data.
*/
const @utf8InCpp String CODE_TYPE_S = "S";
@ -112,9 +123,11 @@ parcelable GnssSignalType {
/**
* GNSS signal code type "X" representing GPS L1C (D+P), GPS L2C (M+L), GPS L5 (I+Q),
* GLONASS G3 (I+Q), GALILEO E1 (B+C), GALILEO E5a (I+Q), GALILEO E5b (I+Q), GALILEO E5a+b(I+Q),
* GALILEO E6 (B+C), SBAS L5 (I+Q), QZSS L1C (D+P), QZSS L2C (M+L), QZSS L5 (I+Q),
* LEX(6) (S+L), BDS B1 (I+Q), BDS B1C (D+P), BDS B2 (I+Q), BDS B3 (I+Q), IRNSS L5 (B+C).
* GLONASS G1a L1OCd+L1OCp, GLONASS G2a L2CSI+L2OCp, GLONASS G3 (I+Q), GALILEO E1 (B+C),
* GALILEO E5a (I+Q), GALILEO E5b (I+Q), GALILEO E5a+b (I+Q), GALILEO E6 (B+C), SBAS L5 (I+Q),
* QZSS L1C (D+P), QZSS L2C (M+L), QZSS L5 (I+Q), QZSS L6 (D+P), BDS B1 (I+Q),
* BDS B1C Data+Pilot, BDS B2a Data+Pilot, BDS B2 (I+Q), BDS B2 (B2a+B2b) Data+Pilot,
* BDS B3 (I+Q), IRNSS L5 (B+C), IRNSS S (B+C).
*/
const @utf8InCpp String CODE_TYPE_X = "X";
@ -124,7 +137,9 @@ parcelable GnssSignalType {
const @utf8InCpp String CODE_TYPE_Y = "Y";
/**
* GNSS signal code type "Z" representing GALILEO E1 (A+B+C), GALILEO E6 (A+B+C), QZSS L1-SAIF.
* GNSS signal code type "Z" representing GALILEO E1 (A+B+C), GALILEO E6 (A+B+C),
* QZSS L1S/L1-SAIF, QZSS L5S (I+Q), QZSS L6 (D+E), BDS B1A Data+Pilot, BDS B2b Data+Pilot,
* BDS B3a Data+Pilot.
*/
const @utf8InCpp String CODE_TYPE_Z = "Z";
@ -142,10 +157,11 @@ parcelable GnssSignalType {
* The value is one of the constant Strings with prefix CODE_TYPE_ defined in this parcelable.
*
* This is used to specify the observation descriptor defined in GNSS Observation Data File
* Header Section Description in the RINEX standard (Version 3.XX). In RINEX Version 3.03,
* in Appendix Table A2 Attributes are listed as uppercase letters (for instance, "A" for
* "A channel"). In the future, if for instance a code "G" was added in the official RINEX
* standard, "G" could be specified here.
* Header Section Description in the RINEX standard (Version 4.00) e.g., in Tables 9-16 (see
* https://igs.org/wg/rinex/#documents-formats). In cases where the code type does not align
* with the above listed values, the code type from the most recent version of RINEX should be
* used. In the future, if for instance a code "G" was added in the official RINEX standard,
* "G" could be specified here.
*/
@utf8InCpp String codeType;
}

View file

@ -50,7 +50,7 @@ cc_binary {
"android.hardware.gnss.measurement_corrections@1.1",
"android.hardware.gnss.measurement_corrections@1.0",
"android.hardware.gnss.visibility_control@1.0",
"android.hardware.gnss-V3-ndk",
"android.hardware.gnss-V4-ndk",
],
srcs: [
"AGnssRil.cpp",

View file

@ -1,7 +1,7 @@
<manifest version="1.0" type="device">
<hal format="aidl">
<name>android.hardware.gnss</name>
<version>3</version>
<version>4</version>
<interface>
<name>IGnss</name>
<instance>default</instance>

View file

@ -51,7 +51,7 @@ cc_test {
"libbinder",
],
static_libs: [
"android.hardware.gnss-V3-cpp",
"android.hardware.gnss-V4-cpp",
"android.hardware.gnss@common-vts-lib",
],
test_suites: [

View file

@ -57,6 +57,6 @@ cc_library_static {
"android.hardware.gnss@2.1",
"android.hardware.gnss.measurement_corrections@1.1",
"android.hardware.gnss.measurement_corrections@1.0",
"android.hardware.gnss-V3-ndk",
"android.hardware.gnss-V4-ndk",
],
}

View file

@ -44,7 +44,7 @@ cc_library_static {
"android.hardware.gnss@2.1",
"android.hardware.gnss.measurement_corrections@1.0",
"android.hardware.gnss.measurement_corrections@1.1",
"android.hardware.gnss-V3-cpp",
"android.hardware.gnss-V4-cpp",
],
static_libs: [
"libgtest",