Commit graph

325 commits

Author SHA1 Message Date
Yu-Han Yang
15570c4681 Fix GnssMeasurement state range check
Bug: 157463010
Test: atest VtsHalGnssV2_0TestTarget
Change-Id: I72f4bf1f09d6271ac6367abc3972ee7747b18155
2020-05-26 11:07:24 -07:00
Yu-Han Yang
62b79417a4 Update CodeType comment for adding BDS B1C
Bug: 154267746

Test: doc update only. Builds
Change-Id: I997f1febef4f7b266cc51fe59a645ee1a48fd971
2020-04-17 02:49:05 +00:00
Dan Shi
aad51fa000 Rename vts-core to vts
Bug: 151896491
Test: local build
Exempt-From-Owner-Approval: This CL update suite name vts-core to vts as
the suite name is updated. This CL won't change test logic or behavior.

Change-Id: I562b4dc50765e953800a814a8fd84a01c1b9352b
Merged-In: I562b4dc50765e953800a814a8fd84a01c1b9352b
2020-04-07 16:37:40 -07:00
Yu-Han Yang
5f0bbe9324 Make GetLocationLowPower test warning instead of failing
Bug: 150222509
Bug: 152434001

Test: passing on device with GSI build
Change-Id: I8af0a992d1cf4af9ef1e78095f7352534c711549
2020-03-28 05:13:33 +00:00
Yu-Han Yang
6668eab9dc Update inter-signal bias (HAL)
- Rename recieverInterSignalBiasNs into interSignalBiasNs, which refers
to the sum of receiver ISB and satellite ISB.

Bug: 150724332

Test: atest VtsHalGnssV2_1TargetTest

Change-Id: Ifae15cb482bc12e793a481fec7847c817ef3c34d
2020-03-17 20:42:32 +00:00
TreeHugger Robot
d2a36d278a Merge "Update doc of proxyAppPackageName" into rvc-dev 2020-03-10 01:19:06 +00:00
Yu-Han Yang
e8286f04b8 Update doc of proxyAppPackageName
Fixes: 151088537

Test: doc only and builds
Change-Id: If0c4c6d879a1a35293739838702a33ec770b0ed3
2020-03-09 11:43:36 -07:00
Yu-Han Yang
f3cb5562b2 Fix deadlock in cuttlefish/default implementation
Bug: 150830099

Test: atest LocationManagerFineTest#testRegisterGnssMeasurementsCallback
-c --iterations 100

Change-Id: I70aec19a481781d924ed3008765ca624a7eeb950
Merged-In: I70aec19a481781d924ed3008765ca624a7eeb950

(cherry picked from commit 3d652709ed)
2020-03-06 22:57:25 +00:00
TreeHugger Robot
c2a7122706 Merge "Update constellation types in measurement corrections" 2020-02-20 02:48:29 +00:00
Sasha Kuznetsov
6311a08910 Merge "Update getExtensionX HAL docs" 2020-02-19 22:21:07 +00:00
Sasha Kuznetsov
6678ffd8c5 Update constellation types in measurement corrections
Bug: 147504090
Test: atest VtsHalGnssV2_1TargetTest and manually injecting dummy
measurement corrections from GnssLocationProvider and verifying that
they are received below the HAL (on a cuttlefish implementation)

Change-Id: Ie6df224d63429193b39f06a6b60517f804fccbae
2020-02-19 13:32:14 -08:00
Sasha Kuznetsov
935047e137 Update getExtensionX HAL docs
Test: hidl-gen -Lcheck android.hardware.gnss@2.1
Bug:147614118
Change-Id: Icc2453847519e449f753dc68bedc00c1c92e6744
2020-02-18 22:40:13 -08:00
Yu-Han Yang
850cba24ef Merge "Update measurement_correction reported accuracy HAL doc" 2020-02-15 03:55:33 +00:00
Yu-Han Yang
c08076e557 Merge "Address ANAPIC review comments" 2020-02-15 01:59:42 +00:00
Yu-Han Yang
428d25abfd Update measurement_correction reported accuracy HAL doc
Fixes: 144817918

