Commit graph

148 commits

Author SHA1 Message Date
Dante Russo
891005e20c Move gnss hal to vendor partition
gnss hal is moved to vendor partition
for binerization enablement

CRs-fixed: 2020778

Change-Id: I8de91d0418ef4b9a1c778c45fe02d27d42c46c97
2017-04-17 15:14:57 -07:00
Linux Build Service Account
f3a58cea24 Merge "Do not send debug NMEA to ulp" 2017-04-10 17:13:52 -07:00
Linux Build Service Account
c65609bf1c Merge "Fix svCount in --GSV nmea sentence" 2017-04-05 14:48:41 -07:00
Kevin Tang
8b98a565a5 Do not send debug NMEA to ulp
Checking in GnssAdapter::reportNmeaEvent to see if the
incoming nmea is debug, in which case we do not route
that to ULP. Debug NMEA is only for SystemStatus
consumption.

Change-Id: Ifb60b9a643ad6aeb732fcaf5a68f868cb55cd88a
CRs-Fixed: 2027134
2017-03-31 19:39:01 -07:00
Linux Build Service Account
905d69ef10 Merge "added new ulp type for raw gnss data" 2017-03-31 11:21:26 -07:00
Naresh Munagala
edac52fa39 added new ulp type for raw gnss data
raw gnss daa type is added to address the
gnss raw fixes to remote clients

Change-Id: I5ebc4a8f10bd52de4e59e29dcf28d6375df02d73
CRs-Fixed: 2007050
2017-03-31 14:24:46 +08:00
Baili Feng
72e7c5da26 Fix svCount in --GSV nmea sentence
Calculate sv count for each kind of constellation.

Change-Id: If0ffa7f07245ea8b1a5bcc9933f6244f0598c575
CRs-Fixed: 2015049
2017-03-31 12:52:39 +08:00
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
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
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
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
a7423ca85d Merge "possible NULL pointer dereference" 2017-03-21 19:20:47 -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
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
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
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
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
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
Dante Russo
52b413eb44 hidl gnss hal 1.0 implementation
Overwrites the default hidl gnss hal implementation
to interface directly to LocationAPI

CRs-fixed: 1112712

Change-Id: I3385911956c0c6c457202a8584b108046c587b36
2017-02-28 16:47:59 -08:00
Dante Russo
c85c8ff673 LocationAPI implementation
Implementation of LocationAPI into gps hal
to be a common API that is called into by platform
specific APIs.

Change-Id: Ie5a7bd217d4ae2175ad49e6aca2fb6ecd4702f3b
CRs-fixed: 1112712
2017-02-28 16:47:50 -08:00
Baili Feng
4bb940c067 Decouple libhardware usage on LE for gnss models
Remove all usage of gps.h and fused_location.h
from all gnss models except gps/fpl hal librarys

Change-Id: I90ba233c6bbe5c31a4cacceeb981833719c871f2
CRs-Fixed: 1067953
2017-02-14 16:51:32 -08:00
Naresh Munagala
dad844f3e0 Platform specific changes for QDR
Added platform specific abstraction apis
for timer modules

Change-Id: I71d5cb847fc6a66227137b2b424f7e631e09cae8
2016-10-12 22:37:13 -07:00
Linux Build Service Account
ee55d0b1ef Merge "Upgrade LE.UM.0.0 to use location.lnx.2.0-rel" 2016-08-15 21:56:39 -07:00
Bhavna Sharma
cd13c6577d Upgrade LE.UM.0.0 to use location.lnx.2.0-rel
Fix LE compilation issues on location.lnx.2.0-rel
branch.
CRs-Fixed: 1048907

Change-Id: I5a847c82170fba3847c0132d196cd27a3757b662
2016-08-01 16:11:33 -07:00
Saurabh Srivastava
c01fcd784c Adding new target APQ-NoWGR handling
Adding handling for new ro.baseband value provided by target team
If the target does not have WGR (GPS Receiver), we return NULL
GPS and FLP interfaces.

CRs-Fixed: 1033674
Change-Id: I1561518c4f4b0c52ab934feb2fa43e9078c91d86
2016-07-29 11:45:28 +05:30
Bhavna Sharma
8e217e229d Merge remote-tracking branch 'quic/location.lnx.1.0-dev.1.0'
into location.lnx.2.0-dev

CRs-Fixed: 1038354

Change-Id: I87b3a7f33a0bb48783554bf5ecb0140695e40c9d
2016-07-08 12:04:07 -07:00
Madhanraj Chelladurai
4c2156ec8a Merge branch 'quic/LA.AF.1.2.1' into location.lnx.1.0-dev
merge automotive specific changes from LA.AF.1.2.1 into
location development branch

Change-Id: I90a5e60c46bb5b1aafaf4cd9aaf2dcb79449f288
CRs-Fixed: 1017254
2016-06-02 15:33:03 +05:30
Saurabh Srivastava
059605367a Enabling CLANG compilation
Removing LOCAL_CLANG := false from makefiles.
Couple of instances got added back as part of
LE merge.

