summaryrefslogtreecommitdiffstats
path: root/services/java/com/android/server/net/NetworkPolicyManagerService.java
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2012-12-12 11:06:36 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2012-12-12 11:06:36 -0800
commit764bc0a7ae9c623f18aceadda2d5d894b1bf4024 (patch)
tree1eaece6df9f8345f0220504e3d1784407801ecfb /services/java/com/android/server/net/NetworkPolicyManagerService.java
parente08791c8318216b7934742681edfab57b8147d78 (diff)
parentbf8de6a349e19b32a1577080a9d8bb7f92b2301f (diff)
downloadframeworks_base-764bc0a7ae9c623f18aceadda2d5d894b1bf4024.zip
frameworks_base-764bc0a7ae9c623f18aceadda2d5d894b1bf4024.tar.gz
frameworks_base-764bc0a7ae9c623f18aceadda2d5d894b1bf4024.tar.bz2
am bf8de6a3: Merge "Remove unnecessary locking for screen broadcasts."
* commit 'bf8de6a349e19b32a1577080a9d8bb7f92b2301f': Remove unnecessary locking for screen broadcasts.
Diffstat (limited to 'services/java/com/android/server/net/NetworkPolicyManagerService.java')
-rw-r--r--services/java/com/android/server/net/NetworkPolicyManagerService.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/services/java/com/android/server/net/NetworkPolicyManagerService.java b/services/java/com/android/server/net/NetworkPolicyManagerService.java
index b839331..b09390c 100644
--- a/services/java/com/android/server/net/NetworkPolicyManagerService.java
+++ b/services/java/com/android/server/net/NetworkPolicyManagerService.java
@@ -425,11 +425,9 @@ public class NetworkPolicyManagerService extends INetworkPolicyManager.Stub {
private BroadcastReceiver mScreenReceiver = new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
- synchronized (mRulesLock) {
- // screen-related broadcasts are protected by system, no need
- // for permissions check.
- mHandler.obtainMessage(MSG_SCREEN_ON_CHANGED).sendToTarget();
- }
+ // screen-related broadcasts are protected by system, no need
+ // for permissions check.
+ mHandler.obtainMessage(MSG_SCREEN_ON_CHANGED).sendToTarget();
}
};