summaryrefslogtreecommitdiff
path: root/tests/unit/java/android/net/KeepalivePacketDataUtilTest.java
diff options
context:
space:
mode:
authorChiachang Wang <chiachangwang@google.com>2021-06-17 22:11:30 +0800
committerChiachang Wang <chiachangwang@google.com>2021-06-22 14:54:02 +0800
commit6eac9fb7870376e90ae271c94915a15288e60bd2 (patch)
treebdb2e9173855d093ff28f7fe4ee493fca93dc1e8 /tests/unit/java/android/net/KeepalivePacketDataUtilTest.java
parent27586f82108a5d742882c52edc948bedc8162a63 (diff)
Provide a way to override the avoid bad wifi configuration
ConnectivityManager.setAvoidUnvalidated only works if the config_networkAvoidBadWifi configuration is set to 0 and the NETWORK_AVOID_BAD_WIFI setting is unset. There is no easy way for a testing app to temporary set a test value to verify the behavior of the API. Thus, add a mechanism to allow test app to set a period of time to temporary unstrict the resource configuration, i.e. Temporary simulate config_networkAvoidBadWifi configured to 0. Bug: 186061922 Test: atest CtsNetTestCases FrameworksNetTests Change-Id: If772078c61a9b12926f104d5dfc9c9071e844732
Diffstat (limited to 'tests/unit/java/android/net/KeepalivePacketDataUtilTest.java')
0 files changed, 0 insertions, 0 deletions