OSDN Git Service

RESTRICT AUTOMERGE
authorLinus Tufvesson <lus@google.com>
Tue, 5 May 2020 10:13:51 +0000 (11:13 +0100)
committerLinus Tufvesson <lus@google.com>
Tue, 5 May 2020 17:48:20 +0000 (18:48 +0100)
commit78fe3b0aa289862224a4fa5e07b43908daa791c9
treeb2cb4a9505034584934c7e082f3def1ea3b4c8c5
parent0d01b03776f354b444b257224397a7700c4df0bb
RESTRICT AUTOMERGE

This change is the union of
I2aaab1903dee54190338f7b6e49888aa51437108 and I58834636e092f992e403342e36b475dc60e8f20ai

Original CL descriptions:

*** I2aaab1903dee54190338f7b6e49888aa51437108
Block TYPE_PRESENTATION windows on default display

... and any other display that isn't considered a public presentation
display, as per Display.isPublicPresentation()

*** I58834636e092f992e403342e36b475dc60e8f20a
Use TYPE_PRIVATE_PRESENTATION for private presentations
Detect if the Presenation is targeting a private virtual display, and if they
are use the windowType TYPE_PRIVATE_PRESENTATION.
***

Bug: 141745510
Test: cts-tradefed run cts -m CtsDisplayTestCases -t android.display.cts.VirtualDisplayTest
Test: Manually verfied that presentations are blocked on main display

Change-Id: I9f1c4b140ab4bc6183151aafc5501e8648fbc3fa
core/java/android/app/Presentation.java
services/core/java/com/android/server/wm/WindowManagerService.java