Commit graph

3570 commits

Author SHA1 Message Date
Linux Build Service Account
6d7116dda4 Merge "gps: do not lock mutex during loc_ioctl" 2012-11-12 17:30:39 -08:00
Tushar Janefalkar
63c5ac48c7 Utility to identify target HW
Earlier this identification was done in loc.cpp
This change moves that to a separate utility.
Also included is a change to not return
a handle to the GPS interface if the target
is found to be MPQ8064.

CRs-Fixed: 418009
Change-Id: I98d5619d2e6e63711a9b56f0af2b3ddd27372871
2012-11-12 10:28:15 -08:00
Linux Build Service Account
a3403fa52c Merge "Loc api v02 support for QMI_LOC rev 2.17" 2012-11-11 17:53:28 -08:00
Anh Nguyen
a2b89ff92f Merge remote-tracking branch 'remotes/quic/partner-android/jb-mr1-dev' into mybranch
* remotes/quic/partner-android/jb-mr1-dev:
  chmod uga-x
  gps: fix for no gps signals after modem reset
2012-11-09 16:21:45 -08:00
Dante Russo
9fd717a6ae gps: do not lock mutex during loc_ioctl
Locking the slot mutext during a loc_ioctl call
can cause deadlock in some rare cases.

Change-Id: I09aa2ad7c67c326fee90447db960895d7f1fb149
CRs-fixed: 412208
2012-11-07 09:45:23 -08:00
Linux Build Service Account
686cee4f8a Merge "Add NULL checks for callbacks" 2012-11-05 18:46:58 -08:00
Tushar Janefalkar
e4f800932f Add NULL checks for callbacks
As a security measure, callbacks
are checked to make sure they are
not NULL pointers.

Change-Id: I391e1cc373e8098449303709d8d1b67d305fb633
CRs-Fixed: 404438
2012-11-05 10:20:16 -08:00
Nitin Singh
5f45c04c89 Loc api v02 support for QMI_LOC rev 2.17
changes to suuport pedometer and motion data control API

Change-Id: I56c87adaa1f717c76bf1ff6eb2d195c92acbd38d
2012-11-02 13:11:57 -07:00
The Android Open Source Project
40b45d7a94 am 16e52e06: (-s ours) Reconcile with jb-mr1-release - do not merge
* commit '16e52e065457fa480e0b684500bc1023ad40bc36':
2012-10-31 09:22:33 -07:00
The Android Open Source Project
16e52e0654 Reconcile with jb-mr1-release - do not merge
Change-Id: Ie52cdeb09f0af68d833ccb50e63d72ab5a5efea2
2012-10-31 09:17:34 -07:00
Iliyan Malchev
f0af7289cb am 8ba1fbee: am c74962df: chmod uga-x
* commit '8ba1fbeef87f451a06919b1d596b79ce09b3daa7':
  chmod uga-x
2012-10-29 17:15:55 -07:00
Iliyan Malchev
8ba1fbeef8 am c74962df: chmod uga-x
* commit 'c74962df0d30bdb176472a1775a794fd93b1cd7a':
  chmod uga-x
2012-10-29 14:31:34 -07:00
The Android Automerger
283486517d merge in jb-mr1-release history after reset to jb-mr1-dev 2012-10-29 11:20:06 -07:00
Iliyan Malchev
c74962df0d chmod uga-x
find -type f -perm +111 -name \*.[ch]\* -exec chmod uga-x {} \;

Bug: 7428209
Change-Id: I991e3fb62a46f4b4cd727ef4b6a4472b4015ce33
Signed-off-by: Iliyan Malchev <malchev@google.com>
2012-10-27 14:22:13 -07:00
The Android Automerger
6f1ee47d21 merge in jb-mr1-release history after reset to jb-mr1-dev 2012-10-19 06:59:46 -07:00
woojin.shin
6fa8714c3a am 22809b1a: am 9365bf1f: gps: fix for no gps signals after modem reset
* commit '22809b1a09d3b5817e2a31ecc5d1e2294f6f7dae':
  gps: fix for no gps signals after modem reset
2012-10-18 14:54:44 -07:00
woojin.shin
22809b1a09 am 9365bf1f: gps: fix for no gps signals after modem reset
* commit '9365bf1ffd633b65bad7f95af90dcbb53e41652b':
  gps: fix for no gps signals after modem reset
2012-10-18 14:52:12 -07:00
woojin.shin
9365bf1ffd gps: fix for no gps signals after modem reset
This fixes the problem that GPS doesn't work until reboot after modem reset.

Bug: 7216911
Change-Id: Ibfee6a28850490548da2e0ccaefdabe9b826b5e9
Signed-off-by: Iliyan Malchev <malchev@google.com>
2012-10-18 13:50:31 -07:00
Linux Build Service Account
353911d007 Merge "XTWiFi: disable coarse position injection when XTWiFi NLP is in use" 2012-10-17 21:52:33 -07:00
Kevin Tang
0529b2b9bb XTWiFi: disable coarse position injection when XTWiFi NLP is in use
Disable coarse position injection from GPS HAL when XTWiFi
Network Location Provider is in use. This is needed to avoid self
learning loop inside modem.

Change-Id: I0526317221d3490c41d0d8d901fbfa4d93e9a0b0
CRs-Fixed: 409409
2012-10-17 14:49:56 -07:00
Linux Build Service Account
f86ec94d37 Merge "Service modem's request for NTP time" 2012-10-15 18:34:52 -07:00
Linux Build Service Account
250adab993 Merge "Remove interpretation of LPP config parameter" 2012-10-12 12:56:10 -07:00
Tushar Janefalkar
d6c8792769 Remove interpretation of LPP config parameter
Instead of having a switch case that sets bits in the
lppconfig mask, the mask is assigned whatever value
was read from gps.conf. The advantage of this being
that if in the future additional bits are added in
lppconfig, there need not be a code change; only
comments in gps.conf have to be updated to inform the
correct value for those additional bits

CRs-Fixed: 406969

Change-Id: I979151b44cd85e98b59b4586fdd49e20a7d7c82b
2012-10-12 10:24:02 -07:00
Linux Build Service Account
020727f661 Merge "BIT:Fixes a bug in HAL for AGPS operation for SGLTE" 2012-10-11 20:43:44 -07:00
Tushar Janefalkar
2051ffae1f Service modem's request for NTP time
Previously, modem's request for NTP time was not supported.
This change enables that request to be serviced through the HAL
and current NTP time is injected into the modem

CRs-Fixed: 406357

Change-Id: I471f98cf57a276902d7991da48cf7244fe798318
2012-10-11 15:07:49 -07:00
Satheesh Jayakumar
0eaa3bab7e BIT:Fixes a bug in HAL for AGPS operation for SGLTE
Enhances HAL to launch the Daemon connection server
for SGLTE targets too.
CRs-Fixed: 409237

Change-Id: I70116eb1f96b8b4dbe39f57dfceb1ab02ef65e4d
2012-10-11 11:54:11 -07:00
Linux Build Service Account
b1c6ba1ffc Merge "dynamically build and load adapter libs" 2012-10-08 04:23:31 -07:00
Kevin Tang
a389eae611 dynamically build and load adapter libs
this is to support bringup efforts. This change will decouple
the dependencies between GPS HAL and proprietary QMI headers,
so that we can build HAL without any proprietary repos.

Change-Id: I7b836d09f4ac6b1a1bdb38f8d6a2bfb90bb5bf01
2012-10-05 18:37:05 -07:00
Linux Build Service Account
b6a9a0d446 Merge "ATL call crash fix" 2012-10-03 03:17:07 -07:00
Linux Build Service Account
3a6bfa4bc3 Merge "BIT:Fixes a bug in the pipe ownership for BIT AGPS interface" 2012-10-02 22:42:33 -07:00
Linux Build Service Account
8dba00b498 Merge "gps: add support for apq8064 v2" 2012-10-02 20:27:59 -07:00
The Android Open Source Project
d2d637cd6d am 6f441d38: (-s ours) Reconcile with jb-mr1-release - do not merge
* commit '6f441d38d863a64a463ae3c5ec188e7e2962b9e2':
  disabled agps state machine delete in cleanup
  gps: report session begin/end on gps start/stop
2012-10-02 09:24:27 -07:00
The Android Open Source Project
6f441d38d8 Reconcile with jb-mr1-release - do not merge
Change-Id: Ifbd9be57ffd54239f7d0b9271f262042394b938e
2012-10-02 09:18:57 -07:00
Satheesh Jayakumar
502865cbdf BIT:Fixes a bug in the pipe ownership for BIT AGPS interface
Changes to assign the correct permissions for 'gps" group for
Rx path from HAL to BIT daemon

