Commit graph

1226 commits

Author SHA1 Message Date
Linux Build Service Account
5501f7e1a2 Merge "memory management fixes" 2015-08-21 08:44:24 -07:00
Linux Build Service Account
082ad3c25d Merge "Move the flp definitions to gps-noship" 2015-08-21 08:44:22 -07:00
Hema Iyer Sankaranarayanan
a50aaae62e Handle race condition in HAL post SSR
Post SSR, ensure necessary config injection is done before restarting
an existing tracking session

Change-Id: I1bec8ff1cab3a9762e73a13958fe91c62f40fb92
CRs-fixed: 888187
2015-08-20 13:18:27 -07:00
Kevin Tang
a38a8b8477 memory management fixes
byte long each, but the loc_set_config_entry() util call
writes an int at a time, causing buffer overflow. #2, in
loc_xtra-init(), a data structure wrap happened without
iniializing the unused data fields.

Change-Id: I96b40a330316927d276840a997082fe759263699
CRs-Fixed: 866937
2015-08-18 17:01:12 -07:00
Jiafei Wen
87b6a3fff4 Move the flp definitions to gps-noship
This change moves those definitions related to FLP form
gps_extented_c.h to gps-noship.

Change-Id: I3da452fa3e885af509199cae9fe1b1f24ff48100
CRs-fixed: 801916
2015-08-18 14:47:47 -07:00
ethan.kim
eb925647d5 Set SUPL_ES to 0 in gps.conf
Disabled checking for emergency to accept SUPL

CRs-fixed: 860504

Change-Id: Iad1605242daf8fa1d6bcce3e69caff7811d9843a
2015-08-18 09:03:18 -07:00
Tushar Janefalkar
cc9f8dc03b Add new event mask for timezone.
Modem sends this event to request for
injection of timezone and offset from
UTC

Change-Id: I664db892bf08f7df9680322405df4c38198cb465
CRs-fixed: 868532
2015-08-17 14:07:29 -07:00
Linux Build Service Account
95fbf27ce1 Merge "NMEA generation change to prevent 2Hz reporting" 2015-08-16 18:07:30 -07:00
Linux Build Service Account
7b819b2b03 Merge "Clear passing up memory for LocApiBase function" 2015-08-13 20:06:26 -07:00
Kevin Tang
898c646a7c crash in LocTimer wrapper
LocTimerWrapper implements loc_timer_start/stop calls for backward
compatibility. There is a race condtiion where the wrapper object
could be deleted by the client thread and expireation handling at
rough the same time, which would have the memory freed twice. Now
they are mutext protected.

Change-Id: I25d7466db88a840a8a09e7a476cface48c91d22e
2015-08-10 10:33:49 -07:00
Linux Build Service Account
277f3e30a3 Merge "LocTimer repeated expiration" 2015-08-09 12:02:14 -07:00
Qiang Chen
923698ad8a Clear passing up memory for LocApiBase function
GpsLocation object need to be cleared in case
the base calss member function being called so
that no bad values will be passed up.

Change-Id: I224ecebb3e4137c1baddd99ce0211a0f60d3e5b4
CRs-fixed: 879356
2015-08-06 18:27:07 -07:00
Kevin Tang
9de97acc86 LocTimer repeated expiration
Timer must be removed from epoll as soon as it expires,
otherwise it continuously expire. Current timer removes
from a different thread, this triggers repeated expire
events until the maintain thread gets to remove it.

Change-Id: Ie523bce5069416521d49bc0178d2cad2dd1f04da
CRs-Fixed: 870568
2015-08-04 15:03:32 -07:00
Neethu Joseph
50ae85852a MsgTask thread must call associator function always
All instances of MsgTask were not calling associator
because of a use of a static variable check.
All instance of MsgTask thread must call the associator.

CRs-Fixed: 870450

Change-Id: I18314ec3ca0fe21f4bbd12a505bf552e64e25307
2015-08-04 14:59:48 -07:00
Kevin Tang
bb5d2d4bfb Adding a number of utilities
LocHeap, LocThread, LocTimer, and moved MsgTask to
utils. Also added are LocRankable and LocRunnable
abstract classes.

Change-Id: I76975455d24f2c84a95dcc1b04f79fea562ea5ba
CRs-Fixed: 855222
2015-08-04 14:29:48 -07:00
Dante Russo
078314504d NMEA generation change to prevent 2Hz reporting
GPGGA/GPRMC/GPGSA can be reported two times per
second in some cases where we lose all satellite
signals. We should report these NMEA sentences only
from position report to prevent this.

CRs-fixed: 884484

Change-Id: I123d9f074ca725703c6e90397160b701033e22f0
2015-08-04 09:06:47 -07:00
Dante Russo
509979c395 Remove DeleteAidingData additions
The additions of more Satellite types that
require gps.h changes are removed.

