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
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 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
libloc_api: create deferred action thread after client is opened

The deferred action thread uses client_handle, so it needs to be
started after client_handle is valid.

Change-Id: I470d24b746c3dbe1ea70483e3ed4f09032ca315d
libloc_api-rpc: retry calls when busy

This should prevent RPC_LOC_IOCTL_SET_ENGINE_LOCK and other calls
from interfering with each other when loc_api_sync_ioctl is used
from different threads.

Change-Id: I9579ba2a72e9193cb92816758f5ff27bda6718a6
GPS: Fixes mFixInterval = 0 issue in gingerbread

This change modifies the HAL driver so that even if the framework
passes in 0 for fix interval we will transalate it to 1 sec
internally. This is becuase the gps engine can report positions at
the max at 1 Hz frequency.

Change-Id: I8d14ee97cf20c43d050d230b9cc9fd6deac5486c
CRs-Fixed: 279363