Lines Matching refs:data
62 V1_0::IGnssDebug::DebugData data = { }; in getDebugData() local
66 _hidl_cb(data); in getDebugData()
76 data.position.valid = true; in getDebugData()
77 data.position.latitudeDegrees = reports.mLocation.mLocation.latitude; in getDebugData()
78 data.position.longitudeDegrees = reports.mLocation.mLocation.longitude; in getDebugData()
79 data.position.altitudeMeters = reports.mLocation.mLocation.altitude; in getDebugData()
81 data.position.speedMetersPerSec = in getDebugData()
83 data.position.bearingDegrees = in getDebugData()
85 data.position.horizontalAccuracyMeters = in getDebugData()
87 data.position.verticalAccuracyMeters = in getDebugData()
89 data.position.speedAccuracyMetersPerSecond = in getDebugData()
91 data.position.bearingAccuracyDegrees = in getDebugData()
98 data.position.ageSeconds = in getDebugData()
103 data.position.valid = false; in getDebugData()
106 if (data.position.horizontalAccuracyMeters <= 0 || in getDebugData()
107 data.position.horizontalAccuracyMeters > GNSS_DEBUG_UNKNOWN_HORIZONTAL_ACCURACY_METERS) { in getDebugData()
108 data.position.horizontalAccuracyMeters = GNSS_DEBUG_UNKNOWN_HORIZONTAL_ACCURACY_METERS; in getDebugData()
110 if (data.position.verticalAccuracyMeters <= 0 || in getDebugData()
111 data.position.verticalAccuracyMeters > GNSS_DEBUG_UNKNOWN_VERTICAL_ACCURACY_METERS) { in getDebugData()
112 data.position.verticalAccuracyMeters = GNSS_DEBUG_UNKNOWN_VERTICAL_ACCURACY_METERS; in getDebugData()
114 if (data.position.speedAccuracyMetersPerSecond <= 0 || in getDebugData()
115 data.position.speedAccuracyMetersPerSecond > GNSS_DEBUG_UNKNOWN_SPEED_ACCURACY_PER_SEC) { in getDebugData()
116 data.position.speedAccuracyMetersPerSecond = GNSS_DEBUG_UNKNOWN_SPEED_ACCURACY_PER_SEC; in getDebugData()
118 if (data.position.bearingAccuracyDegrees <= 0 || in getDebugData()
119 data.position.bearingAccuracyDegrees > GNSS_DEBUG_UNKNOWN_BEARING_ACCURACY_DEG) { in getDebugData()
120 data.position.bearingAccuracyDegrees = GNSS_DEBUG_UNKNOWN_BEARING_ACCURACY_DEG; in getDebugData()
125 data.time.timeEstimate = reports.mTime.timeEstimate; in getDebugData()
126 data.time.timeUncertaintyNs = reports.mTime.timeUncertaintyNs; in getDebugData()
127 data.time.frequencyUncertaintyNsPerSec = in getDebugData()
131 if (data.time.timeEstimate < GNSS_DEBUG_UNKNOWN_UTC_TIME) { in getDebugData()
132 data.time.timeEstimate = GNSS_DEBUG_UNKNOWN_UTC_TIME; in getDebugData()
134 if (data.time.timeUncertaintyNs <= 0) { in getDebugData()
135 data.time.timeUncertaintyNs = (float)GNSS_DEBUG_UNKNOWN_UTC_TIME_UNC_MIN; in getDebugData()
136 } else if (data.time.timeUncertaintyNs > GNSS_DEBUG_UNKNOWN_UTC_TIME_UNC_MAX) { in getDebugData()
137 data.time.timeUncertaintyNs = (float)GNSS_DEBUG_UNKNOWN_UTC_TIME_UNC_MAX; in getDebugData()
139 if (data.time.frequencyUncertaintyNsPerSec <= 0 || in getDebugData()
140 data.time.frequencyUncertaintyNsPerSec > (float)GNSS_DEBUG_UNKNOWN_FREQ_UNC_NS_PER_SEC) { in getDebugData()
141 data.time.frequencyUncertaintyNsPerSec = (float)GNSS_DEBUG_UNKNOWN_FREQ_UNC_NS_PER_SEC; in getDebugData()
169 data.satelliteDataArray = s_array; in getDebugData()
172 _hidl_cb(data); in getDebugData()
180 V2_0::IGnssDebug::DebugData data = { }; in getDebugData_2_0() local
184 _hidl_cb(data); in getDebugData_2_0()
194 data.position.valid = true; in getDebugData_2_0()
195 data.position.latitudeDegrees = reports.mLocation.mLocation.latitude; in getDebugData_2_0()
196 data.position.longitudeDegrees = reports.mLocation.mLocation.longitude; in getDebugData_2_0()
197 data.position.altitudeMeters = reports.mLocation.mLocation.altitude; in getDebugData_2_0()
199 data.position.speedMetersPerSec = in getDebugData_2_0()
201 data.position.bearingDegrees = in getDebugData_2_0()
203 data.position.horizontalAccuracyMeters = in getDebugData_2_0()
205 data.position.verticalAccuracyMeters = in getDebugData_2_0()
207 data.position.speedAccuracyMetersPerSecond = in getDebugData_2_0()
209 data.position.bearingAccuracyDegrees = in getDebugData_2_0()
216 data.position.ageSeconds = in getDebugData_2_0()
221 data.position.valid = false; in getDebugData_2_0()
224 if (data.position.horizontalAccuracyMeters <= 0 || in getDebugData_2_0()
225 data.position.horizontalAccuracyMeters > GNSS_DEBUG_UNKNOWN_HORIZONTAL_ACCURACY_METERS) { in getDebugData_2_0()
226 data.position.horizontalAccuracyMeters = GNSS_DEBUG_UNKNOWN_HORIZONTAL_ACCURACY_METERS; in getDebugData_2_0()
228 if (data.position.verticalAccuracyMeters <= 0 || in getDebugData_2_0()
229 data.position.verticalAccuracyMeters > GNSS_DEBUG_UNKNOWN_VERTICAL_ACCURACY_METERS) { in getDebugData_2_0()
230 data.position.verticalAccuracyMeters = GNSS_DEBUG_UNKNOWN_VERTICAL_ACCURACY_METERS; in getDebugData_2_0()
232 if (data.position.speedAccuracyMetersPerSecond <= 0 || in getDebugData_2_0()
233 data.position.speedAccuracyMetersPerSecond > GNSS_DEBUG_UNKNOWN_SPEED_ACCURACY_PER_SEC) { in getDebugData_2_0()
234 data.position.speedAccuracyMetersPerSecond = GNSS_DEBUG_UNKNOWN_SPEED_ACCURACY_PER_SEC; in getDebugData_2_0()
236 if (data.position.bearingAccuracyDegrees <= 0 || in getDebugData_2_0()
237 data.position.bearingAccuracyDegrees > GNSS_DEBUG_UNKNOWN_BEARING_ACCURACY_DEG) { in getDebugData_2_0()
238 data.position.bearingAccuracyDegrees = GNSS_DEBUG_UNKNOWN_BEARING_ACCURACY_DEG; in getDebugData_2_0()
243 data.time.timeEstimate = reports.mTime.timeEstimate; in getDebugData_2_0()
244 data.time.timeUncertaintyNs = reports.mTime.timeUncertaintyNs; in getDebugData_2_0()
245 data.time.frequencyUncertaintyNsPerSec = in getDebugData_2_0()
249 if (data.time.timeEstimate < GNSS_DEBUG_UNKNOWN_UTC_TIME) { in getDebugData_2_0()
250 data.time.timeEstimate = GNSS_DEBUG_UNKNOWN_UTC_TIME; in getDebugData_2_0()
252 if (data.time.timeUncertaintyNs <= 0) { in getDebugData_2_0()
253 data.time.timeUncertaintyNs = (float)GNSS_DEBUG_UNKNOWN_UTC_TIME_UNC_MIN; in getDebugData_2_0()
255 else if (data.time.timeUncertaintyNs > GNSS_DEBUG_UNKNOWN_UTC_TIME_UNC_MAX) { in getDebugData_2_0()
256 data.time.timeUncertaintyNs = (float)GNSS_DEBUG_UNKNOWN_UTC_TIME_UNC_MAX; in getDebugData_2_0()
258 if (data.time.frequencyUncertaintyNsPerSec <= 0 || in getDebugData_2_0()
259 data.time.frequencyUncertaintyNsPerSec > (float)GNSS_DEBUG_UNKNOWN_FREQ_UNC_NS_PER_SEC) { in getDebugData_2_0()
260 data.time.frequencyUncertaintyNsPerSec = (float)GNSS_DEBUG_UNKNOWN_FREQ_UNC_NS_PER_SEC; in getDebugData_2_0()
288 data.satelliteDataArray = s_array; in getDebugData_2_0()
291 _hidl_cb(data); in getDebugData_2_0()