summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Set supl_host_set flag in loc_eng_set_servergb-release-7.2Alexander Hofbauer2012-04-131-1/+2
| | | | | | | | | | | | Without this flag GPS mode is always set to GPS_POSITION_MODE_STANDALONE and fixes take ages to complete. Patch 13598000 assumes that supl_host_set or c2k_host_set are always set when there's corresponding configuration but this is actually only true in case loc_eng_set_server_proxy (which isn't called on the Legend) sets them. This patch fixes that. Change-Id: I47bca3566da2a0c4e1783a38a4b14a0b1c6de67d
* qcom gps: Use standalone position mode if no agps servers are setScott Brady2011-10-221-0/+4
| | | | | | | | | GpsLocationProvider defaults to the MSA and MSB assisted gps modes if the device has the capability. This library returns that the device has the capability. Check to see if any agps servers are set; if not fall back to standalone mode. Change-Id: I54a911b028cc685b282661837f1317119713d64a
* libloc: remove duplicate entrycm-7.1.0gingerbread-releaseGiulio Cervera2011-09-061-3/+0
| | | | Change-Id: I67239b322255242af799af5266b16786d83a11c2
* Give AMS50K device a swift kick in the keister to wake the stuck ones them upattn12011-06-251-0/+3
| | | | Change-Id: Ic8c93d9ab64f454f6161b53af0065e3ef621e4a7
* libloc_api: fix format for debug outputChristopher Lais2011-05-061-1/+1
| | | | Change-Id: I74e081297ac2c6601be915e517230d0a52a75150
* libloc_api: xtra injection improvementsZinx Verituse2011-05-062-16/+15
| | | | | | | | | | * Hold the locks only for copying buffer data to reduce the wait time for xtra injection. * Remove some incorrect locks while doing deferred xtra injection. * Switch to buffering the injection if the engine is on, as doing so now functions as intended. Change-Id: I1b75945907242e960ce4b275f10b7f9f8dc17606
* libloc_api: fix status reportingChristopher Lais2011-04-291-65/+56
| | | | | | | Completely rework the status reporting to be more robust, and enable report muting. Change-Id: I740c4ef0512be36ca6a7b774e8a23cc322c14791
* GPS: Fixes mFixInterval = 0 issue in gingerbreadStephen Li2011-04-272-0/+6
| | | | | | | | | | 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
* libloc_api-rpc: retry calls when busycm-7.0.3cm-7.0.2.1Christopher Lais2011-04-253-8/+18
| | | | | | | | 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
* libloc_api: create deferred action thread after client is openedChristopher Lais2011-04-251-10/+10
| | | | | | | The deferred action thread uses client_handle, so it needs to be started after client_handle is valid. Change-Id: I470d24b746c3dbe1ea70483e3ed4f09032ca315d
* libloc_api: provide a default timeout/accuracy for 1240 fix criteriacm-7.0.1Christopher Lais2011-04-242-10/+23
| | | | Change-Id: Ibab47b3f996efa57f8db4ebee4ae2e67eda06789
* libloc_api: do xtra when cb is registered, and retry on failChristopher Lais2011-04-243-7/+25
| | | | | | | | | | 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: use privacy lock on 1240 tooChristopher Lais2011-04-242-4/+11
| | | | Change-Id: I9c1d186224877da568f972391331e8c77cc84d24
* libloc_api: fix possible use of uninitialized variableChristopher Lais2011-04-241-2/+2
| | | | Change-Id: I749dc4db85eed614a95e9e4edde8420f4609724a
* Convert bearing/heading from 10 bit value to degrees on locapi 20000Alexander Hofbauer2011-04-221-0/+5
| | | | | | | Big thanks to Christopher Lais (zinx) who made me aware of the 10 bit value (decimal places). Change-Id: If18aa560a93105f993fb110449d573fe942add4f
* locapi: Add support for locapi version 20000/20002cm-7.0.0Ricardo Cerqueira2011-03-2919-17/+4897
| | | | | | | | | | | 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
* locapi: Add support for locapi version 50000Ricardo Cerqueira2011-03-0120-0/+6284
| | | | | | | | | 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
* gps: Add support for sync ioctlsSteve Kondik2011-02-218-378/+720
| | | | Change-Id: I87fe81e217c99af80e3d9f8f6659404d454531e2
* Generate engine stop/start events when session ends/beginsRicardo Cerqueira2011-02-201-1/+10
| | | | | | | This fixes the "lying" icon in the statusbar by generating the engine events whenever a fix session state changes. Change-Id: Ia2aea73513bcf3c3e7fbd632fe0f344003a8df71
* Destroy client handles after they're closedRicardo Cerqueira2011-02-202-0/+10
| | | | | | | Make sure the connection to the RPC service is shutdown and cleaned up when loc_close() is invoked. Change-Id: I4f8b4d0aa3c2ff9ca5baf4ac07d31aa2e77d6721
* Revert "loc_api: Disable code that completely shuts down our connection with ↵Ricardo Cerqueira2011-02-202-16/+0
| | | | | | | | the GPS" This reverts commit d1be5af3656583146c21387e1cd0379690384c40. Change-Id: I68050f9995b91c673d8cd521c3fd5b886b1b1663
* gps: Require BOARD_USES_QCOM_GPS otherwise use Google versionSteve Kondik2011-02-172-2/+2
| | | | Change-Id: I84059b727d57af03105da5934fc104a9ed7c6e9e
* loc_api: Depend on QCOM librpc for new loc_apiSteve Kondik2011-02-1511-1/+3101
| | | | | | Use Google's loc_api unless we are using QCOM librpc. Change-Id: I6f8912e2bca6ce5f86c6a0330cbb9563c02ebea8
* GPS: Changes to create loc_ni_thread locallyStephen Li2011-02-153-5/+22
| | | | | | | | The thread callback reference is available only during initialization. Hence the NI thread is created and managed locally within libloc_api Change-Id: Ie610143f7f0387043301e0254db4e42e0afb3e0d
* GPS: Fixes a problem stopping the engine while an AGPS data is activeStephen Li2011-02-152-2/+40
| | | | | | | | | 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
* loc_api: Remove support for AMSS 6225Ricardo Cerqueira2011-02-1321-4992/+10
| | | | | | | | 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
* loc_api: Disable code that completely shuts down our connection with the GPSRicardo Cerqueira2011-02-132-0/+16
| | | | | | | | | | | | | | | | | | | 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
* gps: Bugfixes and improvements from CodeAuroraSteve Kondik2011-02-1324-1718/+3336
| | | | | | | | | 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: Add support for AMSS 6225Ricardo Cerqueira2010-12-2221-7/+5092
| | | | | | Tested on Z71 (msm7227), works Change-Id: I0e3e51e6058dbf11391d9cfd2b0b8e5c88e899b9
* Add LOCAL_MODULE_TAGSSteve Kondik2010-12-212-0/+4
| | | | Change-Id: I4504d3b36b70dbc1718953dc5a10aa60a7991ef9
* Fix threading problem that resulted in the wakelock being held too long.Mike Lockwood2010-10-271-4/+10
| | | | | | | | | | | | In some circumstances we were calling wait after we had been signalled, causing us to wait until we are signalled again (while holding a wakelock). Now we only want to wait in the deferred action thread if no events are pending and only hold the wakelock while not waiting. BUG: 3127617 Change-Id: I4c6886b2bbdcbcb2c0cf348d89bc5408f0d875b9 Signed-off-by: Mike Lockwood <lockwood@google.com>
* Fix recursive use of mutex introduced in previous change.Mike Lockwood2010-10-261-1/+5
| | | | | Change-Id: I2ef4e1187a03f28712d16920b275d39963ff5ac7 Signed-off-by: Mike Lockwood <lockwood@android.com>
* Work around a problem stopping the GPS engine while an AGPS data call is activeMike Lockwood2010-10-252-1/+31
| | | | | | | | | Sometimes the engine does not send us 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: Iad0d15323ff909c0d371f9db3a6e899e51375a99 Signed-off-by: Mike Lockwood <lockwood@android.com>
* loc_api: Disable code that completely shuts down our connection with the GPSMike Lockwood2010-09-221-1/+14
| | | | | | | | | | | | | 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: I539eef716231cefae3d4d0a8203135da9827b45d Signed-off-by: Mike Lockwood <lockwood@android.com>
* loc_api: Use create_thread_cb for all threads that call back into the framework.Mike Lockwood2010-06-203-35/+10
| | | | | Change-Id: I07c2d5664d3f1a167af56ddd76b60393de170931 Signed-off-by: Mike Lockwood <lockwood@android.com>
* librpc: XDRs and glue code for AMSS 1240Mike Lockwood2010-06-1718-10/+5294
| | | | | Change-Id: Ic69d0085ab8793c6d32f811892cb3e0375b2ef6c Signed-off-by: Mike Lockwood <lockwood@android.com>
* loc_api: rearrange RPC glue to allow having multiple versions of the API.Mike Lockwood2010-06-1723-198/+62
| | | | | | | | | The API version can be chosen by specifying the AMSS version in the board config by setting the BOARD_VENDOR_QCOM_GPS_LOC_API_AMSS_VERSION variable. The existing GPS_LOC_API_HARDWARE has been renamed BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE Change-Id: I25aa313d7f291b874d52dfb7edf151e280061438 Signed-off-by: Mike Lockwood <lockwood@android.com>
* Add more parameters to set_position_mode, notify framework of our capabilities.Mike Lockwood2010-04-141-18/+40
| | | | | Change-Id: Ie53106b89030d48187d17be47482a3c74b837f3e Signed-off-by: Mike Lockwood <lockwood@android.com>
* Hold a wake lock while events are pending for the deferred action thread.Mike Lockwood2010-04-142-67/+92
| | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* Fix deleting aiding data.Mike Lockwood2010-04-061-20/+5
| | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* Enable GPS privacy lock when GPS is disabled.Mike Lockwood2010-04-061-3/+8
| | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* Remove call to loc_apicb_app_deinit() to avoid ARM9 crashes after disabling.Mike Lockwood2010-04-061-2/+2
| | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* loc_api: Repackage as a new GPS HAL module.Mike Lockwood2010-04-0610-17/+94
| | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* Add an empty CleanSpec.mkJean-Baptiste Queru2010-03-081-0/+49
| | | | Change-Id: I304694bc9032ccaa3777885615be15c41447f6a5
* Manual no-op mergeThe Android Open Source Project2010-02-110-0/+0
|\
| * Merge from open-source masterThe Android Open Source Project2010-02-110-0/+0
| |\
| * | loc_api: Process all events in deferred action thread.Mike Lockwood2010-02-022-88/+142
| | | | | | | | | | | | | | | | | | | | | It is not safe to call into framework code from an RPC callback. Change-Id: Idb85590f5648b85ba4dd352136f89652b3128fbe Signed-off-by: Mike Lockwood <lockwood@android.com>
| * | Do not build unless BOARD_GPS_LIBRARIES is set to libloc_apiMike Lockwood2010-02-021-0/+2
| | | | | | | | | | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
| * | loc_api: Send GPS_STATUS_ENGINE_ON and GPS_STATUS_SESSION_ENDMike Lockwood2010-02-021-9/+9
| | | | | | | | | | | | | | | | | | so GpsLocationProvider will release its wake lock when the GPS shuts down. Signed-off-by: Mike Lockwood <lockwood@android.com>
| * | Initial commit of Qualcomm's loc_api GPS library for the MSM platform.Mike Lockwood2010-02-0231-0/+8088
| | | | | | | | | | | | Signed-off-by: Mike Lockwood <lockwood@android.com>