/frameworks/base/services/core/java/com/android/server/display/ |
H A D | HysteresisLevels.java | 31 // The recent lux must have changed by at least this fraction relative to the 32 // current ambient lux before a change will be considered. 48 * thresholds in units of lux 60 * Return the brightening hysteresis threshold for the given lux level. 62 public float getBrighteningThreshold(float lux) { argument 63 float brightConstant = getReferenceLevel(lux, mBrightLevels); 64 float brightThreshold = lux * (1.0f + brightConstant); 67 + brightThreshold + ", lux=" + lux); 73 * Return the darkening hysteresis threshold for the given lux leve 75 getDarkeningThreshold(float lux) argument 89 getReferenceLevel(float lux, float[] referenceLevels) argument [all...] |
H A D | BrightnessMappingStrategy.java | 92 private static float[] getLuxLevels(int[] lux) { argument 93 // The first control point is implicit and always at 0 lux. 94 float[] levels = new float[lux.length + 1]; 95 for (int i = 0; i < lux.length; i++) { 96 levels[i + 1] = (float) lux[i]; 173 * Returns the desired brightness of the display based on the current ambient lux. 178 * @param lux The current ambient brightness in lux. 181 public abstract float getBrightness(float lux); argument 220 public abstract void addUserDataPoint(float lux, floa argument 248 insertControlPoint( float[] luxLevels, float[] brightnessLevels, float lux, float brightness) argument 290 smoothCurve(float[] lux, float[] brightness, int idx) argument 367 getAdjustedCurve(float[] lux, float[] brightness, float userLux, float userBrightness, float adjustment, float maxGamma) argument 422 SimpleMappingStrategy(float[] lux, int[] brightness, float maxGamma) argument 455 getBrightness(float lux) argument 486 addUserDataPoint(float lux, float brightness) argument 553 getUnadjustedBrightness(float lux) argument 641 getBrightness(float lux) argument 674 addUserDataPoint(float lux, float brightness) argument 756 getUnadjustedBrightness(float lux) argument [all...] |
H A D | AutomaticBrightnessController.java | 90 // The mapper to translate ambient lux to screen brightness in the range [0, 1.0]. 310 // If we don't have a valid ambient lux then we don't have a valid brightness anyways, 412 private void handleLightSensorEvent(long time, float lux) { argument 413 Trace.traceCounter(Trace.TRACE_TAG_POWER, "ALS", (int) lux); 420 applyLightSensorMeasurement(time, lux); 424 private void applyLightSensorMeasurement(long time, float lux) { argument 427 mAmbientLightRingBuffer.push(time, lux); 430 mLastObservedLux = lux; 453 private void setAmbientLux(float lux) { argument 455 Slog.d(TAG, "setAmbientLux(" + lux 800 push(long time, float lux) argument [all...] |
H A D | BrightnessTracker.java | 95 // Time over which we keep lux sensor readings. 104 private static final String ATTR_LUX = "lux"; 336 luxValues[pos] = reading.lux; 715 public float lux; field in class:BrightnessTracker.LightData 745 data.lux = event.values[0];
|
/frameworks/base/core/java/android/hardware/display/ |
H A D | BrightnessConfiguration.java | 39 private BrightnessConfiguration(float[] lux, float[] nits, String description) { argument 40 mLux = lux; 48 * The curve is returned as a pair of float arrays, the first representing all of the lux 123 float[] lux = in.createFloatArray(); 125 Builder builder = new Builder(lux, nits); 153 * Brightness curves must have strictly increasing ambient brightness values in lux and 155 * control point must be 0 lux. 157 * @throws IllegalArgumentException if the initial control point is not at 0 lux. 158 * @throws IllegalArgumentException if the lux levels are not strictly increasing. 161 public Builder(float[] lux, floa argument 179 setCurve(float[] lux, float[] nits) argument [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/display/ |
H A D | BrightnessTrackerTest.java | 328 + "lux=\"32.2,31.1\" luxTimestamps=\"" 336 + "lux=\"132.2,131.1\" luxTimestamps=\"" 344 + "lux=\"32.2,31.1\" luxTimestamps=\"" 419 // Missing lux value. 645 private SensorEvent createSensorEvent(float lux) { argument 655 event.values[0] = lux;
|