Commit graph

4943 commits

Author SHA1 Message Date
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
Ajay Dudani
6f36c0ec74 Silence more gps function tracing logs
Change-Id: I33f672950f59ad739362263d212424f8f55ab88b
2012-09-21 19:13:34 -07:00
Kevin Tang
af0b025a0a QMI LOC and Loc API update:
Inject motion data and Get NI Geofence List;
subsystem restart over QMUXD;
CR 368109
SGLTE CID / OOS / NI SUPL INIT

Change-Id: I3bd77e87de61c2c2565bbb151d661c717367c0ed
2012-09-20 19:05:59 -07:00
Linux Build Service Account
48cd8b423b Merge "gps: AP NMEA generation" 2012-09-19 13:33:15 -07:00
Linux Build Service Account
6947e9cb07 Merge "gps: launch GSS on bootup even if GPS is disabled" 2012-09-19 02:54:55 -07:00
Dante Russo
a3409617b6 gps: AP NMEA generation
Generate NMEA sentences on the AP

Change-Id: Ifc9e9263868ab4dec450bef35c53c441c881a072
2012-09-17 07:34:08 -07:00
Ajay Dudani
ca3538229b gps: Fix typo in checking for qmi-framework
b/7175603

This caused one of the gps related libraries to be not built in the full tree,
causing GPS failure

Change-Id: Iff51c1a588a22f0b46b075ebf27d2b6493b97e40
Signed-off-by: Iliyan Malchev <malchev@google.com>
2012-09-16 15:51:00 -07:00
Ajay Dudani
197fe088f7 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
Signed-off-by: Iliyan Malchev <malchev@google.com>
2012-09-15 13:44:20 -07:00
Linux Build Service Account
24d928186f Merge "gps: control session state evt from HAL, not modem" 2012-09-15 12:15:05 -07:00
Ajay Dudani
ac8fa07a02 gps: control session state evt from HAL, not modem
Suppress the registering for QMI_LOC_EVENT_MASK_FIX_SESSION_STATE_V02
event from modem, that is normally responsible for generating
GPS_STATUS_SESSION_BEGIN and GPS_STATUS_SESSION_END, and instead
initiate these events from hal from when we get GPS_STATUS_ENGINE_ON
and GPS_STATUS_ENGINE_OFF.

Change-Id: I9d220bef7ee4f989a3982d888ed46279861f612d
2012-09-14 17:49:49 -07:00
Dante Russo
4d0a381848 gps: launch GSS on bootup even if GPS is disabled
Move the launching of GSS from loc_init to
get_gps_interface, since loc_init is only called
by AFW when GPS is enabled.

CRs-fixed: 399637
Change-Id: I7cf8500f6a345f3bef71f717c595ea734da2bff2
2012-09-14 13:47:20 -07:00
Linux Build Service Account
4b16112ce5 Merge "GPS: fix the issue that GNSS position report are dropped in PPC based target" 2012-09-11 15:57:13 -07:00
Vineela Tummalapalli
06ce79b8fa GPS: fix the issue that GNSS position report are dropped in PPC based target
Change-Id: I94fb2bd12ac8751cbd2366a4cc5fde4b52d17f64
CRs-Fixed: 395398
2012-09-11 18:35:28 +05:30
Ajay Dudani
0620ede4b3 Reduce default logging verbosity to error & warning logs only
Change-Id: I3da98ccc8e1dfc1d0ef9f51bd96d22fc385ba529
2012-09-10 22:03:14 -07:00
Dante Russo
02d13cc646 gps: control session state evt from HAL, not modem
Suppress the registering for QMI_LOC_EVENT_MASK_FIX_SESSION_STATE_V02
event from modem, that is normally responsible for generating
GPS_STATUS_SESSION_BEGIN and GPS_STATUS_SESSION_END, and instead
initiate these events from hal from when we get GPS_STATUS_ENGINE_ON
and GPS_STATUS_ENGINE_OFF

Change-Id: I9d220bef7ee4f989a3982d888ed46279861f612d
CRs-fixed: 370904
2012-09-10 16:58:40 -07:00
Dante Russo
d3b220c611 gps: fix SSR issue
If service list check fails initially while the modem
is not up yet, the rc is not updated after client gets
signaled that the modem is now up.

Change-Id: I5fe05ddad7764874eda45521e9394bfbee0eb85f
CRs-fixed: 385158
2012-09-07 15:13:43 -07:00
Linux Build Service Account
8c9ee75ac6 Merge "gps: add support for msm8974" into jb 2012-09-05 11:39:45 -07:00
Linux Build Service Account
0d9f485c56 Merge "build: Include path to TARGET_OUT_HEADERS in LOCAL_C_INCLUDES" into jb 2012-09-02 11:04:47 -07:00
Linux Build Service Account
23559d02ae Merge "loc_api: Fix QUIPS position being dropped at GPS HAL" into jb 2012-09-01 12:01:52 -07:00
Dante Russo
b4f4652ce2 gps: add support for msm8974
Change-Id: I4a4520bcfb118fea8dfc244efff4837003466d34
2012-08-31 15:48:18 -07:00
Neethu Joseph
332389d67f loc_api: Fix QUIPS position being dropped at GPS HAL
Change-Id: I10606597f39b29fd4b3a8acfacd9a8c17aa9713f
2012-08-29 12:16:57 -07:00
Linux Build Service Account
5a1211b42f Merge "loc_api: Send position technology mask to ulp" into jb 2012-08-26 04:32:23 -07:00
Neethu Joseph
7ce61c42e2 loc_api: Send position technology mask to ulp
Sends the technology mask of the position report to ulp and blocks
the injected wifi fix from getting reported as final

Change-Id: I3a9b390d3d6d9be1a913731d6e8d8ee1d3ced686
2012-08-21 09:38:26 -07:00
woojin.shin
0a49d62c7a gps: enable nmea callback
Add code for calling NMEA callback for receiving NMEA.

Change-Id: I04689cbc166e3db9d4479bf85636363a87176468
2012-08-21 09:04:45 -07:00
Nagender Telkar
b1595d72cb build: Include path to TARGET_OUT_HEADERS in LOCAL_C_INCLUDES
Change-Id: I5cd48e37ef747a021329f8d166320ee88ef2fd3e
2012-08-18 21:48:19 -07:00
Dante Russo
72e3b852de loc_api_v02: Initialize the QMI notifier before looking for service
Looking for a service results in opening and closing the IPC Router
socket. This in turn involves IPC Router to trigger loading & unloading
the modem. Sometimes this causes the race condition between modem unload
and modem coming out of reset.

CRs-fixed: 384906
Change-Id: I61767d3eeab5867f64f94c5d4cdee4272de2dc44
2012-08-15 15:54:24 -07:00
Linux Build Service Account
f2738552cc Merge "gps: merge ics tip into jb" into jb 2012-08-08 21:08:19 -07:00
Dante Russo
cd9e934abe gps: merge ics tip into jb
Merges the following change lists:
Ibdd65ec497ad6996c5d55ca907a995ed63b797cf
I75266b7102f8cd06db7b9bf038ee24c0dfbed822
I398704add524a807ddc088dfd28520dad7668784

Change-Id: I29275e65fc98568625eded942587c87b4ac8d1b9
2012-08-08 14:33:55 -07:00