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

Commit 3fd24aa3 authored by petsjonkin's avatar petsjonkin Committed by Oleg Petšjonkin
Browse files

Adding DisplayBrightnessController.mLock detailed description

Bug: b/422076340
Test: not required, no code change
Flag: EXEMPT no code change
Change-Id: Ieecd23f2ed6f4a4d9ab5a01b95985029b5e251bc
parent 738a4ab7
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -51,7 +51,10 @@ public final class DisplayBrightnessController {
    // The ID of the display tied to this DisplayBrightnessController
    private final int mDisplayId;

    // The lock which is to be used to synchronize the resources being used in this class
    // The lock which is to be used to synchronize the resources being used in this class.
    // mLock can be synchronized on while holding DisplayManagerService.mSyncRoot, so never call
    // methods that acquiring DisplayManagerService.mSyncRoot under mLock,
    // e.g. some BrightnessSetting methods.
    private final Object mLock = new Object();

    // The default screen brightness to be used when no value is available in BrightnessSetting.