mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Merge "Fix tunerhal vts feId uninitialized on getFrontendIdByType" into android11-tests-dev
This commit is contained in:
15
tv/tuner/1.0/vts/functional/FrontendTests.cpp
Normal file → Executable file
15
tv/tuner/1.0/vts/functional/FrontendTests.cpp
Normal file → Executable file
@@ -418,17 +418,14 @@ AssertionResult FrontendTests::closeFrontend() {
|
||||
|
||||
void FrontendTests::getFrontendIdByType(FrontendType feType, uint32_t& feId) {
|
||||
ASSERT_TRUE(getFrontendIds());
|
||||
if (mFeIds.size() > 0) {
|
||||
for (size_t i = 0; i < mFeIds.size(); i++) {
|
||||
ASSERT_TRUE(getFrontendInfo(mFeIds[i]));
|
||||
if (mFrontendInfo.type != feType) {
|
||||
feId = INVALID_ID;
|
||||
for (size_t i = 0; i < mFeIds.size(); i++) {
|
||||
ASSERT_TRUE(getFrontendInfo(mFeIds[i]));
|
||||
if (mFrontendInfo.type != feType) {
|
||||
continue;
|
||||
}
|
||||
feId = mFeIds[i];
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
feId = INVALID_ID;
|
||||
feId = mFeIds[i];
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user