diff options
author | Yifan Hong <elsk@google.com> | 2020-01-28 16:11:39 -0800 |
---|---|---|
committer | Yifan Hong <elsk@google.com> | 2020-04-10 21:51:15 +0000 |
commit | 133c495d1a19cd689ec518e8e35344cac196e779 (patch) | |
tree | 9abf18ff0fb7b0c6347c364f3ca34d7e5e62e380 /identity/support/src | |
parent | a6491f8adfe0ee0b2a3e1f4ca3c141fc21b20220 (diff) |
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 94841c9df15b3c95b4c64973dbd7b70073006539)
Merged-In: Ic5a714b830ffeca1dcd000c6cad0fbfe8a8710ed
Diffstat (limited to 'identity/support/src')
0 files changed, 0 insertions, 0 deletions