Skip to content

Commit 1e32879

Browse files
Abhijeet DharmapurikarmikeNG
Abhijeet Dharmapurikar
authored andcommitted
healthd: Add support for HVDCP_3 chargers
HVDCP_3 is a high voltage DCP charger where the charger's voltage can be changed by issuing pulses on the D+/D- lines. Add support to recognize it and treat it as an AC power source. Change-Id: Ib719529904e8b7a676bbdc5f5953f0f9da6df3fa
1 parent f7f8bef commit 1e32879

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

healthd/BatteryMonitor.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ BatteryMonitor::PowerSupplyType BatteryMonitor::readPowerSupplyType(const String
150150
{ "USB", ANDROID_POWER_SUPPLY_TYPE_USB },
151151
{ "USB_DCP", ANDROID_POWER_SUPPLY_TYPE_AC },
152152
{ "USB_HVDCP", ANDROID_POWER_SUPPLY_TYPE_AC },
153+
{ "USB_HVDCP_3", ANDROID_POWER_SUPPLY_TYPE_AC },
153154
{ "USB_CDP", ANDROID_POWER_SUPPLY_TYPE_AC },
154155
{ "USB_ACA", ANDROID_POWER_SUPPLY_TYPE_AC },
155156
{ "USB_C", ANDROID_POWER_SUPPLY_TYPE_AC },

0 commit comments

Comments
 (0)