当前位置:   article > 正文

修改屏幕默认亮度_mscreenbrightnessdefault

mscreenbrightnessdefault
修改屏幕默认亮度值:MTKSettingsProvider\res\values\defaults.xml
<integer name="def_screen_brightness">255</integer>  生效

修改屏幕默认亮度值:frameworks/base/core/res/res/values/config.xml
<integer name="config_screenBrightnessSettingDefault">255</integer> 不生效

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
    /**
    *屏幕亮度控制类
    */
      // The default screen brightness.
    private final int mScreenBrightnessDefault;

   public DisplayPowerController(Context context,
            DisplayPowerCallbacks callbacks, Handler handler,
            SensorManager sensorManager, DisplayBlanker blanker) {
        mHandler = new DisplayControllerHandler(handler.getLooper());
        mBrightnessTracker = new BrightnessTracker(context, null);
        mSettingsObserver = new SettingsObserver(mHandler);
        mCallbacks = callbacks;

        mBatteryStats = BatteryStatsService.getService();
        mSensorManager = sensorManager;
        mWin
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/羊村懒王/article/detail/699967
推荐阅读
相关标签
  

闽ICP备14008679号