Home
last modified time | relevance | path

Searched refs:gnssStatus (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/services/core/java/com/android/server/location/gnss/
DGnssMetrics.java162 public void logCn0(GnssStatus gnssStatus) { in logCn0() argument
163 logCn0L5(gnssStatus); in logCn0()
165 if (gnssStatus.getSatelliteCount() == 0) { in logCn0()
170 float[] cn0DbHzs = new float[gnssStatus.getSatelliteCount()]; in logCn0()
171 for (int i = 0; i < gnssStatus.getSatelliteCount(); i++) { in logCn0()
172 cn0DbHzs[i] = gnssStatus.getCn0DbHz(i); in logCn0()
227 private void logCn0L5(GnssStatus gnssStatus) { in logCn0L5() argument
228 if (gnssStatus.getSatelliteCount() == 0) { in logCn0L5()
232 ArrayList<Float> l5Cn0DbHzs = new ArrayList<>(gnssStatus.getSatelliteCount()); in logCn0L5()
233 for (int i = 0; i < gnssStatus.getSatelliteCount(); i++) { in logCn0L5()
[all …]
DGnssStatusProvider.java115 public void onReportStatus(@GnssNative.StatusCallbacks.GnssStatusValue int gnssStatus) { in onReportStatus() argument
117 switch (gnssStatus) { in onReportStatus()
148 public void onReportSvStatus(GnssStatus gnssStatus) { in onReportSvStatus() argument
152 return listener -> listener.onSvStatusChanged(gnssStatus); in onReportSvStatus()
DGnssLocationProvider.java1189 private void handleReportSvStatus(GnssStatus gnssStatus) { in handleReportSvStatus() argument
1191 mGnssMetrics.logCn0(gnssStatus); in handleReportSvStatus()
1194 Log.v(TAG, "SV count: " + gnssStatus.getSatelliteCount()); in handleReportSvStatus()
1200 for (int i = 0; i < gnssStatus.getSatelliteCount(); i++) { in handleReportSvStatus()
1201 if (gnssStatus.usedInFix(i)) { in handleReportSvStatus()
1203 if (gnssStatus.getCn0DbHz(i) > maxCn0) { in handleReportSvStatus()
1204 maxCn0 = (int) gnssStatus.getCn0DbHz(i); in handleReportSvStatus()
1206 meanCn0 += gnssStatus.getCn0DbHz(i); in handleReportSvStatus()
1207 mGnssMetrics.logConstellationType(gnssStatus.getConstellationType(i)); in handleReportSvStatus()
1216 mGnssMetrics.logSvStatus(gnssStatus); in handleReportSvStatus()
[all …]
/frameworks/base/location/java/android/location/
DGpsStatus.java148 public static GpsStatus create(@NonNull GnssStatus gnssStatus, int timeToFirstFix) { in create() argument
150 status.setStatus(gnssStatus, timeToFirstFix); in create()
DIGnssStatusListener.aidl29 void onSvStatusChanged(in GnssStatus gnssStatus); in onSvStatusChanged() argument
DLocationManager.java2314 GnssStatus gnssStatus = GpsStatusTransport.sGnssStatus; in getGpsStatus() local
2316 if (gnssStatus != null) { in getGpsStatus()
2318 status = GpsStatus.create(gnssStatus, ttff); in getGpsStatus()
2320 status.setStatus(gnssStatus, ttff); in getGpsStatus()
3298 public void onSvStatusChanged(GnssStatus gnssStatus) { in onSvStatusChanged() argument
3299 execute(mExecutor, listener -> listener.onSatelliteStatusChanged(gnssStatus)); in onSvStatusChanged()
3321 public void onSvStatusChanged(GnssStatus gnssStatus) { in onSvStatusChanged() argument
3322 sGnssStatus = gnssStatus; in onSvStatusChanged()
3323 super.onSvStatusChanged(gnssStatus); in onSvStatusChanged()
/frameworks/base/services/core/java/com/android/server/location/gnss/hal/
DGnssNative.java172 void onReportSvStatus(GnssStatus gnssStatus); in onReportSvStatus() argument
977 void reportStatus(@StatusCallbacks.GnssStatusValue int gnssStatus) { in reportStatus() argument
980 mStatusCallbacks[i].onReportStatus(gnssStatus); in reportStatus()
990 GnssStatus gnssStatus = GnssStatus.wrap(svCount, svidWithFlags, cn0DbHzs, elevations, in reportSvStatus() local
993 mSvStatusCallbacks[i].onReportSvStatus(gnssStatus); in reportSvStatus()