summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/RenderScript.java
diff options
context:
space:
mode:
authorBryce Lee <brycelee@google.com>2017-06-12 14:12:29 -0700
committerBryce Lee <brycelee@google.com>2017-06-13 07:05:34 -0700
commitd18712695c6b8861e6b22f9ef64709022ae94ee1 (patch)
tree1ee71a6970ed2b3dbcc2349149b15f91f2df1bcb /rs/java/android/renderscript/RenderScript.java
parentd1e7d3d73e415778f6842488ba8da4b40a6478b1 (diff)
Address issues surrounding freezing by display.
The first issue is the animating a display as a consequence of the freezing due to configuration change during construction. This additional animation is not expected and interferes with tests expecting for the original display contents to be shown intact. This CL addresses the issue by not freezing while the display is not ready (before construction is finished). The second problem addressed is book-keeping for DisplayContentsAnimators in WindowAnimator. Currently, a getter method is used internally to reference these animators, which generates them if not present and adds them to the animation iteration. In the case we set an animation on a display that no longer exists (which can be the case after unfreezing), we end up recreating this object. This can lead to us trying to animate a non-existent DisplayContent. This CL prevents creating an animator for a non-existent display and adjusts the methods using this getter to handle this case. Fixes: 62460846 Fixes: 62461229 Bug: 35486733 Bug: 62541591 Test: go/wm-smoke Test: open and close projected android auto mode repeatedly and ensure display correctness Test: cts-tradefed run singleCommand cts-dev --module CtsMediaTestCases --test android.media.cts.EncodeVirtualDisplayTest#testEncodeVirtualDisplay Change-Id: I60ade6f97440c8fa01b10e36c019865cf1fd0730
Diffstat (limited to 'rs/java/android/renderscript/RenderScript.java')
0 files changed, 0 insertions, 0 deletions