Commit graph

1738 commits

Author SHA1 Message Date
Linux Build Service Account
0e89508537 Merge a434302183 on remote branch
Change-Id: I1dd7ea79cdfbfa32e7c70740c58470c5dd38dca3
2019-12-06 11:33:47 -08:00
qctecmdr
a434302183 Merge "FR 57252: GPS hal changes to allow configuration for LE target" 2019-11-26 15:38:28 -08:00
qctecmdr
6b13ac10f1 Merge "SUPL Version for 5G and LPP Rel 15" 2019-11-25 10:16:18 -08:00
qctecmdr
01503d5e0c Merge "Report ErrRecovery only when there is actual event" 2019-11-22 14:11:10 -08:00
Wei Chen
6c35439ef2 FR 57252: GPS hal changes to allow configuration for LE target
(1) runtime enable/disable TUNC
(2) runtime enable/disable PACE
(3) runtime enable/disable constellations
(4) delete all aiding data
(5) config lever arm

Change-Id: I6cffd08e4c6fa45ff8d62bfef2da1156f3b61956
CRs-fixed: 2497326
2019-11-22 09:37:06 -08:00
Santoshkumar Zalake
97c612b5a0 Use gmtime_r function to avoid UTC time corruption.
The gmtime library function is outputting
corrupted UTC time as this function is
not thread safer.

CRs-Fixed: 2571035

Change-Id: Ieed088392e3094eb20fa9b526931a3a89d4f231c
2019-11-21 10:58:14 +05:30
Nilesh Gharde
c7b6382ede SUPL Version for 5G and LPP Rel 15
Change-Id: Id00ea3bfb72c88c7c68425aa8c8829579ebd6237
CRs-fixed: 2570450
2019-11-20 18:02:09 +05:30
qctecmdr
3b3bcb1113 Merge "Remove assigning preferredAccuracyMeters to minDistance" 2019-11-17 18:26:08 -08:00
qctecmdr
e681ef4014 Merge "fix nmea B2AQ issues" 2019-11-14 09:16:10 -08:00
haohuang
31f3995e14 Remove assigning preferredAccuracyMeters to minDistance
Remove this assigning in gnssSetPositionMode. We shouldn't
assign preferredAccuracyMeters to minDistance, because if
preferredAccuracyMeters is larger than 0, GnssAdapter
will start distance based tracking which is not expected.

Change-Id: I2c2acedd121e02bf9da1136540cc34b9257197fd
CRs-fixed: 2566229
2019-11-14 17:39:09 +08:00
qctecmdr
826c41ec8e Merge "GPS HAL: send platform power state event to modem" 2019-11-13 16:17:56 -08:00
Hoss Zhou
62042a27eb fix nmea B2AQ issues
Change-Id: I07e17eac2eb663155d138fc67881f9926dea2f5e
CRs-Fixed: 2560784
2019-11-13 11:47:48 +08:00
qctecmdr
381bde3fcb Merge "Concurrent position report: report out SPE fix promptly" 2019-11-12 15:30:15 -08:00
qctecmdr
063b5a6b73 Merge "GNSS BDS max SV ID: update to 237 from 235" 2019-11-12 10:51:23 -08:00
Wei Chen
61c8aaca03 Concurrent position report: report out SPE fix promptly
For concurrent position report, we need to report SPE fix promptly

Change-Id: Iba7807ccb158dc4092abd9bbf540cbf0a6c7345b
CRs-fixed: 2546089
2019-11-11 16:31:30 -08:00
qctecmdr
9a8187d0e1 Merge "Add listener for the initial battery status" 2019-11-10 20:11:04 -08:00
qctecmdr
24760a487f Merge "Add NI_SUPL_DENY_ON_NFW_LOCKED configuration" 2019-11-09 20:56:14 -08:00
Wei Chen
e14cbf3798 GNSS BDS max SV ID: update to 237 from 235
Change-Id: I0c373c91f9763c67d1b877f77216ae0efc7a6273
CRs-fixed: 2558927
2019-11-08 13:04:49 -08:00
Wei Chen
569517b808 GPS HW module: fix << overflow issue
Fix shift overflow when the number of bits shifted can exceed 31 bits

Change-Id: Ib4334fd9b3bf574b8d8143a5f706ca9e963a6053
CRs-fixed: 2557855
2019-11-07 11:58:15 -08:00
Bhavna Sharma
6bfa690c48 Handle SPE session TBF and nHz subscription for automotive
1. Requirement is to run SPE session only at 100ms TBF
if any nHz capable engine subscribes for nHz measurement
or nHz position reports.
2. Second requirement is to subscribe for nHz measurement
only if an an actual nHz engine subscribes for nHz measurement

CRs-Fixed: 2540001

