summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorNathalie Le Clair <lcnathalie@google.com>2021-04-14 15:08:39 +0200
committerNathalie Le Clair <lcnathalie@google.com>2021-04-16 10:16:22 +0200
commit1b49368d9fb7aed34b021c1f61a030e501cd5939 (patch)
tree15f140a69c1665bf7723171860ce2dd379e6f364 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentbb98628e597badcb31501f3e044fff483205683b (diff)
Treat TV_POWER as POWER on non-CEC sink
If a non-CEC sink is detected, KEYCODE_TV_POWER will now fall back on KEYCODE_POWER. This change uses an existing detection mechanism, until now only used to inform listeners about a non-CEC sink. Before this change, CEC initialization triggered a DevicePowerStatusAction only if there were listeners registered. After this change, DevicePowerStatusAction is started regardless of listeners. Since in unit tests there are no listeners registered, this change introduced a DevicePowerStatusAction in the test setUp() method. Unit tests needed to be updated to account for this additional action: - introduce wait times to allow for the DevicePowerStatusAction to time-out before starting a new DevicePowerStatusAction - introduce wait times to allow for the DevicePowerStatusAction to time-out before checking that <Standby> is sent - clear list of messages sent after DevicePowerStatusAction for tests explicitely verifying that <Give Device Power Status> is sent Bug: 185092253 Test: atest Change-Id: I9974c08e79aae04d3658e8ed2e3f55e77b81c558
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions