Commit graph

61 commits

Author SHA1 Message Date
Yingjie Wang
af34b8d1ac 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
2018-02-14 13:33:57 +08:00
Kevin Tang
61de97e130 LE clean up
separated utils, core, ds and loc-api-v02 from loc-hal into their
own independent packages; simplified loc-pla; moved pla to the
root of project; removed loc-stub.

Change-Id: I373f02f9306646addf55ae90d71c4ba8e3741d09
CRs-Fixed: 2172544
2018-01-16 13:35:38 -08:00
Harikrishnan Hariharan
6ccaa83f60 GetBatchedLocations is unsupported for Live Fix.
Return ERROR_NOT_SUPPORTED from LocationAPIClientBase when
GetBatchedLocations is invoked by a Live fix session id,
which has session mode of SESSION_MODE_ON_FIX.

Change-Id: Ifc57d4d4b16288ed5ac7432da92cf39bfe989416
CRs-Fixed: 2137513
2017-11-03 10:45:41 +05:30
Kevin Tang
63c4d2f67b locAPIRemoveGeofences roolback to async result notification
locAPIRemoveGeofences is rolled back to async result notification,
using the RemoveGeofencesRequest, but using a new temporal bidict
of sessions & ids, to avoid a previous race condition using the
wrong id when removing and adding a geofence.

Change-Id: Icd85373b82e620ea4059431f0c3d13c95f99ca3c
CRs-fixed: 2132679
2017-10-25 15:04:06 -07:00
Linux Build Service Account
9f2a492534 Merge "Fix support for batching without batch full event" 2017-10-13 00:03:56 -07:00
Dante Russo
34ce2a6873 Fix support for batching without batch full event
Additional fixes:
-fix issue where if StartTracking or
StartBatching fails at QMI LOC layer, then the
session is stuck and Tracking or Batching cannot
be stoped or started again.
-fix getBatchedLocation API to return an error
if the id given is not valid, as caller
will not get a response callback in this case.

CRs-fixed 2118838
Change-Id: I389fc862836450f0081f6394c971b33614373841
2017-10-10 14:56:34 -07:00
Ruifeng Xu
35804b9131 new apis for control xtra throttle
added register and unregister apis of a callback
that listens to XTRA client throttle enablement commands.

Change-Id: Id50e7311516593018113203b5dfa700f0fdc037b
CRs-fixed: 2092629
2017-10-05 12:41:27 -07:00
Kevin Tang
c7642dca5f locAPIRemoveGeofences now notify the result inmediately
locAPIRemoveGeofences is no longer waiting for the request response,
instead it will always notify his callbacks with LOCATION_ERROR_SUCCESS
if the provided id is found, or LOCATION_ERROR_ID_UNKNOWN if not.

Change-Id: I602ad43bee894e85fde1e80210e6477b628e4a39
CRs-fixed: 2099450
2017-09-22 17:28:58 -07:00
Kevin Tang
fb4bbe52f4 fixing conn disconnect handling from GnssLocationProvider
The "type" needs to maintain as signed, in case some value
may come across as negative, even though the storage size
may vary, from 8-bit to 32-bit, for example.

Bug: 65164961

Change-Id: Ieb3fb4b6f8415444bbe192a7875093f86a9c3068
CRs-Fixed: 2106350
2017-09-20 17:47:48 -07:00
Baili Feng
f69296ba9e Init default agps status callback in GnssAdapter
Call LocNetIfaceAgps_getStatusCb implemented in libloc_net_iface.so,
use the return function as default agps status callback.

Change-Id: I4d966a888e312c2d0fb1a6c9e30752294876e500
CRs-Fixed: 2064002
2017-09-12 14:16:28 +08:00
Linux Build Service Account
be2a3f9a69 Merge "XC 2.5 : additional changes" 2017-08-15 20:09:25 -07:00
Vamana Murthi
1b6695633f XC 2.5 : additional changes
Add the XTRAsystemstatus observer to
pass the HAL init info to XTRA-Client

CRs-Fixed: 2093274
Change-Id: I893da1470d4fedafbc7545806ea97667acdf60d3
2017-08-15 14:36:57 -07:00
Harikrishnan Hariharan
bb1d7ec1a2 Passing correct LPPe parameters
Passing correct LPPe parameters to modem for SRN
AP measurement and Sensor Baro measurements.