Test: doc only and builds
Change-Id: I5aed4a17b5dea8949904f08809d3df9ec250fbeb
2020-02-14 11:20:25 -08:00
Yu-Han Yang
99b6d96736 Address ANAPIC review comments
- GnssMeasurementFlags extends v1.0
- add gnssSetCapabilitiesCb_2_1

Fixes: 149501257
Test: VTS tests pass on cuttlefish
Change-Id: I21dd284297d5f458945e7b5fa5e6ed0dab6a5dde
2020-02-13 16:16:43 -08:00
Sasha Kuznetsov
cee6a6759a Clarify environment bearing docs in HAL
Bug: 149299473
Test: build cuttlefish
Change-Id: Ie565d7ec96282985505b41961321998e58554aff
2020-02-13 15:11:19 -08:00
Sasha Kuznetsov
768de57e4c Revert^2 "Add GnssAntennaInfo to HAL"
ce414351c5

Change-Id: I791dcf8c26f3ed51c07987e79752ff3ce165fcbf
2020-02-11 06:00:10 +00:00
Yu-Han Yang
ce414351c5 Revert "Add GnssAntennaInfo to HAL"
Revert "Add GnssAntennaInfo framework APIs"

Revert "Add GnssAntennaInfo tests"

Revert submission 10111057-pco_pcv

Reason for revert: Build breakage
Reverted Changes:
I70e4014dd:Add GnssAntennaInfo framework APIs
I072958ecb:Add GnssAntennaInfo tests
Ia63a1f502:Add GnssAntennaInfo to HAL

Change-Id: I567fb52ca6c881f2e4c3c95c589bb4288f82becf
2020-02-11 04:02:18 +00:00
Sasha Kuznetsov
44d2b0a75b Add GnssAntennaInfo to HAL
Test: End to end test: run "atest GnssAntennaInfoRegistrationTest" on cuttlefish and watch "adb logcat | grep -i GnssAntennaInfo". Other tests:  atest GnssAntennaInfoTest, atest GnssAntennaInfoProviderTest, atest GnssManagerServiceTest, atest VtsHalGnssV2_1TargetTest, atest LocationManagerFineTest.
Bug: 124556515
Change-Id: Ia63a1f5022efdda52ed583a56a50f32807e83130
2020-02-10 12:29:20 -08:00
Patrick Berny
40dcf01215 Resolve merge conflicts of cb56fbeb9d to master
Bug: None
Test: cd hardware/interfaces/gnss && mm, check artifacts built
        successfully.

Change-Id: I32038aaf40b1d427b838242b7197581b7cde4efd
2020-01-31 18:35:57 -08:00
Automerger Merge Worker
cb56fbeb9d VTS: only assert that IGnssDebug present for non-automotive am: 2fd5c7cdf9 am: 984b3069bc am: 42b2f781be am: 500fd41fd5
Change-Id: I14f4e9616c998b18a629a8a1a3eaf1e1b806bbd4
2020-01-31 23:09:50 +00:00
Automerger Merge Worker
500fd41fd5 VTS: only assert that IGnssDebug present for non-automotive am: 2fd5c7cdf9 am: 984b3069bc am: 42b2f781be
Change-Id: I7a079fb9827ade5454460810bd7e6b66e503094c
2020-01-31 23:00:27 +00:00
Automerger Merge Worker
42b2f781be VTS: only assert that IGnssDebug present for non-automotive am: 2fd5c7cdf9 am: 984b3069bc
Change-Id: I4694449509de580da4049cef13458d35aed117af
2020-01-31 22:52:32 +00:00
Sasha Kuznetsov
31eea85faf Create measurement corrections 1.1 with eBearing
Test: matest VtsHalGnssV2_1TargetTesti and manually injected
dummy measurement corrections in GnssLocationProvider and
verified that cuttlefish implementation properly recieved
them below the HAL
Bug: 145963440
Change-Id: Ib5eb4f8c759c91b9fa2217ce6658319edd11bb27
2020-01-23 14:34:44 -08:00
Yu-Han Yang
18f4561fb8 Merge "Add Inter-Signal Bias fields" 2020-01-23 20:35:27 +00:00
Johan Ankner
2fd5c7cdf9 VTS: only assert that IGnssDebug present for non-automotive
VTS test VtsHalGnssV1_0Target#GnssHalTest.GetAllExtensions tests that
IGnss::getEnxtensionGnssDebug returns an actual extension. Make an
exception for automotive devices.

