Allow power transition from "Wait for Finish" to "On"

Some OEMs want to bring the system to the point of shutting down,
but hold it there for a few minutes. They may then either shut
down or bring the system back up.

Previously, once all the preparations for shutting down were complete,
the only permitted power transition was to shut down. This CL allows
the shut down operation to be canceled even when everything is all set
to power down.

Fixes: 153755740
Test: Created CarPowerManagementTest.testCancelShutdownFromWaitForFinish
Change-Id: I57745a9c8267968c48db8fe7de083c5d4af27341
2 files changed
tree: b6f11b1e6af2385bcb7538ddca93e2f8f5da29b8
  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
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.