Commit graph

4270 commits

Author SHA1 Message Date
Linux Build Service Account
2b8d001437 Merge "HLOS implementation for E911 LPPe BT/UBP feature" 2017-03-30 17:35:24 -07:00
Harikrishnan Hariharan
e581b62977 HLOS implementation for E911 LPPe BT/UBP feature
HLOS implementation for feature - E911 LPPe BT/UBP for
SUPL and LPP CP.

Change-Id: I6ec7a3ff8aaf91383832753af2d0e406938c3884
CRs-Fixed: 1088449
2017-03-30 14:46:54 +08:00
Baili Feng
ce66a81a3d Fix nmea sentence generation method of --GSV
Generate --GSV sentences from SVs in view
instead of generate them from SVs used in fix

Change-Id: I1de113e86b987b6ea01b50d800e5e13e7277baff
CRs-Fixed: 2015049
2017-03-30 13:30:16 +08:00
Baili Feng
59fce4feb5 Convert GnssConfig parameters to enum
Convert parameters to enum values instead of static_cast

CRs-Fixed: 2025873
Change-Id: Ief9cf31bee9b9772350d5191cdd45853f0f42131
2017-03-30 09:57:35 +08:00
Naresh Munagala
06e6d68aee move nmea generation logic inside utils
NMEA generation logic needs to be reused across the
interface boundaries. Moved this logic inside utils.

Change-Id: Icb5c6fbc38b178c5edea468d26286e21749bfbfb
CRs-Fixed: 1098734
2017-03-29 18:22:08 +08:00
Linux Build Service Account
a760fcb28c Merge "correct the conversion of ConstellationType" 2017-03-28 21:31:04 -07:00
Linux Build Service Account
f248b1253c Merge "LOC logging macro changes" 2017-03-28 11:25:49 -07:00
Baili Feng
4fc5a782cf correct the conversion of ConstellationType
map GNSS_SV_TYPE_GPS to GnssConstellationType::GPS

Bug: 36644020
CRs-fixed: 2025520
Change-Id: I28fe4b5aff17495f50b0ae7fb0465bbd82a66627
2017-03-28 13:59:28 +08:00
Vara Prasad A V S G
73c963fb24 sdm660_64: Enable HWC2, Enable gralloc1, Add graphics HALs.
Add allocator, mapper and composer HALs.
This relies on TARGET_USES_HWC2 and TARGET_USES_GRALLOC1 being
enabled.

Change-Id: I913f4d8fa719261abf52becf7d24fef433f7f1d5
2017-03-27 22:16:51 -07:00
Madhanraj Chelladurai
acf1cba02d nmea: call the right function for reporting AP generated NMEA
When AP generates NMEA, we need call the right function
to forward the sentence to Adapter and then to framework.

Change-Id: I537c19f900b7d72ec38dc29b789329c52c0b2811
CRs-Fixed: 2023810
2017-03-27 17:30:43 +05:30
Niranjan Reddy Dumbala
d10fc1160d SDM660_64: Initial bring-up and compilation fix
Change-Id: I2cab738cf22cb3b83af4a993cf7985311538a98b
2017-03-26 02:16:49 -07:00
Linux Build Service Account
e72716080e Merge "Added support for AGC" 2017-03-25 15:20:33 -07:00
Kevin Tang
bbbca84aa6 LOC logging macro changes
The current logging macro always uses LOGE, which is
confusing to external developer looking at our logs.
Also changed LOC_LOGx definition to follow the same
syntax as that of LOC_LOGX.

Bug: 29499503

Change-Id: I803233a9d0b241bf9aeb2ee0d4bd2e7cc52ed75b
CRs-Fixed: 1113702
2017-03-25 14:46:30 +08:00
Mike Cailean
3ad14ba827 Added support for AGC
Added support for AGC (automatic gain control)

CRs-fixed: 2023324

