diff options
author | Benson Leung <bleung@google.com> | 2015-10-07 16:12:04 -0700 |
---|---|---|
committer | Ruchi Kandoi <kandoiruchi@google.com> | 2015-11-12 18:12:43 -0800 |
commit | 8a4eef60e135260f1f35675f4ad5107ae1457ed0 (patch) | |
tree | a40618398c0da3ff0118c26b1d276f908a2da22a | |
parent | 5d75c9d9c20181defe778e018a50c37ab784cffc (diff) | |
download | system_core-8a4eef60e135260f1f35675f4ad5107ae1457ed0.tar.gz system_core-8a4eef60e135260f1f35675f4ad5107ae1457ed0.tar.bz2 system_core-8a4eef60e135260f1f35675f4ad5107ae1457ed0.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.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/healthd/BatteryMonitor.cpp b/healthd/BatteryMonitor.cpp index cb77a8e41..63904b653 100644 --- a/healthd/BatteryMonitor.cpp +++ b/healthd/BatteryMonitor.cpp @@ -136,6 +136,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_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 }, { NULL, 0 }, }; |