diff options
author | Jeff Sharkey <jsharkey@android.com> | 2012-12-12 10:41:20 -0800 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2012-12-12 10:41:20 -0800 |
commit | bf8de6a349e19b32a1577080a9d8bb7f92b2301f (patch) | |
tree | c81d2617fc28604f67d56929032338ded0be08fb /services/java | |
parent | e7ec492f13355888c90b3f08fbc66e49dda7ed24 (diff) | |
parent | 29afa142402b4b4f5e56f36b24367b84b5f64a6a (diff) | |
download | frameworks_base-bf8de6a349e19b32a1577080a9d8bb7f92b2301f.zip frameworks_base-bf8de6a349e19b32a1577080a9d8bb7f92b2301f.tar.gz frameworks_base-bf8de6a349e19b32a1577080a9d8bb7f92b2301f.tar.bz2 |
Merge "Remove unnecessary locking for screen broadcasts."
Diffstat (limited to 'services/java')
-rw-r--r-- | services/java/com/android/server/net/NetworkPolicyManagerService.java | 8 |
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 43ddf8d..18fefda 100644 --- a/services/java/com/android/server/net/NetworkPolicyManagerService.java +++ b/services/java/com/android/server/net/NetworkPolicyManagerService.java @@ -423,11 +423,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(); } }; |