Add @GuardedBy annotation to PersistentDataBlockService#mIsWritable. am: 71d2a41dd9 am: d0339c6e8f am: 6aa436bef2 am: 76ca2da7e8 am: 0cc0219089
am: ced5ab190c
Change-Id: I59602f83fd659ce5192636d0e66feae217997d7c
This commit is contained in:
@@ -31,6 +31,7 @@ import android.service.persistentdata.PersistentDataBlockManager;
|
|||||||
import android.util.Slog;
|
import android.util.Slog;
|
||||||
|
|
||||||
import com.android.internal.R;
|
import com.android.internal.R;
|
||||||
|
import com.android.internal.annotations.GuardedBy;
|
||||||
|
|
||||||
import libcore.io.IoUtils;
|
import libcore.io.IoUtils;
|
||||||
|
|
||||||
@@ -82,6 +83,8 @@ public class PersistentDataBlockService extends SystemService {
|
|||||||
|
|
||||||
private int mAllowedUid = -1;
|
private int mAllowedUid = -1;
|
||||||
private long mBlockDeviceSize;
|
private long mBlockDeviceSize;
|
||||||
|
|
||||||
|
@GuardedBy("mLock")
|
||||||
private boolean mIsWritable = true;
|
private boolean mIsWritable = true;
|
||||||
|
|
||||||
public PersistentDataBlockService(Context context) {
|
public PersistentDataBlockService(Context context) {
|
||||||
|
|||||||
Reference in New Issue
Block a user