• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

system/corennnnn


Commit MetaInfo

修訂a197183cfe4aa85d45a70873b2bcaa5c761c7232 (tree)
時間2016-07-20 18:01:29
作者Pavan Kumar S <pavan.kumar.s@inte...>
CommiterChih-Wei Huang

Log Message

healthd: Add USB_TYPEC to power-supply type list

A new power-supply type is added in power-supply framework to
support USB_TYPEC. healthd needs to be updated to accomodate this type.

Change-Id: Ib69d82c3460433161e2955d50765caf18538bed1
Tracked-On: https://jira01.devtools.intel.com/browse/OAM-6732
Signed-off-by: Pavan Kumar S <pavan.kumar.s@intel.com>
Reviewed-on: https://android.intel.com:443/374693
(cherry picked from commit 601a4014f44e581832cad2e8f49051c9a6b33e75)
Reviewed-on: https://android.intel.com:443/429348

Change Summary

差異

--- a/healthd/BatteryMonitor.cpp
+++ b/healthd/BatteryMonitor.cpp
@@ -137,6 +137,7 @@ BatteryMonitor::PowerSupplyType BatteryMonitor::readPowerSupplyType(const String
137137 { "USB_DCP", ANDROID_POWER_SUPPLY_TYPE_AC },
138138 { "USB_CDP", ANDROID_POWER_SUPPLY_TYPE_AC },
139139 { "USB_ACA", ANDROID_POWER_SUPPLY_TYPE_AC },
140+ { "USB_TYPEC", ANDROID_POWER_SUPPLY_TYPE_AC },
140141 { "Wireless", ANDROID_POWER_SUPPLY_TYPE_WIRELESS },
141142 { NULL, 0 },
142143 };