summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorRiddle Hsu <riddlehsu@google.com>2019-08-28 21:08:58 +0800
committerRiddle Hsu <riddlehsu@google.com>2019-09-03 13:24:02 +0800
commit2da2d03749dad32e2157c29f54ed1a8ea973cbd4 (patch)
treee59f0e02ba7ff8979ea686a71ac1ef890456ca11 /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parent4448c1df418968728f745ec6991cf4eee7be420d (diff)
Add support to lock test method of WmTests by rule
Window manager could execute something on several threads, e.g. display, animation, ui. And they cannot be stubbed completely because that might reduce the similarity to the real case. The test method usually run without synchronization but in the real world those methods inside the test should be locked. That may lead to some race condition such as damaging the mocking and IndexOutOfBoundsException. This CL introduces a new runner and rule to make sure the test method and @Before/After are protected by the WM global lock. Currently the rule only applies to the classes which are known to have problems. If it looks stable, we can apply the rule to more classes and remove the scattered synchronization in each test method. Bug: 140284973 Test: atest ActivityStarterTests ActivityRecordTests DisplayWindowSettingsTests RootActivityContainerTests RecentsAnimationTest WindowStateTests Change-Id: Ib9dc4bb8a9c3c3cbf0b329d0b05e4fdbe14b2e3e
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions