commit | 5690bde1e9192bc161ff6ae9fc80d8c4eaef6fd9 | [log] [tgz] |
---|---|---|
author | Dominik Laskowski <domlaskowski@google.com> | Thu Apr 23 19:04:22 2020 -0700 |
committer | Dominik Laskowski <domlaskowski@google.com> | Mon Apr 27 17:41:27 2020 -0700 |
tree | 840c4ce1c5d00b75aa9a8a478ba580a7740f193b | |
parent | 8e89c2ad0f2981f196307285d7d45b42c17356e4 [diff] |
SF: Defer setDisplayBrightness to Binder thread setDisplayBrightness blocks for a long time so cannot run on the main thread. Keep display lookup on the main thread, but return a deferred future to the Binder thread and run it there. Bug: 154202427 Bug: 123715322 Test: systrace with backdoor to set brightness Change-Id: I88e60c95db5fdcaa1bf5ebb9711e3bf5ab6539a1