Commit graph

24 commits

Author SHA1 Message Date
Enrico Granata
063094e1a7 Check the fd handle before attempting to use it in GNSS HAL
Bug: 171851344
Test: run vts -a x86 -m vts_ibase_test -t VtsHalBaseV1_0TargetTest#Debug
Change-Id: Ieee0977812fe6a9a9ca4bb2fe9ab61899b4d0df5
2020-10-30 14:45:12 -06:00
Enrico Granata
3ba5d228ba Allow changing the mock location returned by GNSS HAL
This CL introduces a new lshal debug command for GNSS HAL
  location [lat=..] [lon=..] [ele=..] that allows changing
the mock location provided by GNSS HAL to clients

This can be used manually to configure a single mock location,
or in a scripted scenario to, e.g., supply a set of locations
from a GPX file to simulate a moving device

Bug: None
Test: set different locations via command line to Cuttlefish device, e.g.
$ adb shell lshal debug android.hardware.gnss@2.1::IGnss/default location lat=46.6317 lon=-114.0789
Change-Id: I7217c59f66f1ee7f5a9bd3f3dd3af7be4b43c024
2020-10-23 19:23:43 +00:00
Yu-Han Yang
1e1a67651d Add IGnssConfiguration AIDL HAL (hardware/interfaces)
In default implementation, both AIDL HAL and the v2.1 HIDL HAL services
are running in the same process. The HIDL HAL implementation is able to
interact with the AIDL HAL implementation.

Bug: 168111993
Bug: 150192654
Test: on cuttlefish
Change-Id: Ib2770780b62a939f6ca447dfb6a6ab888c526fec
2020-10-16 10:39:58 -07:00
Treehugger Robot
5008fe1a09 Merge "Skip GnssMeasurement VTS for Android Automotive OS." am: d8a767a847 am: d66b12008f am: 0bd8713642 am: befda6dd70
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1443915

Change-Id: Ibbb66c51703347f85f4ec21a281eb3014e5c3169
2020-10-05 20:01:59 +00:00
Tyler Trephan
0d9206aa57 Skip GnssMeasurement VTS for Android Automotive OS.
According to the Q CDD, an Android Automotive OS device is not required
to support GnssMeasurements.

Bug: 161549048
Test: atest VtsHalGnssV1_0TargetTest VtsHalGnssV2_0TargetTest VtsHalGnssV2_1TargetTest
Change-Id: Idcd59f36ca2ea28925f6766a7abcdf7b6ad0f0ff
2020-10-01 00:11:32 +00:00
Yipeng Cao
29f0a4ff38 Fix for Gnss Hal for replay
In the old logic, if /dev/gnss0 doesn't report location, it will fail back
to the default mock location. Now we change to only report default location if /dev/gnss0 is
not present.

Test: launch_cvd --start_gnss_proxy
Change-Id: Ie1026d5b4dd3e3c2ed1e2107232bcb94c3ba5079

Change-Id: I787b71d80be7875fc594d17b4296e7d28d9c2f5a
2020-08-01 01:21:15 +00:00
Yu-Han Yang
3fcb7bf3fe Add GNSS HAL v3.0 (hardware/interfaces)
Bug: 158518085

Test: atest VtsHalGnssV3_0TargetTest
      atest VtsHalGnssV2_1TargetTest
      atest VtsHalGnssV2_0TargetTest
      atest VtsHalGnssV1_1TargetTest
      atest VtsHalGnssV1_0TargetTest

Change-Id: Id4ac1e31207da7cfff3f1885c84748785bec19ba
2020-06-19 12:14:01 -07:00
TreeHugger Robot
3b4da6626b Merge "Stop location to avoid timing issue (VTS 2.0)" into rvc-dev am: de47235b01 am: 64fac9d815 am: 28da9e5450 am: 093c2fe9eb
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/11788485

Change-Id: I38130f158ce6dfa88d2498a4023a11afe5edea91
2020-06-08 21:31:57 +00:00
Yu-Han Yang
4e5ffc2231 Stop location to avoid timing issue (VTS 2.0)
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: I0a5030cbeeb4bbc45000157414582117d8abbae9
2020-06-08 10:58:46 -07:00
Yipeng Cao
77a1f96a01 Merge "Hal layer for gnss replay" 2020-03-28 00:21:47 +00:00
Yipeng Cao
48618f607c Hal layer for gnss replay
Test: Added following kernel cmdline and tested on local CF
gnss_cmdline.serdev=serial8250/serial0/serial0-0
gnss_cmdline.type=0
serdev_ttyport.pdev_tty_port=ttyS1

Change-Id: I3766c31672aa91341403105759b2fd997e7f8879
2020-03-27 15:41:39 -07: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
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
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
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
5fe14fa9ec Add Inter-Signal Bias fields
Bug: 147500886

Test: on cuttlefish
Change-Id: Id50d1f6a60e758e8c02b7a1c4bbdfd73f62ffeb7
2020-01-22 21:20:42 -08: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
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
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
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
Yu-Han Yang
08642f98a4 Add VTS test for gnss.measurement_corrections@1.0
- also implemented default implementation

Bug: 120529158
Fixes: 120529158
Test: tested on cuttlefish
Change-Id: I9e63dc35284effff351eabedade05ed147d1ef17
2019-03-05 19:30:39 -08:00
Yu-Han Yang
a509861a59 Report mock locations in 2.0 default implementation
- Create android.hardware.gnss@common-default-lib for sharing common
default implementation code.
- Create android.hardware.gnss@common-vts-lib for sharing common VTS
code.

Bug: 121217686
Change-Id: I35c127c23d97ab9a5c6ee13b36fbfe9c3708e3f3
Fixes: 121217686
Test: tested on cuttlefish
2019-02-15 09:42:43 -08:00