diff options
author | Jorge Ruesga <jorge@ruesga.com> | 2015-06-28 01:12:46 +0200 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2015-10-17 14:04:39 -0700 |
commit | bfcd44395079a34ff496ae960bdde6982064140b (patch) | |
tree | 8a88519b381a5c7ae7b700dfc642d8005aa32fae /include | |
parent | c1c5240aa9a924f371e8f310374d8e1885384274 (diff) | |
download | frameworks_native-bfcd44395079a34ff496ae960bdde6982064140b.tar.gz frameworks_native-bfcd44395079a34ff496ae960bdde6982064140b.tar.bz2 frameworks_native-bfcd44395079a34ff496ae960bdde6982064140b.zip |
native: dock battery
Change-Id: I23eadf0361cbe25029b95dbd022ce1a2cc96e94d
Require: topic:dock_battery
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/batteryservice/BatteryService.h | 11 | ||||
-rw-r--r-- | include/batteryservice/IBatteryPropertiesRegistrar.h | 3 |
2 files changed, 14 insertions, 0 deletions
diff --git a/include/batteryservice/BatteryService.h b/include/batteryservice/BatteryService.h index 6211cf4ca..1fd47fb69 100644 --- a/include/batteryservice/BatteryService.h +++ b/include/batteryservice/BatteryService.h @@ -1,5 +1,6 @@ /* * Copyright (C) 2013 The Android Open Source Project + * Copyright (C) 2015 The CyanogenMod Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -65,6 +66,16 @@ struct BatteryProperties { int batteryTemperature; String8 batteryTechnology; + bool dockBatterySupported; + bool chargerDockAcOnline; + int dockBatteryStatus; + int dockBatteryHealth; + bool dockBatteryPresent; + int dockBatteryLevel; + int dockBatteryVoltage; + int dockBatteryTemperature; + String8 dockBatteryTechnology; + status_t writeToParcel(Parcel* parcel) const; status_t readFromParcel(Parcel* parcel); }; diff --git a/include/batteryservice/IBatteryPropertiesRegistrar.h b/include/batteryservice/IBatteryPropertiesRegistrar.h index eca075d7e..f6a7981d5 100644 --- a/include/batteryservice/IBatteryPropertiesRegistrar.h +++ b/include/batteryservice/IBatteryPropertiesRegistrar.h @@ -1,5 +1,6 @@ /* * Copyright (C) 2013 The Android Open Source Project + * Copyright (C) 2015 The CyanogenMod Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,6 +28,7 @@ enum { REGISTER_LISTENER = IBinder::FIRST_CALL_TRANSACTION, UNREGISTER_LISTENER, GET_PROPERTY, + GET_DOCK_PROPERTY, }; class IBatteryPropertiesRegistrar : public IInterface { @@ -36,6 +38,7 @@ public: virtual void registerListener(const sp<IBatteryPropertiesListener>& listener) = 0; virtual void unregisterListener(const sp<IBatteryPropertiesListener>& listener) = 0; virtual status_t getProperty(int id, struct BatteryProperty *val) = 0; + virtual status_t getDockProperty(int id, struct BatteryProperty *val) = 0; }; class BnBatteryPropertiesRegistrar : public BnInterface<IBatteryPropertiesRegistrar> { |