/frameworks/base/services/core/java/com/android/server/display/ |
D | BrightnessMappingStrategy.java | 95 private static float[] getLuxLevels(int[] lux) { in getLuxLevels() 203 public abstract float getBrightness(float lux, String packageName, in getBrightness() 216 public float getBrightness(float lux) { in getBrightness() 257 public abstract void addUserDataPoint(float lux, float brightness); in addUserDataPoint() 286 float[] luxLevels, float[] brightnessLevels, float lux, float brightness) { in insertControlPoint() 327 private void smoothCurve(float[] lux, float[] brightness, int idx) { in smoothCurve() 404 protected Pair<float[], float[]> getAdjustedCurve(float[] lux, float[] brightness, in getAdjustedCurve() 459 public SimpleMappingStrategy(float[] lux, int[] brightness, float maxGamma) { in SimpleMappingStrategy() 492 public float getBrightness(float lux, String packageName, in getBrightness() 524 public void addUserDataPoint(float lux, float brightness) { in addUserDataPoint() [all …]
|
D | AutomaticBrightnessController.java | 500 private void handleLightSensorEvent(long time, float lux) { in handleLightSensorEvent() 512 private void applyLightSensorMeasurement(long time, float lux) { in applyLightSensorMeasurement() 541 private void setAmbientLux(float lux) { in setAmbientLux() 610 float lux = mAmbientLightRingBuffer.getLux(i); in calculateAmbientLux() local 1005 public void push(long time, float lux) { in push()
|
D | DisplayManagerService.java | 326 float[] lux = getFloatArray(resources.obtainTypedArray( in DisplayManagerService() local 1133 float[] lux = curve.first; in isBrightnessConfigurationTooDark() local
|
D | DisplayModeDirector.java | 1009 private boolean isInsideZone(int brightness, float lux) { in isInsideZone()
|
D | BrightnessTracker.java | 839 public float lux; field in BrightnessTracker.LightData
|
/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 | 324 float[] lux = minimumBrightnessCurve.getX(); in testTooDarkBrightnessConfigurationThrowException() local 359 float[] lux = minimumBrightnessCurve.getX(); in testBrightEnoughBrightnessConfigurationDoesNotThrowException() local
|
D | BrightnessTrackerTest.java | 749 private SensorEvent createSensorEvent(float lux) { in createSensorEvent()
|
/frameworks/base/core/tests/coretests/src/android/hardware/display/ |
D | BrightnessConfigurationTest.java | 62 float[] lux = Arrays.copyOf(LUX_LEVELS, LUX_LEVELS.length); in testCurveMustHaveZeroLuxPoint() local 133 float[] lux = Arrays.copyOf(LUX_LEVELS, LUX_LEVELS.length); in testEquals() local
|
/frameworks/base/core/java/android/hardware/display/ |
D | BrightnessConfiguration.java | 64 private BrightnessConfiguration(float[] lux, float[] nits, in BrightnessConfiguration() 305 final float lux = loadFloatFromXml(parser, ATTR_LUX); in loadFromXml() local 334 float[] lux = new float[n]; in loadFromXml() local 389 public Builder(float[] lux, float[] nits) { in Builder()
|