Commit graph

291 commits

Author SHA1 Message Date
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
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
Nick Desaulniers
1bb718baeb Merge "[hardware][interfaces][gnss] fix -Wreorder-init-list"
am: d2e8d0b515

Change-Id: Iee8c0aa77b4559f656e0f19cbbe786ca200e8584
2019-10-15 15:16:29 -07:00
Dan Shi
47e47836e5 Convert VtsHalGnssV1_0TargetTest to be parameterized test
Bug: 142397658
Test: atest VtsHalGnssV1_0TargetTest
atest VtsHalGnssV1_0Target

Change-Id: Ife6361f481409c3bac7ae518259bbc9837ccbdef
2019-10-15 09:25:51 -07:00
Nick Desaulniers
477c7e87b3 [hardware][interfaces][gnss] fix -Wreorder-init-list
C++20 will require members in a designated initializer to be in order
unlike C99.

Bug: 139945549
Test: mm
Change-Id: Ifdccde48c47c0495467f438002caf91cfdbd8091
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
2019-10-14 11:05:44 -07:00
Xin Li
15be13ea71 Merge qt-r1-dev-plus-aosp-without-vendor (5817612) into stage-aosp-master
Bug: 135460123
Change-Id: Ia07db5c8afeed7fe22a2b18d867a38390f910a81
Merged-In: Ibbd540dbb5baee46360d3fe9469212cfd8f550ba
2019-09-08 13:06:54 -07:00
Steven Moreland
38c46d0b98 Merge "Remove libhwbinder/libhidltransport deps" am: 6b62c58a9a am: 8c22c3862f am: 6684ee8c36
am: 9a5ffa3196

Change-Id: I3a80895d10767fe68e90a907312a83ded976cbcc
2019-09-06 16:06:13 -07:00
Steven Moreland
6684ee8c36 Merge "Remove libhwbinder/libhidltransport deps" am: 6b62c58a9a
am: 8c22c3862f

Change-Id: Iaedfceb49f81387f7deaad434613b7c9f1c502a0
2019-09-06 14:28:04 -07:00
Steven Moreland
b3a4d3832e Remove libhwbinder/libhidltransport deps
Since these were combined into libhidlbase.

Bug: 135686713
Test: build only (libhwbinder/libhidltransport are empty)
Change-Id: I075670b64eebbbbd6a6ae0e84ad51bf1c6f5ba36
2019-09-06 01:07:02 +00:00
Anil Admal
d3bef8732c Address GNSS VTS code duplication (part 1)
-Moved GNSS callback event queue class from VTS 2.0 code
 into common library that is shared with all GNSS VTS tests.
-Modified VTS 1.1 code to reuse GNSS callback event queue in
 order to address potential issues noted in b/131869042 and
 also to later extract common code from VTS 1.1 and VTS 2.0
 into common library.

Bug: 136515339
Test: atest VtsHalGnssV2_0TargetTest
      atest VtsHalGnssV1_1TargetTest

Change-Id: I9356e7653f9784a9149b2c2bd6307750e9cc56b3
2019-07-30 18:25:29 -07:00
Anil Admal
79f9484c6b Merge "VTS 1.1 TestGnssMeasurementCallback test must allow 1.1 or 1.0 versions" into qt-r1-dev
am: f22b39c457

Change-Id: Ic7bd9b309d7e9fe7a2317c4dcba85bd87fa1431f
2019-07-19 11:25:34 -07:00
Anil Admal
6abdaac714 VTS 1.1 TestGnssMeasurementCallback test must allow 1.1 or 1.0 versions
Fixes: 137839372
Test: atest VtsHalGnssV1_1Target
Change-Id: Ie3b1fa8b4738c03bff7924396b5eb5c6774841f1
2019-07-18 18:40:53 -07:00
Anil Admal
dbef8877c0 Merge "Add GetLocationLowPower VTS 2.0 test" into qt-r1-dev
am: 954f4fef65

Change-Id: Id553c7b77c0b87e29c8055eb9421823b198a3a9d
2019-07-17 14:57:09 -07:00
Anil Admal
03bc98e028 Add GetLocationLowPower VTS 2.0 test
- Run test only if LOW_POWER_MODE capability is supported.
- Modify the corresponding VTS 1.1 test to run only if the GNSS
  HAL version is 1.1.

Fixes: 127434062
Test: atest VtsHalGnssV2_0Target
Change-Id: Icbd18d80468e9e5a542f2eace5bfbe45af08ca47
2019-07-15 18:56:37 -07:00
Felix
bf481c99ed Merge "Add interface info to .rc files" am: 98d0f4d52c am: 37298a7616
am: 3531ec0183

Change-Id: I9a48f01064e6b64fdbd3dcae3623163a27998703
2019-07-08 12:42:48 -07:00
Felix
37298a7616 Merge "Add interface info to .rc files"
am: 98d0f4d52c

Change-Id: Ie6cfbacd523c4b09f77bee3369ec8e88b3fa0419
2019-07-08 12:22:23 -07:00
Anil Admal
b821d8e59f Merge "Add GNSS satellite blacklist VTS 2.0 test" into qt-r1-dev
am: 27c44d047a

Change-Id: Id41c14d75616be6ae4650a1188acd253ac96cc39
2019-06-28 15:44:01 -07:00
Anil Admal
f42602678f Add GNSS satellite blacklist VTS 2.0 test
- Use IGnssCallback@2.0::gnssSvStatusCb_2_0() method to receive SV
  info.
- Run the test only if SATELLITE_BLACKLIST capability is supported.
- IRNSS is excluded from blacklisting as IGnssConfiguration@2.0 is
  not updated to support the blacklisting new constellation type.
- Modify the corresponding VTS 1.1 test to run only if the GNSS
  HAL version is 1.1.

