Add LOCAL_MODULE_TAGS

Change-Id: I4504d3b36b70dbc1718953dc5a10aa60a7991ef9
loc_api: Add support for AMSS 6225

Tested on Z71 (msm7227), works

Change-Id: I0e3e51e6058dbf11391d9cfd2b0b8e5c88e899b9
gps: Bugfixes and improvements from CodeAurora

Original commit:
https://www.codeaurora.org/gitweb/quic/la/?p=platform/hardware/qcom/gps.git;a=commit;h=62782d6f5f070a0ad24a2194ae048b69106db97f

Regenerated stubs for AMSS 3200 and 6225.

Change-Id: I57b578b8dfd7bd43c88d25c09eca6e538e65797d
loc_api: Disable code that completely shuts down our connection with the GPS

This brings back commit 9391343952a0ab27a738f5b3de5c5525ecbc096d:

Author: Mike Lockwood <lockwood@android.com>
Date:   Wed Sep 22 14:27:57 2010 -0400

loc_api: Disable code that completely shuts down our connection with the GPS

This avoids a race condition that can crash the BP if the GPS is disabled
in settings while it is running.

This also fixes a problem with the GPS icon in the status bar not
getting removed when the GPS is disabled.

BUG: 3005091

Change-Id: Idb9a87e250629868b959da03be6f77a949ba5baa
loc_api: Remove support for AMSS 6225

6225 was a hack to work around some issues with the original source
code, and it's now unnecessary after the recent "gps: Bugfixes and
improvements from CodeAurora" commit.

Change-Id: Iba013cf3651bcd5dd690b6415cbe02bc4c8e9128
GPS: Fixes a problem stopping the engine while an AGPS data is active

Sometimes the engine does not send the GPS_STATUS_ENGINE_OFF
message, so we end up blinking the GPS icon forever.  Deferring
the loc_eng_stop call until the AGPS activity is done works around
this problem.

Change-Id: I6f325ee8cd89dd6046c54843851f85a54c0d59ed
GPS: Changes to create loc_ni_thread locally

The thread callback reference is available only during
initialization. Hence the NI thread is created and
managed locally within libloc_api

Change-Id: Ie610143f7f0387043301e0254db4e42e0afb3e0d
loc_api: Depend on QCOM librpc for new loc_api

Use Google's loc_api unless we are using QCOM librpc.

Change-Id: I6f8912e2bca6ce5f86c6a0330cbb9563c02ebea8
gps: Require BOARD_USES_QCOM_GPS otherwise use Google version

Change-Id: I84059b727d57af03105da5934fc104a9ed7c6e9e
Revert "loc_api: Disable code that completely shuts down our connection with the GPS"

This reverts commit d1be5af3656583146c21387e1cd0379690384c40.

Change-Id: I68050f9995b91c673d8cd521c3fd5b886b1b1663
Destroy client handles after they're closed

Make sure the connection to the RPC service is shutdown and
cleaned up when loc_close() is invoked.

Change-Id: I4f8b4d0aa3c2ff9ca5baf4ac07d31aa2e77d6721
Generate engine stop/start events when session ends/begins

This fixes the "lying" icon in the statusbar by generating the
engine events whenever a fix session state changes.

Change-Id: Ia2aea73513bcf3c3e7fbd632fe0f344003a8df71
gps: Add support for sync ioctls

Change-Id: I87fe81e217c99af80e3d9f8f6659404d454531e2
locapi: Add support for locapi version 50000

Enable with:
BOARD_USES_QCOM_GPS := true
BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := board-name
BOARD_VENDOR_QCOM_GPS_LOC_API_AMSS_VERSION := 50000

Change-Id: I6200dac2a4632ce3cc8e0e38db90a7e4917de2fb
locapi: Add support for locapi version 20000/20002

Enable with:
BOARD_USES_QCOM_GPS := true
BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := board-name
BOARD_VENDOR_QCOM_GPS_LOC_API_AMSS_VERSION := 20000

This will also require an update to librpc, and the usage of librpc-qcom

Change-Id: I2e4b5a99868a34f9a60e9c1fc040d36a333bff88
Convert bearing/heading from 10 bit value to degrees on locapi 20000

Big thanks to Christopher Lais (zinx) who made me aware of the 10 bit
value (decimal places).

Change-Id: If18aa560a93105f993fb110449d573fe942add4f
libloc_api: fix possible use of uninitialized variable

Change-Id: I749dc4db85eed614a95e9e4edde8420f4609724a
libloc_api: use privacy lock on 1240 too

Change-Id: I9c1d186224877da568f972391331e8c77cc84d24
libloc_api: do xtra when cb is registered, and retry on fail

Fix a race condition in libloc_api where the xtra data can be requested
before the callback is registered, losing the call to the callback
without a retry.

Also, retry xtra uploads when they fail (Kineto GAN proofing)

Change-Id: I4b2deb1ebba67b55688e322cd4cce89a2dfb71c0
libloc_api: provide a default timeout/accuracy for 1240 fix criteria

Change-Id: Ibab47b3f996efa57f8db4ebee4ae2e67eda06789