commit | 6c901db72dbaf57d8fdf26adae6721de14ecae22 | [log] [tgz] |
---|---|---|
author | Nick Pelly <npelly@google.com> | Fri Jun 19 10:08:09 2009 -0700 |
committer | Nick Pelly <npelly@google.com> | Fri Jun 19 10:08:09 2009 -0700 |
tree | f49c0fa11e6fd06ab20abe870456d041aaee433b | |
parent | fd5f087536dcb04ac9c46f2b19f87a37455390b0 [diff] |
Add getBatteryUsageHint() to BluetoothHeadset for power monitoring. This is a monotonically increasing integer. Wraps to 0 at Integer.MAX_INT, and at boot. Current implementation returns the number of AT commands handled since boot. This is a good indicator for spammy headset/handsfree units that can keep the device awake by polling for cellular status updates. As a rule of thumb, each AT command prevents the CPU from sleeping for 500 ms