summaryrefslogtreecommitdiffstats
path: root/gps/libloc_api_50001/LocApiAdapter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gps/libloc_api_50001/LocApiAdapter.cpp')
-rwxr-xr-x[-rw-r--r--]gps/libloc_api_50001/LocApiAdapter.cpp22
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()