其中 screenBrightness 表示屏幕的b rightness ,而 buttonBrightness 表示一般按键和键盘按键的 brightness
float | BRIGHTNESS_OVERRIDE_FULL | Value for screenBrightness and buttonBrightness indicating that the screen or button backlight brightness should be set to the hightest value when this window is in front. 把brightness(screenBrightness/buttonBrightness)设置到最高值。 |
float | BRIGHTNESS_OVERRIDE_NONE | Default value for screenBrightness and buttonBrightness indicating that the brightness value is not overridden for this window and normal brightness policy should be used.不对brightness(screenBrightness/buttonBrightness)重新进行设置,采用默认的普通值。 |
float | BRIGHTNESS_OVERRIDE_OFF | Value for screenBrightness and buttonBrightness indicating that the screen or button backlight brightness should be set to the lowest value when this window is in front.把brightness(screenBrightness/buttonBrightness)设置到最低值。 |
changed系列
该系列主要用于 **int copyFrom (WindowManager.LayoutParams o)**函数中。
在函数中,首先将用参数中传入的 WindowManager.LayoutParams的信息复制到本 WindowManager.LayoutParams