diff options
author | sbrissen <sbrissen@hotmail.com> | 2013-05-06 11:43:23 -0400 |
---|---|---|
committer | sbrissen <sbrissen@hotmail.com> | 2013-05-06 11:49:18 -0400 |
commit | 3131ff6ce528dd94bb0d698072eb7a5211e9bb47 (patch) | |
tree | e8f43b48883865cbc4c109cafb27f0a49757ca3e /gps/libloc_api_50001/LocApiAdapter.cpp | |
parent | ee82b1b5b04dce2c89008df7e3ec38763ea4910d (diff) | |
download | android_device_samsung_smdk4412-qcom-common-3131ff6ce528dd94bb0d698072eb7a5211e9bb47.tar.gz android_device_samsung_smdk4412-qcom-common-3131ff6ce528dd94bb0d698072eb7a5211e9bb47.tar.bz2 android_device_samsung_smdk4412-qcom-common-3131ff6ce528dd94bb0d698072eb7a5211e9bb47.zip |
update gps from d2-common
Change-Id: I99e0a6600d27e75f1bcb20f927efbd336d4fdc82
Diffstat (limited to 'gps/libloc_api_50001/LocApiAdapter.cpp')
-rwxr-xr-x[-rw-r--r--] | gps/libloc_api_50001/LocApiAdapter.cpp | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/gps/libloc_api_50001/LocApiAdapter.cpp b/gps/libloc_api_50001/LocApiAdapter.cpp index 7689048..cd35646 100644..100755 --- a/gps/libloc_api_50001/LocApiAdapter.cpp +++ b/gps/libloc_api_50001/LocApiAdapter.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2011, Code Aurora Forum. All rights reserved. +/* Copyright (c) 2011-2012, The Linux Foundation. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are @@ -9,7 +9,7 @@ * copyright notice, this list of conditions and the following * disclaimer in the documentation and/or other materials provided * with the distribution. - * * Neither the name of Code Aurora Forum, Inc. nor the names of its + * * Neither the name of The Linux Foundation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * @@ -143,13 +143,17 @@ int LocApiAdapter::decodeAddress(char *addr_string, int string_size, } void LocApiAdapter::reportPosition(GpsLocation &location, + GpsLocationExtended &locationExtended, void* locationExt, - enum loc_sess_status status) + enum loc_sess_status status, + LocPosTechMask loc_technology_mask ) { loc_eng_msg_report_position *msg(new loc_eng_msg_report_position(locEngHandle.owner, location, + locationExtended, locationExt, - status)); + status, + loc_technology_mask)); if (locEngHandle.sendUlpMsg) { locEngHandle.sendUlpMsg(locEngHandle.owner, msg); } else { @@ -157,9 +161,9 @@ void LocApiAdapter::reportPosition(GpsLocation &location, } } -void LocApiAdapter::reportSv(GpsSvStatus &svStatus, void* svExt) +void LocApiAdapter::reportSv(GpsSvStatus &svStatus, GpsLocationExtended &locationExtended, void* svExt) { - loc_eng_msg_report_sv *msg(new loc_eng_msg_report_sv(locEngHandle.owner, svStatus, svExt)); + loc_eng_msg_report_sv *msg(new loc_eng_msg_report_sv(locEngHandle.owner, svStatus, locationExtended, svExt)); //We want to send SV info to ULP to help it in determining GNSS signal strength //ULP will forward the SV reports to HAL without any modifications @@ -204,9 +208,9 @@ void LocApiAdapter::requestXtraData() void LocApiAdapter::requestTime() { - LOC_LOGD("loc_event_cb: XTRA time download request... not supported"); - // loc_eng_msg *msg(new loc_eng_msg(locEngHandle.owner, LOC_ENG_MSG_REQUEST_TIME)); - // locEngHandle.sendMsge(locEngHandle.owner, msg); + LOC_LOGD("loc_event_cb: XTRA time download request"); + loc_eng_msg *msg(new loc_eng_msg(locEngHandle.owner, LOC_ENG_MSG_REQUEST_TIME)); + locEngHandle.sendMsge(locEngHandle.owner, msg); } void LocApiAdapter::requestLocation() |