diff options
author | Abhijeet Dharmapurikar <adharmap@codeaurora.org> | 2015-01-06 18:08:03 -0800 |
---|---|---|
committer | Linux Build Service Account <lnxbuild@localhost> | 2015-10-06 03:22:41 -0600 |
commit | e8dd797fa233f4a127b1c146601a47cba1f6e02d (patch) | |
tree | c9de0b5266a75bb37621a1f92207f95090e8b9f9 /healthd/BatteryMonitor.cpp | |
parent | 23214af7b2edaae110e12e7bc7e462e9fcaa8f15 (diff) | |
download | system_core-e8dd797fa233f4a127b1c146601a47cba1f6e02d.zip system_core-e8dd797fa233f4a127b1c146601a47cba1f6e02d.tar.gz system_core-e8dd797fa233f4a127b1c146601a47cba1f6e02d.tar.bz2 |
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
Diffstat (limited to 'healthd/BatteryMonitor.cpp')
-rw-r--r-- | healthd/BatteryMonitor.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/healthd/BatteryMonitor.cpp b/healthd/BatteryMonitor.cpp index 2f0fefe..a6725a2 100644 --- a/healthd/BatteryMonitor.cpp +++ b/healthd/BatteryMonitor.cpp @@ -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 }, }; |