Refine infeasible frontend status check am: 9b13077c4c am: 863f96ecdd

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3022524

Change-Id: I6affc1b0ba99edde204a4a6f61ba46e6935ea3e7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Ray Chin 2024-04-04 00:17:14 +00:00 committed by Automerger Merge Worker
commit 1cd6ce486e
2 changed files with 2 additions and 9 deletions

View file

@ -353,8 +353,7 @@ void FrontendTests::verifyFrontendStatus(vector<FrontendStatusType> statusTypes,
break;
}
case FrontendStatusType::UEC: {
ASSERT_TRUE(realStatuses[i].get<FrontendStatus::Tag::uec>() ==
expectStatuses[i].get<FrontendStatus::Tag::uec>());
ASSERT_TRUE(realStatuses[i].get<FrontendStatus::Tag::uec>() >= 0);
break;
}
case FrontendStatusType::T2_SYSTEM_ID: {

View file

@ -273,16 +273,10 @@ struct TunerTestingConfigAidlReader1_0 {
vector<FrontendStatusType> types;
vector<FrontendStatus> statuses;
types.push_back(FrontendStatusType::DEMOD_LOCK);
types.push_back(FrontendStatusType::UEC);
types.push_back(FrontendStatusType::IS_MISO);
FrontendStatus status;
status.set<FrontendStatus::Tag::isDemodLocked>(true);
statuses.push_back(status);
status.set<FrontendStatus::Tag::uec>(4);
statuses.push_back(status);
status.set<FrontendStatus::Tag::isMiso>(true);
status.set<FrontendStatus::Tag::uec>(0);
statuses.push_back(status);
auto frontends = *hardwareConfig.getFirstFrontends();