summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenson Leung <bleung@google.com>2015-10-07 16:12:04 -0700
committerSteve Kondik <steve@cyngn.com>2016-07-01 06:26:48 -0700
commitdd0866421e41fb2a38e22c8a94ee93e199599ec1 (patch)
treef3fcab4a8a7f40c9c789d172c1bcb609fbc7b5f5
parentd68de66ea754d8b49815d20b10e69d162ca0a7e1 (diff)
downloadsystem_core-dd0866421e41fb2a38e22c8a94ee93e199599ec1.tar.gz
system_core-dd0866421e41fb2a38e22c8a94ee93e199599ec1.tar.bz2
system_core-dd0866421e41fb2a38e22c8a94ee93e199599ec1.zip
healthd: Support new PD and USB Type C types
See the new types added here : https://chromium-review.googlesource.com/304660 Add support for these. Signed-off-by: Benson Leung <bleung@google.com> Change-Id: I12c51e0611692a763a7f1cda57c77ad83d7aa7ea
-rw-r--r--healthd/BatteryMonitor.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/healthd/BatteryMonitor.cpp b/healthd/BatteryMonitor.cpp
index 67a8ad0c3..dfa59b891 100644
--- a/healthd/BatteryMonitor.cpp
+++ b/healthd/BatteryMonitor.cpp
@@ -140,6 +140,9 @@ BatteryMonitor::PowerSupplyType BatteryMonitor::readPowerSupplyType(const String
{ "USB_ACA", ANDROID_POWER_SUPPLY_TYPE_AC },
{ "USB_HVDCP", ANDROID_POWER_SUPPLY_TYPE_AC },
{ "USB_HVDCP_3", ANDROID_POWER_SUPPLY_TYPE_AC },
+ { "USB_C", ANDROID_POWER_SUPPLY_TYPE_AC },
+ { "USB_PD", ANDROID_POWER_SUPPLY_TYPE_AC },
+ { "USB_PD_DRP", ANDROID_POWER_SUPPLY_TYPE_USB },
{ "Wireless", ANDROID_POWER_SUPPLY_TYPE_WIRELESS },
{ "Wipower", ANDROID_POWER_SUPPLY_TYPE_WIRELESS },
{ "DockBattery", ANDROID_POWER_SUPPLY_TYPE_DOCK_BATTERY },