Change-Id: I6d6da23aab66da14bfa594077beda15194bdbeba
2017-03-24 15:46:39 -07:00
Linux Build Service Account
3ebb8c60ed Merge "update gps.conf" 2017-03-24 13:30:02 -07:00
Linux Build Service Account
c7cf50cd43 Merge "force undefined symbols to treat as errors" 2017-03-24 13:29:59 -07:00
Linux Build Service Account
8f6ba9dbc3 Merge "Check Null on call to LocationAPI::addGeofence" 2017-03-24 06:31:25 -07:00
Linux Build Service Account
f9c8471eff Merge "Addition of vertical/speed/bearing accuracy feilds" 2017-03-24 06:31:24 -07:00
Linux Build Service Account
50952f03af Merge "SystemStatus - Add BugReport support" 2017-03-24 06:31:22 -07:00
Linux Build Service Account
adb88a7ffb Merge "SystemStatus - initial release" 2017-03-24 06:31:22 -07:00
Linux Build Service Account
96a7f5c488 Merge "Enable LOGV for LocSvc_LocApiBase" 2017-03-24 06:31:09 -07:00
Linux Build Service Account
e936286c2d Merge "Add tech_mask in UlpLocation to support report NLP position source to Android Framework." 2017-03-24 06:31:06 -07:00
Linux Build Service Account
a5f669bcee Merge "update NMEA logic with SBAS corrections" 2017-03-24 06:31:03 -07:00
Niranjan Reddy Dumbala
ba549c4e0d SDM660_64: Intial bring up.
Intial bring up changes

Change-Id: I789911a6cd9edacdf73df41b39a80b096b9f1077
2017-03-24 12:13:47 +05:30
Dante Russo
2e87b20579 Check Null on call to LocationAPI::addGeofence
We need to handle the case where addGeofence returns
Null, which can happen on error conditions, like when
dlopen/dlsym libgeofence.so fails

Bug: 36407968
CRs-fixed: 2022286
Change-Id: Ib612d92b77cf5532ad19154c57ee0545674d88f9
2017-03-23 12:28:52 -07:00
Dante Russo
af318504e2 Addition of vertical/speed/bearing accuracy feilds
Fill in the new feilds of vertical/speed/bearing accuracy
into hidl structure

CRs-fixed: 2021399
Change-Id: I409e2559e671e65c307758ee273c64f98f650c11
2017-03-22 17:39:50 -07:00
Katz Yamada
4ff6da4a8a SystemStatus - Add BugReport support
Add BugReport support in SystemStatus. It exposes getReport
interface to GnssDebug via GnssAdapter. GnssDebug generates
Gnss' BugReport information upon a request tiggered by Android
framework.

Change-Id: I681777da10c860ea15ee65b7860a5ce61a7798db
CRs-Fixed: 2016125
2017-03-21 21:42:32 -07:00
Linux Build Service Account
db80463553 Merge "set default supl config to MSB" 2017-03-21 19:20:48 -07:00
Linux Build Service Account
a7423ca85d Merge "possible NULL pointer dereference" 2017-03-21 19:20:47 -07:00
Naresh Munagala
13888ddfd2 update NMEA logic with SBAS corrections
Change-Id: Ibb4233cbcb6d223e507105c05a40136ea7924e75
CRs-Fixed: 1108696
2017-03-22 09:40:14 +08:00
Yingjie Wang
a5d69e1757 Enable LOGV for LocSvc_LocApiBase
Define LOG_NDEBUG 0 to enable verbose log messages in
LocApiBase.cpp

CRs-fixed: 2018892
Change-Id: Ie3f5efaa728d863b8fd0ab268700e807b232dab3
2017-03-21 15:18:32 -07:00
Katz Yamada
592b3f557e SystemStatus - initial release
Add GNSS SystemStatus component to handle debug NMEA messages
from mpss. This component handles GNSS debug info sent through
debug NMEA and then stores it in its cache and pass it to
clients per requests. Also debug NMEA is turned on by default.

Change-Id: Ia11a124ff43d27568f544a3a4742dd7a846869fe
CRs-Fixed: 1099152
2017-03-21 09:55:08 -07:00
Linux Build Service Account
bf3d1332f4 Merge "Add comments for automitive configuration param and meas status" 2017-03-21 01:39:57 -07:00
Linux Build Service Account
717e33675c Merge "Updating ro.baseband target property value" 2017-03-20 19:04:31 -07:00
Linux Build Service Account
dc1cdf086d Merge "Fix issue of incorrect set of used_in_fix flag" 2017-03-20 19:04:31 -07:00
Linux Build Service Account
ffc98a5ad5 Merge "Update the device node to check for MDM systems" 2017-03-20 19:04:30 -07:00
Linux Build Service Account
36840b0a66 Merge "getprogname is not defined in glibc" 2017-03-20 13:20:52 -07:00
Saurabh Srivastava
b37098920f Moving conf files to /vendor/etc
Moving all vendor specific conf files to /vendor/etc instead of
current /etc folder

CRs-Fixed: 1099981
Change-Id: I4495d8527941959be0847c4722ea8b68ee6c87ee
2017-03-17 16:12:54 -07:00
Dante Russo
b6928aae36 Send capabilities callback for each init
Added sending the capabilities to hal clients
on every init, instead of only on the first init.
This is needed for the cases when the hal client
crashes and is trying to reinit.

