Yifan Hong 133c495d1a 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

Fixes: 136717180
Change-Id: Ic5a714b830ffeca1dcd000c6cad0fbfe8a8710ed
(cherry picked from commit 94841c9df1)
Merged-In: Ic5a714b830ffeca1dcd000c6cad0fbfe8a8710ed
2020-04-10 21:51:15 +00:00
2020-04-07 16:37:40 -07:00
2020-04-07 16:37:40 -07:00
2020-04-07 16:37:40 -07:00
2020-04-07 16:37:40 -07:00
2020-04-07 16:37:40 -07:00
2020-04-07 16:37:40 -07:00
2020-04-07 16:37:40 -07:00
2020-03-30 15:01:03 +09:00
2020-04-07 16:37:40 -07:00
2020-04-07 16:37:40 -07:00
2020-04-07 16:37:40 -07:00
2020-04-07 16:37:40 -07:00
2020-04-07 16:37:40 -07:00
2020-04-07 16:37:40 -07:00
2020-04-07 16:37:40 -07:00
2020-04-07 16:37:40 -07:00
2020-04-07 16:37:40 -07:00
2020-04-07 16:37:40 -07:00
2020-04-07 16:37:40 -07:00
2020-04-07 16:37:40 -07:00
2020-04-07 16:37:40 -07:00
2020-04-07 16:37:40 -07:00
2020-04-07 16:37:40 -07:00
2020-04-07 16:37:40 -07:00
2019-04-23 12:51:21 -07:00
2020-04-07 16:37:40 -07:00
2020-04-07 16:37:40 -07:00
2020-04-07 16:37:40 -07:00
2020-04-07 16:37:40 -07:00
2020-04-07 16:37:40 -07:00
2020-03-30 15:00:27 +09:00
2020-04-07 16:37:40 -07:00
2020-04-07 16:37:40 -07:00
2020-04-07 16:37:40 -07:00
2020-04-07 16:37:40 -07:00
2020-04-07 16:37:40 -07:00
2020-04-07 16:37:40 -07:00
2019-12-13 14:24:23 -08:00
2016-08-30 11:28:36 -07:00
2016-08-30 11:28:36 -07:00
2019-12-10 09:51:58 -08:00
Description
No description provided
134 MiB
Languages
C++ 56.3%
AIDL 41.2%
C 1.5%
Rust 0.4%
Java 0.4%
Other 0.1%