Change-Id: Id56f9bf050df82444a8698cad7cda85b4e9fbe78
CRs-Fixed: 2092158
2017-08-13 01:39:36 +05:30
Remil Ram
44ceafb32d adding the necessary gps.utils cflags and -l flags
Change-Id: Idca694fe0cf640c5bf255fa11ff206d6927d67be
2017-08-09 16:06:35 -07:00
Linux Build Service Account
ac16b8d821 Merge "Clean up compiler warning message" 2017-08-08 04:43:25 -07:00
Linux Build Service Account
fc92122add Merge "Prevent gps stuck on if multiple starts are called" 2017-08-04 07:10:18 -07:00
Baili Feng
4c9c783989 Clean up compiler warning message
CRs-Fixed: 2070597
Change-Id: Ic57f5211a4e4b9112888435d54df7a361bcb6767
2017-08-01 18:17:20 +08:00
Linux Build Service Account
0c6ed3c024 Merge "KW Warning Fixes" 2017-07-28 06:09:40 -07:00
Dante Russo
c1da12aa2e Prevent gps stuck on if multiple starts are called
If framework happens to call start of session multiple
times without calling stop first, it can cause a session
to get stuck on without any way to stop it

CRs-fixed: 2083756
Change-Id: Ic871d870ca67c9465438f8494e381bfbcb85a830
2017-07-27 14:04:23 -07:00
Saurabh Srivastava
2481cf3f82 KW Warning Fixes
CRs-Fixed: 2082072
Change-Id: I1189acd521d4e4cea3b8a9545a5486f29caaa0fe
2017-07-27 17:21:31 +05:30
Linux Build Service Account
7cc7da646c Merge "Fix 2.9-rel compilation issues on LE" 2017-07-27 03:43:51 -07:00
Bhavna Sharma
686a5c54b0 Location API for Outdoor Trip Batching
Add / Modify Location API for
Outdoor Trip Batching feature.
Introduce a batch mode to differentiate
between routine and outdoor trip mode.

CRs-Fixed: 2041674

Change-Id: Ia8b2d34457b29c4fe754ab24287a6984ab9a96f5
2017-07-24 09:25:07 -07:00
Baili Feng
2df685d3ec Support multiple sessions
Start more than one sessions by calling
locAPIStartSession multiple times

Change-Id: I1625faaab0f69fcb2700b6dbd695f59061c6a88d
CRs-fixed: 2079631
2017-07-24 21:42:24 +08:00
Naresh Munagala
ea051709cd Fix 2.9-rel compilation issues on LE
Change-Id: I35b8da213e8830456c8652802941a418748bd5e9
CRs-Fixed: 2067662
2017-07-21 17:51:05 +05:30
Dante Russo
1bd0de5d87 Fix yearOfHw as 2016 pre ES SUPL concurrency
Add capability bit for Nmea Debug, which
is a marker for modem support of concurrent
emergency supl session and normal gps session.

CRs-fixed: 2068217
Change-Id: Iea1ee7b56bfdd28643928edf0475cf21257de64c
2017-07-14 11:26:42 -07:00
Linux Build Service Account
f44aa79ca9 Merge "Adding KW warning fixes" 2017-07-03 21:13:43 -07:00
Linux Build Service Account
7ac8c0331a Merge "Removing header copying to out folder" 2017-07-03 21:13:21 -07:00
Saurabh Srivastava
8cf201ae2a Adding KW warning fixes
Change-Id: I03a09abdfc4224d59d3ddb467d0314e644fe4fe0
CRs-Fixed: 2062522
2017-07-03 17:07:37 +05:30
Dante Russo
dc29f91ec6 Removing header copying to out folder
Replace copying header files to out folder
for use by other modules to instead build
headers into separate libraries that end
with _headers that can be used by other
modules.

Change-Id: I073967cd34e5c79110895908a4eef1b7d17bf9ea
CRs-fixed: 2068129
2017-06-27 17:36:14 -07:00
Baili Feng
1a128bd7cd Split control apis to a separate class
Move control apis to LocationAPIControlClient.
There should be only one instance of it per process.

Change-Id: I5969e6b3ad45f3fc5bfe4f4cd543a077c540c3ea
CRs-Fixed: 2064389
2017-06-27 19:04:00 +08:00
Linux Build Service Account
a6801b9ac9 Merge "Reset RequestQueue instead of delete it." 2017-06-26 15:02:15 -07:00
Linux Build Service Account
a3db3b5919 Merge "Adding priority flag for NI and AGPS callbacks" 2017-06-24 16:43:22 -07:00
Baili Feng
c0a300ca3a Reset RequestQueue instead of delete it.
Change the type of mRequestQueue from 'array of pointers'
to 'array of instances'. So we can reuse them.

CRs-fixed: 2050837
Change-Id: I362319ece38cf10ee7ae2278a89249ce97e2f0a5
2017-06-21 10:31:03 +08:00
Linux Build Service Account
6cd01b2a90 Merge "Fix config updates for some LocatoinAPI bit masks" 2017-06-20 01:35:08 -07:00
Saurabh Srivastava
15830de3b6 Adding priority flag for NI and AGPS callbacks
Adding priority flags while registering NI
handling callback and AGPS handling callback.
To ensure that both NI and AGPS are always
handled by our stack instead of Android
Framework stack.