Bug: 36182606
Change-Id: I9055d2319f1dc407b6de9627b4e66eb89f8ce9d1
CRs-fixed: 2019987
2017-03-17 14:52:01 -07:00
wangjing
fad70d4434 sdm660_64: Remove TARGET_USES_QTIC Dependency for O upgrade
Change-Id: Id9e52422648f1f707bc82895cbdd1a5e7e06ecd2
CRs-Fixed: 2021042
2017-03-17 18:51:27 +08:00
Naresh Munagala
9e44ec3ce2 force undefined symbols to treat as errors
added necessary flags in Makefiles to
treat undefined symbols to get caught at
compile time.

Change-Id: I77068b0d61ad432aa227c01b6229d82651ab8862
2017-03-16 10:27:01 +08:00
Kevin Tang
5253a74c6b possible NULL pointer dereference
it appears some of the MsgTask msgs might fail
to create, ending up with a NULL pointer, in
which case when it gets received, dereferencing
a NULL pointer will happen, causing crash.

Change-Id: I5a4295b4fba9c8383754e2abe6558782b1b83143
CRs-Fixed: 1106034
2017-03-15 19:23:41 -07:00
Madhanraj Chelladurai
d35e7c34eb Add comments for automitive configuration param and meas status
Add comments for automotive configuration parameters and to
masurement status mask

Change-Id: Ia5e16e3044fa15ce15d6ce3c3534898cbd61ef03
CRs-Fixed: 1102724
2017-03-15 19:22:14 -07:00
Saurabh Srivastava
54aa95888b Updating ro.baseband target property value
Updating target derivation logic based on ro.baseband property.
There are new values which must be considered in the target
derivation logic.

Change-Id: I2e81ab00c107247dcb8f1a919136bb61b482e73c
CRs-Fixed: 1105916
2017-03-15 19:20:54 -07:00
Harikrishnan Hariharan
ff37310f17 Fix issue of incorrect set of used_in_fix flag
Due to incorrect check for SVID for GNSS systems in location
engine ReportSv function, incorrect used_in_fix flag was set.
Modify the condition check to be based on the constellation
system ID, to set the used_in_fix flag.

Change-Id: Ic74583257c2925361dc68a9865cd80271167bf0c
CRs-Fixed: 1102862
2017-03-16 10:17:39 +08:00
Harikrishnan Hariharan
da20b15129 Update the device node to check for MDM systems
To identify the target as MDM, we need to check for "/target"
node mdm targets instead of "/dev/mdm".

Change-Id: Ibb53acfd06a0a586f2cdca784f475d0a45718581
CRs-Fixed: 1101185
2017-03-15 19:10:32 -07:00
haohuang
1d2ac2023d Add tech_mask in UlpLocation to support report
NLP position source to Android Framework.

Change-Id: I3811e03dddb721b64b5fa4330996087f6c17efec
2017-03-15 19:08:28 -07:00
Naresh Munagala
babc8a9f7c set default supl config to MSB
Default SUPL config bit was set to both
MSA and MSB (0x3), which is causing single shot
request to map to MSA mode always. Modem is not
reporting any position fix for MSA case.

Change-Id: I8a75f9970a0443c9cb22f73a631f85240fcc4519
CRs-Fixed: 1098896
2017-03-16 10:04:52 +08:00
Kevin Tang
3fb8076a5e fixing a race condition on MsgTask::destroy()
when MsgTask::destroy() happens, msg_q_unblock() triggers
the running thread to come out from blocking state. A race
condition may happen such that that thread may complete
first, causing msgTask obj to be already deleted. A next
allocation may change the value at MsgTask::mThread. Then
when control comes back to destroy(), it may try to check
mThread and call delete on it to crash the program.

mThread is a heap obj, so it is possible to delete it after
the hosting msgTask obj is deleted.  We just have to keep
its value on the stack before calling msg_q_unblock().

Change-Id: If15884815eea05fbfa523ec92aa300ed21ef897c
CR-Fixed: 1091530
2017-03-15 18:33:17 -07:00
Kevin Tang
4d84d3669c getprogname is not defined in glibc
need to remove get_process_name as it is removed
from libcutil. Call getprogname is available in
libc but not LE glibc. Implementing a simple call
wrapper.

Change-Id: I68244b9f7fcbc290222b074f80da03330315ea29
CRs-Fixed: 1080605
2017-03-15 18:10:42 -07:00