SurfaceFlinger: allow confing change in AoD
Remove the restriction in setDesiredActiveConfig when we are in '
AoD mode as there are no limitations in setting the config during AoD.
Test: Set power mode to HWC_POWER_MODE_DOZE and change active configs
Bug: 128635447
Change-Id: Iff74d3deb2c4a72428f916d35676b0b60436e2de
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp
index f7e4afd..207258e 100644
--- a/services/surfaceflinger/SurfaceFlinger.cpp
+++ b/services/surfaceflinger/SurfaceFlinger.cpp
@@ -955,11 +955,6 @@
ALOGW("Attempt to set active config %d for virtual display", info.configId);
return;
}
- int currentDisplayPowerMode = display->getPowerMode();
- if (currentDisplayPowerMode != HWC_POWER_MODE_NORMAL) {
- // Don't change active config when in AoD.
- return;
- }
// Don't check against the current mode yet. Worst case we set the desired
// config twice. However event generation config might have changed so we need to update it