Change-Id: I5a2c93a9d880967ab59ce6cd12cd415c98f29e6c
2019-11-06 11:46:24 -08:00
Wei Chen
52d928e069 GPS HAL: send platform power state event to modem
Send platform power state event, suspend/resume/shutdown to modem

Change-Id: I19960f5fb4935de9e4f5513abd95aed6241a2fd9
CRs-fixed: 2527622
2019-11-06 10:13:37 -08:00
qctecmdr
1a16cbc20c Merge "GPS NMEA: generate empty GSA sentence for dead reckoning fixes" 2019-11-04 17:59:31 -08:00
Dante Russo
386a741309 Add NI_SUPL_DENY_ON_NFW_LOCKED configuration
If an NI SUPL Request that does not have Privacy
Override option comes when NFW is locked and config
item NI_SUPL_DENY_ON_NFW_LOCKED = 1, then deny it

Change-Id: I0a769c4696751069d5a034dde8569ecfcf63b41a
CRs-fixed: 2550126
2019-11-04 16:50:30 -08:00
qctecmdr
465d7647f0 Merge "GnssSv struct: make it in sync between 3.0.c5, 4.0 and 5.0" 2019-11-04 14:08:06 -08:00
Wei Chen
7eb1dcf0c7 GPS NMEA: generate empty GSA sentence for dead reckoning fixes
For dead reckoning fixes when number of SV used in fix is 0,
we need to generate an empty GSA sentence

CRs-fixed: 2542163

Change-Id: Icb89981d04ecdfeb81fbdc16b2a8d3676319b18d
2019-11-04 09:31:27 -08:00
Wei Chen
755bba2813 GnssSv struct: make it in sync between 3.0.c5, 4.0 and 5.0
Make GnssSv struct in sync between 3.0.c5, 4.0 and 5.0 to allow
3.0.C5 hal daemon to work with 4.0/5.0 location client API app

Change-Id: I421fc3a36055fa278ef42bca4816d07f18c75d68
CRs-fixed: 2541020
2019-10-31 21:30:09 -07:00
Yingjie Wang
ae1d9031ef Add listener for the initial battery status
Listen to the initial charging status as DPO mode
depends on it;
Change ALOG to LOC_LOG.

Change-Id: Ic61f76038f0e464b18ade8c9b20c058de35748c8
CRs-fixed: 2544828
2019-10-29 22:03:30 -07:00
Madhanraj Chelladurai
f195c219e6 nmea: fix status and mode indicator fields of RMC
Fix status and mode indicator fields to proper
values as per NMEA standard for GPRMC string.

Change-Id: I7fe0e292079c0f71bb37f6a1462f669e14f54b81
CRs-Fixed: 2537924
2019-10-28 23:26:36 -07:00
Wei Chen
5c568ca1bd GNSS adapter: fix a race condition
Fix the race condition that handleEngineUp gets called before
GNSS adapter constructor finishes

CRs-fixed: 2538904

Change-Id: I0946dd44ce3a4b03f2c8a45a855bbfbd4b7b8468
2019-10-24 09:44:30 -07:00
qctecmdr
91c053b772 Merge "GPS NMEA: enhance gga fix qualtiy for sensor contributed fix" 2019-10-23 22:49:12 -07:00
qctecmdr
62c4657105 Merge "GPS log util: add capability to log modem callflow with debug level" 2019-10-23 19:18:35 -07:00
qctecmdr
e5159ea122 Merge "Assure accurate elapsedRealTimeNanos calculations" 2019-10-23 14:51:53 -07:00
Wei Chen
3a84bfac17 GPS NMEA: enhance gga fix qualtiy for sensor contributed fix
This enhancement will be enabled if CUSTOM_NMEA_GGA_FIX_QUALITY_ENABLED
is set to 1 in gps.conf.

PPP fix w/o sensor: fix quality will now be 59
PPP fix w sensor: fix quality will now be 69
RTK fixed fix w/ sensor: fix quality will now be 64
RTK float fix w/ sensor: 65
DGNSS and/or SBAS correction fix and w/ sensor: 62
GPS fix without correction but and w/ sensor: 61

Change-Id: I7bc1bb5504e023de40f271d97d31c602f27bd94e
CRs-fixed: 2537211
2019-10-22 11:55:12 -07:00
Linux Build Service Account
771d4dbfd4 Merge 3bf2589330 on remote branch
Change-Id: I5ea87207d1cd846272b84fbe6ef24610573a7a91
2019-10-21 05:33:28 -07:00
Wei Chen
ba93fa33fb GPS log util: add capability to log modem callflow with debug level
Add debug level to log high frequency modem calls so those high
frequency modem calls do not get outputted with default gps.conf

