Home
last modified time | relevance | path

Searched refs:sensorValue (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DScreenOffBrightnessSensorControllerTest.java102 int sensorValue = 1; in testBrightness() local
104 listener.onSensorChanged(TestUtils.createSensorEvent(mLightSensor, sensorValue)); in testBrightness()
105 when(mBrightnessMappingStrategy.getBrightness(SENSOR_TO_LUX[sensorValue])) in testBrightness()
109 sensorValue = 2; in testBrightness()
111 listener.onSensorChanged(TestUtils.createSensorEvent(mLightSensor, sensorValue)); in testBrightness()
112 when(mBrightnessMappingStrategy.getBrightness(SENSOR_TO_LUX[sensorValue])) in testBrightness()
116 sensorValue = 3; in testBrightness()
118 listener.onSensorChanged(TestUtils.createSensorEvent(mLightSensor, sensorValue)); in testBrightness()
119 when(mBrightnessMappingStrategy.getBrightness(SENSOR_TO_LUX[sensorValue])) in testBrightness()
123 sensorValue = 4; in testBrightness()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeScreenBrightness.java194 int sensorValue = mDebugBrightnessBucket == -1 in updateBrightnessAndReady() local
196 int brightness = computeBrightness(sensorValue); in updateBrightnessAndReady()
209 scrimOpacity = computeScrimOpacity(sensorValue); in updateBrightnessAndReady()
238 private int computeScrimOpacity(int sensorValue) { in computeScrimOpacity() argument
239 if (sensorValue < 0 || sensorValue >= mSensorToScrimOpacity.length) { in computeScrimOpacity()
242 return mSensorToScrimOpacity[sensorValue]; in computeScrimOpacity()
245 private int computeBrightness(int sensorValue) { in computeBrightness() argument
246 if (sensorValue < 0 || sensorValue >= mSensorToBrightness.length) { in computeBrightness()
249 return mSensorToBrightness[sensorValue]; in computeBrightness()