Have the trust agent check if car service is available.

CarBleTrustAgent is started onDeviceLocked from TrustManagerService. But
Car Service itself might be null if it had crashed. CarBleTrustAgent
should check the Car services for null before accessing them.

Bug: 138325765
Test: Multiple reboots with pin enabled.
Change-Id: I365273f2c6f298c1876b73061e6b44e4c5cc6d8e
(cherry picked from commit 241b383ba11f72f8618a4f2c69f100d9a0dc06ee)
1 file changed
tree: b3275dd238348329152a52acafe84c1857f2ce80
  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.