mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 21:37:44 +00:00
Merge "VTS: fix some logic errors for tuner HAL vts [1/1]" into android11-tests-dev
This commit is contained in:
2
tv/tuner/1.0/vts/functional/FrontendTests.cpp
Executable file → Normal file
2
tv/tuner/1.0/vts/functional/FrontendTests.cpp
Executable file → Normal file
@@ -377,6 +377,7 @@ AssertionResult FrontendTests::tuneFrontend(FrontendConfig config, bool testWith
|
||||
result &= mDvrTests.getDvrPlaybackMQDescriptor() == success();
|
||||
mDvrTests.startPlaybackInputThread(dvrConfig.playbackInputFile,
|
||||
dvrConfig.settings.playback());
|
||||
mDvrTests.startDvrPlayback();
|
||||
if (!result) {
|
||||
ALOGW("[vts] Software frontend dvr configure failed.");
|
||||
return failure();
|
||||
@@ -400,6 +401,7 @@ AssertionResult FrontendTests::stopTuneFrontend(bool testWithDemux) {
|
||||
status = mFrontend->stopTune();
|
||||
if (mIsSoftwareFe && testWithDemux) {
|
||||
mDvrTests.stopPlaybackThread();
|
||||
mDvrTests.stopDvrPlayback();
|
||||
mDvrTests.closeDvrPlayback();
|
||||
}
|
||||
return AssertionResult(status == Result::SUCCESS);
|
||||
|
||||
@@ -198,7 +198,7 @@ static int defaultScanFrontend = SCAN_DVBT;
|
||||
/** Configuration array for the frontend tune test */
|
||||
inline void initFrontendConfig() {
|
||||
FrontendDvbtSettings dvbtSettings{
|
||||
.frequency = 578000,
|
||||
.frequency = 578000000,
|
||||
.transmissionMode = FrontendDvbtTransmissionMode::AUTO,
|
||||
.bandwidth = FrontendDvbtBandwidth::BANDWIDTH_8MHZ,
|
||||
.constellation = FrontendDvbtConstellation::AUTO,
|
||||
|
||||
Reference in New Issue
Block a user