Bug: 143966170
Test: ran VtsHalGnssV1_0Target on Volvo IHU

Change-Id: I1588099a5be704c7869d6d5e8c0312d8b498bb95
2020-01-23 09:01:14 +01:00
Yu-Han Yang
5fe14fa9ec Add Inter-Signal Bias fields
Bug: 147500886

Test: on cuttlefish
Change-Id: Id50d1f6a60e758e8c02b7a1c4bbdfd73f62ffeb7
2020-01-22 21:20:42 -08:00
Yu-Han Yang
200f8819c5 Add IRNSS svid range to HAL doc
- IRNSS was added in GNSS HAL v2.0, and its svid range was not specified
at that time. The existing client implementations wouldn't be broken
because they either don't support IRNSS yet or already use such a range
(specified in IRNSS ICD v1.1).

Bug: 147675678

Test: doc only and builds
Change-Id: If86555bf7d3019428d80299043c52ea81aa34bc5
2020-01-21 12:55:25 -08:00
Sasha Kuznetsov
216311fd97 Complete 2.1 gnss default implementation to pass all VTS tests
Test: atest VtsHalGnssV2_1TargetTest && atest VtsHalGnssV2_0TargetTest && atest VtsHalGnssV1_1TargetTest && atest VtsHalGnssV1_0TargetTest
Bug: 146216289
Change-Id: Idfd80f70b67359dcbf1dc033b9b4218aff0c869c
2020-01-02 17:25:10 -08:00
Sasha Kuznetsov
7fd5cc3a4b Fix 2.0 VTS and 2.1 HAL/default implementation
Test: atest VtsHalGnssV2_0TargetTest && atest VtsHalGnssV2_1TargetTest
Bug: 145830353, 146216289
Change-Id: I77d614783ee5451368a0e93eddc5e71c571193ed
2019-12-17 12:17:01 -08:00
Yu-Han Yang
d5560c4d41 Stop location to avoid timing issue
Before setting constellation blacklist, the location report should
be stopped first. Otherwise, the sv status which contains blacklist
constellation is still reporting and may be counted in checking
SvList. According to the comments of this case, location should be
turned off as 2a step.

Also adding another test that a blacklist request that comes in
while tracking is started, takes effect after a stop/start cycle.

Bug: 144675840
Test: on device
Change-Id: I975d6036c742b8b825c742dca8fdcfe1dc1c1ee9
Merged-In: I04894426e8384d25f2b5e269961a9cf051cab40f
2019-12-16 20:45:13 +00:00
Sasha Kuznetsov
c1c257bc9d Implement some methods in 2.1 default implementation
Test: atest VtsHalGnssV2_0TargetTest builds and runs
Bug: 146216289
Change-Id: I8b024bff5b04b97298813293e39ee865eaf389b4
2019-12-13 19:14:26 -08:00
TreeHugger Robot
85fd31c951 Merge "Remove duplicate constants." 2019-12-12 05:29:58 +00:00
TreeHugger Robot
4423533cf6 Merge "Add test to setBlacklist with location on" 2019-12-11 22:51:19 +00:00
Sasha Kuznetsov
fdfd6f9de3 Remove duplicate constants.
Test: in progress
Change-Id: I7d266a9378a679ed30b6ee2af2dbcc4e79df91a5
2019-12-11 14:11:17 -08:00
Sasha Kuznetsov
9c451cfb31 Add test to setBlacklist with location on
Test: atest VtsHalGnssV2_1TargetTest
Bug: 135042665
Change-Id: Ibeb11f811990eceaad8d794befc50650b4bdbd21
2019-12-11 13:15:35 -08:00
Sasha Kuznetsov
17e69212c9 Fix comment in 1.1 GNSS HAL VTS tests
Test: n/a
Change-Id: I12cbf004f6b7d494b066478d62a62af22f67c1ac
2019-12-11 12:38:07 -08:00
Sasha Kuznetsov
068f928e5e Merge "Add support to blacklist IRNSS in HAL 2.1" 2019-12-10 00:14:39 +00:00
Sasha Kuznetsov
845f6d54e4 Add support to blacklist IRNSS in HAL 2.1
Test: atest VtsHalGnssV2_1TargetTest
Bug: 135042665

