Merge "CEC : fix VtsHalTvCecV1_0TargetTest SendMessage test failed." am: c054e7fda9

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

Change-Id: I7dfd717ddd0635fd8fa56cc1058ad2c0c7ca28b8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Nathalie Le Clair 2023-04-21 14:29:30 +00:00 committed by Automerger Merge Worker
commit 2c01719f44

View file

@ -127,6 +127,14 @@ TEST_P(HdmiCecTest, PhysicalAddress) {
TEST_P(HdmiCecTest, SendMessage) {
CecMessage message;
if (hasDeviceType(CecDeviceType::TV))
{
hdmiCec->clearLogicalAddress();
Return<Result> result = hdmiCec->addLogicalAddress(CecLogicalAddress::TV);
EXPECT_EQ(result, Result::SUCCESS);
message.initiator = CecLogicalAddress::TV;
}
else
message.initiator = CecLogicalAddress::PLAYBACK_1;
message.destination = CecLogicalAddress::BROADCAST;
message.body.resize(1);