summaryrefslogtreecommitdiff
path: root/libs/ui/FramebufferNativeWindow.cpp
diff options
context:
space:
mode:
author Nick Pelly <npelly@google.com> 2009-06-19 10:08:09 -0700
committer Nick Pelly <npelly@google.com> 2009-06-19 10:08:09 -0700
commit6c901db72dbaf57d8fdf26adae6721de14ecae22 (patch)
treef49c0fa11e6fd06ab20abe870456d041aaee433b /libs/ui/FramebufferNativeWindow.cpp
parentfd5f087536dcb04ac9c46f2b19f87a37455390b0 (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
Diffstat (limited to 'libs/ui/FramebufferNativeWindow.cpp')
0 files changed, 0 insertions, 0 deletions