Send GPS tracking fixes to FLP HAL

FLP HAL accepts GPS tracking fixes for tracking,
so this change sends the tracking fixes to FLP
HAL while flp tracking is undergoing. Also, this
change adds batching options flags and batching
succeed/failure definitions.

CRs-fixed: 748687
Change-Id: I11a2ba337433d9a42c903d36fc980ee1a3983a1e
This commit is contained in:
Jiafei Wen 2015-01-20 14:42:26 -08:00 committed by Gerrit - the friendly Code Review server
parent 119c7a6410
commit 9431a6cb33
3 changed files with 37 additions and 2 deletions

View file

@ -69,8 +69,14 @@ void LocAdapterBase::
GpsLocationExtended &locationExtended, GpsLocationExtended &locationExtended,
void* locationExt, void* locationExt,
enum loc_sess_status status, enum loc_sess_status status,
LocPosTechMask loc_technology_mask) LocPosTechMask loc_technology_mask) {
DEFAULT_IMPL() if (mLocAdapterProxyBase == NULL ||
!mLocAdapterProxyBase->reportPosition(location,
status,
loc_technology_mask)) {
DEFAULT_IMPL()
}
}
void LocAdapterBase:: void LocAdapterBase::
reportSv(GpsSvStatus &svStatus, reportSv(GpsSvStatus &svStatus,

View file

@ -57,6 +57,11 @@ protected:
public: public:
inline virtual void handleEngineUpEvent() {}; inline virtual void handleEngineUpEvent() {};
inline virtual void handleEngineDownEvent() {}; inline virtual void handleEngineDownEvent() {};
inline virtual bool reportPosition(UlpLocation &location,
enum loc_sess_status status,
LocPosTechMask loc_technology_mask) {
return false;
}
}; };
} // namespace loc_core } // namespace loc_core

View file

@ -72,6 +72,30 @@ extern "C" {
#define AGPS_CERTIFICATE_MAX_LENGTH 2000 #define AGPS_CERTIFICATE_MAX_LENGTH 2000
#define AGPS_CERTIFICATE_MAX_SLOTS 10 #define AGPS_CERTIFICATE_MAX_SLOTS 10
/** Batching default ID for dummy batching session*/
#define GPS_BATCHING_DEFAULT_ID 1
/** This cap is used to decide the FLP session cache
size on AP. If the BATCH_SIZE in flp.conf is less than
GPS_AP_BATCHING_SIZE_CAP, FLP session cache size will
be twice the BATCH_SIZE defined in flp.conf. Otherwise,
FLP session cache size will be equal to the BATCH_SIZE.*/
#define GPS_AP_BATCHING_SIZE_CAP 40
#define GPS_BATCHING_OPERATION_SUCCEESS 1
#define GPS_BATCHING_OPERATION_FAILURE 0
/** GPS extended batching flags*/
#define GPS_EXT_BATCHING_ON_FULL 0x0000001
#define GPS_EXT_BATCHING_ON_FIX 0x0000002
/** Reasons of GPS reports batched locations*/
typedef enum loc_batching_reported_type {
LOC_BATCHING_ON_FULL_IND_REPORT,
LOC_BATCHING_ON_FIX_IND_REPORT,
LOC_BATCHING_ON_QUERY_REPORT
}LocBatchingReportedType;
enum loc_registration_mask_status { enum loc_registration_mask_status {
LOC_REGISTRATION_MASK_ENABLED, LOC_REGISTRATION_MASK_ENABLED,
LOC_REGISTRATION_MASK_DISABLED LOC_REGISTRATION_MASK_DISABLED