summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramRaster.java
diff options
context:
space:
mode:
authorHugo Benichi <hugobenichi@google.com>2017-03-30 23:18:10 +0900
committerHugo Benichi <hugobenichi@google.com>2017-04-03 08:54:54 +0900
commit4c31b34d1633b859bce86b22d4e682beb4f1e663 (patch)
tree668c64241a76a4b20afc2037964ae067d8980a43 /rs/java/android/renderscript/ProgramRaster.java
parentaf52d7ae1253cec02441d721af7c490a50c01567 (diff)
ConnectivityService: simplify WakeLock management
This patch simplifies wakelock management by acknowledging that only one acquisition at most is in flight at any time. This allows to remove the serial number associated with wakelock acquisition and to avoid double release when regaining a default network. Example of $ adb shell dumpsys connectivity logs: NetTransition WakeLock activity (most recent first): 03-31 00:15:13.816 - RELEASE (EVENT_CLEAR_NET_TRANSITION_WAKELOCK) 03-31 00:14:59.216 - ACQUIRE for NetworkAgentInfo [WIFI () - 101] 03-31 00:09:05.799 - RELEASE (EVENT_EXPIRE_NET_TRANSITION_WAKELOCK) 03-31 00:08:05.738 - ACQUIRE for NetworkAgentInfo [WIFI () - 100] Test: watched wakelock section $ adb shell dumpsys connectivity while turning on and off Wifi (with no other network). Bug: 36703718 Change-Id: I899b0816c0e41b3991d9540e9b9a604914ff673a
Diffstat (limited to 'rs/java/android/renderscript/ProgramRaster.java')
0 files changed, 0 insertions, 0 deletions