summaryrefslogtreecommitdiffstats
path: root/healthd
diff options
context:
space:
mode:
authorAbhijeet Dharmapurikar <adharmap@codeaurora.org>2015-09-14 16:35:26 -0700
committerLinux Build Service Account <lnxbuild@localhost>2015-10-06 03:22:42 -0600
commit725a8913291aa88d1ba55f4ca888a5f0bf06c742 (patch)
tree30c47b8917c77cdbc38e911e4e8c9e8b2e2eabdb /healthd
parentc9e804ffd8d4108806eb8162fe7cf35f179b0596 (diff)
downloadsystem_core-725a8913291aa88d1ba55f4ca888a5f0bf06c742.zip
system_core-725a8913291aa88d1ba55f4ca888a5f0bf06c742.tar.gz
system_core-725a8913291aa88d1ba55f4ca888a5f0bf06c742.tar.bz2
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
Diffstat (limited to 'healthd')
-rw-r--r--healthd/BatteryMonitor.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/healthd/BatteryMonitor.cpp b/healthd/BatteryMonitor.cpp
index a6725a2..b0e9a4d 100644
--- a/healthd/BatteryMonitor.cpp
+++ b/healthd/BatteryMonitor.cpp
@@ -135,6 +135,7 @@ BatteryMonitor::PowerSupplyType BatteryMonitor::readPowerSupplyType(const String
{ "USB_CDP", ANDROID_POWER_SUPPLY_TYPE_AC },
{ "USB_ACA", ANDROID_POWER_SUPPLY_TYPE_AC },
{ "USB_HVDCP", ANDROID_POWER_SUPPLY_TYPE_AC },
+ { "USB_HVDCP_3", ANDROID_POWER_SUPPLY_TYPE_AC },
{ "Wireless", ANDROID_POWER_SUPPLY_TYPE_WIRELESS },
{ "Wipower", ANDROID_POWER_SUPPLY_TYPE_WIRELESS },
{ NULL, 0 },