android_packages_modules_Co.../tests/net/java/com/android/server
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Chalard Jean d67ab4df87 Fix a bug where listen callbacks would not be called
NetworkAgentInfos cache the list of requests they satisfy,
and that list is used to send callbacks. Therefore, when
the TRACK_DEFAULTs are copied, this list needs to be
updated.

The best way to do this is to figure out what was the old
active request and find which requests corresponds to it
in the new list, and then upon registering adding the
active request to the relevant satisfier if present.

A few other ways can be considered like replacing the
request as it gets added, but this would temporarily
increase the number of callbacks allocated to the app
and risks crashing it for no good reasonĀ ; furthermore
the call to remove would have to be eschewed somehow
for those requests that are replaced. This is much
simpler.

Test: new test for this. This also passes the future
      tests for per-profile default network preference.
Change-Id: I001351e5c478c2c77cbf2844abca77b205291778
2021-03-09 19:05:55 +09:00
..
connectivity Keystore 2.0: Make VPN Keystore 2.0 ready. 2021-03-03 22:14:41 -08:00
net [FUI09] Expose NetworkStateSnapshot as system API 2021-03-02 23:09:16 +08:00
ConnectivityServiceTest.java Fix a bug where listen callbacks would not be called 2021-03-09 19:05:55 +09:00
IpSecServiceParameterizedTest.java Merge changes I852e3a53,I86755647,I0ed8b0c6 2021-02-22 06:49:39 +00:00
IpSecServiceRefcountedResourceTest.java Remove unused INetworkManagementService from IpSecService 2021-02-08 08:05:00 +00:00
IpSecServiceTest.java Remove unused INetworkManagementService from IpSecService 2021-02-08 08:05:00 +00:00
LegacyTypeTrackerTest.kt Revert the fallback naming into default network 2021-02-04 13:14:05 +09:00
NetIdManagerTest.kt Move utils from network stack to libs. 2020-07-29 21:15:48 +09:00
NetworkManagementServiceTest.java Merge "[IT4.2] Update argument type of interfaceClassDataActivityChanged" 2020-12-28 01:05:28 +00:00
NsdServiceTest.java Migrate frameworks/base/tests/net/ to androidx.test 2019-03-05 09:05:47 -08:00