Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 76ca2da7 authored by Charles He's avatar Charles He Committed by android-build-merger
Browse files

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

am: 6aa436be

Change-Id: I994b2fe070091a32beffff9dbf11b907b7878fe8
parents b64af9ba 6aa436be
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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) {