Commit graph

1059 commits

Author SHA1 Message Date
Linux Build Service Account
15ae65c5cc Merge "Correct the comment for loc_param_s_type struct" 2017-06-30 23:39:06 -07:00
Yingjie Wang
226e404a8c Correct the comment for loc_param_s_type struct
Change the comment for param_type member of loc_param_s_type
struct:   'f' for float  --> 'f' for double

Change-Id: Ibf9c6bec624bd3900c4b96100c359ed7350becc6
CRs-fixed: 2068995
2017-06-29 14:17:00 +08: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
1e6d1c02ce Merge "Fixed loc_get_target() and removed 1530 support" 2017-06-26 15:02:24 -07: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
c3a716d890 Merge "Remove fix made to set session status as failure in LocApi." 2017-06-25 20:10:03 -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
Kevin Tang
a2cafde5bd Fixed loc_get_target() and removed 1530 support
it is a stale feature, been disconnected for years.

Also tightend up loc_get_target(), as it currently
doesn't get produce a result, but also return -1,
which would cause the next call and every call going
through the entire function every time it is called.

Change-Id: I348d99f690eb8973730112d5edeb870b2be2c6c8
CRs-Fixed: 2062169
2017-06-20 15:21:45 -07:00
Linux Build Service Account
4aca11df97 Merge "Fix NI for Notify and Verify being true" 2017-06-20 01:35:10 -07:00
Linux Build Service Account
6cd01b2a90 Merge "Fix config updates for some LocatoinAPI bit masks" 2017-06-20 01:35:08 -07:00
Linux Build Service Account
3ee8c353cf Merge "Fixed crash when timerfd_create failed" 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
Harikrishnan Hariharan
a0075bdb8e Remove fix made to set session status as failure in LocApi.
Instead of sending session status as failure in LocApiV02 in case
of both latitude/longitude 0 and horizontal reliability not set,
for sending Blank NMEA sentences, the condition check for the same
is done in before requesting to send nmea sentence.

Change-Id: I359d136a8da9d9fe233e599eb2cba71e4509b270
CRs-Fixed: 2058269
2017-06-16 22:57:20 +05:30
Dante Russo
5fc6fa657c Fix NI for Notify and Verify being true
CRs-fixed: 2059175
Bug: 62049857
Change-Id: I6c4717ddbd72f15972e5d4bd8897b528fbe2c2b4
2017-06-15 15:43:27 -07:00
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
Mike Cailean
38af28c322 Fixed crash when timerfd_create failed
Implemented graceful fallback when
timerfd_create is failing for
CLOCK_BOOTTIME_ALARM

Change-Id: I6561be840f37a985104a2766fc4b521d237da3b2
CRs-fixed: 2051787
2017-06-13 14:06:36 -07:00
Linux Build Service Account
1e31567ced Merge "Update the latest LocationOptions to LocationAPI" 2017-06-13 01:57:09 -07:00
Linux Build Service Account
b8676c0136 Merge "Post SSR restarting tracking should bypass ULP" 2017-06-11 20:13:48 -07:00
Linux Build Service Account
5c51d94bf5 Merge "Disable LPPe feature on SDM660 CRM build" 2017-06-11 10:15:27 -07:00
Dante Russo
36c1143285 Post SSR restarting tracking should bypass ULP
When sub system restart occurs, restarting gps tracking
should be sent directly to Loc API instad of going
through ULP.

Change-Id: I6309eeee3670b3d7fa484f74f96ea9a2848f7bb1
CRs-fixed: 2056783
2017-06-09 17:24:25 -07:00
Linux Build Service Account
53235d0035 Merge "Add set default report API in systemstatus" 2017-06-09 03:00:11 -07:00
Linux Build Service Account
899b1de6a0 Merge "Make updateConfig functional before gnss is enabled" 2017-06-08 18:38:45 -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
Linux Build Service Account
8bf78f55ae Merge "Decouple position inject request from assist data" 2017-06-08 11:31:26 -07:00
Yingjie Wang
6a283495b5 Disable LPPe feature on SDM660 CRM build
Set the LPPE_UP_TECHNOLOGY and LPPE_CP_TECHNOLOGY as 0 in gps.conf
to disable LPPe feature as default.

Change-Id: I656cbf1ee9456189fd0ddbcbf7b70cc74a75656e
CRs-fixed: 2015517
2017-06-07 21:04:27 -07:00
Katz Yamada
58d74dc1bd Add set default report API in systemstatus
Add an API to set default report data cached in
systemstatus. Call this API when delete all
aiding data is requested, so that bugreport
has all default values.

Bug: 62068956

