No description. Add one?
  • Java 78%
  • Kotlin 11.8%
  • AIDL 4.4%
  • C++ 3.7%
  • C 1.5%
  • Other 0.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Chiachang Wang f1e09ef031 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
2021-06-30 16:41:59 +08:00
core am 558aeb90: Merge "Make NetworkCapabilities publicly immutable." into lmp-preview-dev 2014-06-12 18:49:07 +00:00
framework Trigger the network score update after setting test allow bad wifi 2021-06-30 16:41:59 +08:00
service Address comments on ag/14486203 2021-06-24 08:33:27 +00:00
services am 558aeb90: Merge "Make NetworkCapabilities publicly immutable." into lmp-preview-dev 2014-06-12 18:49:07 +00:00
tests Merge changes I81bf8969,I2edba513,Ibb913979 2021-06-25 15:28:27 +00:00
Tethering Merge "Improve TestConnectivityManager readability" 2021-06-27 23:47:45 +00:00
.gitignore Add a .gitignore in packages/modules/Connectivity. 2020-11-27 18:09:21 +09:00
OWNERS Revert "Add owners block for migration" 2021-05-31 10:34:04 +00:00
PREUPLOAD.cfg Add repo hooks for packages/modules/Connectivity. 2020-11-27 18:09:24 +09:00
TEST_MAPPING Merge "Add ConnectivityCoverageTests to postsubmit" 2021-06-24 06:32:36 +00:00