Refine infeasible frontend status check am: 9b13077c4c

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

Change-Id: I4a5f52304971ef1477147850eae9067455d1d221
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Ray Chin 2024-04-03 23:57:27 +00:00 committed by Automerger Merge Worker
commit 863f96ecdd
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();