Home
last modified time | relevance | path

Searched refs:FrequencyBand (Results 1 – 8 of 8) sorted by relevance

/hardware/interfaces/broadcastradio/common/utils2x/
DUtils.cpp82 FrequencyBand getBand(uint64_t freq) { in getBand()
85 if (freq < 30) return FrequencyBand::UNKNOWN; in getBand()
86 if (freq < 500) return FrequencyBand::AM_LW; in getBand()
87 if (freq < 1705) return FrequencyBand::AM_MW; in getBand()
88 if (freq < 30000) return FrequencyBand::AM_SW; in getBand()
89 if (freq < 60000) return FrequencyBand::UNKNOWN; in getBand()
90 if (freq < 110000) return FrequencyBand::FM; in getBand()
91 return FrequencyBand::UNKNOWN; in getBand()
/hardware/interfaces/broadcastradio/aidl/default/test/
DDefaultBroadcastRadioHalTest.cpp120 bool getAmFmBandRange(utils::FrequencyBand band, AmFmBandRange* res) { in getAmFmBandRange()
297 ASSERT_TRUE(getAmFmBandRange(utils::FrequencyBand::FM, &fmRange)); in TEST_F()
313 ASSERT_TRUE(getAmFmBandRange(utils::FrequencyBand::FM, &fmRange)); in TEST_F()
329 ASSERT_TRUE(getAmFmBandRange(utils::FrequencyBand::FM, &fmRange)); in TEST_F()
345 ASSERT_TRUE(getAmFmBandRange(utils::FrequencyBand::FM, &fmRange)); in TEST_F()
484 EXPECT_EQ(utils::getBand(utils::getAmFmFrequency(it->selector)), utils::FrequencyBand::FM); in TEST_F()
500 EXPECT_EQ(utils::getBand(utils::getAmFmFrequency(it->selector)), utils::FrequencyBand::FM); in TEST_F()
513 EXPECT_EQ(utils::getBand(utils::getAmFmFrequency(it->selector)), utils::FrequencyBand::FM); in TEST_F()
/hardware/interfaces/broadcastradio/common/utilsaidl/src/
DUtils.cpp108 FrequencyBand getBand(int64_t freq) { in getBand()
111 if (freq < 30) return FrequencyBand::UNKNOWN; in getBand()
112 if (freq < 500) return FrequencyBand::AM_LW; in getBand()
113 if (freq < 1705) return FrequencyBand::AM_MW; in getBand()
114 if (freq < 30000) return FrequencyBand::AM_SW; in getBand()
115 if (freq < 60000) return FrequencyBand::UNKNOWN; in getBand()
116 if (freq < 110000) return FrequencyBand::FM; in getBand()
117 return FrequencyBand::UNKNOWN; in getBand()
/hardware/interfaces/broadcastradio/common/utils2x/include/broadcastradio-utils-2x/
DUtils.h31 enum class FrequencyBand { enum
80 FrequencyBand getBand(uint64_t frequency);
/hardware/interfaces/broadcastradio/common/utilsaidl/include/broadcastradio-utils-aidl/
DUtils.h37 enum class FrequencyBand { enum
87 FrequencyBand getBand(int64_t frequency);
/hardware/interfaces/broadcastradio/common/utilsaidl/test/
DBroadcastRadioUtilsTest.cpp46 utils::FrequencyBand bandResult;
53 .bandResult = utils::FrequencyBand::UNKNOWN}, in getBandTestCases()
56 .bandResult = utils::FrequencyBand::AM_LW}, in getBandTestCases()
59 .bandResult = utils::FrequencyBand::AM_MW}, in getBandTestCases()
62 .bandResult = utils::FrequencyBand::AM_SW}, in getBandTestCases()
64 .name = "fm_band", .frequency = 97900, .bandResult = utils::FrequencyBand::FM}, in getBandTestCases()
67 .bandResult = utils::FrequencyBand::UNKNOWN}}); in getBandTestCases()
/hardware/interfaces/broadcastradio/2.0/vts/functional/
DVtsHalBroadcastradioV2_0TargetTest.cpp304 if (utils::getBand(range.lowerBound) == utils::FrequencyBand::FM) return true; in supportsFM()
/hardware/interfaces/broadcastradio/aidl/vts/src/
DVtsHalBroadcastradioAidlTargetTest.cpp101 if (bcutils::getBand(range.lowerBound) == bcutils::FrequencyBand::FM) { in supportsFM()