summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorMark Chien <markchien@google.com>2020-10-15 13:49:16 +0000
committerMark Chien <markchien@google.com>2020-10-15 15:39:03 +0000
commitc13332c8917ceb9baa9618d36b59564caab16cbd (patch)
tree4c027ddfdb7a2797343494bd484a840c3b033281 /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parenta737555854f5c0d9e41c84f3bd3f8894ea80b83f (diff)
Fix miss tracking downstream problem in PrivateAddressCoordinator
The downstream do not be tracked if PrivateAddressCoordinator just return cached address. Then, PrivateAddressCoordinator would not notify that downstream if conflict happen. Also remove the null check in getDownstreamPrefix because: - An IpServer is only added to mDownstreams by requestDownstreamAddress. - That method will only add the IpServer to mDownstreams if it has an IPv4 address. - As soon as that method returns, the IpServer sets mIpv4Address to the address that was returned. - When an IpServer is torn down, mIpv4Address is set to null after releaseDownstream is called. So it should never be possible for this to return null. Bug: 168169687 Test: atest CtsTetheringTest atest TetheringTests Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1459887 Change-Id: I4b4d75c8a4f1de07aa7bb68b12d150d7c85c9cc1 Merged-In: Ide5206b013acdc499344e1c839a830c5b245af41 (cherry picked from commit 335c9c52d0b8d1c4ec28d52e3f994e8b827fcad6)
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions