mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Add capability check for satellite blacklist tests am: c40aa186ea am: faec210a8e am: 50e94f9525 am: 1f60634c3e
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12463613 Change-Id: I8d0d9f9b776bebf5646c1f4f58ef7b1c98c13f48
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user