summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorYunfan Chen <yunfanc@google.com>2019-04-10 15:25:33 +0900
committerYunfan Chen <yunfanc@google.com>2019-04-12 11:08:26 +0900
commitba2519caeb63acb93fb05eb68d108e7b7f235993 (patch)
tree8087d692f9de990737eb871a53301789bc51ccfa /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent7fe981bf9e9b2864d6429493fc79459a1440bc55 (diff)
Clean-up PersisterQueue tests
Previously, the code will get the latch count down in onPreProcessItem, and use the latch to count process waiting time. Move the latch countdown to actual process to reflect the waiting time. However, the timeout time needs to increase a little, as there are more steps before process the queue items. When it tests the process time, use the moved latch, which is in the mFactory to reflect the actual item processing. When the test is about callback, use the old latch, which is moved into mListener. Another improvement is to avoid let the whole test class implement the listener. Additionally, make the two test item class as static class, to make the interaction between the outer class and the test item class cleaner. Introduced a factory class to deal with processed latch and the test items. Test: atest PersisterQueueTests Bug: 128526085 Change-Id: I3d1fa2d44abdcdfe7d91d3ebab9b3196269f6e58
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions