/frameworks/base/services/core/java/com/android/server/display/ |
D | BrightnessMappingStrategy.java | 109 private static float[] getLuxLevels(int[] lux) { in getLuxLevels() 229 public abstract float getBrightness(float lux, String packageName, in getBrightness() 242 public float getBrightness(float lux) { in getBrightness() 283 public abstract void addUserDataPoint(float lux, float brightness); in addUserDataPoint() 358 float[] luxLevels, float[] brightnessLevels, float lux, float brightness) { in insertControlPoint() 399 private void smoothCurve(float[] lux, float[] brightness, int idx) { in smoothCurve() 478 protected Pair<float[], float[]> getAdjustedCurve(float[] lux, float[] brightness, in getAdjustedCurve() 534 private SimpleMappingStrategy(float[] lux, int[] brightness, float maxGamma, in SimpleMappingStrategy() 579 public float getBrightness(float lux, String packageName, in getBrightness() 611 public void addUserDataPoint(float lux, float brightness) { in addUserDataPoint() [all …]
|
D | AutomaticBrightnessController.java | 493 private void handleLightSensorEvent(long time, float lux) { in handleLightSensorEvent() 505 private void applyLightSensorMeasurement(long time, float lux) { in applyLightSensorMeasurement() 534 private void setAmbientLux(float lux) { in setAmbientLux() 593 float lux = mAmbientLightRingBuffer.getLux(i); in calculateAmbientLux() local 987 public void push(long time, float lux) { in push()
|
D | DisplayManagerService.java | 342 float[] lux = getFloatArray(resources.obtainTypedArray( in DisplayManagerService() local 1210 float[] lux = curve.first; in isBrightnessConfigurationTooDark() local
|
D | BrightnessTracker.java | 849 public float lux; field in BrightnessTracker.LightData
|
D | DisplayModeDirector.java | 1280 private boolean isInsideZone(int brightness, float lux) { in isInsideZone()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/display/ |
D | BrightnessMappingStrategyTest.java | 138 final float lux = (LUX_LEVELS[i - 1] + LUX_LEVELS[i]) / 2; in testSimpleStrategyMappingBetweenControlPoints() local 152 final float[] lux = { 0f, 1f }; in testSimpleStrategyIgnoresNewConfiguration() local 196 final float lux = (LUX_LEVELS[i - 1] + LUX_LEVELS[i]) / 2; in testPhysicalStrategyMappingBetweenControlPoints() local 210 final float[] lux = { 0f, 1f }; in testPhysicalStrategyUsesNewConfigurations() local 239 final int[] lux = Arrays.copyOf(LUX_LEVELS, LUX_LEVELS.length); in testNonStrictlyIncreasingLuxLevelsFails() local 259 final int[] lux = Arrays.copyOf(LUX_LEVELS, LUX_LEVELS.length+1); in testDifferentNumberOfControlPointValuesFails() local
|
D | PersistentDataStoreTest.java | 148 final float[] lux = { 0f, 10f }; in testStoreAndReloadOfBrightnessConfigurations() local 174 final float[] lux = { 0f, 10f }; in testNullBrightnessConfiguration() local
|
D | TestUtils.java | 29 public static SensorEvent createSensorEvent(Sensor sensor, int lux) throws Exception { in createSensorEvent()
|
D | DisplayManagerServiceTest.java | 338 float[] lux = minimumBrightnessCurve.getX(); in testTooDarkBrightnessConfigurationThrowException() local 373 float[] lux = minimumBrightnessCurve.getX(); in testBrightEnoughBrightnessConfigurationDoesNotThrowException() local
|
D | BrightnessTrackerTest.java | 772 private SensorEvent createSensorEvent(float lux) { in createSensorEvent()
|
/frameworks/base/core/tests/coretests/src/android/hardware/display/ |
D | BrightnessConfigurationTest.java | 72 float[] lux = Arrays.copyOf(LUX_LEVELS, LUX_LEVELS.length); in testCurveMustHaveZeroLuxPoint() local 203 float[] lux = Arrays.copyOf(LUX_LEVELS, LUX_LEVELS.length); in testEquals() local
|
/frameworks/base/core/java/android/hardware/display/ |
D | BrightnessConfiguration.java | 81 private BrightnessConfiguration(float[] lux, float[] nits, in BrightnessConfiguration() 433 final float lux = loadFloatFromXml(parser, ATTR_LUX); in loadFromXml() local 470 float[] lux = new float[n]; in loadFromXml() local 543 public Builder(float[] lux, float[] nits) { in Builder()
|