summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorKazuki Takise <takise@google.com>2018-07-30 11:26:39 +0900
committerKazuki Takise <takise@google.com>2018-08-02 17:46:02 +0900
commit0749da8c4d7099809d604749ffe5eb4f6989abc0 (patch)
tree311bcc2433d478552012f1df74c156cdc8a906aa /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent9c19e34d9f475657f8bd1c15ac7f60ee8faf3155 (diff)
Refactor ScreenDecorWindowTests
To override expected values of assertions, we separate some code into functions. Basically, ARC team wants to override expected values as follows. private void assertTopInsetEquals(Activity activity, int expected) throws Exception { expected = otherValue; waitFor(() -> getInsets(activity).getSystemWindowInsetTop() == expected); ... } However, without this CL, the labmda function generates the following error. error: local variables referenced from a lambda expression must be final or effectively final This CL resolves the error by separating the wairFor part into another function. Bug: 110906754 Test: ScreenDecorWindowTests Change-Id: Id46557afdbc5cde4683d8ba33a84e5ec951cc27a
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions