diff options
author | Chiachang Wang <chiachangwang@google.com> | 2018-10-23 21:10:57 +0800 |
---|---|---|
committer | Chiachang Wang <chiachangwang@google.com> | 2018-10-23 21:10:57 +0800 |
commit | 4d11ec988efa695b9e07ecc1eaaca76e469be18a (patch) | |
tree | 5ae0892734309195577af8671c0ddfa6c6ddf851 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 1ad4aed0b96877092080ea2225cbd70f27ae8eb8 (diff) |
Move captive portal detection to another thread
isCaptivePortal() could take up to a minute. Resolving the
server's IP addresses could hit the DNS timeout, and attempting
connections to each of the server's several IP addresses
(currently one IPv4 and IPv6) could each take SOCKET_TIMEOUT_MS.
During this time this StateMachine will be unresponsive. Thus,
move detection to another thread.
Test: - runtest frameworks-net
- run cts -m CtsNetTestCases
-t android.net.cts.ConnectivityManagerTest
- manual test(VALIDATION_SUCCESS, VALIDATION_FAILED,
NETWORK_CAPTIVE_PORTAL_FOUND, bad network reported)
Bug: 113916551
Change-Id: I5ac39dc826acd26c64adaaa0b27a76cd7c7fd843
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions