35 Commits

Author SHA1 Message Date
Albert I
8c5b863771 violet: gps: Implement list empty error code for msg_q
This fixes enum-conversion warning due to implicit type enum casting
between linked_list and msg_q which happens only for status -6.

Change-Id: I27ba74c4d840b7ba0cb1017d69a30fc25b80d6b9
2024-06-05 01:49:19 +00:00
Albert I
8ae38d14c6 violet: gps: Address logical-op-parentheses warning
Change-Id: I45d621a2b995afeb7757df3f89614a0d95552f33
2024-06-05 01:49:13 +00:00
Madhanraj Chelladurai
8b650fc000 violet: gps: Add NULL check before object access
Correct the NULL check code block and add NULL check before
object access.

Change-Id: Ic41b781b41fb4e21bbff8801d500a41a6d7219d0
CRs-fixed: 3084543
2024-06-05 01:49:01 +00:00
Tomasz Wasilczyk
f7da6e2607 violet: gps: Don't include cutils/threads.h
Bug: 289414897
Test: buildserver
Change-Id: I14b99f42feaae7af00cbd17cfe482eb2e5da71e8
2024-04-21 22:47:47 +00:00
Joker-V2
e5169b9b10 violet: gps: Drop Werror 2023-10-11 18:48:34 +02:00
Pirama Arumuga Nainar
2934daed1c violet: gps: Fix -Wbitwise-instead-of-logical
Bug: http://b/215753485

This warning is introduced in clang-r445002.  In code where the bitwise
operation was used to avoid short-ciruit evaluation, make that explicit
by introducing temporary variables.

Test: build with clang-r445002.
Change-Id: Ia7ccf1d48922d926313f691888d26c3e314c1056
2022-11-21 14:25:15 +01:00
Pig
1273cb5a8c violet: Update gps configs from tucana
* Rename to Androidbp to avoid duplication

Change-Id: Ie7f538d84008f925d92629822819c86d4ff19fec
2020-11-22 08:22:50 +00:00
PIPIPIG233666
7f061b48cd Merge tag 'LA.UM.9.1.r1-06700-SMxxx0.0' into lineage-18.0
"LA.UM.9.1.r1-06700-SMxxx0.0"

Change-Id: I23ff46de36c4ffd396f5f2317dae9d17030acfb0
2020-11-22 08:22:50 +00:00
Steven Moreland
397e1ea0d4 violet: Remove libhwbinder/libhidltransport deps
Since these were combined into libhidlbase.

Bug: 135686713
Test: build only (libhwbinder/libhidltransport are empty)
Change-Id: Ife609bf7eddeae2fba81625d92de7d8ecddf60e6
2020-09-25 19:44:11 +05:30
Nilesh Gharde
c1e03905ce violet: gps: L2C and E5B multiband NMEA
Change-Id: I5d6a586089f7b02b6a363727f2856042321bdb12
CRs-fixed: 2740966
2020-09-25 19:44:09 +05:30
Pig
d4d0f8cd7a sm6150-common: Kang GPS configs from curtana
Change-Id: Id685899b8114a857c2631196f75b2e1d48038588
2020-08-07 03:36:43 +02:00
Pig
cdddc4def3 Merge tag 'LA.UM.8.9.r1-10000-SM6xx.0' of https://source.codeaurora.org/quic/la/platform/hardware/qcom/gps into HEAD
"LA.UM.8.9.r1-10000-SM6xx.0"

Change-Id: I2899eeb6343ff0c7b69d552c5cb469e686ff961d
* tag 'LA.UM.8.9.r1-10000-SM6xx.0' of https://source.codeaurora.org/quic/la/platform/hardware/qcom/gps:
  change of yearOfHw logic
  Enable NMEA Print using a configuration.
  Change the maximum threshold of ageTimeNanos to 100ms
  modify the ageTimeNanos' threshold value
  disabled getExtensionGnssBatching_2_0

Change-Id: Ia5df184371bc9c4aeb3bd4d44836e3a7e152b8e3
2020-08-07 02:38:36 +02:00
Pig
3accca0aa0 Merge tag 'LA.UM.8.9.r1-09300-SM6xx.0' of https://source.codeaurora.org/quic/la/platform/hardware/qcom/gps into HEAD
"LA.UM.8.9.r1-09300-SM6xx.0"

Change-Id: Id07138317ac1b19d50fe02f16c1f88e5d78fcab2
2020-06-25 15:08:36 +02:00
Mike Cailean
36fbb13285 VTS test TestGnssDataElapsedRealtimeFlags failure
Change-Id: Ia462d00814e2cfd98af90769d3ee388e0f9b7ff0
CRs-fixed: 2660953
2020-05-20 05:36:54 +02:00
Nilesh Gharde
3886da8ad4 Deleting session id, before calling stoptrackingcb
To avoid delay and to avoiding other LocationAPIClientBase
request to reuse the same session id.

Change-Id: I2cd1628f0265de63cee29681fec5ccad525a82a3
CRs-fixed: 2665652
2020-05-20 05:36:54 +02:00
Joaquins
424287bb6d New GTP_MODE SDK_WIFI in izat.conf
Added GTP_MODE SDK_WIFI in izat.conf, to be used on PLs with
legacy modem, where GTP wifi is combined with modem WWAN location.

Change-Id: I65b1b8fa6367a013f14c4fafca0825a567fa637a
CRs-fixed: 2651939
2020-05-20 05:36:54 +02:00
Yingjie Wang
53132bbdae Delete LocationAPI instance after destroy() call
Change-Id: Ia48377b74b6c2d3aa52d6b9e18d3e43d06bbf93b
CRs-fixed: 2658368
2020-05-20 05:36:54 +02:00
Kevin Tang
7d0cc77253 Modification in loc-core and location-api for EAP compilation
Change-Id: Ied3a988d635c7750acdf2b6057c6d1cd6d188615
CRs-Fixed: 2612482
2020-05-20 05:36:54 +02:00
Nilesh Gharde
6b3b74c08f DBH support on non-gms Android
Change-Id: I1342259f5d9635ce7730316f2438565dcaa846c9
CRs-Fixed: 2648683
2020-05-20 05:36:54 +02:00
Dante Russo
687c3d78bb Fix odcpi feature when Location is off in settings
Assure gnssInterface is initialized during call to
getGnssInterface to assure GnssAdapter is created
and able to accept calls like odcpiInit

CR-fixed: 2644833
Change-Id: Ic2cf846b5a2a98fa4f4ca46a4f031c7385fce068
2020-05-20 05:36:54 +02:00
Harikrishnan Hariharan
eebc57ad40 HAL : Location bringup for MDM9607.LE.2.1.3
Older GCC version has issues with unordered map and set. So use
map and set instead for such targets, by checking compile time
check for GCC version.

Change-Id: Id5e3030ff3b20106d74bd4e9bec5f3cd1277ba99
CRs-Fixed: 2632300
2020-05-20 05:36:54 +02:00
Yingjie Wang
2b6b0345d5 Re-init battery listener when Health hal died
When system_server and health hal both died, battery listener
will get blocked in serviceDied. Make complete cleanup
for re-init.

Change-Id: I7ecc5b2e6e2aeb1e79ed45db94b05662eb9f37b9
CRs-fixed: 2640795
2020-05-20 05:36:54 +02:00
Wei Chen
3e2f27dacf Revert "GPS HAL support shipping out sv poly to location api client"
This reverts commit 87a7fc0e17558322111301fabdb1d98943db1456.

Change-Id: I62a3ecbe96d35da84225e4e67d5450ad752fdc6f
CRs-fixed: 2638755
2020-05-20 05:36:54 +02:00
Wei Chen
fb1137626c GNSS hal: support read out robust location config
Read out robust location config via location integration API

