commit | 745584879dd5ff13aa2fbafedf35234f04777947 | [log] [tgz] |
---|---|---|
author | Anthony Hugh <ahugh@google.com> | Thu Jun 27 15:18:41 2019 -0700 |
committer | Anthony Hugh <ahugh@google.com> | Thu Jun 27 15:18:41 2019 -0700 |
tree | ce2e25617d2d586dbf6e5d22768621f273415e12 | |
parent | 297628c4936b5db1964ac58619602a32bcd873d3 [diff] |
Reduce registered intents in DisplayInterface DisplayInterface shouldn't need to be registered to so many user triggers. The listener is currently only set up to change brightness to match the current foreground user id. Reducing the triggers to just ACTION_USER_SWITCHED should be sufficient. Bug: 135472254 Test: atest CarServiceUnitTest Test: Add log to print brightness value. Manually ensure the correct reading was read upon ACTION_USER_SWITCHED. Change-Id: Idac0084c87f825f8b34af1830b050d395e604538
Native (C++) code format is required to be compatible with .clang-format file. Run
git clang-format --style=file --extension='h,cpp,cc' HEAD~
Note that clang-format is not desirable for Android java files. Therefore the command line above is limited to specific extensions.