frameworks/base/packages/SystemUI/src/com/android/systemui/settings/brightness/BrightnessController.java
private final Runnable mUpdateSliderRunnable = new Runnable() {
@Override
public void run() {
final boolean inVrMode = mIsVrModeEnabled;
final BrightnessInfo info = mContext.getDisplay().getBrightnessInfo();
if (info == null) {
return;
}
mBrightnessMax = info.brightnessMaximum;
mBrightnessMin = info.brightnessMinimum;
// Value is passed as intbits, since this is what the message takes.
final int valueAsIntBits = Float.floatToIntBits(info.brightness);
mHandler.obtainMessage(MSG_UPDATE_SLIDER, valueAsIntBits,
inVrMode ? 1 : 0).sendToTarget();
}
};
mBrightnessMin = info.brightnessMinimum; 设置最小亮度的的值是从 BrightnessInfo 里获取的 ,但是 里面的 brightnessMinimum 属性是在哪赋值的我实在找不到了。