commit | 71d2a41dd9c8be8c4bca5eba339802e1e0c2be3c | [log] [tgz] |
---|---|---|
author | Charles He <qiurui@google.com> | Thu Dec 01 19:22:33 2016 +0000 |
committer | Charles He <qiurui@google.com> | Wed Dec 14 13:28:55 2016 +0000 |
tree | dbbba105a6ecae39d6cb99d33cb9df99710df0be | |
parent | a9437bd1caeeb38780d920a81bde8cc7ca280fe0 [diff] |
Add @GuardedBy annotation to PersistentDataBlockService#mIsWritable. Change-Id: I1024f2a56badde5c123d025d6fe02f42559cbcb1 Test: manual Bug: 30352311 (cherry picked from commit f6f1d627483b4dad9d65176769a1ee92c59a4810)
diff --git a/services/core/java/com/android/server/PersistentDataBlockService.java b/services/core/java/com/android/server/PersistentDataBlockService.java index 35a7402..43fda5f 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.util.Slog; import com.android.internal.R; +import com.android.internal.annotations.GuardedBy; import libcore.io.IoUtils; @@ -76,6 +77,8 @@ private int mAllowedUid = -1; private long mBlockDeviceSize; + + @GuardedBy("mLock") private boolean mIsWritable = true; public PersistentDataBlockService(Context context) {