Home | History | Annotate | Download | only in hal

Lines Matching refs:brightness

58     // Set display brightness from 0-100%
91 * Received display brightness change event.
92 * @param brightness in percentile. 100% full.
94 void onDisplayBrightnessChange(int brightness);
209 * Sets the display brightness for the vehicle.
210 * @param brightness value from 0 to 100.
212 public void sendDisplayBrightness(int brightness) {
213 if (brightness < 0) {
214 brightness = 0;
215 } else if (brightness > 100) {
216 brightness = 100;
219 mHal.set(VehicleProperty.DISPLAY_BRIGHTNESS, 0).to(brightness);
220 Log.i(CarLog.TAG_POWER, "send display brightness = " + brightness);
294 Log.w(CarLog.TAG_POWER, "Max display brightness from vehicle HAL is invalid:" +
359 int brightness = v.value.int32Values.get(0) * MAX_BRIGHTNESS / maxBrightness;
360 if (brightness < 0) {
361 Log.e(CarLog.TAG_POWER, "invalid brightness: " + brightness + ", set to 0");
362 brightness = 0;
363 } else if (brightness > MAX_BRIGHTNESS) {
364 Log.e(CarLog.TAG_POWER, "invalid brightness: " + brightness + ", set to "
366 brightness = MAX_BRIGHTNESS;
368 Log.i(CarLog.TAG_POWER, "Received DISPLAY_BRIGHTNESS=" + brightness);
369 listener.onDisplayBrightnessChange(brightness);