Commit graph

195 commits

Author SHA1 Message Date
Yu-Han Yang
45f0a8bb67 Set the floor value of time estimate as 2017 Jan 01 00:00:00 GMT
- 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 5fa43c83e9)
(cherry picked from commit 4f0d19ebff)
2018-08-29 17:56:51 +00:00
WyattRiley
2d86da7b28 Improve VTS GNSS 1.1 reliability.
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 5ea5dda2c3)
2018-08-28 21:17:02 +00:00
Yu-Han Yang
66fb7a1b88 Delete time/position in InjectDelete instead of Delete_all
- DELETE_ALL will delete XTRA.

Bug: 110626730
Test: run VTS test on device.
Merged-In: I4f01430f24f92238193d3de6b6fbb31e81e9f006
Change-Id: I4f01430f24f92238193d3de6b6fbb31e81e9f006
(cherry picked from commit 84cff99b2f)
2018-08-28 21:14:53 +00:00
Yu-Han Yang
75b0c4bba2 Inject last location in InjectBestLocation VTS test
Bug: 110626730
Test: run VTS on device.
Merged-In: I6f57dd7f9164dacf011f25412e55fcd22821aca0
Change-Id: I6f57dd7f9164dacf011f25412e55fcd22821aca0
(cherry picked from commit bb372e5984)
2018-08-28 21:13:38 +00:00
Treehugger Robot
a9ad41d1ad Merge "Tolerate 1 sv status in GNSS blacklist VTS test" into pie-vts-dev 2018-08-28 19:14:59 +00:00
Yu-Han Yang
398b272b30 Tolerate 1 sv status in GNSS blacklist VTS test
Bug: 110969497
Test: run VTS test on device.
Merged-In: I26345bb62513da8530cb48672e5f59a915817cb4
Change-Id: I26345bb62513da8530cb48672e5f59a915817cb4
(cherry picked from commit 91cc8f4832)
2018-08-28 18:18:47 +00:00
Vishal Agarwal
2910e64d24 Add VTS test to verify scheduling capability
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 e3ff41fc12)
2018-08-28 17:37:48 +00:00
Yu-Han Yang
6b21448262 Set lowPowerMode as false in StartAndGetLocations
Bug: 80544245
Change-Id: Icf85e9b8ed433dbdb759b54c4ba7b5e7a21b7a26
Fixes: 80544245
Test: VtsHalGnssV1_1TargetTest --gtest_filter=*Blacklist*
2018-05-31 15:04:04 -07:00
Yu-Han Yang
ca63cbf6e2 Update VTS test to blacklist only non-GPS satellites
Bug: 79481978
Change-Id: Ieef04d816448d37ae54c61375db4955d4d3a24d7
Fixes: 79481978
Test: make vts
2018-05-22 11:26:21 -07:00
Yu-Han Yang
5d21ab2cc1 Update doc in Gnss Hal v1.1
Bug: 74949950
Fixes: 74949950
Test: N/A
Change-Id: I863445417d785c0b346ec96383adfd2366dbd71b
2018-04-02 14:28:33 -07:00
Wyatt Riley
e5c92bb789 Comment updated for privacy clarity
Clarifying model name does not allow device specific
indentification.

Bug: 73951626
Test: Build only (comment only)
Change-Id: Ib10176ec4db935fe87330b39977b7ab6b281808f
2018-03-21 17:29:33 -07:00
Yu-Han Yang
f2b1866a13 Fix breakage by removing #include gps.h
Bug: 74951218
Fixes: 74951218

Test: aosp_arm64-eng builds
Change-Id: Iae66fc56b5cba01a3a1cb363f62dabd223743438
2018-03-15 17:35:35 +00:00
Wyatt Riley
4bd3e45305 Merge "Mock blacklisting satellites in default implementation" into pi-dev 2018-03-15 15:19:15 +00:00
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
a2f77322b4 Mock blacklisting satellites in default implementation
- Mock GnssDebug to pass the sanity check.

Bug: 73845705

Test: All Gnss v1.1 VTS tests are passing on gce_x86

Change-Id: I258fb1671d2b682f471207192b8a0feb138c16ab
2018-03-14 14:23:30 -07: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
Yi Kong
2eaccd181f Use correct format specifier for uint32_t am: 004dd379df am: f157a9c8c7
am: 31e0ddbc1c

Change-Id: I8abbbd0ed9d540f8d4a3092a7824c4c4afbc12b7
2018-01-03 18:10:46 +00:00
Yi Kong
31e0ddbc1c Use correct format specifier for uint32_t am: 004dd379df
am: f157a9c8c7