CRs-Fixed: 2059476
Change-Id: I585328491a7f5d9099287924a03d7710f4e5fda9
2017-06-19 17:54:28 +05:30
Dante Russo
fc5c5f6625 Fix config updates for some LocatoinAPI bit masks
Fix SUPL mode, GPS lock, and GNSS Ni options to be
treated like bit masks instead of values.
Rename some enums of bit masks with _BIT as convention.

Change-Id: I036b682ca3472159304ef569ff67d28dc94f644e
CRs-fixed: 2039308
2017-06-15 15:43:17 -07:00
Linux Build Service Account
1e31567ced Merge "Update the latest LocationOptions to LocationAPI" 2017-06-13 01:57:09 -07:00
Baili Feng
7b1d6ec5aa Update the latest LocationOptions to LocationAPI
Call locAPIUpdateTrackingOptions in gnssSetPositionMode.
Update tracking options should update the tracking
sessions so that the smallest interval options are
set.

Change-Id: I24cefe4fb711a160d0a72ab7592d8e673ea2dd97
CRs-fixed: 2048231
2017-06-08 18:00:13 -07:00
Baili Feng
1f3ac891ae Make updateConfig functional before gnss is enabled
locAPIGnssUpdateConfig and locAPIEnable/Disable
will use different request queues

Change-Id: I8c5456ebc4c221ff0e536ad488259b21e5607e03
CRs-Fixed: 2054316
2017-06-06 09:45:37 +08:00
Baili Feng
b29778eac0 Fix intermittant crashes in location
Deleting memory without setting it to null
can cause the memory to still be non-null
and be interpreted as valid.
Also check if the entry is in the map using
find instead of assuming it is in the map.

Bug: 62033719 62033834 62033690 62033563 62032790
CRs-fixed: 2050837
Change-Id: I2534de2d6157be86ac95cfe6615e4c0019ee48fd
2017-05-24 11:03:16 -07:00
Katz Yamada
e3d70314b0 Fix for incorrect SVids and timestamps in bugreport
Fix SVids and timestamps shown in adb bugreport to
align with Android standard.

Change-Id: Ib166b09f1d63f7a93d53798dbb188fec0d77e88a
CRs-Fixed: 2042937
2017-05-18 11:00:17 -07:00
Baili Feng
1e0be88b94 Maintain a uniq RequestQueue for Geofencing
Maintain a RequestQueue for Geofencing per LocationAPIClientBase instance.
The RequestQueue must be released when LocationAPIClientBase is destroyed.

Change-Id: Icceccdaae67883f8848dd2a95389b938058c5e5d
CRs-fixed: 2044463
2017-05-10 13:21:26 +08:00
Linux Build Service Account
7a7838b718 Merge "Enable LOGV for gps directory" 2017-05-02 14:54:09 -07:00
Linux Build Service Account
f4f9b5c5a6 Merge "Prevent print of uninitialized string" 2017-04-29 14:48:03 -07:00
Kevin Tang
222094ce77 Prevent print of uninitialized string
If uninitialized string gets printed, this can
cause a crash.

Bug: 37218688
CRs-fixed: 2032144
Change-Id: I7c34b6f84f414410c52fc59f73053892060b0874
2017-04-28 16:31:46 -07:00
Yingjie Wang
86ad4f8f44 Enable LOGV for gps directory
Define LOG_NDEBUG 0 to enable VERBOSE log messages in
hardware/qcom/gps

Change-Id: I954cad757f13d6bac99b7a06625daa0ace84a17e
CRs-fixed: 2025673
2017-04-28 18:24:07 +08:00
Katz Yamada
3eef3d7a6c SystemStatus - Add ephemeris detail info in Gnss Debug interface
Add ephemeris detail info in Gnss Debug interface. This new info
also comes up in NMEA stings. Requires a new QMI_LOC interface
that supports extended NMEA string TLV.

Change-Id: I5dc566fb210c06a443ed6c27e064377851ce83a5
CRs-Fixed: 2024594
2017-04-27 13:46:09 -07:00
Dante Russo
891005e20c Move gnss hal to vendor partition
gnss hal is moved to vendor partition
for binerization enablement

CRs-fixed: 2020778

Change-Id: I8de91d0418ef4b9a1c778c45fe02d27d42c46c97
2017-04-17 15:14:57 -07:00
Dante Russo
9e232dda61 Remove owner of gps hal modules
Owner does not need to be specified for
this project.

Change-Id: I918a767ed3b83e134c5e63ded5b25070b3399ac8
2017-04-17 15:12:16 -07:00
Naresh Munagala
2b7f0b434d fix crash issue while deleting adapters
crash was observed while deleting gnss, flp and geofence adapters.
solution is not to delete the Adapter in the deinitialize function

Change-Id: Ia260dd6f2c532111b82b621a3640d6ef834bb671
CRs-Fixed: 2030458
2017-04-07 10:52:41 +05:30