Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e8dd797f authored by Abhijeet Dharmapurikar's avatar Abhijeet Dharmapurikar Committed by Linux Build Service Account
Browse files

healthd: Add support for HVDCP and Wipower chargers

HVDCP charger is high voltage DCP chargers. Add support to recognize
it and treat them as AC power source.
Also, Wipower charging is a wireless charger where the power transfer
is via resonance and power control messages are exchanged over BLE.
Treat Wipower as a wireless charger.

CRs-Fixed: 775241
Change-Id: Id49bc31111825721ffce5a71c29f79659c5fddf0
parent 23214af7
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -134,7 +134,9 @@ BatteryMonitor::PowerSupplyType BatteryMonitor::readPowerSupplyType(const String
            { "USB_DCP", ANDROID_POWER_SUPPLY_TYPE_AC },
            { "USB_CDP", ANDROID_POWER_SUPPLY_TYPE_AC },
            { "USB_ACA", ANDROID_POWER_SUPPLY_TYPE_AC },
            { "USB_HVDCP", ANDROID_POWER_SUPPLY_TYPE_AC },
            { "Wireless", ANDROID_POWER_SUPPLY_TYPE_WIRELESS },
            { "Wipower", ANDROID_POWER_SUPPLY_TYPE_WIRELESS },
            { NULL, 0 },
    };