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

Commit 3cc7f6ac authored by Charles He's avatar Charles He Committed by android-build-merger
Browse files

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

Add @GuardedBy annotation to PersistentDataBlockService#mIsWritable. am: 71d2a41d am: d0339c6e am: 6aa436be am: 76ca2da7 am: 0cc02190
am: ced5ab19

Change-Id: I59602f83fd659ce5192636d0e66feae217997d7c
parents 03fa83e2 ced5ab19
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@ import android.service.persistentdata.PersistentDataBlockManager;
import android.util.Slog;

import com.android.internal.R;
import com.android.internal.annotations.GuardedBy;

import libcore.io.IoUtils;

@@ -82,6 +83,8 @@ public class PersistentDataBlockService extends SystemService {

    private int mAllowedUid = -1;
    private long mBlockDeviceSize;

    @GuardedBy("mLock")
    private boolean mIsWritable = true;

    public PersistentDataBlockService(Context context) {