platform_hardware_interfaces/health
Yifan Hong 94841c9df1 health 2.0 vts: add battery current test.
Require the following on battery current:
- skip health info tests if current is 0 (indicates the value is unavailable)
- when charging, positive
- when discharging / not charging, negative
- when unknown, zero
- batteryCurrentAverage should be similar to batteryCurrentNow.

All new tests are executed over
a period of time to avoid effects of fluctuation in
battery current, and ensure battery status is initialized.

Requirements are enforced on devices launching with R
only.

Require the following on battery status:
- if not charging / full / charging, must be connected
- if discharging, must not be connected.

Test: run on coral, tests are skipped
Test: run on cuttlefish, test passes

Bug: 136717180
Change-Id: Ic5a714b830ffeca1dcd000c6cad0fbfe8a8710ed
2020-04-09 11:32:42 -07:00
..
1.0 Rename vts-core to vts 2020-04-07 15:17:02 -07:00
2.0 health 2.0 vts: add battery current test. 2020-04-09 11:32:42 -07:00
2.1 Rename vts-core to vts 2020-04-07 15:17:02 -07:00
storage/1.0 Rename vts-core to vts 2020-04-07 15:17:02 -07:00
utils Remove String8(StaticLinkage) references. 2020-02-24 17:39:51 -08:00