Plumb display brightness from Android to VHAL
Bug: 75322336
Test: Python emulator receives display brightness updates
Change-Id: I1a535798ee6e0de40abef999b6026880d3bb8146
diff --git a/service/src/com/android/car/CarPowerManagementService.java b/service/src/com/android/car/CarPowerManagementService.java
index 3aa473c..57ccf62 100644
--- a/service/src/com/android/car/CarPowerManagementService.java
+++ b/service/src/com/android/car/CarPowerManagementService.java
@@ -604,7 +604,7 @@
}
private void doHandleMainDisplayStateChange(boolean on) {
- //TODO bug: 32065231
+ Log.w(CarLog.TAG_POWER, "Unimplemented: doHandleMainDisplayStateChange() - on = " + on);
}
public void handleMainDisplayChanged(boolean on) {
@@ -615,6 +615,14 @@
handler.handleMainDisplayStateChange(on);
}
+ /**
+ * Send display brightness to VHAL.
+ * @param brightness value 0-100%
+ */
+ public void sendDisplayBrightness(int brightness) {
+ mHal.sendDisplayBrightness(brightness);
+ }
+
public synchronized Handler getHandler() {
return mHandler;
}