HDMICEC : Update inactive source test to use set stream path
Bug: 165433563
Test: atest HdmiCecRoutingControlTest#cect_11_2_2_4_InactiveSourceOnStandby
Change-Id: I79ef3391224e5be38b1351fecc1415c7da439eae
diff --git a/hostsidetests/hdmicec/src/android/hdmicec/cts/playback/HdmiCecRoutingControlTest.java b/hostsidetests/hdmicec/src/android/hdmicec/cts/playback/HdmiCecRoutingControlTest.java
index bbba1c4..f18268e 100644
--- a/hostsidetests/hdmicec/src/android/hdmicec/cts/playback/HdmiCecRoutingControlTest.java
+++ b/hostsidetests/hdmicec/src/android/hdmicec/cts/playback/HdmiCecRoutingControlTest.java
@@ -99,14 +99,17 @@
/**
* Test 11.2.2-4
* Tests that the device sends a <INACTIVE_SOURCE> message when put on standby.
- * This test depends on One Touch Play, and will pass only if One Touch Play passes.
*/
@Test
public void cect_11_2_2_4_InactiveSourceOnStandby() throws Exception {
ITestDevice device = getDevice();
try {
int dumpsysPhysicalAddress = getDumpsysPhysicalAddress();
- device.executeShellCommand("input keyevent KEYCODE_HOME");
+ hdmiCecClient.sendCecMessage(
+ LogicalAddress.TV,
+ LogicalAddress.BROADCAST,
+ CecOperand.SET_STREAM_PATH,
+ CecMessage.formatParams(dumpsysPhysicalAddress));
device.executeShellCommand("input keyevent KEYCODE_SLEEP");
String message = hdmiCecClient.checkExpectedOutput(LogicalAddress.TV,
CecOperand.INACTIVE_SOURCE);