Commit graph

1699 commits

Author SHA1 Message Date
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
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
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
qctecmdr
95bf087ce8 Merge "Adding NAVIC in delete aiding data" 2019-09-23 23:10:58 -07:00
Saurabh Srivastava
f07b76bdc2 Adding NAVIC in delete aiding data
Adding NAVIC to the SV type mask while
deleting aiding data

Change-Id: I704595b60e061e83c8c08f69f770e4a78b3ae409
CRs-Fixed: 2529784
2019-09-19 23:26:58 -07:00
Prashant Kumar
d66fc2cdb4 Reversing the Added API to read the device SOC ID
Change-Id: I96bd498fdd9509a1d52063ec26732a99365415d5
CRs-Fixed: 2531660
2019-09-20 10:01:48 +05:30
Ashish Dhiman
4d2c7279b5 Add API to read the device SOC ID.
CRs-Fixed: 2385448
Change-Id: Ia154c908e610e2e475171d9a45822bae84210d5b
2019-09-19 03:28:41 -07:00
Vijayakumar Badiger
704ec016f5 Preliminary Android target definition for sdmshrike
Change-Id: Iadfeb1601be2a847de9e2645df8e017816a0f5bf
2019-09-17 21:58:00 -07:00
qctecmdr
f14b5413a7 Merge "LocIpc sender recv and recver send" 2019-09-17 15:58:26 -07:00
Santoshkumar Zalake
2379d8bc30 Change Word in comments in default configuration
CRs-Fixed: 2528185

Change-Id: Iec09e2dd19eb27a64b18ce0cd22aeba71d2e97de
2019-09-16 12:10:10 +05:30
qctecmdr
948f22d23c Merge "Support PQWP7 parsing without NAVIC" 2019-09-13 21:18:05 -07:00
qctecmdr
77d3e61429 Merge "Selectively send deleteAll command to engines" 2019-09-13 10:28:59 -07:00
Santoshkumar Zalake
2cae87f908 Change word in comments
CRs-Fixed: 2527266

Change-Id: If368406f561836a82f548ad99171a730256cbfdf
2019-09-13 15:56:46 +05:30
Bhavna Sharma
bf3d36c771 Selectively send deleteAll command to engines
Modify GNSS interface API's to accept positioning
engine mask to perform deleteAll command on

CRs-Fixed: 2477966

Change-Id: I54a32d76de98ba6bfa88d7fd1925c44b3079af08
2019-09-10 15:10:19 -07:00
Saurabh Srivastava
92ba006e1b Support PQWP7 parsing without NAVIC
Support PQWP7 NMEA parsing for older
GNSS engine without NAVIC support.

CRs-Fixed: 2516292
Change-Id: I62bd4467f15b8c5fc77e7c979eefb146276ff2a0
2019-09-09 22:06:54 -07:00
Kevin Tang
c891e738f5 LocIpc sender recv and recver send
Added two APIs, which allow ILocIpcListener to provide
a sender for sending data back to LocIpcSender; and to
allow a LocIpcSender to get a recver from the last send
target so that it can receive data from it.

Change-Id: I94e2204a2588d375805d0674d1e877bbe414c99f
CRs-Fixed: 2524039
2019-09-09 18:03:22 -07:00
Harikrishnan Hariharan
f4dc944333 Make use of USE_GLIB flags for LE related functions
We were making use of USE_QCMAP which was not defined in
configure files.

Change-Id: I12f823a79b0036502b832a3fb40a93828bde6f59
CRs-Fixed: 2521803
2019-09-07 06:18:44 -07:00
Kevin Tang
1209591f94 change some of the comments that contain prohibited words
Change-Id: Iaa8009e245edbcbc5adbe2348de4a014271c0ef9
CRs-Fixed: 2504418
2019-09-06 09:18:35 -07:00
qctecmdr
1c669d75d6 Merge "Adding one level of context swith for Geofence_add" 2019-09-05 20:01:40 -07:00
qctecmdr
095e7d6e96 Merge "Add GNSS Deployment Support." 2019-09-05 08:58:19 -07:00
qctecmdr
715d9e7af4 Merge "gps: Add diag permissions for gnss service" 2019-09-05 00:06:06 -07:00
Nilesh Gharde
0df749e363 Adding one level of context swith for Geofence_add
Added one more context switch for geofence add
command. To even out total number of the context
switch as it is for remove/modify/pause command.
This will prevent out of order execution of
sent msg tasks.

Change-Id: Icf1f39ee3526e2e45cfe3e84945f71524941069b
CRs-Fixed: 2516790
2019-09-04 11:42:19 +05:30
qctecmdr
e60e51f520 Merge "GPS hw: report ppe/spe report with combined report" 2019-08-30 04:06:32 -07:00
Santoshkumar Zalake
42e8ab0190 Add GNSS Deployment Support.
The GNSS Deployment is used to configure
GNSS Hardware using gps.conf file

CRs-Fixed: 2480150

Change-Id: Ia09d3165de0c2f80f23bef8c0431095b25d16ea2
2019-08-30 02:54:05 -07:00
Madhanraj Chelladurai
4e9fee0ebd gps: Add diag permissions for gnss service
Change-Id: I1e65ce2a2e681f48b476fb8b310015f572f306e1
CRs-Fixed: 2413585
2019-08-30 02:33:01 -07:00
qctecmdr
93db35b825 Merge "AgpsManager supports two clients" 2019-08-28 20:41:30 -07:00
Yingjie Wang
d3e6df06e2 Remove LPPe UP/CP config in gps.conf
LPPE_CP_TECHNOLOGY and LPPE_UP_TECHNOLOGY can be
configured per SIM so they should not be overriden
by gps.conf by default. Leave commented out for
testing purpose;
Add check before LPPe injection when engine up.

Change-Id: I1b9b33009ec45d0a14c2e50e29d0a9df636a6319
CRs-fixed: 2505512
2019-08-22 23:21:24 -07:00
Wei Chen
1a1232c594 GPS hw: report ppe/spe report with combined report
When DRE/PPE are also running in the system, in addition to
reporitng the combined final output, add the support to
report the unmodified SPE/PPE report received from the engine

Change-Id: Icb636824da32b175030dfcd2b270ac8b500ff75b
CRs-fixed: 2487580
2019-08-23 12:56:14 +08:00
haohuang
39e34de194 AgpsManager supports two clients
AgpsManager supports two clients, QCOM AGPS
Stack is to handle ATL type WWAN, AFW AGPS
stack is used to handle ATL type SUPL and
SUPL emergency.

Change-Id: Id43c4919a1ae67d739e055c7fb5ba3abacc70b34
CRs-Fixed: 2509244
2019-08-20 21:38:51 +08:00
qctecmdr
5ee0b62e8c Merge "delete of shared LocApiBase::mMsgTask may cause issues" 2019-08-19 11:21:18 -07:00
qctecmdr
f103622b36 Merge "Removing GPS_LOCK conf. from gps.conf" 2019-08-16 16:56:13 -07:00