Merge "Fix the issue of null previous brightness reason in the logs" into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
9cbb43e794
@@ -1148,6 +1148,7 @@ final class DisplayPowerController2 implements AutomaticBrightnessController.Cal
|
|||||||
final int previousPolicy;
|
final int previousPolicy;
|
||||||
boolean mustInitialize = false;
|
boolean mustInitialize = false;
|
||||||
int brightnessAdjustmentFlags = 0;
|
int brightnessAdjustmentFlags = 0;
|
||||||
|
mBrightnessReasonTemp.set(null);
|
||||||
mTempBrightnessEvent.reset();
|
mTempBrightnessEvent.reset();
|
||||||
SparseArray<DisplayPowerControllerInterface> displayBrightnessFollowers;
|
SparseArray<DisplayPowerControllerInterface> displayBrightnessFollowers;
|
||||||
synchronized (mLock) {
|
synchronized (mLock) {
|
||||||
|
|||||||
@@ -100,7 +100,7 @@ public final class BrightnessEvent {
|
|||||||
* A utility to reset the BrightnessEvent to default values
|
* A utility to reset the BrightnessEvent to default values
|
||||||
*/
|
*/
|
||||||
public void reset() {
|
public void reset() {
|
||||||
mReason.set(null);
|
mReason = new BrightnessReason();
|
||||||
mTime = SystemClock.uptimeMillis();
|
mTime = SystemClock.uptimeMillis();
|
||||||
mPhysicalDisplayId = "";
|
mPhysicalDisplayId = "";
|
||||||
// Lux values
|
// Lux values
|
||||||
|
|||||||
Reference in New Issue
Block a user