diff options
author | Yu-Han Yang <yuhany@google.com> | 2020-08-27 18:39:22 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-08-27 18:39:22 +0000 |
commit | faec210a8e7e139a976d75d291702734c5be485f (patch) | |
tree | 3a14651a7ee23fe4b72150c9f6fc5d6cf4eaf01e | |
parent | 9ce5301addff3df0a5ee987157c52d00d063b214 (diff) | |
parent | c40aa186ea6efd18a90183783fb1e0b5ac252aee (diff) | |
download | platform_hardware_interfaces-faec210a8e7e139a976d75d291702734c5be485f.tar.gz platform_hardware_interfaces-faec210a8e7e139a976d75d291702734c5be485f.tar.bz2 platform_hardware_interfaces-faec210a8e7e139a976d75d291702734c5be485f.zip |
Add capability check for satellite blacklist tests am: c40aa186ea
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12463613
Change-Id: I29409edce51e57acd7f5013e74b759e8cecb2fac
-rw-r--r-- | gnss/2.1/vts/functional/gnss_hal_test_cases.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gnss/2.1/vts/functional/gnss_hal_test_cases.cpp b/gnss/2.1/vts/functional/gnss_hal_test_cases.cpp index a3d2956199..16e634f2b0 100644 --- a/gnss/2.1/vts/functional/gnss_hal_test_cases.cpp +++ b/gnss/2.1/vts/functional/gnss_hal_test_cases.cpp @@ -363,6 +363,12 @@ IGnssConfiguration::BlacklistedSource FindStrongFrequentNonGpsSource( * formerly strongest satellite */ TEST_P(GnssHalTest, BlacklistIndividualSatellites) { + if (!(gnss_cb_->last_capabilities_ & IGnssCallback_2_1::Capabilities::SATELLITE_BLACKLIST)) { + ALOGI("Test BlacklistIndividualSatellites skipped. SATELLITE_BLACKLIST capability not " + "supported."); + return; + } + const int kLocationsToAwait = 3; const int kRetriesToUnBlacklist = 10; @@ -504,6 +510,12 @@ TEST_P(GnssHalTest, BlacklistIndividualSatellites) { * 4a & b) Clean up by turning off location, and send in empty blacklist. */ TEST_P(GnssHalTest, BlacklistConstellationLocationOff) { + if (!(gnss_cb_->last_capabilities_ & IGnssCallback_2_1::Capabilities::SATELLITE_BLACKLIST)) { + ALOGI("Test BlacklistConstellationLocationOff skipped. SATELLITE_BLACKLIST capability not " + "supported."); + return; + } + const int kLocationsToAwait = 3; const int kGnssSvInfoListTimeout = 2; @@ -580,6 +592,12 @@ TEST_P(GnssHalTest, BlacklistConstellationLocationOff) { * 4a & b) Clean up by turning off location, and send in empty blacklist. */ TEST_P(GnssHalTest, BlacklistConstellationLocationOn) { + if (!(gnss_cb_->last_capabilities_ & IGnssCallback_2_1::Capabilities::SATELLITE_BLACKLIST)) { + ALOGI("Test BlacklistConstellationLocationOn skipped. SATELLITE_BLACKLIST capability not " + "supported."); + return; + } + const int kLocationsToAwait = 3; const int kGnssSvInfoListTimeout = 2; |