Change-Id: Ib0ab285af7b9bee886c5f7a256d638f2fd7fee9d
2015-08-03 04:18:40 -07:00
Dante Russo
d0faf18e26 Remove DeleteAidingData additions
The additions of more Satellite types that
require gps.h changes are removed.

Change-Id: Ib0ab285af7b9bee886c5f7a256d638f2fd7fee9d
2015-07-16 10:08:11 -07:00
Dante Russo
2572d24770 Move modem power vote out of hal.
The modem power vote feature needs to move
out of hal as it has non-aosp dependency.

CRs-fixed: 831075

Change-Id: Ic83276e9d3c0d125a01f50719102fcd7c0455385
2015-07-16 10:07:49 -07:00
Dante Russo
1b07337c5a LCA additions to ULP and log_util defines.
1. Add two new ulp location sources (PIP and NLP)
ULP_LOCATION_IS_FROM_NLP to mark locations from NLP
ULP_LOCATION_IS_FROM_PIP to mark locations from PIP
2. Introduce a macro for printing exit log with error

CRs-Fixed: 694343

Change-Id: Ifa11803df2ed4fc249a5c339acfeeb5d89bf55d5
2015-07-16 10:07:13 -07:00
Linux Build Service Account
e768ded5ed Merge "Fix implicit declaration errors in gps hal." into private_m_master 2015-07-15 05:01:32 -07:00
Dante Russo
fb8732c9f5 Add compile flag to disable unsupported features.
Allows compilation on builds that have no support
for certain features

Change-Id: I067bcf88432d74b49e60eaab86409f178cf45e7d
2015-07-15 15:22:08 +05:30
Dante Russo
99606eb414 Fix implicit declaration errors in gps hal.
Including string.h and stdlib.h to fix compiler
errors

Change-Id: I4e79c71b9e5691e51850adcc52f52b36f8e3d088
2015-07-15 15:18:06 +05:30
Dante Russo
d33d216267 Add feature set configuration
Some features are flagged out builds
because of a lack of support.

Change-Id: I067bcf88432d74b49e60eaab86409f178cf45e7d
2015-07-13 19:25:58 +05:30
Dante Russo
db7fc90da2 Move modem power vote out of hal
The modem power vote feature needs to move
out of hal as it has non-aosp dependency

CRs-fixed: 831075

Change-Id: Ic83276e9d3c0d125a01f50719102fcd7c0455385
2015-07-13 19:25:38 +05:30
Dante Russo
8834b304c9 Fix implicit declaration errors in gps hal
Including string.h and stdlib.h to fix compiler
errors.

Change-Id: I4e79c71b9e5691e51850adcc52f52b36f8e3d088
2015-07-13 19:25:13 +05:30
Dante Russo
447fe95020 LCA additions to ULP and log_util defines
1. Add two new ulp location sources (PIP and NLP)
ULP_LOCATION_IS_FROM_NLP to mark locations from NLP
ULP_LOCATION_IS_FROM_PIP to mark locations from PIP
2. Introduce a macro for printing exit log with error.

CRs-Fixed: 694343

Change-Id: Ifa11803df2ed4fc249a5c339acfeeb5d89bf55d5
2015-07-13 19:24:44 +05:30
ethan.kim
1dfdcabc87 Add to check ZPP report condition for NMEA generation
NMEA is supposed to be generated only when GPS tracking
is going on in GPS HAL but it was also observed when
ZPP report, so add a check if isInSession is true to
avoid that.

Change-Id: Ia6152fe78243d45e71adccce956d0a727c3f17a2
2015-06-29 13:18:05 -07:00
Bhavna Sharma
f72e672afe Revert "Add new event mask for timezone"
This reverts commit 4e8b3506bf

Change-Id: I09a7ec9fdbeda62636df2a43bc6f3a633b978e99
2015-06-25 21:44:50 -07:00
Linux Build Service Account
2ba5e06544 Merge "Add new event mask for timezone" 2015-06-25 02:25:44 -07:00
Dante Russo
dd823bc93e Add glo and bds to used-in-fix mask
The used-in-fix mask is only keeping track
of GPS SVs, so add a used-in-fix mask for
GlONASS SVs and BDS SVs as well to avoid
NMEA generation issues

CRs-fixed: 826152

Change-Id: I33862cf8d40db1d667179ef68d18703edc359843
2015-06-22 17:43:36 -07:00
Kevin Tang
0826e30db2 Disable ESUPL from configuration
ESUPL initialization path waits on data services to come-up
whichtakes approx. 10 sec adding to TTFF. The GSS in APQ will
not beused for Emergency services (for VoLTE) hence disabling
for APQautomitive

Change-Id: Ifc82abadcaa4a859d344251fac065c5e632c8c6f
2015-06-18 16:02:22 -07:00
Linux Build Service Account
bf2d37a153 Merge "Merge b8e9ad34cd on remote branch" 2015-06-17 14:03:16 -07:00
Qaing Chen
339a4fc58f Fix Memory leak in util/loc_cfg.cpp
deallocate conf_copy after usage.

