Do not wake up all displays
We don't want the physical display to light up when a new VirtualDisplay owned by a VirtualDevice is created. Bug: 187231320 Test: manual testing Change-Id: Icf65ae43ce1e96e7cde8ea1c16f2b44db0a83a9f
This commit is contained in:
@@ -523,8 +523,7 @@ final class VirtualDeviceImpl extends IVirtualDevice.Stub
|
||||
}
|
||||
PowerManager powerManager = mContext.getSystemService(PowerManager.class);
|
||||
PowerManager.WakeLock wakeLock = powerManager.newWakeLock(
|
||||
PowerManager.SCREEN_BRIGHT_WAKE_LOCK
|
||||
| PowerManager.ACQUIRE_CAUSES_WAKEUP,
|
||||
PowerManager.SCREEN_BRIGHT_WAKE_LOCK,
|
||||
TAG + ":" + displayId, displayId);
|
||||
wakeLock.acquire();
|
||||
mPerDisplayWakelocks.put(displayId, wakeLock);
|
||||
|
||||
Reference in New Issue
Block a user