google_battery: disable AC when BD triggers

Disable AdaptiveCharging when BatteryDefender triggers. Report in log
with vtier_idx equal to -5

Bug: 171086376
Test: trigger AC, trigger BD, check state
Signed-off-by: AleX Pelosi <[email protected]>
Change-Id: I1c062aafa522b471edfb4c75f21a3c45a0f9d0f4
Signed-off-by: Ken Tsou <[email protected]>
(cherry picked from commit 8fe4222a7a6ccc7dddc05fea2bfe4a24dc49cb9d)
diff --git a/google_bms.h b/google_bms.h
index 0869d3f..1fe70c1 100644
--- a/google_bms.h
+++ b/google_bms.h
@@ -225,6 +225,7 @@
  * 	CHG_HEALTH_ACTIVE   -> CHG_HEALTH_DONE
  */
 enum chg_health_state {
+	CHG_HEALTH_BD_DISABLED = -5,
 	CHG_HEALTH_USER_DISABLED = -3,
 	CHG_HEALTH_DISABLED = -2,
 	CHG_HEALTH_DONE = -1,
@@ -235,6 +236,7 @@
 
 /* tier index used to log the session */
 enum gbms_stats_tier_idx_t {
+	GBMS_STATS_AC_TI_DEFENDER = -5,
 	GBMS_STATS_AC_TI_DISABLE_SETTING_STOP = -4,
 	GBMS_STATS_AC_TI_DISABLE_MISC = -3,
 	GBMS_STATS_AC_TI_DISABLE_SETTING = -2,