diff options
| author | 2024-04-16 17:04:51 +0000 | |
|---|---|---|
| committer | 2024-04-16 17:04:51 +0000 | |
| commit | 10632fc9e57fe12c9f3ea26d4032ec2ed3c7e658 (patch) | |
| tree | 8f5ff803a31f0953562f559ac0a849e7ffaaee97 | |
| parent | ade0029078425d364c580d68c6a3decd950ec255 (diff) | |
| parent | a7f5b4d77cbc64184374324a22628e8e39e35155 (diff) | |
Merge "Update method annotation to ensure lock is held" into main
| -rw-r--r-- | services/core/java/com/android/server/SensitiveContentProtectionManagerService.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/SensitiveContentProtectionManagerService.java b/services/core/java/com/android/server/SensitiveContentProtectionManagerService.java index 4694e9fd44bc..2067ad470743 100644 --- a/services/core/java/com/android/server/SensitiveContentProtectionManagerService.java +++ b/services/core/java/com/android/server/SensitiveContentProtectionManagerService.java @@ -306,6 +306,7 @@ public final class SensitiveContentProtectionManagerService extends SystemServic } } + @GuardedBy("mSensitiveContentProtectionLock") private void updateAppsThatShouldBlockScreenCapture() { RankingMap rankingMap; try { @@ -318,6 +319,7 @@ public final class SensitiveContentProtectionManagerService extends SystemServic updateAppsThatShouldBlockScreenCapture(rankingMap); } + @GuardedBy("mSensitiveContentProtectionLock") private void updateAppsThatShouldBlockScreenCapture(RankingMap rankingMap) { StatusBarNotification[] notifications; try { |