Details
-
Change Request
-
Resolution: Done
-
Not Evaluated
Description
For applications to be able to use battery data efficiently in developing the applications and in creating battery monitoring tools and applications, we need to secure the following APIs.
int getNominalCapacity () The battery nominal (maximum) capasity
(mAh)
int getRemainingCapacitymAh () Remaining battery capacity as mAh
int getRemainingCapacityPct () Remaining battery capacity as a
percentage.
int getBatteryCurrent () The battery current (mA)
int getVoltage () The battery voltage (mV)
int getRemainingChargingTime () the charging time in seconds if
charging or -1 if not charging
float getCumulativeBatteryCurrent () float of mAh/sec - negative out
flow, positive inflow. Measurement time is based on recent past and up
to provider.