Change-Id: I8ad4e4e8007a2d8b608f3f74503515f062b86c4b
CRs-fixed: 852809
2015-06-13 20:01:02 -07:00
Linux Build Service Account
060ec8f697 Merge "Fix Memory leak in util/loc_cfg.cpp" 2015-06-13 12:00:47 -07:00
Qiang Chen
4d44ce3d6c Fix gps.conf capabilities overwrited by carrier
If overwrite happened, loc config update will
restore gps.conf capabilities based on target type.

Change-Id: I958ce8da0e8062549f12808aca4aebcf4a7fb95d
CRs-Fixed: 850144
2015-06-12 04:55:02 -07:00
Qaing Chen
634c1bb8bd Fix Memory leak in util/loc_cfg.cpp
deallocate conf_copy after usage.

Change-Id: I8ad4e4e8007a2d8b608f3f74503515f062b86c4b
CRs-fixed: 852809
2015-06-11 17:51:35 -07:00
Linux Build Service Account
a1d7e82e91 Merge b8e9ad34cd on remote branch
Change-Id: If986d69ef5a7b991b47bfe28b0cf3d57c4b76975
2015-06-11 01:14:29 -06:00
Qiang Chen
a26bc76b9c Fix gps.conf capabilities overwrited by carrier
If overwrite happened, loc config update will
restore gps.conf capabilities based on target type.

Change-Id: I958ce8da0e8062549f12808aca4aebcf4a7fb95d
CRs-Fixed: 850144
2015-06-09 05:54:24 -07:00
Tushar Janefalkar
4e8b3506bf Add new event mask for timezone
Modem sends this event to request for
injection of timezone and offset from
UTC

Change-Id: Ie94f660efc3163cbde243a9bccb94d37785349b3

CRs-fixed: 846501
2015-06-01 10:42:46 -07:00
Qiang Chen
18d8153915 Removed unused code and unnecessary notice files
libloc_api-rpc code is not built for any targets,
so it's removed. NOTICE file is unnecessary and
can be remvoed.

Change-Id: I7da6f0d5a7d90fd4ad7ef51d9eaee88d2a7a20ac
CRs-fixed: 827856
2015-05-09 02:24:30 -07:00
Qiang Chen
b8e9ad34cd Removed unused code and unnecessary notice files
libloc_api-rpc code is not built for any targets,
so it's removed. NOTICE file is unnecessary and
can be remvoed.

Change-Id: I7da6f0d5a7d90fd4ad7ef51d9eaee88d2a7a20ac
CRs-fixed: 827856
2015-05-08 21:28:36 -07:00
Linux Build Service Account
9eb36c357a Merge "Removed unused code and unnecessary notice files" 2015-05-08 18:45:04 -07:00
Dante Russo
8a3533bd4a Remove reporting gps status from loc eng layer
GPS Status is reported from Loc Api layer, so
reporting it in Loc Eng layer in addition is
redundant. Also, SSR should not send engine on
status when not in a session.

Change-Id: I10bc2d112574de0016110e193d6c2cd071b00b2a
CRs-fixed: 826256
2015-05-07 03:50:06 -07:00
Qiang Chen
892019f6c3 Removed unused code and unnecessary notice files
libloc_api-rpc code is not built for any targets,
so it's removed. NOTICE file is unnecessary and
can be remvoed.

Change-Id: I7da6f0d5a7d90fd4ad7ef51d9eaee88d2a7a20ac
CRs-fixed: 827856
2015-05-05 15:31:00 -07:00
Dante Russo
9f7f4bd6d2 Remove reporting gps status from loc eng layer
GPS Status is reported from Loc Api layer, so
reporting it in Loc Eng layer in addition is
redundant. Also, SSR should not send engine on
status when not in a session.

Change-Id: I10bc2d112574de0016110e193d6c2cd071b00b2a
CRs-fixed: 826256
2015-04-28 18:08:37 -07:00
Linux Build Service Account
5afa84fe91 Merge "Adding Mutex for Creating Context" 2015-04-15 00:02:21 -07:00
Jiafei Wen
7fa3b1bd2a Adding Mutex for Creating Context
Adding lock for creating foreground context
and background context, preventing any possible
race condition.

CRs-fixed: 820078
Change-Id: I7ace685622904ee2aa12f317540f9c04880acc70
2015-04-14 21:55:36 -07:00
Linux Build Service Account
45e27ba7b8 Merge "Adding Mutex for Creating Context" 2015-04-14 17:49:08 -07:00
Jiafei Wen
a284b9a83b Adding Mutex for Creating Context
Adding lock for creating foreground context
and background context, preventing any possible
race condition.

CRs-fixed: 820078
Change-Id: I7ace685622904ee2aa12f317540f9c04880acc70
2015-04-09 11:00:22 -07:00