Bug: 128028791
Test: atest VtsHalGnssV2_0Target
Change-Id: Idd44a5a1c9d54d7434da945ecbd1ee90007f5054
2019-06-26 18:26:36 -07:00
Felix
551b8d15ce Add interface info to .rc files
Signed-off-by: Felix <google@ix5.org>
Change-Id: I6d70bbdb66c3dce280bf6908c3750316a6f6cf70
2019-06-25 20:00:07 +02:00
Anil Admal
de913c6979 Merge "Update @2.0::IGnss.hal setCallback() method documentation" into qt-dev
am: a12498abf8

Change-Id: I16d1c533066cc90c08d0ec8c61b98ccf54bd4a34
2019-05-10 09:11:43 -07:00
Anil Admal
bc5fcc4019 Merge "Clarify when IGnss.hal cleanup() and setCallback() methods are called" into qt-dev
am: 88d9d2570e

Change-Id: I775555a6e8394ca0954ab90fa0e08d50f73ab8cf
2019-05-10 09:05:47 -07:00
Anil Admal
a12498abf8 Merge "Update @2.0::IGnss.hal setCallback() method documentation" into qt-dev 2019-05-10 16:00:07 +00:00
Anil Admal
2f28bb0c19 Clarify when IGnss.hal cleanup() and setCallback() methods are called
Update IGnss.hal cleanup() and setCallback() method documentation to
clarify when the framework calls these methods so that the GNSS engine
knows when to shut down for power savings.

This CL updates @1.1::IGnss.hal and @1.0::IGnss.hal interfaces only.
@2.0::IGnss.hal is updated in another CL.

Bug: 124104175
Test: Existing tests pass
Change-Id: I8181251677dab78ce0619fa1e2a667b36e115f25
2019-05-09 16:32:06 -07:00
Anil Admal
a3afa5c65c Update @2.0::IGnss.hal setCallback() method documentation
The IGnss.hal setCallback() and cleanup() methods need to be updated
to clarify when the framework calls them so that that the GNSS engine
knows when to shut down for power savings.

This CL updates the @2.0::IGnss.hal setCallback() method documenation
only. The @1.1::IGnss.hal and @1.0::IGnss.hal setCallback() and cleanup()
method documentation is updated in another CL.

Bug: 124104175
Test: Existing tests pass
Change-Id: I6a2dd6f82becc0adef8b4b56fe83e7c004aefd7a
2019-05-09 15:58:00 -07:00
Anil Admal
3e346ff672 Merge "Fix wait/notify logic in GNSS VTS 2.0 test cases (part 2)" into qt-dev
am: e5289f618c

Change-Id: Idb35e4ccf2c5a7825aa88c15e7e815b5206d4448
2019-05-06 18:38:30 -07:00
Anil Admal
2690a27d8d Fix wait/notify logic in GNSS VTS 2.0 test cases (part 2)
Addresses follow up code review comments after merge of ag/7324643.

Fixes: 131869042
Test: atest VtsHalGnssV2_0TargetTest
Change-Id: I0177ee60c5edfb6855ce6a1d45b8805166a33cf2
2019-05-06 12:09:57 -07:00
Anil Admal
bf6201d843 Merge "Fix wait/notify logic in GNSS VTS 2.0 test cases" into qt-dev
am: 5f6334036f

Change-Id: I2888a2b267490b1ceccb3fb6494dd0c357003fcf
2019-05-04 19:51:06 -07:00
Anil Admal
7f9c13e198 Fix wait/notify logic in GNSS VTS 2.0 test cases
Fixes: 131869042
Test: atest VtsHalGnssV2_0TargetTest
Change-Id: I6fe5713c0f1d329f2738a2d4ba4a7d5aa58efec9
2019-05-03 17:31:20 -07:00
Anil Admal
f9e2ec1bc3 Merge "Update GNSS VTS 2.0 tests to address sub-HAL support requirements" into qt-dev
am: bb477b95ad

Change-Id: I15e394aef23bd4d3d1b9796018ee741bec63d78d
2019-05-02 21:36:03 -07:00
Anil Admal
62d2ca7687 Update GNSS VTS 2.0 tests to address sub-HAL support requirements
- IGnssConfiguration.hal@2.0 must be supported.
- If IAGnss.hal is supported, it must be at IAGnss.hal@2.0
- If IAGnssRil.hal is supported, it must be at IAGnssRil.hal@2.0
- gnss.visibility_control sub-HAL is optional
- gnss.measurement_corrections sub HAL is optional.
- IGnssBatching.hal@2.0 support is optional.

Bug: 70978505
Test: atest VtsHalGnssV2_0TargetTest
Change-Id: Icf98c13ef32bdea7dafda8f79b685466712b16b6
2019-05-02 13:52:53 -07:00
Steven Moreland
99712c08cc Update hidl makefiles for bpfmt
hidl-generated makefiles are now generated such that bpfmt(file) == file.

Bug: 67417008
Test: enable bpfmt hook
Change-Id: I53e5bf67a0d314e1b10c0ba0c7172a7af358ddcc
2019-04-18 18:13:05 -07:00
Steven Moreland
6d494b2346 Merge "Update hidl makefiles for bpfmt" am: ff0bd741ca
am: 96f40f7b02

Change-Id: Idbf030e4993067bdb8181321bca2de00c9b6f7ef
2019-04-18 14:34:45 -07:00
Steven Moreland
1ae4615d9f Update hidl makefiles for bpfmt
hidl-generated makefiles are now generated such that bpfmt(file) == file.

Bug: 67417008
Test: enable bpfmt hook
Change-Id: I1f69d292bc23a7cc293a66110cb02d597e1019ad
2019-04-17 09:38:50 -07:00