Add retries to CEC detection
When CEC source devices attempt to query whether the sink device
supports CEC, they query the target devices power status.
As this query might happen when the sink device is just waking up, as
part of a One Touch Play sequence, the sink device might be too slow to
respond to the query in time (2s).
Add a single retry to ensure the sink device has another chance to
respond to the query. If the target device doesn't ACK the query
message, assume no CEC support. The retry should increase stability of
CEC volume control mode detection.
Bug: 172539380
Test: atest DevicePowerStatusActionTest
Change-Id: Ic6cb5da968da5e12fbaea6b3ad2fa5cff82728e8
2 files changed