android_packages_modules_Co.../tests/unit/java/com/android/server
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Chalard Jean bb902a5fee Fix an infinite loop with network offers
When the avoidBadWifi configuration is false and not overridden,
a WiFi network that was validated in the past but becomes
unvalidated needs to outscore a cell network that is validated.
This is happening correctly when the stack compares two networks.
However, when the stack compares an existing network to an offer
for a cellular network, the offer was automatically considered
not to yield. This would mean the stack would be requesting cell
out of the telephony factory, only for that network to lose to
WiFi and be discarded immediately, then recreated again etc.

When there is some other reason cell should be up (such as the
"mobile always on" setting being active), this would not be
visible because the cell network would have another reason not
to be torn down.

Have offers correctly account for the current value of the
configuration and setting. This has the ranking of the offer
lose against WiFi like the actual network loses, meaning the
offer is not needed.

This also requires updating the offers whenever the value of
the setting changes.

Test: new test for this, also ConnectivityServiceTest
Bug: 195441367
Change-Id: I4fe5de98bc15bcf9bbbe25c6c7c8a7ba382f8db7
2021-08-19 22:53:41 +09:00
..
connectivity Merge "Use dns resolver v9 in connectivity and set resolverOptions to null." 2021-08-06 17:10:36 +00:00
net Re-skip connectivity unit tests before S 2021-06-30 12:00:28 +09:00
ConnectivityServiceTest.java Fix an infinite loop with network offers 2021-08-19 22:53:41 +09:00
IpSecServiceParameterizedTest.java Re-skip connectivity unit tests before S 2021-06-30 12:00:28 +09:00
IpSecServiceRefcountedResourceTest.java Re-skip connectivity unit tests before S 2021-06-30 12:00:28 +09:00
IpSecServiceTest.java Re-skip connectivity unit tests before S 2021-06-30 12:00:28 +09:00
LegacyTypeTrackerTest.kt Re-skip connectivity unit tests before S 2021-06-30 12:00:28 +09:00
NetIdManagerTest.kt Re-skip connectivity unit tests before S 2021-06-30 12:00:28 +09:00
NetworkManagementServiceTest.java Re-skip connectivity unit tests before S 2021-06-30 12:00:28 +09:00
NsdServiceTest.java Re-skip connectivity unit tests before S 2021-06-30 12:00:28 +09:00