CtsStatsdHostTestCases: Fix on batteryless devices.

Two changes are necessary to handle batteryless devices nicely.
  * Battery capacity may be 0.
  * 'cmd battery unplug' alone is not sufficient to put the device
    on simulated "on battery" mode. On P, changing state is by
    default set to "unknown" on batteryless devices. Unless the
    status as well is overridden, on-battery mode is not triggered.

Bug: 126763581
Test: CtsStatsdHosTestCases on Chromebase and phones

Change-Id: I55474a5084e9e069c4dc7c818916238b1221ef4d
Merged-In: I55474a5084e9e069c4dc7c818916238b1221ef4d
2 files changed