Merge "Merge "VTS: fix some logic errors for tuner HAL vts [1/1]" into android11-tests-dev am: 0638fc1ede" into android12-tests-dev

This commit is contained in:
Treehugger Robot
2021-12-20 22:33:03 +00:00
committed by Gerrit Code Review
2 changed files with 4 additions and 0 deletions

2
tv/tuner/1.0/vts/functional/FrontendTests.cpp Normal file → Executable file
View File

@@ -376,6 +376,7 @@ AssertionResult FrontendTests::tuneFrontend(FrontendConfig config, bool testWith
result &= mDvrTests.getDvrPlaybackMQDescriptor() == success();
mDvrTests.startPlaybackInputThread(mDvrConfig.playbackInputFile,
mDvrConfig.settings.playback());
mDvrTests.startDvrPlayback();
if (!result) {
ALOGW("[vts] Software frontend dvr configure failed.");
return failure();
@@ -399,6 +400,7 @@ AssertionResult FrontendTests::stopTuneFrontend(bool testWithDemux) {
status = mFrontend->stopTune();
if (mIsSoftwareFe && testWithDemux) {
mDvrTests.stopPlaybackThread();
mDvrTests.stopDvrPlayback();
mDvrTests.closeDvrPlayback();
}
return AssertionResult(status == Result::SUCCESS);

View File

@@ -443,6 +443,7 @@ AssertionResult FrontendTests::tuneFrontend(FrontendConfig1_1 config, bool testW
result &= mDvrTests.getDvrPlaybackMQDescriptor() == success();
mDvrTests.startPlaybackInputThread(mDvrConfig.playbackInputFile,
mDvrConfig.settings.playback());
mDvrTests.startDvrPlayback();
if (!result) {
ALOGW("[vts] Software frontend dvr configure failed.");
return failure();
@@ -458,6 +459,7 @@ AssertionResult FrontendTests::stopTuneFrontend(bool testWithDemux) {
status = mFrontend->stopTune();
if (mIsSoftwareFe && testWithDemux) {
mDvrTests.stopPlaybackThread();
mDvrTests.stopDvrPlayback();
mDvrTests.closeDvrPlayback();
}
return AssertionResult(status == Result::SUCCESS);