Merge "CEC : fix VtsHalTvCecV1_0TargetTest SendMessage test failed." am: c054e7fda9
am: 2c01719f44
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2535500 Change-Id: Ib9e5ac21f23b5eb852e12cdf5f00c5316fd3f05b Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
1ef37ce895
1 changed files with 9 additions and 1 deletions
|
@ -127,7 +127,15 @@ TEST_P(HdmiCecTest, PhysicalAddress) {
|
|||
|
||||
TEST_P(HdmiCecTest, SendMessage) {
|
||||
CecMessage message;
|
||||
message.initiator = CecLogicalAddress::PLAYBACK_1;
|
||||
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);
|
||||
message.body[0] = 131;
|
||||
|
|
Loading…
Reference in a new issue