summaryrefslogtreecommitdiffstats
path: root/gnss
Commit message (Collapse)AuthorAgeFilesLines
* Extend IAGnss.hal to address requestRouteToHost deprecationAnil Admal2018-12-2110-6/+320
| | | | | | | | | | | | The framework networking component method requestRouteToHost() in class ConnectivityManager used to support the IAGnss.hal interface is deprecated. This requires changes to the IAGnss.hal interface to pass network handle to the GNSS HAL implementation in order to setup SUPL connections. Bug: 25876485 Test: atest VtsHalGnssV2_0TargetTest on cuttlefish Change-Id: If0ecd480879da37508f710620975a198e674f3df
* Merge "Bluesky flags to follow bit shift represntation"TreeHugger Robot2018-12-191-2/+2
|\
| * Bluesky flags to follow bit shift represntationgomo2018-12-191-2/+2
| | | | | | | | | | | | Bug: 111441283 Test: Existing tests pass Change-Id: I62eae7272d63d07fbb0e2d841288444f5e9af3d2
* | Add TestGnssMeasurementCodeType VTS testYu-Han Yang2018-12-186-25/+219
| | | | | | | | | | | | | | | | | | | | - add default implementation to mock reporting measurements. Bug: 120277977 Fixes: 120277977 Test: atest VtsHalGnssV2_0TargetTest Change-Id: I881f105874a992327551ef616860d7bd61e4bf83
* | Merge "Add vintf_fragment to GNSS HAL 2.0"Yu-Han Yang2018-12-192-0/+13
|\ \ | |/ |/|
| * Add vintf_fragment to GNSS HAL 2.0Yu-Han Yang2018-12-142-0/+13
| | | | | | | | | | | | Bug: 120277977 Test: atest VtsHalGnssV2_0TargetTest Change-Id: I272d0736537047bce6783e678a93560858033ada
* | Replace network type with network capabilities in IAgnssRil.halAnil Admal2018-12-1510-0/+276
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The NetworkType enumerator in IAGnssRil.hal is mapped to the transport type constants (TYPE_MOBILE, TYPE_WIFI, etc.) in the framework class ConnectivityManager. These constants are deprecated and their use should be replaced with network capabilities instead. The GNSS HAL implementation should make decisions based on the reported capabilities of a network and not on the type of the network. Bug: 117768826 Test: Tested with code instrumentation to verify that the @2.0::AGnssRil.hal updateNetwork_2_0() method implementation is called with correct arguments. Test: Verified @1.0::AGnssRil.hal backward compatibility on a Pixel 3 device. Change-Id: I8f7f8ca8f5254815702b6d5a89dcb4e53a289cfe
* | Minor edits to the correction definitionsgomo2018-12-101-6/+15
|/ | | | | | Bug: 111441283 Test: Existing tests pass. Change-Id: I370efcf4ca018c99e8d3aa8106b83129f1c54aac
* Bluesky(go/bluesky) HAL and Default Implementationgomo2018-12-0210-7/+310
| | | | | | | | | | | | | - Create new sub-package of gnss with the name Bluesky - Add bluesky/1/0/IBlueskyCorrections.hal - Add bluesky/1.0/types.hal - Modify IGnss.hal adding getExtensionBlueskyCorrections() - Modify IGnssCallback.hal exteding capability enum for Bluesky - Default Implementation Bug: 111441283 Change-Id: I4ab2ecae7f0c43bb2b708741e3a55aba1b015db0 Test: Existing tests pass.
* Merge "Add GNSS HAL v2.0"Yu-Han Yang2018-11-3018-0/+1091
|\
| * Add GNSS HAL v2.0Yu-Han Yang2018-11-2818-0/+1091
| | | | | | | | | | | | | | | | | | | | | | - Add GnssMeasurementCodeType in IGnssMeasurementCallback. - Add VTS tests. - Add default implementation. Bug: 112260995 Change-Id: Ie319cc793e9b23e86d672c826c4f5fd6a0f90d04 Fixes: 112260995 Test: atest VtsHalGnssV2_0TargetTest
* | pack VTS cc_test binaries as general-testsKeun Soo YIM2018-11-272-0/+2
|/ | | | | | Test: make general-tests Bug: 120093339 Change-Id: I363450d205868f900e4925ccff1430e2a569f2a4
* Fix typo in Javadoc of GnssSvInfoYu-Han Yang2018-11-121-5/+4
| | | | | | | | | There is no behavioral change. Bug: 119107672 Change-Id: Iac1452fca311025e2a4b9b194a6e69265736330d Fixes: 119107672 Test: Javadoc update only.
* Clarify C/No reflects the tracked portion of a GnssMeasurementYu-Han Yang2018-10-191-0/+4
| | | | | | | Test: Comment updates only. Verified it builds. Bug: 117942478 Change-Id: Ia069fbdb396b5bfc76d3dbeabd0c54622f568ade Fixes: 117942478
* Clarifying GnssMeasurement and Clock commmentsWyattRiley2018-10-041-32/+55
| | | | | | Change-Id: Ia51b16a2904ab43f67464fc91321fad99a2bb614 Fixes: 77812939 Test: Comments only, verified builds
* Allow more time to un-blacklist strongest sateliteWyattRiley2018-09-281-26/+51
| | | | | | | | | | Also fixes a few intermediate values and confusing logging discovered during weak GPS signal testing. Change-Id: I2d3c5113956132ef4b60e28653aacf89f1159d83 Fixes: 116170859 Test: Deep indoor fail and windowledge pass of VTS on test phone, and logcat values check.
* Set the floor value of time estimate as 2017 Jan 01 00:00:00 GMTYu-Han Yang2018-08-291-1/+1
| | | | | | | | | | | | | | - The VTS test checks if the time estimate is a sane value. Thus, any arbitrary sane value is acceptable. Here we make it consistent to IGnssDebug.hal, where a comment mentions 2017 Jan 1 as an example of the value. Bug: 110094003 Test: make vts, and tested on device. Merged-In: Ic4f6b597a718ea3e98a67c7939f9e6930d44d224 Change-Id: Ic4f6b597a718ea3e98a67c7939f9e6930d44d224 (cherry picked from commit 5fa43c83e90ccd0f852c89feb0e071aad195d7b2) (cherry picked from commit 4f0d19ebff1f4a3eb565d8432f44b561ebd4abe2)
* Improve VTS GNSS 1.1 reliability.WyattRiley2018-08-283-17/+42
| | | | | | | | | | | | | | | | Allow VTS test for low power mode to handle certain vendor issues that supply one extra location at the start of low power mode. Allow more time for GNSS first fix, and warmup as needed given limited VTS access to AGPS. Bug: 110626730 Bug: 110987651 Test: (TODO) Passes on device. Merged-In: Ieeefd7fcd45890b03dffbbee965e1d9b17805c4c Change-Id: Ieeefd7fcd45890b03dffbbee965e1d9b17805c4c (cherry picked from commit 5ea5dda2c33f9d2f1db77d6b4493f0eb356c2937)
* Delete time/position in InjectDelete instead of Delete_allYu-Han Yang2018-08-281-1/+5
| | | | | | | | | | - DELETE_ALL will delete XTRA. Bug: 110626730 Test: run VTS test on device. Merged-In: I4f01430f24f92238193d3de6b6fbb31e81e9f006 Change-Id: I4f01430f24f92238193d3de6b6fbb31e81e9f006 (cherry picked from commit 84cff99b2fcae8757704b0384552aebe290165ed)
* Inject last location in InjectBestLocation VTS testYu-Han Yang2018-08-281-18/+3
| | | | | | | | Bug: 110626730 Test: run VTS on device. Merged-In: I6f57dd7f9164dacf011f25412e55fcd22821aca0 Change-Id: I6f57dd7f9164dacf011f25412e55fcd22821aca0 (cherry picked from commit bb372e5984a612cb6972e837662d64a90785fbd8)
* Merge "Tolerate 1 sv status in GNSS blacklist VTS test" into pie-vts-devTreehugger Robot2018-08-281-5/+10
|\
| * Tolerate 1 sv status in GNSS blacklist VTS testYu-Han Yang2018-08-281-5/+10
| | | | | | | | | | | | | | | | Bug: 110969497 Test: run VTS test on device. Merged-In: I26345bb62513da8530cb48672e5f59a915817cb4 Change-Id: I26345bb62513da8530cb48672e5f59a915817cb4 (cherry picked from commit 91cc8f4832882e8fa9baa04d717184636a57314d)
* | Add VTS test to verify scheduling capabilityVishal Agarwal2018-08-281-0/+10
|/ | | | | | | | | | | 2018+ devices must support GNSS capability scheduling Test results: go/vts-review-bucket/pi-dev/4267645 Bug: 109642198 Test: atest VtsHalGnssV1_0TargetTest Merged-In: I7394674abca8f8c40ab30403be6b41bbbb279956 Change-Id: I7394674abca8f8c40ab30403be6b41bbbb279956 (cherry picked from commit e3ff41fc12fb7a80ee533e4459035ef4545c174d)
* Set lowPowerMode as false in StartAndGetLocationsYu-Han Yang2018-05-311-1/+1
| | | | | | | Bug: 80544245 Change-Id: Icf85e9b8ed433dbdb759b54c4ba7b5e7a21b7a26 Fixes: 80544245 Test: VtsHalGnssV1_1TargetTest --gtest_filter=*Blacklist*
* Update VTS test to blacklist only non-GPS satellitesYu-Han Yang2018-05-222-7/+14
| | | | | | | Bug: 79481978 Change-Id: Ieef04d816448d37ae54c61375db4955d4d3a24d7 Fixes: 79481978 Test: make vts
* Update doc in Gnss Hal v1.1Yu-Han Yang2018-04-022-13/+16
| | | | | | | Bug: 74949950 Fixes: 74949950 Test: N/A Change-Id: I863445417d785c0b346ec96383adfd2366dbd71b
* Comment updated for privacy clarityWyatt Riley2018-03-211-0/+3
| | | | | | | | | Clarifying model name does not allow device specific indentification. Bug: 73951626 Test: Build only (comment only) Change-Id: Ib10176ec4db935fe87330b39977b7ab6b281808f
* Fix breakage by removing #include gps.hYu-Han Yang2018-03-151-1/+0
| | | | | | | | Bug: 74951218 Fixes: 74951218 Test: aosp_arm64-eng builds Change-Id: Iae66fc56b5cba01a3a1cb363f62dabd223743438
* Merge "Mock blacklisting satellites in default implementation" into pi-devWyatt Riley2018-03-158-37/+310
|\
| * Mock blacklisting satellites in default implementationYu-Han Yang2018-03-148-37/+310
| | | | | | | | | | | | | | | | | | | | - Mock GnssDebug to pass the sanity check. Bug: 73845705 Test: All Gnss v1.1 VTS tests are passing on gce_x86 Change-Id: I258fb1671d2b682f471207192b8a0feb138c16ab
* | Call SetGnssCallback in SetUpYu-Han Yang2018-03-153-28/+33
| | | | | | | | | | | | | | | | | | - Each VTS test requires a valid GnssCallback Bug: 73845705 Test: tested Gnss v1.1 VTS on gce_x86 Change-Id: I2ca8e6b86aeadc60d7ceacbc2ffaf05ea75c0f40
* | Update OWNERSYu-Han Yang2018-03-142-0/+5
|/ | | | | | | | | | - Add yuhany to 1.1/vts/OWNERS - Add OWNER file to 1.1/default/ Bug: 73845705 Test: N/A Change-Id: Id83805edd841d161f1dbfe1907af97d5d7cb2b06
* Implement Gnss::start() and Gnss::stop()Yu-Han Yang2018-03-084-16/+113
| | | | | | | | | | | - calling start() creates a thread that periodically receives locations Bug: 73845705 Test: ran VtsHalGnssV1_1TargetTest. SetCallbackResponses and GetLocationLowPower are passing Change-Id: I6a544c2832037a8b507c0ab030a8b766be499669
* Merge "Add boilerplate default implementation for Gnss Hal v1.1"TreeHugger Robot2018-02-289-0/+471
|\
| * Add boilerplate default implementation for Gnss Hal v1.1Yu-Han Yang2018-02-279-0/+471
| | | | | | | | | | | | | | | | | | Bug: 73845705 Test: gce_x86 device builds and runs. Debug logging shows default implementation is called by GnssLocationProvider. Change-Id: I58db6b11ad8b67d0364d8945801165cf6e499e55
* | Update documentation of gnssRequestLocationCbYu-Han Yang2018-02-261-5/+13
|/ | | | | | | Bug: 73716887 Test: This change updates comment only. Verified it builds. Change-Id: I580de91d95b25075af4b8e9fd7d3ed6536303616
* Merge "Adding additional enum value for Half Cycle"Wyatt Riley2018-02-213-1/+82
|\
| * Adding additional enum value for Half CycleWyatt Riley2018-02-203-1/+82
| | | | | | | | | | | | | | | | | | Adds Enum, and documents the deprecated fields. Bug: 71908529 Test: Builds for device and vts, with corresponding framework and vts changes. Change-Id: I232239f583f820c5d0538e1ae9567f01944f2399
* | Merge "Call deleteAidingData to clean up after injectBestLocation"TreeHugger Robot2018-02-211-0/+4
|\ \ | |/ |/|
| * Call deleteAidingData to clean up afterYu-Han Yang2018-02-161-0/+4
| | | | | | | | | | | | | | | | | | injectBestLocation Bug: 73318250 Test: Copy the same test to v1.0 and manually run vts tests. All passed. Change-Id: Ie5196c3ce197c39f57444b89d1ae6b75cedf2b69
* | Merge "Convert gnss hal test to use VtsHalHidlTargetTestEnvBase"Zhuoyao Zhang2018-02-134-9/+48
|\ \ | |/ |/|
| * Convert gnss hal test to use VtsHalHidlTargetTestEnvBaseZhuoyao Zhang2018-02-124-9/+48
| | | | | | | | | | | | | | | | Bug: 64203181 Test: make vts vts-tradefed run vts -m VtsHalGnssV1_0Target Change-Id: I2d5fa6ef8f37c80c13ab33418821755f1dd2b748
* | Add VTS test for checking upper bounds of GnssDebug uncertaintiesYu-Han Yang2018-02-071-4/+7
|/ | | | | | Test: copy to v1.0 and run vts on sailfish Change-Id: Ia15369db2a1e3243f0f2fff54ab5dc3ce917929c
* Add GNSS VTS test for IGnssDebug.TimeDebug values sanity checkYu-Han Yang2018-01-301-0/+4
| | | | | | | | Bug: 36567271 Test: Copied the change to v1.0 and tested on Walleye. Change-Id: I891ac655738cea72a67406dce954bbce34fc03ad
* Add GNSS VTS test for GnssDebug position valuesYu-Han Yang2018-01-291-0/+49
| | | | | | | | | | | | | sanity check. Bug: 36567271 Test: vts-tradefed run commandAndExit vts \ --skip-all-system-status-check \ --primary-abi-only --skip-preconditions -l VERBOSE \ --module VtsHalGnssV1_0Target Change-Id: I4fc2caf757743481f84ee1ec679082842c46adbd
* Add gnssRequestLocationCb to IGnssCallback.hal and injectBestLocationYu-Han Yang2018-01-244-1/+62
| | | | | | | | | | | | | | | | | to IGnss.hal - add the gnssRequestLocationCb to IGnssCallback.hal, with a boolean flag to supply with or without GNSS information, to request location for fast TTFF (or error recovery). - correspondingly add the injectBestLocation to IGnss.hal for the location provider to inject the location. Bug: 72341681 Test: Copied the same change and test to v1.0 and manually ran vts tests. All passed. Change-Id: I2e9d11603a2f16ef52d6c1556be75bdbcd8d0e80
* GNSS Satellite Use Blacklist HALWyatt Riley2018-01-056-138/+527
| | | | | | | | | | | | | | | | | Adding .hal change IGnssConfiguration to enable external (system) control of satellite usage. Adding VTS tests of the new .hal (ready for partners to integrate against.) Bug: 38269641 Test: .hal & vts builds, vts test runs and fails fast (no 1.1 HAL on initial test device), vts test logs run as expected on a 1.0 device (with tests to make this run), on-device sanity check of GPS works, builds with JNI test code (to be submitted separately) Change-Id: I72b5045eb0eea30d51ed5098248482cbbfc5aaff
* Use correct format specifier for uint32_t am: 004dd379df am: f157a9c8c7Yi Kong2018-01-031-2/+2
|\ | | | | | | | | | | am: 31e0ddbc1c Change-Id: I8abbbd0ed9d540f8d4a3092a7824c4c4afbc12b7
| * Use correct format specifier for uint32_t am: 004dd379dfYi Kong2018-01-031-2/+2
| |\ | | | | | | | | | | | | | | | am: f157a9c8c7 Change-Id: I09f1b729f872ebd58e7c43214b83a3832a142efd
| | * Use correct format specifier for uint32_tYi Kong2018-01-021-2/+2
| | | | | | | | | | | | | | | | | | | | | Discovered by the upcoming compiler update. Test: m checkbuild Change-Id: I03ed479a6a5c42d8dcc192e85d5268d1cd65cab8