BatteryDefender: Set this device to use wireless "online" instead of "present"

Test: atest HealthTestCases
Bug: 175614345
Change-Id: I47d93d0c10263a741e2ffb7a80de18d3634f2db3
(cherry picked from commit d2304281e2a943875883b63f4aa82ec80a03e6c0)
diff --git a/health/HealthService.cpp b/health/HealthService.cpp
index 93eebfe..d97c1a8 100644
--- a/health/HealthService.cpp
+++ b/health/HealthService.cpp
@@ -53,7 +53,9 @@
 constexpr char kBatteryOCV[] = "/sys/class/power_supply/maxfg/voltage_ocv";
 constexpr char kVoltageAvg[] = "/sys/class/power_supply/maxfg/voltage_avg";
 
-static BatteryDefender battDefender;
+#define WLC_DIR "/sys/class/power_supply/wireless"
+
+static BatteryDefender battDefender(WLC_DIR "/online");
 static BatteryRechargingControl battRechargingControl;
 static BatteryThermalControl battThermalControl("sys/devices/virtual/thermal/tz-by-name/soc/mode");
 static BatteryMetricsLogger battMetricsLogger(kBatteryResistance, kBatteryOCV);