Commit graph

4621 commits

Author SHA1 Message Date
Linux Build Service Account
2f1653763d Merge "loc timer util fix to handle the race condition" 2014-08-05 17:11:39 -07:00
Tushar Janefalkar
6925f8a04a Revert "Revert "Remove masks for Glonass""
This reverts commit 08237e52b6.

Change-Id: I4e507ef8777d45825234914841562e7f2901bae0
2014-08-05 15:00:31 -07:00
Kevin Tang
33e5fd9015 loc timer util fix to handle the race condition
loc timer util stop() routine may have race condition
with the timer thread, when timer expires at the same
time stop() routine tries to lock mutex.  The race
condition can go 2 ways:
* timer thread expires, unlocks mutex, context switch,
stop() thread acquires lock, context switch, timer
thread destroys mutex.  Destroy will fail, resulting
mutex leak.
* timer thread expires, unlocks mutex, destroys mutex,
stop() acqures lock, signal, and releases lock. Would
be super rare conditions though.

Fix is that we give 5 seconds for stop() thread to
give up the lock when destroy. After that the timer
thread will release the mutex and go on destroy.
Meanwhile the stop() thread would check the lock
return to move on with signal and unlock.

Change-Id: Iff9e34d08a1faf0828049de2fede2e7a5d15b161
CRs-Fixed: 699856
2014-08-04 10:28:00 -07:00
Linux Build Service Account
44d7fb9ceb Merge "fixing the SSR recovery race condition" 2014-08-01 09:04:23 -07:00
Linux Build Service Account
0ca5604d21 Merge "Merge tag 'AU_LINUX_ANDROID_KK.04.04.04.010.073' into HEAD" 2014-08-01 08:27:22 -07:00
Kevin Tang
8977164eee fixing the SSR recovery race condition
There is a race condition where when startFix is
called right at the time when modem or griffon
subsystem is down, GPS HAL doesn't get the correct
error code, and therefore the right handling.

Mapped ENGINE_DOWN to ENGINE_OFFLINE, as they are
the same; and modified loc_eng_start_handler to
update the state upon the right error code.

There is a one problem though. General failure is
also handled as SSR. This is because of an unhandled
race condition in the kernel, so the error code
returned and propagated is not deterministic enough
for us to tell if this is SSR. Until that fix is in
place, we might have to treat general failure as SSR
although the side effect should be none. Only
semantically incorrect.

Change-Id: If93823f08428275da171bb22d73a06e38365585b
CR-Fixed: 692085
2014-07-30 18:02:41 -07:00
Sudhir Sharma
aa9a96e724 AU_LINUX_ANDROID_KK.04.04.04.010.073 based on quic/aosp/kk
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.11 (GNU/Linux)
 
 iEYEABECAAYFAlPXonYACgkQoUgPZYCpAfEVqgCg0nHy46bwOfBa0LPbxt0PTV4r
 MGsAnAlTanVV1UfX/HzMGmdNyA0D0VZ4
 =Wxhx
 -----END PGP SIGNATURE-----

Merge tag 'AU_LINUX_ANDROID_KK.04.04.04.010.073' into HEAD

AU_LINUX_ANDROID_KK.04.04.04.010.073 based on quic/aosp/kk

Change-Id: I5ae2317a9d43cde94c587cb292212f1435472607
2014-07-29 17:07:10 -07:00
Linux Build Service Account
c28cb324e7 Merge "Add support for XTRA_VERSION_CHECK QMI LOC msg" 2014-07-24 21:51:23 -07:00
Tushar Janefalkar
c091f138ef Add support for XTRA_VERSION_CHECK QMI LOC msg
A new QMI LOC msg is introduced which injects into
the modem a value that determines whether or not
the version of XTRA is to be checked

Change-Id: I0ef579332d064713ce73d80e66dc8c6fef1c1638
CRs-fixed: 649860
2014-07-21 10:45:06 -07:00
Linux Build Service Account
340744e458 Merge "Changes for GPS HAL compilation" 2014-07-16 04:01:15 -07:00
Linux Build Service Account
db2dcf2cff Merge "Add option to fallback to LocApiV02" 2014-07-16 04:01:15 -07:00
Linux Build Service Account
053bed1aa4 Merge "Merge tag 'AU_LINUX_ANDROID_KK.04.04.04.010.031' into HEAD" 2014-07-08 20:17:19 -07:00
Sudhir Sharma
af6104c65f AU_LINUX_ANDROID_KK.04.04.04.010.031 based on quic/aosp/kk
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.11 (GNU/Linux)
 
 iEYEABECAAYFAlO8DZQACgkQoUgPZYCpAfE0FwCeKxGsLPtFF/FWR+coAoCqL/cl
 bpcAoKwddkDxgpMYfbQbTuGJOakiXjuj
 =4Acq
 -----END PGP SIGNATURE-----

