mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
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:
2
tv/tuner/1.0/vts/functional/FrontendTests.cpp
Normal file → Executable file
2
tv/tuner/1.0/vts/functional/FrontendTests.cpp
Normal file → Executable 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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user