Searched refs:sensorValue (Results 1 – 2 of 2) sorted by relevance
102 int sensorValue = 1; in testBrightness() local104 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 …]
194 int sensorValue = mDebugBrightnessBucket == -1 in updateBrightnessAndReady() local196 int brightness = computeBrightness(sensorValue); in updateBrightnessAndReady()209 scrimOpacity = computeScrimOpacity(sensorValue); in updateBrightnessAndReady()238 private int computeScrimOpacity(int sensorValue) { in computeScrimOpacity() argument239 if (sensorValue < 0 || sensorValue >= mSensorToScrimOpacity.length) { in computeScrimOpacity()242 return mSensorToScrimOpacity[sensorValue]; in computeScrimOpacity()245 private int computeBrightness(int sensorValue) { in computeBrightness() argument246 if (sensorValue < 0 || sensorValue >= mSensorToBrightness.length) { in computeBrightness()249 return mSensorToBrightness[sensorValue]; in computeBrightness()