Change the launchMode of the UsbHostManagementActivity to standard

The launchMode of the UsbHostManagementActivity is currently set to
singleTop. This causes issues when there is more than one USB device
connected, and they are not all aoap devices. Each USB device should be
processed in its own activity, but since the activity is being launched
singleTop, there is only one activity instance, and it just receiving a
new Intent for each USB device, instead of starting a brand new
activity. Changing the Activity to standard allows a new Activity to
start for each device.

Bug: 138004874

Test: Flash Hawk in car. Hawk in car has at least one other USB device
(USB to Ethernet adapter). Boot Hawk (start car)  and run embedded first
run setup. Modify the setting in the Embedded Settings App under More->System->Android Auto called
"Launch Android Auto on Phone USB Connection" to be enabled. After finishing setup,
shutdown the Hawk, and plug in a phone which supports the Android Auto App
(and has it installed). Boot the Hawk, and verify that Android Auto
projected starts on boot.

Change-Id: Ie26a4a130aca5071c2f28e18863c61174d06f8b9
1 file changed
tree: c09e3d7f9212a6df8f766964be32ffcfe01e80e0
  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.