Change-Id: I7d18d573c1d12597914124e35cb024df3343f0db
CRs-Fixed: 1021759
2016-05-30 23:09:50 +05:30
Vamana Murthi
35877af173 Merge remote-tracking branch 'origin/location.lnx.1.0-rel.1.0' into HEAD
git merge upto CRT tag location.lnx.1.0-00036 to private_n_location.lnx

Change-Id: I922daaa9a8c2745095ec9d425192d3649657e76c
CRs-Fixed: 1015000
2016-05-12 18:11:31 -07:00
Madhanraj Chelladurai
edc2a648b3 gps: include support to check hardware type property
automotive platform introduced a new android property called
ro.hardware.type to detect automotive platform for the
purpose of having automotive specific features.

Added changes in loc_target to detect auto platform.

Change-Id: Ib886b96b2e95dafc151bead041e5fc3d6740c468
CRs-Fixed: 992647
2016-04-27 23:43:17 -07:00
Kevin Tang
f41f1960c4 fixing a LE compilation issue
missing include of a head file. A late check in for Android introduced
this. This blocks LE mainline switching to component model.

Change-Id: Idc93f1ec9b1ccb548d3119e72ce0e3e797f2039f
CRs-Fixed: 1004488
2016-04-17 12:42:19 -07:00
Ruifeng Xu
d4c4fbf56b XTRA Client 2.0
This project implemented XTRA "Enhancements" grouped as XTRA Client 2.0.
1. Added NTP_SERVER config into gps.conf
2. Removed XTRA Client 2.0 Phase 1 code changes
3. Disabled public api to delete aiding data in user build

CRs-fixed: 917950
Change-Id: I18b31da74c9fe0c24d0ced3770f099197ad32d9a
2016-04-15 16:10:34 -07:00
Linux Build Service Account
88e1de76b0 Merge "gps: include support to check hardware type property" 2016-04-12 16:22:39 -07:00
Saurabh Srivastava
5573c31749 Adding fix for KW warning
Fix for buffer overflow possibility for the thread name passed in to
pthread_setname_np() method.

Change-Id: Id323dd058eddcf50d6fd9ec8908e9997b30c561b
CRs-Fixed: 999457
2016-04-08 03:25:02 -07:00
Naresh Munagala
8f54f693ee Fix LA compilation issues after merge
Fixed compilation issues for LA after merging
oe_master with location.lnx.1.0-dev.1.0.

Change-Id: I7940429c369249ab9aa636fe9850c1281cf2dc01
CRs-Fixed: 995520
2016-04-06 09:48:43 -07:00
Kevin Tang
1fbe5b2ff4 Merge commit 'refs/changes/97/1557997/2' into HEAD
Change-Id: I89b9c1e262dcd249589b507449d0921d1aabf3e5
CRs-Fixed: 995520
2016-04-06 09:47:14 -07:00
Madhanraj Chelladurai
4b345c82ac gps: include support to check hardware type property
automotive platform introduced a new android property called
ro.hardware.type to detect automotive platform for the
purpose of having automotive specific features.

Added changes in loc_target to detect auto platform.

Change-Id: Ib886b96b2e95dafc151bead041e5fc3d6740c468
CRs-Fixed: 992647
2016-04-05 10:39:55 +05:30
Madhanraj Chelladurai
c4c29c3ca7 gps: consider nsec while ranking the timer objects
We need to consider nsec as well while ranking timer objects

Change-Id: Ieaad5dfa80b26b90e998618b3cbe1e590fc00839
CRs-Fixed: 991345
2016-03-31 10:25:22 -07:00
Madhanraj Chelladurai
14f0dc1b52 gps: consider nsec while ranking the timer objects
We need to consider nsec as well while ranking timer objects

Change-Id: Ieaad5dfa80b26b90e998618b3cbe1e590fc00839
CRs-Fixed: 991345
2016-03-18 10:56:42 +05:30
Saurabh Srivastava
217e754489 Enabling CLANG compilation and fixing all resulting errors
Removing statement to set LOCAL_CLANG flag explicity to
true. It will be true by default.

Change-Id: I2eaba5a89e64088e3383b962dceaaa7e975e997a
CRs-Fixed: 989476
2016-03-17 12:33:17 +05:30
Deven Patel
285d395703 Revert "Revert "Fix compilation issues for m_master merge into oe_master"."
This reverts commit fa7a874eb0

Change-Id: Id2415d80fa3cbdc124e0a3bdd2722db7f233ad53
2016-03-15 12:20:25 -07:00
Deven Patel
a376de4826 Revert "Revert "Merging m_master changes to oe_master"."
This reverts commit a29688ff34

Change-Id: Iab525a58ddb6a00e119afe19f4f51b07b7f428f2
2016-03-15 12:20:01 -07:00
Deven Patel
a29688ff34 Revert "Merging m_master changes to oe_master".
This reverts commit 1aeb6bad84

Change-Id: Iec0a96e7cdfe55ef5836c92a2ae1cce407f6cd5e
2016-03-07 10:55:20 -08:00
Deven Patel
fa7a874eb0 Revert "Fix compilation issues for m_master merge into oe_master".
This reverts commit ecb67363ee

Change-Id: I7b540247b246ea4caf710247d2c58b55515dae7c
2016-03-07 10:52:46 -08:00