Merge tag 'AU_LINUX_ANDROID_KK.04.04.04.010.031' into HEAD

AU_LINUX_ANDROID_KK.04.04.04.010.031 based on quic/aosp/kk

Change-Id: I59b376b2feccb9daa02374529095be179247dbaa
2014-07-08 13:00:45 -07:00
Tushar Janefalkar
cd5c8489bc Changes for GPS HAL compilation
Remove dependence on android_runtime and
return invalid value if gps daemon is not
responding

CRs-fixed: 649065

Change-Id: I16dbf1bffe6193114c1da08730f0627377179a2a
2014-07-03 15:08:51 -07:00
Tushar Janefalkar
fd8712acd2 Add option to fallback to LocApiV02
In case the lbs or izat libs are not
present, fall back to LocApiV02 to
obtain the qmi client handle. This
change will enable basic GPS functionality
without lbs or izat lib dependencies

CRs-fixed: 649065

Change-Id: Ic2c8418d785e891ad0a660a615cd5111fafc4ff2
2014-07-03 15:07:08 -07:00
Linux Build Service Account
cccee0b97a Merge "Add raw uncertainty to inject position api" 2014-07-01 14:17:36 -07:00
Linux Build Service Account
8f83363373 Merge "Merge tag 'AU_LINUX_ANDROID_KK.04.04.02.010.465' into HEAD" 2014-06-24 23:04:35 -07:00
Dante Russo
a857b72129 Add raw uncertainty to inject position api
New qmi loc api v02 adds a raw uncertainty to the
inject position api, which will be used by the
geofence engine.

Change-Id: I307619006c799c31121941ac5c11bf62f4691c86
CRs-fixed: 682963
2014-06-24 17:04:30 -07:00
Sudhir Sharma
ab61ad9cf7 AU_LINUX_ANDROID_KK.04.04.02.010.465 based on quic/aosp/kk
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.11 (GNU/Linux)
 
 iEYEABECAAYFAlOoKSoACgkQoUgPZYCpAfH/0gCgrdvhLCxiMA17ewmFLtDKdCvc
 Wl0AmwZmm+tU/pJ1+wKBmJaFRd38+99K
 =J3/5
 -----END PGP SIGNATURE-----

Merge tag 'AU_LINUX_ANDROID_KK.04.04.02.010.465' into HEAD

AU_LINUX_ANDROID_KK.04.04.02.010.465 based on quic/aosp/kk

Change-Id: I0690d66e8010c49ad5af34e8b104280530381c1c
2014-06-24 10:57:08 -07:00
Tushar Janefalkar
c828f0a56a Changes for GPS HAL compilation
Remove dependence on android_runtime and
return invalid value if gps daemon is not
responding

Change-Id: I16dbf1bffe6193114c1da08730f0627377179a2a
2014-06-17 13:46:56 -07:00
Tushar Janefalkar
08237e52b6 Revert "Remove masks for Glonass"
This reverts commit 7d128bf31e

Change-Id: I4e8a42e253237fbf23f02da996b94555653001f5
2014-06-17 11:23:10 -07:00
Tushar Janefalkar
e8958a3aab Add option to fallback to LocApiV02
In case the lbs or izat libs are not
present, fall back to LocApiV02 to
obtain the qmi client handle. This
change will enable basic GPS functionality
without lbs or izat lib dependencies

Change-Id: Ic2c8418d785e891ad0a660a615cd5111fafc4ff2
2014-06-17 11:20:01 -07:00
Dante Russo
9ffb10553d Revert "Avoid GPS build for MSM8916 64bit"
This reverts commit 0daddfd2fd.

Change-Id: I3138bb2d600618cfec5ec7588d5359b15a07cbad
2014-06-17 11:18:48 -07:00
Linux Build Service Account
0f6ba69df4 Merge "Revert "Avoid GPS build for MSM8916 64bit"" 2014-06-12 13:26:52 -07:00
Linux Build Service Account
427c58c701 Merge "KW warnings" 2014-06-10 11:54:53 -07:00
Kevin Tang
6fc3071b05 KW warnings
dlsym on gps_geofence_get_interface should check NULL,
and gmtime return should also check NULL

Change-Id: I23ab17f016ad9f4667ac197c12f016433c48af90
CRs-Fixed: 674884
2014-06-03 16:14:56 -07:00
Linux Build Service Account
c1f630ca55 Merge "Inject feature config" 2014-05-14 03:06:10 -07:00
Linux Build Service Account
8244c7075a Merge "Sending HW FLP request to ULP" 2014-05-09 01:05:25 -07:00
Linux Build Service Account
aa3acb3da2 Merge "NI Emergency overrides a pending NI" 2014-05-08 20:06:52 -07:00
Pandari Sabhapathi
e0895bfa00 Sending HW FLP request to ULP
ULP Should be informed of all sessions in progress.
-Added methods to ULP Proxy for the purpose of reporting
batching sessions to ULP

