1 // This file is autogenerated by hidl-gen. Do not edit manually. 2 // Source: android.hardware.gnss@1.0 3 // Location: hardware/interfaces/gnss/1.0/ 4 5 #ifndef HIDL_GENERATED_ANDROID_HARDWARE_GNSS_V1_0_EXPORTED_CONSTANTS_H_ 6 #define HIDL_GENERATED_ANDROID_HARDWARE_GNSS_V1_0_EXPORTED_CONSTANTS_H_ 7 8 #ifdef __cplusplus 9 extern "C" { 10 #endif 11 12 enum { 13 GNSS_MAX_SVS_COUNT = 64u, 14 }; 15 16 enum { 17 GNSS_CONSTELLATION_UNKNOWN = 0, 18 GNSS_CONSTELLATION_GPS = 1, 19 GNSS_CONSTELLATION_SBAS = 2, 20 GNSS_CONSTELLATION_GLONASS = 3, 21 GNSS_CONSTELLATION_QZSS = 4, 22 GNSS_CONSTELLATION_BEIDOU = 5, 23 GNSS_CONSTELLATION_GALILEO = 6, 24 }; 25 26 enum { 27 GPS_LOCATION_HAS_LAT_LONG = 1 /* 0x0001 */, 28 GPS_LOCATION_HAS_ALTITUDE = 2 /* 0x0002 */, 29 GPS_LOCATION_HAS_SPEED = 4 /* 0x0004 */, 30 GPS_LOCATION_HAS_BEARING = 8 /* 0x0008 */, 31 GPS_LOCATION_HAS_HORIZONTAL_ACCURACY = 16 /* 0x0010 */, 32 GPS_LOCATION_HAS_VERTICAL_ACCURACY = 32 /* 0x0020 */, 33 GPS_LOCATION_HAS_SPEED_ACCURACY = 64 /* 0x0040 */, 34 GPS_LOCATION_HAS_BEARING_ACCURACY = 128 /* 0x0080 */, 35 }; 36 37 enum { 38 APN_IP_INVALID = 0, 39 APN_IP_IPV4 = 1, 40 APN_IP_IPV6 = 2, 41 APN_IP_IPV4V6 = 3, 42 }; 43 44 enum { 45 AGPS_TYPE_SUPL = 1, 46 AGPS_TYPE_C2K = 2, 47 }; 48 49 enum { 50 GNSS_REQUEST_AGNSS_DATA_CONN = 1, 51 GNSS_RELEASE_AGNSS_DATA_CONN = 2, 52 GNSS_AGNSS_DATA_CONNECTED = 3, 53 GNSS_AGNSS_DATA_CONN_DONE = 4, 54 GNSS_AGNSS_DATA_CONN_FAILED = 5, 55 }; 56 57 enum { 58 AGPS_SETID_TYPE_NONE = 0, 59 AGPS_SETID_TYPE_IMSI = 1, 60 AGPS_SETID_TYPE_MSISDM = 2, 61 }; 62 63 enum { 64 AGPS_RIL_NETWORK_TYPE_MOBILE = 0, 65 AGPS_RIL_NETWORK_TYPE_WIFI = 1, 66 AGPS_RIL_NETWORK_TYPE_MMS = 2, 67 AGPS_RIL_NETWORK_TYPE_SUPL = 3, 68 AGPS_RIL_NETWORK_TYPE_DUN = 4, 69 AGPS_RIL_NETWORK_TYPE_HIPRI = 5, 70 AGPS_RIL_NETWORK_TYPE_WIMAX = 6, 71 }; 72 73 enum { 74 AGPS_REF_LOCATION_TYPE_GSM_CELLID = 1, 75 AGPS_REF_LOCATION_TYPE_UMTS_CELLID = 2, 76 AGPS_REF_LOCATION_TYPE_LTE_CELLID = 4, 77 }; 78 79 enum { 80 AGPS_RIL_REQUEST_SETID_IMSI = 1u /* (1 << 0L) */, 81 AGPS_RIL_REQUEST_SETID_MSISDN = 2u /* (1 << 1L) */, 82 }; 83 84 enum { 85 GPS_POSITION_MODE_STANDALONE = 0, 86 GPS_POSITION_MODE_MS_BASED = 1, 87 GPS_POSITION_MODE_MS_ASSISTED = 2, 88 }; 89 90 enum { 91 GPS_POSITION_RECURRENCE_PERIODIC = 0u, 92 GPS_POSITION_RECURRENCE_SINGLE = 1u, 93 }; 94 95 enum { 96 GPS_DELETE_EPHEMERIS = 1 /* 0x0001 */, 97 GPS_DELETE_ALMANAC = 2 /* 0x0002 */, 98 GPS_DELETE_POSITION = 4 /* 0x0004 */, 99 GPS_DELETE_TIME = 8 /* 0x0008 */, 100 GPS_DELETE_IONO = 16 /* 0x0010 */, 101 GPS_DELETE_UTC = 32 /* 0x0020 */, 102 GPS_DELETE_HEALTH = 64 /* 0x0040 */, 103 GPS_DELETE_SVDIR = 128 /* 0x0080 */, 104 GPS_DELETE_SVSTEER = 256 /* 0x0100 */, 105 GPS_DELETE_SADATA = 512 /* 0x0200 */, 106 GPS_DELETE_RTI = 1024 /* 0x0400 */, 107 GPS_DELETE_CELLDB_INFO = 32768 /* 0x8000 */, 108 GPS_DELETE_ALL = 65535 /* 0xFFFF */, 109 }; 110 111 enum { 112 FLP_BATCH_WAKEUP_ON_FIFO_FULL = 1 /* 0x01 */, 113 }; 114 115 enum { 116 GPS_CAPABILITY_SCHEDULING = 1u /* (1 << 0) */, 117 GPS_CAPABILITY_MSB = 2u /* (1 << 1) */, 118 GPS_CAPABILITY_MSA = 4u /* (1 << 2) */, 119 GPS_CAPABILITY_SINGLE_SHOT = 8u /* (1 << 3) */, 120 GPS_CAPABILITY_ON_DEMAND_TIME = 16u /* (1 << 4) */, 121 GPS_CAPABILITY_GEOFENCING = 32u /* (1 << 5) */, 122 GPS_CAPABILITY_MEASUREMENTS = 64u /* (1 << 6) */, 123 GPS_CAPABILITY_NAV_MESSAGES = 128u /* (1 << 7) */, 124 }; 125 126 enum { 127 GPS_STATUS_NONE = 0, 128 GPS_STATUS_SESSION_BEGIN = 1, 129 GPS_STATUS_SESSION_END = 2, 130 GPS_STATUS_ENGINE_ON = 3, 131 GPS_STATUS_ENGINE_OFF = 4, 132 }; 133 134 enum { 135 GNSS_SV_FLAGS_NONE = 0, 136 GNSS_SV_FLAGS_HAS_EPHEMERIS_DATA = 1 /* (1 << 0) */, 137 GNSS_SV_FLAGS_HAS_ALMANAC_DATA = 2 /* (1 << 1) */, 138 GNSS_SV_FLAGS_USED_IN_FIX = 4 /* (1 << 2) */, 139 GNSS_SV_FLAGS_HAS_CARRIER_FREQUENCY = 8 /* (1 << 3) */, 140 }; 141 142 enum { 143 GPS_GEOFENCE_ENTERED = 1 /* (1 << 0L) */, 144 GPS_GEOFENCE_EXITED = 2 /* (1 << 1L) */, 145 GPS_GEOFENCE_UNCERTAIN = 4 /* (1 << 2L) */, 146 }; 147 148 enum { 149 GPS_GEOFENCE_UNAVAILABLE = 1 /* (1 << 0L) */, 150 GPS_GEOFENCE_AVAILABLE = 2 /* (1 << 1L) */, 151 }; 152 153 enum { 154 GPS_GEOFENCE_OPERATION_SUCCESS = 0, 155 GPS_GEOFENCE_ERROR_TOO_MANY_GEOFENCES = -100 /* (-100) */, 156 GPS_GEOFENCE_ERROR_ID_EXISTS = -101 /* (-101) */, 157 GPS_GEOFENCE_ERROR_ID_UNKNOWN = -102 /* (-102) */, 158 GPS_GEOFENCE_ERROR_INVALID_TRANSITION = -103 /* (-103) */, 159 GPS_GEOFENCE_ERROR_GENERIC = -149 /* (-149) */, 160 }; 161 162 enum { 163 GPS_MEASUREMENT_SUCCESS = 0, 164 GPS_MEASUREMENT_ERROR_ALREADY_INIT = -100 /* (-100) */, 165 GPS_MEASUREMENT_ERROR_GENERIC = -101 /* (-101) */, 166 }; 167 168 enum { 169 GNSS_CLOCK_HAS_LEAP_SECOND = 1 /* (1 << 0) */, 170 GNSS_CLOCK_HAS_TIME_UNCERTAINTY = 2 /* (1 << 1) */, 171 GNSS_CLOCK_HAS_FULL_BIAS = 4 /* (1 << 2) */, 172 GNSS_CLOCK_HAS_BIAS = 8 /* (1 << 3) */, 173 GNSS_CLOCK_HAS_BIAS_UNCERTAINTY = 16 /* (1 << 4) */, 174 GNSS_CLOCK_HAS_DRIFT = 32 /* (1 << 5) */, 175 GNSS_CLOCK_HAS_DRIFT_UNCERTAINTY = 64 /* (1 << 6) */, 176 }; 177 178 enum { 179 GNSS_MEASUREMENT_HAS_SNR = 1u /* (1 << 0) */, 180 GNSS_MEASUREMENT_HAS_CARRIER_FREQUENCY = 512u /* (1 << 9) */, 181 GNSS_MEASUREMENT_HAS_CARRIER_CYCLES = 1024u /* (1 << 10) */, 182 GNSS_MEASUREMENT_HAS_CARRIER_PHASE = 2048u /* (1 << 11) */, 183 GNSS_MEASUREMENT_HAS_CARRIER_PHASE_UNCERTAINTY = 4096u /* (1 << 12) */, 184 GNSS_MEASUREMENT_HAS_AUTOMATIC_GAIN_CONTROL = 8192u /* (1 << 13) */, 185 }; 186 187 enum { 188 GNSS_MULTIPATH_INDICATOR_UNKNOWN = 0, 189 GNSS_MULTIPATH_INDICATOR_PRESENT = 1, 190 GNSS_MULTIPATH_INDICATIOR_NOT_PRESENT = 2, 191 }; 192 193 enum { 194 GNSS_MEASUREMENT_STATE_UNKNOWN = 0u, 195 GNSS_MEASUREMENT_STATE_CODE_LOCK = 1u /* (1 << 0) */, 196 GNSS_MEASUREMENT_STATE_BIT_SYNC = 2u /* (1 << 1) */, 197 GNSS_MEASUREMENT_STATE_SUBFRAME_SYNC = 4u /* (1 << 2) */, 198 GNSS_MEASUREMENT_STATE_TOW_DECODED = 8u /* (1 << 3) */, 199 GNSS_MEASUREMENT_STATE_MSEC_AMBIGUOUS = 16u /* (1 << 4) */, 200 GNSS_MEASUREMENT_STATE_SYMBOL_SYNC = 32u /* (1 << 5) */, 201 GNSS_MEASUREMENT_STATE_GLO_STRING_SYNC = 64u /* (1 << 6) */, 202 GNSS_MEASUREMENT_STATE_GLO_TOD_DECODED = 128u /* (1 << 7) */, 203 GNSS_MEASUREMENT_STATE_BDS_D2_BIT_SYNC = 256u /* (1 << 8) */, 204 GNSS_MEASUREMENT_STATE_BDS_D2_SUBFRAME_SYNC = 512u /* (1 << 9) */, 205 GNSS_MEASUREMENT_STATE_GAL_E1BC_CODE_LOCK = 1024u /* (1 << 10) */, 206 GNSS_MEASUREMENT_STATE_GAL_E1C_2ND_CODE_LOCK = 2048u /* (1 << 11) */, 207 GNSS_MEASUREMENT_STATE_GAL_E1B_PAGE_SYNC = 4096u /* (1 << 12) */, 208 GNSS_MEASUREMENT_STATE_SBAS_SYNC = 8192u /* (1 << 13) */, 209 GNSS_MEASUREMENT_STATE_TOW_KNOWN = 16384u /* (1 << 14) */, 210 GNSS_MEASUREMENT_STATE_GLO_TOD_KNOWN = 32768u /* (1 << 15) */, 211 }; 212 213 enum { 214 GNSS_ADR_STATE_UNKNOWN = 0, 215 GNSS_ADR_STATE_VALID = 1 /* (1 << 0) */, 216 GNSS_ADR_STATE_RESET = 2 /* (1 << 1) */, 217 GNSS_ADR_STATE_CYCLE_SLIP = 4 /* (1 << 2) */, 218 }; 219 220 enum { 221 GPS_NAVIGATION_MESSAGE_SUCCESS = 0, 222 GPS_NAVIGATION_MESSAGE_ERROR_ALREADY_INIT = -100 /* (-100) */, 223 GPS_NAVIGATION_MESSAGE_ERROR_GENERIC = -101 /* (-101) */, 224 }; 225 226 enum { 227 GNSS_NAVIGATION_MESSAGE_TYPE_UNKNOWN = 0, 228 GNSS_NAVIGATION_MESSAGE_TYPE_GPS_L1CA = 257 /* 0x0101 */, 229 GNSS_NAVIGATION_MESSAGE_TYPE_GPS_L2CNAV = 258 /* 0x0102 */, 230 GNSS_NAVIGATION_MESSAGE_TYPE_GPS_L5CNAV = 259 /* 0x0103 */, 231 GNSS_NAVIGATION_MESSAGE_TYPE_GPS_CNAV2 = 260 /* 0x0104 */, 232 GNSS_NAVIGATION_MESSAGE_TYPE_GLO_L1CA = 769 /* 0x0301 */, 233 GNSS_NAVIGATION_MESSAGE_TYPE_BDS_D1 = 1281 /* 0x0501 */, 234 GNSS_NAVIGATION_MESSAGE_TYPE_BDS_D2 = 1282 /* 0x0502 */, 235 GNSS_NAVIGATION_MESSAGE_TYPE_GAL_I = 1537 /* 0x0601 */, 236 GNSS_NAVIGATION_MESSAGE_TYPE_GAL_F = 1538 /* 0x0602 */, 237 }; 238 239 typedef enum { 240 NAV_MESSAGE_STATUS_PARITY_PASSED = 1 /* (1 << 0) */, 241 NAV_MESSAGE_STATUS_PARITY_REBUILT = 2 /* (1 << 1) */, 242 NAV_MESSAGE_STATUS_UNKNOWN = 0, 243 } navigation_message_status; 244 245 enum { 246 GPS_NI_TYPE_VOICE = 1, 247 GPS_NI_TYPE_UMTS_SUPL = 2, 248 GPS_NI_TYPE_UMTS_CTRL_PLANE = 3, 249 GPS_NI_TYPE_EMERGENCY_SUPL = 4, 250 }; 251 252 enum { 253 GPS_NI_NEED_NOTIFY = 1u /* 0x0001 */, 254 GPS_NI_NEED_VERIFY = 2u /* 0x0002 */, 255 GPS_NI_PRIVACY_OVERRIDE = 4u /* 0x0004 */, 256 }; 257 258 enum { 259 GPS_NI_RESPONSE_ACCEPT = 1, 260 GPS_NI_RESPONSE_DENY = 2, 261 GPS_NI_RESPONSE_NORESP = 3, 262 }; 263 264 enum { 265 GPS_ENC_NONE = 0, 266 GPS_ENC_SUPL_GSM_DEFAULT = 1, 267 GPS_ENC_SUPL_UTF8 = 2, 268 GPS_ENC_SUPL_UCS2 = 3, 269 GPS_ENC_UNKNOWN = -1 /* (-1) */, 270 }; 271 272 #ifdef __cplusplus 273 } 274 #endif 275 276 #endif // HIDL_GENERATED_ANDROID_HARDWARE_GNSS_V1_0_EXPORTED_CONSTANTS_H_ 277