diff options
author | Yingjie Wang <yingjiewang@codeaurora.org> | 2018-01-10 13:58:17 +0800 |
---|---|---|
committer | Yingjie Wang <yingjiewang@codeaurora.org> | 2018-02-14 13:33:57 +0800 |
commit | af34b8d1ac48db485f78d832b4d263473d18dde9 (patch) | |
tree | 4b7414a9693e31434daa192f612bdf4ee0cdcee3 /core/LocApiBase.cpp | |
parent | bb529c50e9a91f0bdb73d4a8a36e55155002a73e (diff) | |
download | gps-af34b8d1ac48db485f78d832b4d263473d18dde9.tar.gz |
Enhance LocationAPI structs to hold full position
Match the output of izat_remote_api clients with LocationAPI clients.
Fill GnssLocationInfoNotification with missing fields from
GpsLocationExtended and Location structure. And allow one single
callback to report complete position info. Meanwhile, remove fields
from UlpLocation that are no longer used.
CRs-fixed: 2169738
Change-Id: Ib5bd3dd9c065c4b3d6cad32b23167546ad950d06
Diffstat (limited to 'core/LocApiBase.cpp')
-rw-r--r-- | core/LocApiBase.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/LocApiBase.cpp b/core/LocApiBase.cpp index 9576842..8aef94b 100644 --- a/core/LocApiBase.cpp +++ b/core/LocApiBase.cpp @@ -236,7 +236,7 @@ void LocApiBase::reportPosition(UlpLocation& location, // print the location info before delivering LOC_LOGD("flags: %d\n source: %d\n latitude: %f\n longitude: %f\n " "altitude: %f\n speed: %f\n bearing: %f\n accuracy: %f\n " - "timestamp: %" PRId64 "\n rawDataSize: %d\n rawData: %p\n " + "timestamp: %" PRId64 "\n" "Session status: %d\n Technology mask: %u\n " "SV used in fix (gps/glo/bds/gal/qzss) : \ (%" PRIx64 "/%" PRIx64 "/%" PRIx64 "/%" PRIx64 "/%" PRIx64 ")", @@ -244,8 +244,7 @@ void LocApiBase::reportPosition(UlpLocation& location, location.gpsLocation.latitude, location.gpsLocation.longitude, location.gpsLocation.altitude, location.gpsLocation.speed, location.gpsLocation.bearing, location.gpsLocation.accuracy, - location.gpsLocation.timestamp, location.rawDataSize, - location.rawData, status, loc_technology_mask, + location.gpsLocation.timestamp, status, loc_technology_mask, locationExtended.gnss_sv_used_ids.gps_sv_used_ids_mask, locationExtended.gnss_sv_used_ids.glo_sv_used_ids_mask, locationExtended.gnss_sv_used_ids.bds_sv_used_ids_mask, |