commit | c9b9464ad88d047d8f9f892ee3f2c0d410726e3a | [log] [tgz] |
---|---|---|
author | Chris Ye <lzye@google.com> | Wed Mar 24 23:51:10 2021 -0700 |
committer | Chris Ye <lzye@google.com> | Wed Apr 28 16:08:39 2021 -0700 |
tree | 1e1a24229c7d5faa67686ac3f9f5dfa03ec70fa2 | |
parent | 1700fa9e5cbe7fd0ae5ec3f80e49627c16bd0015 [diff] |
Rename Battery to BatteryState. Rename Battery to BatteryState, and rename the method hasBattery to isPresent. Return NaN in getCapacity() if capacity can not be read. Bug: 180733860 Test: atest android.hardware.input.cts.tests Change-Id: I8e855be0b263479c2744b817df5f591c9d1e4a64