Change-Id: I6c5dc4ff0a1379a95888f4d98e88f0174a7a2a79
CRs-Fixed: 400339, 387672
2012-10-01 12:01:36 -07:00
Linux Build Service Account
de8ce86fe4 Merge "gps: report session begin/end on gps start/stop" 2012-10-01 10:33:13 -07:00
Linux Build Service Account
c16468cc8d Merge "QMI LOC bug fix on SGLTE OOS IND" 2012-09-28 16:05:58 -07:00
Dante Russo
5b98ce35cd gps: add support for apq8064 v2
The id for apq8064 v2 is 153 vs apq8064 v1
id of 109, so the id can be either in order
to conclude that the device is apq8064 so
that GSS can be launched.

Change-Id: I8126854f18ba30a1fe46992993185266e9d1db18
CRs-fixed: 405494
2012-09-28 15:31:11 -07:00
Kevin Tang
67754118ce ATL call crash fix
AgpsStatus added with a couple string fields for wifi
which are not NULL ended when they are not used. This
get passed to AFW JNI, and allow UTF8 string with the
open ended buffer with junks in it. It might cause
exception depending on the content of the garbadge.

CRs-Fixed: 405473

Change-Id: If762748a4c63fe1be59491b5d08dbadd479176b3
2012-09-28 14:46:43 -07:00
Mekala Natarajan
fb4152c14b disabled agps state machine delete in cleanup
The current cleanup mismatches agps_init(), so that it the agps state
machines will get deleted in the cleanup but never get recreated next
time apgs_init() is called.

Bug 7216641

Change-Id: Iddba9fd0d90c790e658f14c42c8a25d22b8749c0
2012-09-27 18:21:50 -07:00
Ajay Dudani
d12dd7f6cc gps: report session begin/end on gps start/stop
Since modem does not consistently send
SESSON_END/ENGINE_OFF event, always report
SESSION_END on stop gps and SESSION_BEGIN on
start gps so that the icon is turned on/off
correctly.

Bug 7185242

Change-Id: Ib3954529056a653d7057aedb489be1ccee9eaf1d
2012-09-27 18:21:24 -07:00
Dante Russo
dc7abf9a3d gps: report session begin/end on gps start/stop
Since modem does not consistently send
SESSON_END/ENGINE_OFF event, always report
SESSION_END on stop gps and SESSION_BEGIN on
start gps so that the icon is turned on/off
correctly.

CRs-fixed: 401664
Change-Id: Ib3954529056a653d7057aedb489be1ccee9eaf1d
2012-09-27 15:22:14 -07:00
Kevin Tang
0a28a39125 QMI LOC bug fix on SGLTE OOS IND
Change-Id: I4408beede3d05d6cfb1a9a5ead3a44a31b1263cf
2012-09-27 10:07:13 -07:00
Brian Muramatsu
586a62cda0 Merge "gps: report session begin/end on gps start/stop" into jb-mr1-dev 2012-09-26 18:41:16 -07:00
Mekala Natarajan
205590ae1b disabled agps state machine delete in cleanup
The current cleanup mismatches agps_init(), so that it the agps state
machines will get deleted in the cleanup but never get recreated next
time apgs_init() is called.

Bug 7216641

Change-Id: Iddba9fd0d90c790e658f14c42c8a25d22b8749c0
2012-09-26 17:21:33 -07:00
Ajay Dudani
56de3d4311 gps: report session begin/end on gps start/stop
Since modem does not consistently send
SESSON_END/ENGINE_OFF event, always report
SESSION_END on stop gps and SESSION_BEGIN on
start gps so that the icon is turned on/off
correctly.

Bug 7185242

Change-Id: Ib3954529056a653d7057aedb489be1ccee9eaf1d
2012-09-26 16:38:31 -07:00
Linux Build Service Account
40f4d0d40d Merge "LOC_API: Modify LOC_API to support MSAPU client." 2012-09-25 08:01:47 -07:00
Linux Build Service Account
acc44b1af1 Merge "LOC_API: Add group permissions after creating the pipe." 2012-09-25 08:01:03 -07:00
Amol Mahesh
899ebaa3de LOC_API: Modify LOC_API to support MSAPU client.
Modify LOC_API to support MSAPU client which would also
request for the access to wifi network.

Change-Id: I74a5f83484953c52437855467b04c2a4c2ccfa27
2012-09-24 13:44:50 -07:00
Amol Mahesh
a03322f3a7 LOC_API: Add group permissions after creating the pipe.
Add the group permissions to the pipe after creation so
that it can be accessed by the group.

Change-Id: Ib42639ee8a46a498c4e246bc448fe8267fd5fa7d
2012-09-24 13:41:46 -07:00
Linux Build Service Account
7da07e83ff Merge "QMI LOC and Loc API update:" 2012-09-22 09:53:09 -07:00