Refactored InitialUserSetter to use a single set(InitialUserInfo) method.

Before, it was providing 3 different methods (for executeDefaultBehavior(),
switchUser(), and createUser()), which would make it harder to add new
properties for the initial user (like default locale).

Bug: 156611139
Test: atest CarHelperServiceTest CarPowerManagementServiceTest

Change-Id: I723c72d1d4c5142e15761bbdf3f66c5b2e86148a
4 files changed
tree: 9c1a1763904a2624807a41f8700422e1a1182a50
  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. EncryptionRunner/
  12. evs/
  13. experimental/
  14. FrameworkPackageStubs/
  15. obd2-lib/
  16. procfs-inspector/
  17. service/
  18. surround_view/
  19. tests/
  20. tools/
  21. user/
  22. vehicle-hal-support-lib/
  23. watchdog/
  24. .clang-format
  25. .gitignore
  26. Android.mk
  27. CleanSpec.mk
  28. CPPLINT.cfg
  29. OWNERS
  30. PREUPLOAD.cfg
  31. README.md
  32. 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.