Add Adaptive CPU hint to PowerExt.
This intercepts the setHint method when called with "ADAPTIVE_CPU":
- We don't build this into HintManager, as we don't need the
setBoost/isHintSupported methods. Wei, let me know if you would like us
to integrate with HintManager by extending `struct Hint` in some way.
- We don't need the `thread_enabled` flag anymore, as we don't need to
keep a thread alive to read config changes anymore.
- We remove the `adaptive_cpu.enabled` System Property from service.cpp.
This only guarded the initialization of AdaptiveCpu, which only assigns
member fields, so it's fine to remove.
Test: manual test
Bug: 187691504
Change-Id: I2bd553511010bb6176dd285b6c3616f2e359c992
7 files changed