Add @GuardedBy annotation to PersistentDataBlockService#mIsWritable. am: 71d2a41dd9

am: d0339c6e8f

Change-Id: I0dbec3edf704821eb4605a48b770461eb99ddae7
This commit is contained in:
Charles He
2016-12-29 10:06:14 +00:00
committed by android-build-merger

View File

@@ -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) {