CRs-fixed: 657554

Change-Id: I6e1d9728a0462b86c4ffe73bd5a6ac98e7c0fafe
2014-05-08 10:56:31 -07:00
Dante Russo
c7265bbe1d Revert "Avoid GPS build for MSM8916 64bit"
This reverts commit 0daddfd2fd.

Change-Id: I3138bb2d600618cfec5ec7588d5359b15a07cbad
2014-05-07 17:12:49 -07:00
Linux Build Service Account
a267a29dc3 Merge "Logging correction when printing IPV6 bearer type" 2014-05-06 21:34:20 -07:00
Bhavna Sharma
89c671f187 Logging correction when printing IPV6 bearer type
Entry for AGPS_APN_BEARER_IPV6 was missing from NAME_VAL.

CRs-Fixed: 660143

Change-Id: If439dbc6b47c0483cf9b5d9ea37307c69953bfed
2014-05-06 11:39:15 -07:00
Tushar Janefalkar
9e585cb7bf Inject feature config
This change injects feature config
through using the first available
context

CRs-fixed: 616544

Change-Id: Idea5bd8acfff729589c071f20bec18679c89ab25
2014-05-05 12:10:59 -07:00
Linux Build Service Account
3c8b3ff4fd Merge "Assure associate callback is called in msgTask" 2014-04-18 13:42:24 -07:00
Linux Build Service Account
a33a1fbee8 Merge "Only output NMEA for GNSS/Sensor/Hybrid locations" 2014-04-16 21:48:07 -07:00
Dante Russo
996a633c02 Assure associate callback is called in msgTask
If MsgTask thread is created before context that
has associator is initialized, the associator
callback was not getting called.

CRs-fixed: 650061

Change-Id: I45d81e1b49fc8dcbc93d1ceef4fef38468ecb4f8
2014-04-16 10:36:03 -07:00
Dante Russo
bbb724335f NI Emergency overrides a pending NI
Network Initiated notify verify request that is
the emergency type should override any pending
Network Initiaed notify verify session.

CRs-fixed: 563670

Change-Id: I2d05449a8ebaa1dfa08f4c839422a7adbd1b871d
2014-04-11 09:06:02 -07:00
Linux Build Service Account
61e32edfdd Merge "Avoid GPS build for MSM8916 64bit" 2014-04-11 00:32:08 -07:00
Linux Build Service Account
26b06cdc90 Merge "a change to support c++11" 2014-04-09 17:10:15 -07:00
Kevin Tang
7b268f9c10 a change to support c++11
The logging macro seems to break c++11 toolchain. A change
is make to address that

Change-Id: I5056fe0431ff064ac4805facbb59195fe04b154e
CRs-Fixed: 646028
2014-04-09 13:24:05 -07:00
Linux Build Service Account
5cdcb2c17a Merge "Fix wrong log tag" 2014-04-08 16:59:34 -07:00
Tushar Janefalkar
a6e2f769a8 Fix wrong log tag
The log tag for ATL open success was
mistakenly set as ATL closed

Change-Id: I755fb2545226e09135935956796c951a7e33dab9
CRs-fixed: 645283
2014-04-08 12:14:18 -07:00
Linux Build Service Account
3d86280b90 Merge "Inject location only on CPI disabled" 2014-04-04 10:03:49 -07:00
Dante Russo
f9a26b2a68 Inject location only on CPI disabled
Includes inject API from GPS HAL and FLP HAL

CRs-fixed: 640452

Change-Id: Ied947e2862fb9ecca0142f9608cdcc889cac8a2b
2014-04-03 14:41:53 -07:00
Linux Build Service Account
971493d8bb Merge "Close MDM node on shutdown" 2014-04-03 11:37:55 -07:00
Linux Build Service Account
638bbddfef Merge "Change to CPI logic" 2014-04-02 10:21:08 -07:00
Tushar Janefalkar
25244b3660 Close MDM node on shutdown
Added call to close mdm power node
as part of procedure to shutdown

CRs-fixed: 640576

Change-Id: Ie0c05272249401f6cf13e9443417b0ba5de1be52
2014-04-01 14:38:34 -07:00
Dante Russo
fea5de1caf Only output NMEA for GNSS/Sensor/Hybrid locations
We don't want to output even blank NMEA for Wifi
or Cell based locations.

Change-Id: I5848686c23c4a5911be1d7150fee4879cd180c65
CRs-fixed: 640049
2014-03-31 18:02:14 -07:00
Linux Build Service Account
6af016354e Merge "Adds power voting for QCA1530 SoC" 2014-03-31 02:18:49 -07:00