Change-Id: I2c34471ae97f5cdfebf99c3d7edcdaff7ff63018
CRs-fixed: 2537163
2019-10-17 15:22:13 -07:00
Wei Chen
87923e48c1 GPS: enable tunc constrained feature by default for auto PL
Enable TUNC feature by default if DISTRO is set to "auto"

Change-Id: I5d05a40fd6c6fb5c9f37cf2a7478f66b9384f5df
CRs-fixed: 2528781
2019-10-17 13:44:29 -07:00
Harikrishnan Hariharan
201f612040 Enable/Disable process launch by loc_launcher based on SOC-Id
Add a parameter SOC_IDS for process configuration in izat.conf
to include/exclude the process based on SOC-Id. Read the value
of this parameter to enable or disable the process launch by
loc_launcher.

Fixed an issue in read_a_line function to handle newline at the
end of line in the file to be read.

Change-Id: I66777856ebbb928ce4f49a44dfd9d2f1fbca69b5
CRs-Fixed: 2540349
2019-10-12 11:50:54 +05:30
qctecmdr
b9e824b01e Merge "Disable few process launch in loc_launcher for low ram targets" 2019-10-11 15:26:18 -07:00
Madhanraj Chelladurai
a44fc0383d gps: Add diag permissions for gnss service android interface 2.0
Change-Id: Ib53b8bef8641166c1a7495e9051a092a34830016
CRs-Fixed:2543639
2019-10-11 02:48:26 -07:00
Harikrishnan Hariharan
8e7733ba7f Disable few process launch in loc_launcher for low ram targets
Use ro.config.low_ram property to identify low ram targets and
disable the process in izat.conf whose property value
LOW_RAM_TARGETS is set to DISABLED.

Change-Id: Idb8b0b91c4ed127b4fa58c41683f9720252dff84
CRs-Fixed: 2542145
2019-10-10 23:01:26 -07:00
qctecmdr
3d053a57fc Merge "Enable Android sanitizers" 2019-10-10 16:15:55 -07:00
qctecmdr
b19214e27d Merge "Prevent left shift by a large number" 2019-10-10 15:26:49 -07:00
Dante Russo
f80980210e Assure accurate elapsedRealTimeNanos calculations
If a context switch or interrupt happens between
getting current time and getting boot time, this
can throw off the calculation for the
elapsedRealTimeNanos timestamp. Avoid this by
retrying if there is a large enough delta
between getting current time and getting boot
time.

Change-Id: I47d7a99b480423a50eaf951a904f21928587eda6
CRs-fixed: 2541719
2019-10-09 13:39:17 -07:00
qctecmdr
3bf2589330 Merge "Systemstatus - add support older version of PQWME" 2019-10-07 15:36:04 -07:00
Mike Cailean
73f69ef469 Enable Android sanitizers
Change-Id: I6724d0e171e42f779e8eed6aea126f3f69496f6d
CRs-fixed: 2534375
2019-10-07 15:32:50 -07:00
Mike Cailean
fa7f9e3f08 Prevent left shift by a large number
CRs-fixed: 2534443

Change-Id: I3c52f6f62620c69bc79bc9bc5343e5d1ec08656d
2019-10-07 10:34:05 -07:00
Dante Russo
2f8791ecd4 Update SSL cert path
Update to use SSL1.1 certificate path

CRs-Fixed: 2538925
Change-Id: I00d2566e4d1cb793aaf6b539dea2d8160387f6ba
2019-10-01 16:40:14 -07:00
Mike Cailean
2ef1adca45 Systemstatus - add support older version of PQWME
Add support of older (shorter) version of PQWME
strings from modem. Systemstatus currently discards
those shorter strings. This change is to fill out
all zeros in those missing fields instead of
discarding the whole sentence.

Change-Id: I0276e595c738253608071f12170232a59e3b2e9e
CRs-Fixed: 2153513
2019-10-01 11:50:44 -07:00
Harikrishnan Hariharan
bf12ff26d5 Use 'subdir-objects' option in HAL configure options
If a source file is in a subdirectory, but the 'subdir-objects'
automake option hasn't been enabled. For now, the corresponding
output object file(s) will be placed in the top-level directory.
However, this behaviour will change in future Automake versions,
they will unconditionally cause object files to be placed in the
same subdirectory of the corresponding sources.
So to avoid future incompatibilities, enable the 'subdir-objects'
option in location module configure options.

Change-Id: If9e94c0f6fcd9922ee7f0f9d1909d5d6579a5715
CRs-Fixed: 2533108
2019-09-25 19:35:16 -07:00
Bhavna Sharma
b6f19637e3 Fix deleteAll case for GNSS HIDL 2.0
For GNSS HIDL 2.0, delete command should explicitly
specify the engine the delete command is to be
performed on.

CRs-Fixed: 2533225

Change-Id: Ib69c3f11eb4df94a3becdbb2b0cff9288283067e
2019-09-25 10:53:41 -07:00