Change-Id: Icdae23021e05cc81ef2673306b860c73f4049195
CRs-fixed: 2630377
2020-05-20 05:36:54 +02:00
Rong Tang
d9bad85bdd modify the ageTimeNanos' threshold value
1,the max trusted propagation time set to 30s to avoid user
setting wrong time, it will affect elapsedRealtimeNanos.
2,timeUncertaintyNs set to the maximum value between
abs(AP_UTC - MP_UTC) and 100ms, to verify if user change
the system time.

Change-Id: I46dc88c01d74cda89fd220e33281c48c866ae534
CRs-Fixed: 2633580
2020-05-20 05:36:54 +02:00
Wei Chen
5cab2be714 DRE fix injection: prevent modem sensor fix to be injected back
(1) Enhance the logic so modem sensor fix can not be injected back
to modem
(2) allow location api with locationSystemInfoCb to be associated
with GNSS stack

Change-Id: I41c11c43d5d50261304f62080ac1143f3b3f7d98
CRs-fixed: 2611733
2020-05-20 05:36:54 +02:00
Wei Chen
baf59c2ae1 GPS HAL: add some debug messages to detect HAL stuck
Add debug messages to detect HAL stuck when QCMAP is available but
not running

Change-Id: Ie4bb6dd4a245cf46a52118404b4eedfac7fc52e2
CRs-fixed: 2620853
2020-05-20 05:36:54 +02:00
Hoss Zhou
1a33ec9c71 fix sv id mismatch issues
Change-Id: I7de3f8e3077dd24fb762f08e08f804c3ea9ecda4
CRs-Fixed: 2554984
2020-05-20 05:36:54 +02:00
Wei Chen
f324491f37 GPS HAL: support robust location 2.0
(1) enable/disable robust location 2.0
(2) output conformityIndex

Change-Id: Ib6c25d6ce6b4da740c49eab91a58aa566af17b88
CRs-fixed: 2603423
2020-05-20 05:36:54 +02:00
Dante Russo
90239541da Register gnss_vendor service to avoid VTS failures
In the case where there is no vendor enhanced features
(stock android) we must register for the gnss_vendor
service to avoid VTS failures caused when gnss_vendor
service is declared in vendor manifest but not registered
at run time.

Change-Id: Ibbe6b3284c65381088f6d63f24745e297c5d6c5c
CRs-fixed: 2620136
2020-05-20 05:36:54 +02:00
Wei Chen
4125a5dc1c GNSS adapter: fix config sv issue on reset scenario on LE target
Fix config SV issue on reset scenario

Change-Id: Idc71fb7477e46812e41541713f6d399dd358f860
CRs-fixed: 2605584
2020-05-20 05:36:54 +02:00
PIPIPIG233666
20f36f7d9b Merge tag 'LA.UM.8.9.r1-08300-SM6xx.0' of https://source.codeaurora.org/quic/la/platform/hardware/qcom/gps into lineage-17.1
"LA.UM.8.9.r1-08300-SM6xx.0"

Change-Id: Icd32df38f37a37b2cab99ffbc420edd8d901765c
2020-03-01 13:28:35 -05:00
PIPIPIG233666
50a4c48b15 Merge tag 'LA.UM.8.9.r1-08100-SM6xx.0' of https://source.codeaurora.org/quic/la/platform/hardware/qcom/gps into lineage-17.1
"LA.UM.8.9.r1-08100-SM6xx.0"

Change-Id: I06f7f04a208f87545d4c78bc65b6315e90737af6
2020-03-01 13:28:06 -05:00
PIPIPIG233666
50c2a21c1d sm6150-common: Build GPS from source
Change-Id: Ic5a1d0dc6fbeb6a636aafeb0b3f6193b8c8fc10b
2020-02-10 19:54:12 -05:00
PIPIPIG233666
4a1739e050 Merge commit '6b556310144398b8fa7f970026f4637a6e944146' as 'gps'
Change-Id: Ib6b0f5d3d653d4d76d25ca7e26bb68726e7a49ae
2020-02-10 19:54:07 -05:00