summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles He <qiurui@google.com>2016-12-01 19:22:33 +0000
committerBadash <badash@google.com>2017-01-25 12:28:30 -0800
commit7cc6259d174759c855df30d3a9dc8f822d09d9ca (patch)
treefe99a21947e00675bf16bd86bab51029e9704004
parent49ae4d66819cbbcb783e7524c536496fb9f3fd37 (diff)
downloadbase-7cc6259d174759c855df30d3a9dc8f822d09d9ca.tar.gz
Add @GuardedBy annotation to PersistentDataBlockService#mIsWritable.
Change-Id: I1024f2a56badde5c123d025d6fe02f42559cbcb1 Test: manual Bug: 30352311 (cherry picked from commit f6f1d627483b4dad9d65176769a1ee92c59a4810)
-rw-r--r--services/core/java/com/android/server/PersistentDataBlockService.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/PersistentDataBlockService.java b/services/core/java/com/android/server/PersistentDataBlockService.java
index 32b183b2d1eb..9346083eb8c8 100644
--- a/services/core/java/com/android/server/PersistentDataBlockService.java
+++ b/services/core/java/com/android/server/PersistentDataBlockService.java
@@ -29,6 +29,7 @@ import android.service.persistentdata.IPersistentDataBlockService;
import android.util.Slog;
import com.android.internal.R;
+import com.android.internal.annotations.GuardedBy;
import libcore.io.IoUtils;
@@ -77,6 +78,8 @@ public class PersistentDataBlockService extends SystemService {
private int mAllowedUid = -1;
private long mBlockDeviceSize;
+
+ @GuardedBy("mLock")
private boolean mIsWritable = true;
public PersistentDataBlockService(Context context) {