summaryrefslogtreecommitdiff
path: root/docs/html/sdk/api_diff/11/changes
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2012-06-19 16:44:46 -0700
committerJeff Brown <jeffbrown@google.com>2012-06-19 18:42:05 -0700
commit1244cdaedd5bb4518fc75c9a25b834190ea31877 (patch)
tree0a84ed4ddf5d3e9627415c6ffe57022041d1ddd6 /docs/html/sdk/api_diff/11/changes
parent880c5f5aea737aee885bc4abee76c11db565f9d7 (diff)
Clean up PowerManager API.
Mostly just moved the code around and improved the docs. Fixed a minor inefficiency in WakeLock.setWorkSource() where we would tell the power manager that the work source was changed even when the old work source and new work source were both null. Fixed a bug in WakeLock.setWorkSource() where we would not notify the power manager that the work source was changed if there was no work source previously specified. Added synchronized to WakeLock.setReferenceCounted. Added a checked in WakeLock.acquireLocked() and WakeLock.release() to check whether the wake lock is actually not held / held before performing the corresponding operation. This change avoids making redundant calls into the power manager service in the case where the wake lock is not reference counted and acquire() or release() have been called multiple times. Made the PowerManager and WakeLock classes final. They are not directly instantiable by applications so this change does not break the API. Removed a little dead code (one private constructor and an unused constant). Change-Id: I4e10cf893506115938a35756136c101256dccf30
Diffstat (limited to 'docs/html/sdk/api_diff/11/changes')
0 files changed, 0 insertions, 0 deletions