broadcastradio@2.0 VTS uses FM frequency invalid in some regions

In Japan FM frequency range is 76-95MHz thus FmTune test using
hardcoded 101.1MHz fails on devices preconfigured for this
region when TunerSession::tune returns INVALID_PARAMETER.
Proposed new frequency is valid in all regions.

Test: run VtsHalBroadcastradioV2_0TargetTest on hardware units
configured for Europe, US, Japan (and preferably other) analog
tuner regions

Bug: b/177916339

Change-Id: I86081fc3e1c0e0959039d5a00d96873fca454da6
Merged-In: I86081fc3e1c0e0959039d5a00d96873fca454da6
(cherry picked from commit 4e04150188)
This commit is contained in:
Jan Kowal
2021-01-21 12:44:44 +01:00
committed by Bruno Demartino
parent f6caba1490
commit eab38fedae

View File

@@ -415,7 +415,7 @@ TEST_P(BroadcastRadioHalTest, GetDabRegionConfig) {
TEST_P(BroadcastRadioHalTest, FmTune) {
ASSERT_TRUE(openSession());
uint64_t freq = 100100; // 100.1 FM
uint64_t freq = 90900; // 90.9 FM
auto sel = make_selector_amfm(freq);
/* TODO(b/69958777): there is a race condition between tune() and onCurrentProgramInfoChanged