google_battery: Allow writes of '0' when alarm/other disables AC

Ensures that a deadline >= 0 is considered a MISC event, not a
SETTING_STOP event, when the state of AC is disabled.

Bug: 165833837
Signed-off-by: Stephane Lee <[email protected]>
Change-Id: Id6d99e791b5bace52148ae1c0050d8feffeed167
Signed-off-by: Ken Tsou <[email protected]>
(cherry picked from commit 71f1643acbbcf8fd2e2425865ad8a9890ae939b5)
2 files changed