OSDN Git Service

add libbatteryservice
authorTodd Poynor <toddpoynor@google.com>
Thu, 16 May 2013 21:51:15 +0000 (14:51 -0700)
committerTodd Poynor <toddpoynor@google.com>
Thu, 25 Jul 2013 01:57:32 +0000 (01:57 +0000)
commit87bf0d97be5ef2689546b246dfb6c21c4eec3ce0
tree07ead5657d11419fc9547cbe094f2731364664e0
parenta7b0f04aaf7f04a9617dbbc839b1aaa6f20ca6d6
add libbatteryservice

IBatteryPropertiesListener is used by clients such as BatteryService to
receive notifications of changed battery/power status (from healthd).

IBatteryPropertiesRegistrar manages registrations of
IBatteryPropertiesListener clients.

Add BatteryService native header with defines from BatteryManager, and
class BatteryProperties to pass battery/power status around.

Change-Id: I44e2736e503b586794097b7b9d31d07fefd9b15a
include/batteryservice/BatteryService.h [new file with mode: 0644]
include/batteryservice/IBatteryPropertiesListener.h [new file with mode: 0644]
include/batteryservice/IBatteryPropertiesRegistrar.h [new file with mode: 0644]
services/batteryservice/Android.mk [new file with mode: 0644]
services/batteryservice/BatteryProperties.cpp [new file with mode: 0644]
services/batteryservice/IBatteryPropertiesListener.cpp [new file with mode: 0644]
services/batteryservice/IBatteryPropertiesRegistrar.cpp [new file with mode: 0644]