Change-Id: I76d661c6a89a1644aef2a8f47253ce9cc0d727fb
CRs-Fixed: 2054705
2017-06-06 13:54:28 -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
Saurabh Srivastava
876db40641 Updating AgpsSubscriber constructor
Updating AgpsSubscriber constructor to ensure clone
operation copies the entire state

Change-Id: Id016994efd8cb1140af8d5ee05eace95922f246b
CRs-Fixed: 2039863
2017-05-29 18:45:54 +05:30
Linux Build Service Account
25008877c3 Merge "Provide correct SV used_in_fix flag for QZSS" 2017-05-28 00:59:59 -07:00
Linux Build Service Account
e4dc713b1c Merge "Add support for generating NMEA sentences for BDS." 2017-05-28 00:59:59 -07:00
Linux Build Service Account
fa2eb4c2d6 Merge "Add support for generating NMEA sentences for QZSS." 2017-05-28 00:59:58 -07:00
Linux Build Service Account
740a459dac Merge "HIDL Extension" 2017-05-27 17:09:38 -07:00
Harikrishnan Hariharan
0d01cc0b5b Add support for generating NMEA sentences for BDS.
Change-Id: I77ccaac3da4d79ed6d43d1a4e59e4d438ba3d2f3
CRs-Fixed: 2047785
2017-05-28 00:51:38 +05:30
Harikrishnan Hariharan
0029fafd92 Add support for generating NMEA sentences for QZSS.
Change-Id: Ib1350fceeabcb2dc67812641b1f967b1b240cefd
CRs-Fixed: 2036931
2017-05-28 00:44:40 +05:30
Harikrishnan Hariharan
5969d0b2da Provide correct SV used_in_fix flag for QZSS
Mark QZSS SV used_in_fix based on the most recent position report

Change-Id: I166087fb62de45e1013ab29c01df3abfba7af12b
CRs-Fixed: 2043300
2017-05-27 23:41:18 +05:30
Linux Build Service Account
2a49c5a0ef Merge "Move location files from /data/ to /data/vendor/" 2017-05-27 01:36:12 -07:00
Linux Build Service Account
1bcc48d46e Merge "Remove libandroid_runtime for treble compliance" 2017-05-26 11:25:21 -07:00
Linux Build Service Account
f44fdd0d44 Merge "Fix intermittant crashes in location" 2017-05-26 11:25:06 -07:00
Baili Feng
d640d06213 HIDL Extension
Prevent building of android.hardware.gnss@1.0-service-qti
if non-PDK build.

CRs-fixed: 2040636
Change-Id: Ic6ee787d7fca93f649cd1f2bbd7be46cdefc809f
2017-05-25 14:08:03 -07:00
Dante Russo
566238aab1 Remove libandroid_runtime for treble compliance
CRs-fixed: 2048138
Change-Id: Idc9a3f045c6c44dea6c527ec8c6bf23e9d0a9518
2017-05-25 05:10:38 -07: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
Linux Build Service Account
325f51028e Merge "Remove SV used_in_fix flag setting on SV report." 2017-05-23 21:09:31 -07:00
Harikrishnan Hariharan
d9a166a70f Remove SV used_in_fix flag setting on SV report.
Remove SV used_in_fix flag setting based on EPH / ALM / SNR info
during SV report. The SVs should not be used_in_fix when there is
no fix.

Change-Id: Iaed8ade8073446023348017ba133efcd7445a331
CRs-Fixed: 2043724
2017-05-19 15:44:13 +05:30
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
Dante Russo
ed7e095d16 Move location files from /data/ to /data/vendor/
Runtime files and sockets used by location modules
are moved to vendor partiion from /data/misc/location
to /data/vendor/location.

Change-Id: I7b092059b3061def2a1f2d0cd9bffb7ed7aededd
CRs-fixed: 2046657
2017-05-18 10:32:12 -07:00
Yingjie Wang
d9f26fc543 Decouple position inject request from assist data
Add LOC_API_ADAPTER_BIT_POSITION_INJECTION_REQUEST mask bit to
decouple from LOC_API_ADAPTER_BIT_ASSISTANCE_DATA_REQUEST.

Change-Id: I4c2f8439dca9ea3b4d56a3cd00da88e4488717bf
CRs-fixed: 2044870
2017-05-17 19:51:48 -07:00
Linux Build Service Account
9546df2965 Merge "GnssBatching::init handle multiple invoking" 2017-05-17 04:02:00 -07:00
Linux Build Service Account
8548469c58 Merge "Allow SUPL_MODE of Standalone only" 2017-05-16 04:22:33 -07:00
Linux Build Service Account
82687ac882 Merge "Check the return value of HIDL Callbacks" 2017-05-16 04:22:33 -07:00