Change-Id: I10a12f5171c640e400af4ee66ce9ab63cf6e94f2
2019-12-07 12:02:15 -08:00
Yu-Han Yang
b983f10362 Stop location to avoid timing issue
Before setting constellation blacklist, the location report should
be stopped first. Otherwise, the sv status which contains blacklist
constellation is still reporting and may be counted in checking
SvList. According to the comments of this case, location should be
turned off as 2a step.

Also adding another test that a blacklist request that comes in
while tracking is started, takes effect after a stop/start cycle.

Bug: 144675840
Test: on device
Change-Id: I04894426e8384d25f2b5e269961a9cf051cab40f
2019-12-06 13:55:56 -08:00
Yu-Han Yang
c06b536662 Add GNSS HAL 2.1
Bug: 136136192
Bug: 141758837

Test: atest VtsHalGnssV2_1TargetTest
Change-Id: I8e6d52695c8ab0aeacacb0107a6c0c8271983ed3
2019-12-03 13:42:22 -08:00
Yu-Han Yang
b20389e2b4 Avoid injected location fused in GNSS location
Bug: 144104269
Test: atest VtsHalGnssV1_0TargetTest
Change-Id: I1266c6b7118d83e24a40dfe4ce4d4ba53a053343
2019-11-25 15:53:23 -08:00
Dan Shi
c325670cf9 Merge changes from topic "gnss"
* changes:
  Convert VtsHalGnssV2_0TargetTest to be parameterized test
  Convert VtsHalGnssV1_1TargetTest to be parameterized test
2019-10-17 16:10:59 +00:00
Dan Shi
89af69eb05 Convert VtsHalGnssV2_0TargetTest to be parameterized test
Bug: 142397658
Test: atest VtsHalGnssV2_0TargetTest
atest VtsHalGnssV2_0Target

Change-Id: I0402e62265f71b4e2c141624ce12b627d965c8ee
2019-10-16 14:34:56 -07:00
Dan Shi
4652a0e565 Convert VtsHalGnssV1_1TargetTest to be parameterized test
Bug: 142397658
Test: atest VtsHalGnssV1_1TargetTest
atest VtsHalGnssV1_1Target

Change-Id: I575630c8cbbf8bbd341425c5bbe04ca49c2c1758
2019-10-16 14:32:28 -07:00
Dan Shi
17d6fd3b01 Merge "Convert VtsHalGnssV1_0TargetTest to be parameterized test" am: 21eb2f5359 am: 2f9fc3f4de am: 1a110be9db
am: c9b0171d42

Change-Id: I209e7b2b5a769a22f8429be70e4dc950377b7697
2019-10-16 12:26:58 -07:00
Dan Shi
2f9fc3f4de Merge "Convert VtsHalGnssV1_0TargetTest to be parameterized test"
am: 21eb2f5359

Change-Id: Iff3f15a4a4367ddf46e285bdfa8591381209b40b
2019-10-16 12:06:58 -07:00
Dan Shi
21eb2f5359 Merge "Convert VtsHalGnssV1_0TargetTest to be parameterized test" 2019-10-16 18:54:33 +00:00
Nick Desaulniers
7dac45d65b Merge "[hardware][interfaces][gnss] fix -Wreorder-init-list" am: d2e8d0b515 am: 1bb718baeb am: 1dbd38952a
am: 97e49fa08c

Change-Id: I4ab51d7692118780e72914084f0268e691afdd20
2019-10-15 15:34:48 -07:00