Commit graph

19 commits

Author SHA1 Message Date
Yu-Han Yang
8c7a0309ab Call SetGnssCallback in SetUp
- Each VTS test requires a valid GnssCallback

Bug: 73845705

Test: tested Gnss v1.1 VTS on gce_x86
Change-Id: I2ca8e6b86aeadc60d7ceacbc2ffaf05ea75c0f40
2018-03-15 01:51:27 +00:00
Yu-Han Yang
78652a09fd Update OWNERS
- Add yuhany to 1.1/vts/OWNERS
- Add OWNER file to 1.1/default/

Bug: 73845705
Test: N/A

Change-Id: Id83805edd841d161f1dbfe1907af97d5d7cb2b06
2018-03-14 21:26:41 +00:00
Yu-Han Yang
584ad32e73 Implement Gnss::start() and Gnss::stop()
- calling start() creates a thread that periodically receives locations

Bug: 73845705

Test: ran VtsHalGnssV1_1TargetTest. SetCallbackResponses and
GetLocationLowPower are passing

Change-Id: I6a544c2832037a8b507c0ab030a8b766be499669
2018-03-08 13:54:07 -08:00
TreeHugger Robot
b7724bec9e Merge "Add boilerplate default implementation for Gnss Hal v1.1" 2018-02-28 22:44:38 +00:00
Yu-Han Yang
73f16adf92 Add boilerplate default implementation for Gnss Hal v1.1
Bug: 73845705

Test: gce_x86 device builds and runs. Debug logging shows default
implementation is called by GnssLocationProvider.

Change-Id: I58db6b11ad8b67d0364d8945801165cf6e499e55
2018-02-27 18:02:20 -08:00
Yu-Han Yang
0e745916b9 Update documentation of gnssRequestLocationCb
Bug: 73716887
Test: This change updates comment only. Verified it builds.

Change-Id: I580de91d95b25075af4b8e9fd7d3ed6536303616
2018-02-26 10:01:48 -08:00
Wyatt Riley
631308a783 Merge "Adding additional enum value for Half Cycle" 2018-02-21 21:39:43 +00:00
TreeHugger Robot
f9651f3d3b Merge "Call deleteAidingData to clean up after injectBestLocation" 2018-02-21 20:51:03 +00:00
Wyatt Riley
ed90e4dd9e Adding additional enum value for Half Cycle
Adds Enum, and documents the deprecated fields.

Bug: 71908529
Test: Builds for device and vts, with corresponding
framework and vts changes.
Change-Id: I232239f583f820c5d0538e1ae9567f01944f2399
2018-02-20 09:58:14 -08:00
Yu-Han Yang
b493a6a212 Call deleteAidingData to clean up after
injectBestLocation

Bug: 73318250

Test: Copy the same test to v1.0 and manually run vts tests. All passed.
Change-Id: Ie5196c3ce197c39f57444b89d1ae6b75cedf2b69
2018-02-16 15:27:20 -08:00
Zhuoyao Zhang
56ef9e277a Merge "Convert gnss hal test to use VtsHalHidlTargetTestEnvBase" 2018-02-13 04:41:41 +00:00
Zhuoyao Zhang
989afbaff5 Convert gnss hal test to use VtsHalHidlTargetTestEnvBase
Bug: 64203181
Test: make vts
      vts-tradefed run vts -m VtsHalGnssV1_0Target

Change-Id: I2d5fa6ef8f37c80c13ab33418821755f1dd2b748
2018-02-12 15:16:56 -08:00
Yu-Han Yang
0f4a388a9a Add VTS test for checking upper bounds of GnssDebug uncertainties
Test: copy to v1.0 and run vts on sailfish

Change-Id: Ia15369db2a1e3243f0f2fff54ab5dc3ce917929c
2018-02-07 15:21:53 -08:00
Yu-Han Yang
de41625b4e Add GNSS VTS test for IGnssDebug.TimeDebug values sanity check
Bug: 36567271

Test: Copied the change to v1.0 and tested on Walleye.

Change-Id: I891ac655738cea72a67406dce954bbce34fc03ad
2018-01-30 16:32:14 -08:00
Yu-Han Yang
22f1b90e16 Add GNSS VTS test for GnssDebug position values
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
2018-01-29 10:31:18 -08:00
Yu-Han Yang
90a35dcfbf Add gnssRequestLocationCb to IGnssCallback.hal and injectBestLocation
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
2018-01-24 17:08:20 -08:00
Wyatt Riley
50e3327c46 GNSS Satellite Use Blacklist HAL
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
2018-01-05 17:03:23 -08:00
gomo
f0b070771b GNSS HAL & VTS for Duty Cycling & Low Power APIs.
Defintions for 2 GNSS Android P features:
- The Duty Cycling OFF API to enable high accuracy applications development
- The Low Power Mode GNSS API to save power when indoor

VTS tests for both features.

Bug: 64009176
Test: hidl-gen/compile/build checks, no functional tests yet
Change-Id: I4a41757e4ad6747f22a7e9ae1e0024f083c5fbfb
2017-12-01 14:34:36 -08:00
Wyatt Riley
4d3c8e2c77 Adding GNSS Model & Version String
Bug: 38003769
Test: Device code & VTS builds, runs.
Todo in later phase: java connection.
Change-Id: Iddb2f25b18aba800e4f077d72c0452a417f78576
2017-11-28 16:33:07 -08:00