Migrate usage of BluetoothAdapter#getDefaultAdapter to BluetoothManager#GetAdapter

Bug: 195587287
Test: atest CarServiceUnitTest
Change-Id: Ia323570c1a090af23b13d9ebbeb251a8f0132806
9 files changed
tree: 8caa4b28e1d4aa37213b76d9a6bc0d6a1e4d4518
  1. car-admin-ui-lib/
  2. car-builtin-lib/
  3. car-lib/
  4. car-lib-module/
  5. car-maps-placeholder/
  6. car-systemtest-lib/
  7. car-test-lib/
  8. car-usb-handler/
  9. car_product/
  10. cpp/
  11. data/
  12. experimental/
  13. FrameworkPackageStubs/
  14. obd2-lib/
  15. packages/
  16. procfs-inspector/
  17. service/
  18. service-builtin/
  19. tests/
  20. tools/
  21. user/
  22. vehicle-hal-support-lib/
  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

AAOS

Source code for Android Automotive OS.

Structure

car_product/           - AAOS product
car-lib/               - Car API
cpp/                   - Native services
experimental/          - Experimental Car API and services
service/               - Car service
tests/                 - Tests and sample apps
tools/                 - Helper scripts

C++

Native (C++) code format is required to be compatible with .clang-format file. The formatter is already integrated to repo tool. To run manually, use:

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.