diff options
author | Lorenzo Colitti <lorenzo@google.com> | 2020-12-01 01:08:37 +0900 |
---|---|---|
committer | Lorenzo Colitti <lorenzo@google.com> | 2020-12-02 00:45:57 +0900 |
commit | fa24282505f4f61f68d59e591d9778a70a221027 (patch) | |
tree | 8f72229e1bd56383520d65f8ace0dd29c02c5415 /rs/java/android/renderscript/ProgramStore.java | |
parent | 430a95f07c5aed1370f5e8d3acd28ef1a1b36d6e (diff) |
Refactor applyUnderlyingCapabilities and its test.
This reduces verbose assertions and makes the test more compact.
I'm not sure whether it's actually more valuable, since the
current code, while more verbose, is probably more
straightforward to understand.
Also add a test for passing in a null underlying network (i.e.,
follow default network). This requires a minor refactoring in
ConnectivityService because the applyUnderlyingCapabilities does
not currently treat null specially.
Bug: 173331190
Test: test-only change
Change-Id: Ic5a3e16969ea9e1a529706850f148cb0d5fd8e09
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions