diff options
author | shubang <shubang@google.com> | 2020-05-01 17:26:08 -0700 |
---|---|---|
committer | shubang <shubang@google.com> | 2020-05-01 17:32:40 -0700 |
commit | 6ab3f083281a7d9e04a0ea4f472d013d858541b6 (patch) | |
tree | d11a547a5d0f39dbd11e875a42208beb68c5763c /tv | |
parent | 11c711a4346fac392118980927d6c672bee94d6b (diff) | |
download | platform_hardware_interfaces-6ab3f083281a7d9e04a0ea4f472d013d858541b6.tar.gz platform_hardware_interfaces-6ab3f083281a7d9e04a0ea4f472d013d858541b6.tar.bz2 platform_hardware_interfaces-6ab3f083281a7d9e04a0ea4f472d013d858541b6.zip |
Add more FrontendStatus for CTS
Bug: 155342902
Test: atest android.media.tv.tuner.cts.TunerTest
Change-Id: I90e08eea2470d223f54179a8fa13eef69e2f5230
Diffstat (limited to 'tv')
-rw-r--r-- | tv/tuner/1.0/default/Frontend.cpp | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/tv/tuner/1.0/default/Frontend.cpp b/tv/tuner/1.0/default/Frontend.cpp index b509599d40..996b6ef552 100644 --- a/tv/tuner/1.0/default/Frontend.cpp +++ b/tv/tuner/1.0/default/Frontend.cpp @@ -139,6 +139,30 @@ Return<void> Frontend::getStatus(const hidl_vec<FrontendStatusType>& statusTypes status.snr(221); break; } + case FrontendStatusType::BER: { + status.ber(1); + break; + } + case FrontendStatusType::PER: { + status.per(2); + break; + } + case FrontendStatusType::PRE_BER: { + status.preBer(3); + break; + } + case FrontendStatusType::SIGNAL_QUALITY: { + status.signalQuality(4); + break; + } + case FrontendStatusType::SIGNAL_STRENGTH: { + status.signalStrength(5); + break; + } + case FrontendStatusType::SYMBOL_RATE: { + status.symbolRate(6); + break; + } case FrontendStatusType::FEC: { status.innerFec(FrontendInnerFec::FEC_2_9); // value = 1 << 7 break; @@ -149,15 +173,51 @@ Return<void> Frontend::getStatus(const hidl_vec<FrontendStatusType>& statusTypes status.modulation(modulationStatus); break; } + case FrontendStatusType::SPECTRAL: { + status.inversion(FrontendDvbcSpectralInversion::NORMAL); + break; + } + case FrontendStatusType::LNB_VOLTAGE: { + status.lnbVoltage(LnbVoltage::VOLTAGE_5V); + break; + } case FrontendStatusType::PLP_ID: { status.plpId(101); // type uint8_t break; } + case FrontendStatusType::EWBS: { + status.isEWBS(false); + break; + } + case FrontendStatusType::AGC: { + status.agc(7); + break; + } + case FrontendStatusType::LNA: { + status.isLnaOn(false); + break; + } case FrontendStatusType::LAYER_ERROR: { vector<bool> v = {false, true, true}; status.isLayerError(v); break; } + case FrontendStatusType::MER: { + status.mer(8); + break; + } + case FrontendStatusType::FREQ_OFFSET: { + status.freqOffset(9); + break; + } + case FrontendStatusType::HIERARCHY: { + status.hierarchy(FrontendDvbtHierarchy::HIERARCHY_1_NATIVE); + break; + } + case FrontendStatusType::RF_LOCK: { + status.isRfLocked(false); + break; + } case FrontendStatusType::ATSC3_PLP_INFO: { vector<FrontendStatusAtsc3PlpInfo> v; FrontendStatusAtsc3PlpInfo info1{ |