public int getBatteryLevel() {
   return battery.getBatteryLevel();
 }
 public long getTime() {
   long[] times = battery.getTime();
   return times[times.length - 1];
 }
 public double getAvailableCapacity() {
   return battery.getAvailableCapacity();
 }