Chinaunix首页 | 论坛 | 博客
  • 博客访问: 276183
  • 博文数量: 74
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 668
  • 用 户 组: 普通用户
  • 注册时间: 2013-04-09 17:34
文章分类

全部博文(74)

文章存档

2017年(1)

2016年(13)

2015年(24)

2014年(9)

2013年(27)

我的朋友

分类: Android平台

2016-10-26 17:39:31


点击(此处)折叠或打开

  1. diff --git a/frameworks/base/core/res/res/values/config.xml b/frameworks/base/core/res/res/values/config.xml
  2. index 9998905..cd2631b 100644
  3. --- a/frameworks/base/core/res/res/values/config.xml
  4. +++ b/frameworks/base/core/res/res/values/config.xml
  5. @@ -979,8 +979,8 @@
  6.           when adapting to brighter or darker environments. This parameter controls how quickly
  7.           brightness changes occur in response to an observed change in light level that exceeds the
  8.           hysteresis threshold. -->
  9. - <integer name="config_autoBrightnessBrighteningLightDebounce">4000</integer>
  10. - <integer name="config_autoBrightnessDarkeningLightDebounce">8000</integer>
  11. + <integer name="config_autoBrightnessBrighteningLightDebounce">1000</integer>
  12. + <integer name="config_autoBrightnessDarkeningLightDebounce">2000</integer>
  13.  
  14.      <!-- Light sensor event rate in milliseconds for automatic brightness control. -->
  15.      <integer name="config_autoBrightnessLightSensorRate">250</integer>
  16. diff --git a/frameworks/base/services/core/java/com/android/server/display/DisplayPowerController.java b/frameworks/base/services/core/java/com/android/server/display/DisplayPowerController.java
  17. index c42b8fb..f9e7b12 100755
  18. --- a/frameworks/base/services/core/java/com/android/server/display/DisplayPowerController.java
  19. +++ b/frameworks/base/services/core/java/com/android/server/display/DisplayPowerController.java
  20. @@ -754,7 +754,7 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call
  21.                  // Use current auto-brightness value and slowly adjust to changes.
  22.                  brightness = clampScreenBrightness(brightness);
  23.                  if (mAppliedAutoBrightness && !autoBrightnessAdjustmentChanged) {
  24. - slowChange = true; // slowly adapt to auto-brightness
  25. + slowChange = false; // slowly adapt to auto-brightness
  26.                  }
  27.                  mAppliedAutoBrightness = true;
  28.              } else {


阅读(1285) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~