summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authormarkchien <markchien@google.com>2020-10-14 15:11:43 +0800
committermarkchien <markchien@google.com>2020-10-15 16:21:12 +0800
commit5c7d8e531382f88f9e98fb85d072c4b04a824ce2 (patch)
tree9a4c061a427062fbb43c7dd077ef901166947235 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent7d5c2cf25a7991d4f70049b2cce40d47af3c9a3c (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 Change-Id: Ide5206b013acdc499344e1c839a830c5b245af41
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions