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

Commit 5b7ca64d authored by Jean-Michel Trivi's avatar Jean-Michel Trivi
Browse files

AudioService: add missing GuardedBy annotation

mInputMethodServiceUid is guarded by mInputMethodServiceUidLock

Bug: 287066735
Flag: EXEMPT no code change
Test: m -j RUN_ERROR_PRONE=true services | tee error_prone_services.txt
Change-Id: Ib8a30a26fc6b927b982caa3f58c25089ac2b87f5
parent 6fa5bdd1
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1164,9 +1164,11 @@ public class AudioService extends IAudioService.Stub
    @GuardedBy("mAccessibilityServiceUidsLock")
    private int[] mAccessibilityServiceUids;
    // Input Method
    private final Object mInputMethodServiceUidLock = new Object();
    // Uid of the active input method service to check if caller is the one or not.
    @GuardedBy("mInputMethodServiceUidLock")
    private int mInputMethodServiceUid = android.os.Process.INVALID_UID;
    private final Object mInputMethodServiceUidLock = new Object();
    private int mEncodedSurroundMode;
    private String mEnabledSurroundFormats;