Remove CarUsbHandler dialog visibility.

This commit modifies the CarUsbHandler to not display its dialog when
there is only one handler for a USB device. There is no good reason to
consume a large amount of screen space when there are no options for a
device, and it is better to only show the dialog when the user actually
has to make a choice. There is a small trade-off in that now the user
does not have any visual indication on the screen that their USB device
is being processed.

Bug: 132441113

Test: Connect an Android phone with the Android Auto app installed to
a Hawk via USB. Android Auto projected should start projecting via
aareceiver without any intermediate dialog being shown.

Change-Id: I90336919659ee4f337ed1c8659efea9cedada849
5 files changed
tree: d2b9b01e740534f19c8a0e727137a2700edd7447
  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.