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
1 file changed
tree: ce2e25617d2d586dbf6e5d22768621f273415e12
  1. car-bugreportd/
  2. car-default-input-service/
  3. car-lib/
  4. car-maps-placeholder/
  5. car-systemtest-lib/
  6. car-test-lib/
  7. car-usb-handler/
  8. car_product/
  9. EncryptionRunner/
  10. evs/
  11. FrameworkPackageStubs/
  12. obd2-lib/
  13. procfs-inspector/
  14. service/
  15. tests/
  16. tools/
  17. user/
  18. vehicle-hal-support-lib/
  19. .clang-format
  20. .gitignore
  21. Android.mk
  22. CleanSpec.mk
  23. OWNERS
  24. PREUPLOAD.cfg
  25. README.md
README.md

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.