[AAE display] Disable touch input when the display is off

Disable touch inputs when we turn the display off. This prevents
the user from waking the system by touching a dark display. (Which
could otherwise happen in Garage Mode.)

This CL also re-enables touch input when we turn the display on.

Fixes: 140564727
Test: On Hawk using 'adb shell dumpsys car_service suspend'

Merged-In: I29a218a4a98ab65ff1742143d7a4213e8f2c4eaa
Change-Id: I29a218a4a98ab65ff1742143d7a4213e8f2c4eaa
1 file changed
tree: 5405aab2c6effc438b4623a0fd2ca8421fba66d8
  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.