Merge "Fix adb shell command for screen_brightness" into rvc-dev am: 9024ce52c6
Change-Id: Ib488d87c823ed806fcc50986b804d821dfa81b4e
This commit is contained in:
@@ -390,6 +390,10 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call
|
|||||||
private ObjectAnimator mColorFadeOffAnimator;
|
private ObjectAnimator mColorFadeOffAnimator;
|
||||||
private RampAnimator<DisplayPowerState> mScreenBrightnessRampAnimator;
|
private RampAnimator<DisplayPowerState> mScreenBrightnessRampAnimator;
|
||||||
|
|
||||||
|
// The brightness synchronizer to allow changes in the int brightness value to be reflected in
|
||||||
|
// the float brightness value and vice versa.
|
||||||
|
@Nullable
|
||||||
|
private final BrightnessSynchronizer mBrightnessSynchronizer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates the display power controller.
|
* Creates the display power controller.
|
||||||
@@ -406,6 +410,7 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call
|
|||||||
mWindowManagerPolicy = LocalServices.getService(WindowManagerPolicy.class);
|
mWindowManagerPolicy = LocalServices.getService(WindowManagerPolicy.class);
|
||||||
mBlanker = blanker;
|
mBlanker = blanker;
|
||||||
mContext = context;
|
mContext = context;
|
||||||
|
mBrightnessSynchronizer = new BrightnessSynchronizer(context);
|
||||||
mDisplayDevice = displayDevice;
|
mDisplayDevice = displayDevice;
|
||||||
|
|
||||||
PowerManager pm = context.getSystemService(PowerManager.class);
|
PowerManager pm = context.getSystemService(PowerManager.class);
|
||||||
|
|||||||
Reference in New Issue
Block a user