diff options
author | Marvin Ramin <marvinramin@google.com> | 2020-03-27 14:37:02 +0100 |
---|---|---|
committer | Marvin Ramin <marvinramin@google.com> | 2020-05-26 13:01:30 +0200 |
commit | a4f1117e76993b24a90039888d4d01b195e75308 (patch) | |
tree | 93e01137e648ec901771ff1d6e26c07ba37e7e5f /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 1c6f2f49082b11eb5471ed1512908d6b539bf157 (diff) |
Prevent multiple calls to queryDisplayStatus
For each registered listener, the display status would be queried. This
is causing a <Give Device Power Status> message to be sent,
unnecessarily spamming the CEC network.
Refactor the method to only query device power status once, then
notifying all listeners with the value.
Test: lunch adt3-userdebug; make -j
Change-Id: I49923e6193df30c03f56740ffec432f50f38d900
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions