Develop host side power policy cts without a device helper app
1. use dumpsys as the tool to retrieve CPMS runtime status
2. use shell commands to define and apply power polices
3. use shell commands to trigger car power VHAL events
4. parse the outputs from shell commands into CpmsStateInfo,
PowerPolicyDef and SilentModeInfo objects to monitor and check various
conditions and criteria
5. As the first phase, the outputs are text based. In the second phase,
the proto buffer based shell command outpus shall be implemented.
6. Due to the total code change is more than 500 LOC, check in these
first four self contained files.
Bug: 183744994
Test: atest CtsCarHostTestCases:PowerPolicyHostTest
Change-Id: Ic904bf8cce977078d56d8d557a00ba960a902510
4 files changed