Change-Id: I09f1b729f872ebd58e7c43214b83a3832a142efd
2018-01-03 18:06:43 +00:00
Yi Kong
004dd379df Use correct format specifier for uint32_t
Discovered by the upcoming compiler update.

Test: m checkbuild
Change-Id: I03ed479a6a5c42d8dcc192e85d5268d1cd65cab8
2018-01-02 22:57:46 -08:00
tccyp
85f8a5d011 Comments for CTS Galileo Sub Message ID check
The Galileo ICD specifies the value of 0 for the Spare Word.
SV 18 is transmitting in test mode and its payload includes the Spare
Words.
The real fix is in the Cts location test.

Test: make cts -j 32
Bug: b/69428649
Change-Id: I7bf83a8c2cc5eed7fc325b0628238192aaf4def1
2017-12-15 14:42:52 -08:00
Wyatt Riley
0093415317 Clarifications to IGnss*.hal comments
Clarified PRN vs. Satellite ID
Corrected Measurement vs Clock typo

Test: build check, including hash verification. Comments only.
Change-Id: I1bef83800dbc796b1c8df43790f4239c81858d56
2017-12-14 18:05:31 +00: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
TreeHugger Robot
8b0019b1e2 Merge "Adding GNSS Model & Version String" 2017-11-29 17:53:03 +00: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
Steven Moreland
e5c6548346 Remove subdirs
Removing whenever I see these in code reviews.

Test: none
Merged-In: I4322f533a837d55618ec2ed2125e8966ace9d61d
Change-Id: I4322f533a837d55618ec2ed2125e8966ace9d61d
2017-11-28 14:23:43 -08:00
Steven Moreland
8b76a6b90d Remove subdirs
Removing whenever I see these in code reviews.

Test: none
Merged-In: I4322f533a837d55618ec2ed2125e8966ace9d61d
Change-Id: I4322f533a837d55618ec2ed2125e8966ace9d61d
2017-11-28 14:22:55 -08:00
Steven Moreland
fcca4e23b7 Remove subdirs
Removing whenever I see these in code reviews.

Test: none
Merged-In: I4322f533a837d55618ec2ed2125e8966ace9d61d
Change-Id: I4322f533a837d55618ec2ed2125e8966ace9d61d
2017-11-28 14:22:43 -08:00
Chih-Hung Hsieh
1bf3cfc11d Merge "Use -Werror in hardware/interfaces" am: 02804915fb am: 8e736c21de
am: f53fe9317b

Change-Id: Ifc0a5be285be1a57d998db3c032e392b307cfa80
2017-11-28 19:31:03 +00:00
Chih-Hung Hsieh
f53fe9317b Merge "Use -Werror in hardware/interfaces" am: 02804915fb
am: 8e736c21de

Change-Id: I42045ae2f98fc232dd48efba8d48e83a6ab0d35e
2017-11-28 19:27:31 +00:00
Chih-Hung Hsieh
8e736c21de Merge "Use -Werror in hardware/interfaces"
am: 02804915fb

Change-Id: Id73af9532487a85ad1d1170dbce809761d4a93a8
2017-11-28 19:24:00 +00:00
Chih-Hung Hsieh
3f2ea62d06 Use -Werror in hardware/interfaces
* Use hidl_defaults, which has -Wall -Werror.

Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: Ifbca0e176a8e031acc27256eb46d23b89cdf1a0e
2017-11-20 10:49:11 -08:00
Xin Li
bb9e38fef9 Merge commit '1a06284b24f5eb7bb9c1fea0817da8898b3b1bff' from
oc-mr1-dev-plus-aosp into stage-aosp-master

Change-Id: I2a044eb8c9981d0a8198ffe2df55559afbd76341
Merged-In: I4fb9f18884f7ef21162015a0032c4431444f7025
2017-11-14 12:08:38 -08:00
TreeHugger Robot
e803ecf89a Merge "Updating makefiles for hidl_interface." into oc-mr1-dev-plus-aosp 2017-11-14 01:03:24 +00:00
Wyatt Riley
a9a2b28709 Loosen speed check for first GPS location am: f926e11c89
am: 3200996d4b

Change-Id: I77101d9352459bb986adfed1951fc893cf13c9fb
2017-11-13 21:04:30 +00:00
Wyatt Riley
3200996d4b Loosen speed check for first GPS location
am: f926e11c89

Change-Id: Icb4b4a21afcc86d743f2f2c159cb54c9b0231a96
2017-11-13 21:01:59 +00:00