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

Commit 313fbaa4 authored by Oleg Petšjonkin's avatar Oleg Petšjonkin Committed by Android (Google) Code Review
Browse files

Merge "Adding DisplayBrightnessController.mLock detailed description" into main

parents 337d4004 3fd24aa3
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.