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

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

Change-Id: I4920eff781fe7cb17eb0e917c7d4e72e5a878597
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Ray Chin 2024-04-04 01:22:03 +00:00 committed by Automerger Merge Worker
commit 6939acfb20
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();