From 0d591fd0a4580b34dc89e787ed3603cf1a934b9b Mon Sep 17 00:00:00 2001 From: Henry Fang Date: Thu, 13 May 2021 17:30:32 -0700 Subject: [PATCH] Add more configure items for DVBT bug: 182519645 Test: atest VtsHalTvTunerV1_0TargetTest Change-Id: I58bd8b941f6340d9e69153702b5269cc35c646da --- tv/tuner/config/TunerTestingConfigReaderV1_0.h | 11 +++++++++++ tv/tuner/config/api/current.txt | 18 ++++++++++++++++++ .../config/sample_tuner_vts_config_1_0.xml | 5 ++++- .../tuner_testing_dynamic_configuration.xsd | 13 +++++++++++-- 4 files changed, 44 insertions(+), 3 deletions(-) diff --git a/tv/tuner/config/TunerTestingConfigReaderV1_0.h b/tv/tuner/config/TunerTestingConfigReaderV1_0.h index 0688219575..d049b07232 100644 --- a/tv/tuner/config/TunerTestingConfigReaderV1_0.h +++ b/tv/tuner/config/TunerTestingConfigReaderV1_0.h @@ -52,6 +52,7 @@ using android::hardware::tv::tuner::V1_0::FrontendDvbtCoderate; using android::hardware::tv::tuner::V1_0::FrontendDvbtConstellation; using android::hardware::tv::tuner::V1_0::FrontendDvbtGuardInterval; using android::hardware::tv::tuner::V1_0::FrontendDvbtHierarchy; +using android::hardware::tv::tuner::V1_0::FrontendDvbtPlpMode; using android::hardware::tv::tuner::V1_0::FrontendDvbtSettings; using android::hardware::tv::tuner::V1_0::FrontendDvbtStandard; using android::hardware::tv::tuner::V1_0::FrontendDvbtTransmissionMode; @@ -593,6 +594,16 @@ struct TunerTestingConfigReader1_0 { } dvbtSettings.bandwidth = static_cast(dvbt->getBandwidth()); dvbtSettings.isHighPriority = dvbt->getIsHighPriority(); + dvbtSettings.hierarchy = static_cast(dvbt->getHierarchy()); + dvbtSettings.hpCoderate = static_cast(dvbt->getHpCoderate()); + dvbtSettings.lpCoderate = static_cast(dvbt->getLpCoderate()); + dvbtSettings.guardInterval = + static_cast(dvbt->getGuardInterval()); + dvbtSettings.standard = static_cast(dvbt->getStandard()); + dvbtSettings.isMiso = dvbt->getIsMiso(); + dvbtSettings.plpMode = static_cast(dvbt->getPlpMode()); + dvbtSettings.plpId = dvbt->getPlpId(); + dvbtSettings.plpGroupId = dvbt->getPlpGroupId(); if (dvbt->hasConstellation()) { dvbtSettings.constellation = static_cast(dvbt->getConstellation()); diff --git a/tv/tuner/config/api/current.txt b/tv/tuner/config/api/current.txt index ef733151b1..d026bf9e40 100644 --- a/tv/tuner/config/api/current.txt +++ b/tv/tuner/config/api/current.txt @@ -180,11 +180,29 @@ package android.media.tuner.testing.configuration.V1_0 { ctor public DvbtFrontendSettings(); method @Nullable public java.math.BigInteger getBandwidth(); method @Nullable public java.math.BigInteger getConstellation(); + method @Nullable public java.math.BigInteger getGuardInterval(); + method @Nullable public java.math.BigInteger getHierarchy(); + method @Nullable public java.math.BigInteger getHpCoderate(); method @Nullable public java.math.BigInteger getIsHighPriority(); + method @Nullable public java.math.BigInteger getIsMiso(); + method @Nullable public java.math.BigInteger getLpCoderate(); + method @Nullable public java.math.BigInteger getPlpGroupId(); + method @Nullable public java.math.BigInteger getPlpId(); + method @Nullable public java.math.BigInteger getPlpMode(); + method @Nullable public java.math.BigInteger getStandard(); method @Nullable public java.math.BigInteger getTransmissionMode(); method public void setBandwidth(@Nullable java.math.BigInteger); method public void setConstellation(@Nullable java.math.BigInteger); + method public void setGuardInterval(@Nullable java.math.BigInteger); + method public void setHierarchy(@Nullable java.math.BigInteger); + method public void setHpCoderate(@Nullable java.math.BigInteger); method public void setIsHighPriority(@Nullable java.math.BigInteger); + method public void setIsMiso(@Nullable java.math.BigInteger); + method public void setLpCoderate(@Nullable java.math.BigInteger); + method public void setPlpGroupId(@Nullable java.math.BigInteger); + method public void setPlpId(@Nullable java.math.BigInteger); + method public void setPlpMode(@Nullable java.math.BigInteger); + method public void setStandard(@Nullable java.math.BigInteger); method public void setTransmissionMode(@Nullable java.math.BigInteger); } diff --git a/tv/tuner/config/sample_tuner_vts_config_1_0.xml b/tv/tuner/config/sample_tuner_vts_config_1_0.xml index 26240765d6..347e98442b 100644 --- a/tv/tuner/config/sample_tuner_vts_config_1_0.xml +++ b/tv/tuner/config/sample_tuner_vts_config_1_0.xml @@ -54,7 +54,10 @@ - + diff --git a/tv/tuner/config/tuner_testing_dynamic_configuration.xsd b/tv/tuner/config/tuner_testing_dynamic_configuration.xsd index 52168374f7..6a04b7ebe1 100644 --- a/tv/tuner/config/tuner_testing_dynamic_configuration.xsd +++ b/tv/tuner/config/tuner_testing_dynamic_configuration.xsd @@ -61,9 +61,18 @@ - + + + + + - + + + + + +