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

Commit 00f9a1a4 authored by Charles He's avatar Charles He Committed by Android (Google) Code Review
Browse files

Merge "Add @GuardedBy annotation to PersistentDataBlockService#mIsWritable."

parents 71fc5791 f6f1d627
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;

@@ -85,6 +86,8 @@ public class PersistentDataBlockService extends SystemService {

    private int mAllowedUid = -1;
    private long mBlockDeviceSize;

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

    public PersistentDataBlockService(Context context) {