diff options
author | Naomi Musgrave <nmusgrave@google.com> | 2021-08-27 17:41:08 +0100 |
---|---|---|
committer | Naomi Musgrave <nmusgrave@google.com> | 2021-09-03 14:42:52 +0100 |
commit | fcef782559e0dcfeffb7c000f8c80c1259f89fad (patch) | |
tree | de7c046f202035616242aa3c7ac96237688e86a0 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 64266375986c38fdbe4549ddd77ac39878b1f74c (diff) |
[MediaProjection] Do not start layer mirroring without a surface
An app may pass a null surface to MediaProjection#createVirtualDisplay,
and later set the surface on the VirtualDisplay. The display's state
will change from off to on when the surface is set.
When determining if layer mirroring should be started/updated in
DisplayContent, take the presence of the surface/display state
into account, to prevent the app from crashing.
Bug: 197863746
Test: atest WmTests:DisplayContentTests
Change-Id: I01af07fff681aab6fc8235c861375eb79118cbfe
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions