summaryrefslogtreecommitdiff
path: root/tests/common/java/android/net/NetworkCapabilitiesTest.java
diff options
context:
space:
mode:
authorJunyu Lai <junyulai@google.com>2021-05-26 12:23:56 +0000
committerJunyu Lai <junyulai@google.com>2021-06-28 12:44:31 +0000
commitdc3a7a39d462cd758d2c483dcb80c1b5ed57447d (patch)
treea199f349624137a30f3bf354d0cf8889eb985c0c /tests/common/java/android/net/NetworkCapabilitiesTest.java
parent33b4929cfecacd1bff552041ab8b846210e5f326 (diff)
Consider NetworkOffer is unneeded if it cannot satisfy the request
Currently, to prevent from network connect-teardown-loops that caused by inaccurate reports, e.g. the provider always provides a better network than the offer, the NetworkOffer is considered needed if its provider is currently serving the request. This is because there is no accurate way to know whether the offer is corresponding to the network that is currently serving the request. However, if the offer cannot even satisfies the request, consider the offer is needed does not make any sense. Since it can never be the one that currently serving the request, nor be the one that might beat current satisfier. Test: android.net.NetworkProviderTest Bug: 189074532 Change-Id: Ie3ea59f980c3767782b8e6b03e401c02f664f9bd
Diffstat (limited to 'tests/common/java/android/net/NetworkCapabilitiesTest.java')
0 files changed, 0 insertions, 0 deletions