summaryrefslogtreecommitdiff
path: root/tests/unit/java/android/net/IpSecAlgorithmTest.java
diff options
context:
space:
mode:
authorChiachang Wang <chiachangwang@google.com>2021-06-30 16:22:06 +0800
committerChiachang Wang <chiachangwang@google.com>2021-06-30 16:41:59 +0800
commitf1e09ef031a6fdb42fee06abdfd955e79f2e49e3 (patch)
tree4b5a024c8c7fdbebc6fb72db786649a678f3c14c /tests/unit/java/android/net/IpSecAlgorithmTest.java
parent883df67f3f001fc3260eb7acb43b8bb9eefb4b58 (diff)
Trigger the network score update after setting test allow bad wifi
Avoid bad wifi design has to apply in both wifi and cellular networks. Cellular network should contain POLICY_YIELD_TO_BAD_WIFI policy, then system default network could stay in the wifi after wifi becomes unvalidated. The testing API only update the value but not trigger the avoid bad wifi callback to update the score in the existing cellular network. Thus, if the cellular network is connected before setting the overridden value, the yield to bad wifi policy will not updated to cellular network. The system default network will still switch from unvalidated wifi network to cellular network even wifi network is connected with the avoid bad wifi policy. Update to trigger a reevaluation to update the score in each NetworkAgent in the ConnectivityService. Bug: 192149168 Test: atest CtsNetTestCases:android.net.cts.ConnectivityManagerTest\ #testSetAvoidUnvalidated --rerun-until-failure 100 Change-Id: Ie0f777d0030b66dd306332496192c74f6c183284
Diffstat (limited to 'tests/unit/java/android/net/IpSecAlgorithmTest.java')
0 files changed, 0 insertions, 0 deletions