commit | aae5aa3525fe28ba69e0c11c883037e1b78852e2 | [log] [tgz] |
---|---|---|
author | Andreas Gampe <agampe@google.com> | Fri Jul 20 12:55:38 2018 -0700 |
committer | Andreas Gampe <agampe@google.com> | Mon Jul 23 15:42:05 2018 -0700 |
tree | f85d7003d090abf95b73b4722ee07f413da6fa1e | |
parent | 28b2263652e135d9544fd7713621c15c486d7b03 [diff] [blame] |
Frameworks: Annotate trivial @GuardedBy in services/core Add @GuardedBy for simple functions that require locks and have a name in one of the frameworks naming styles for locks ("^.*(Locked|LPw|LPr|L[a-zA-Z]|UL|AL|NL)$"). Changelist for network manager. Derived by errorprone. Bug: 73000847 Test: m Change-Id: Ie2e0c239a6e59d934a2db4f9f3efdde177e8a4de
diff --git a/services/core/java/com/android/server/NetworkManagementService.java b/services/core/java/com/android/server/NetworkManagementService.java index 74d8755..9631e46 100644 --- a/services/core/java/com/android/server/NetworkManagementService.java +++ b/services/core/java/com/android/server/NetworkManagementService.java
@@ -2271,6 +2271,7 @@ return ruleName; } + @GuardedBy("mRulesLock") private @NonNull SparseIntArray getUidFirewallRulesLR(int chain) { switch (chain) { case FIREWALL_CHAIN_STANDBY: