Fix map of virtual displays to physical ports

mPortLookup is map of display ids to physical ports. For virtual
displays we had incorrectly saved a map of the virtual display's
id to its physical display id.

This wasn't caught earlier because most of our test devices seem
to use the same id for the display and physical port.

Bug: 154263657
Test: atest CarUxRestrictionsManagerServiceTest
Change-Id: I1ba01c3277fcb2406c96dcef76ae7ec0d80b8059
2 files changed
tree: 7855a5adc1fa8b033de2ec96dd56fdb84fccf767
  1. car-bugreportd/
  2. car-default-input-service/
  3. car-internal-lib/
  4. car-lib/
  5. car-maps-placeholder/
  6. car-systemtest-lib/
  7. car-test-lib/
  8. car-usb-handler/
  9. car_product/
  10. computepipe/
  11. evs/
  12. experimental/
  13. FrameworkPackageStubs/
  14. obd2-lib/
  15. procfs-inspector/
  16. service/
  17. surround_view/
  18. tests/
  19. tools/
  20. user/
  21. vehicle-hal-support-lib/
  22. watchdog/
  23. .clang-format
  24. .gitignore
  25. Android.mk
  26. CleanSpec.mk
  27. CPPLINT.cfg
  28. OWNERS
  29. PREUPLOAD.cfg
  30. README.md
  31. TEST_MAPPING
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.