android_packages_modules_Co.../tests/net
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
..
common Fix CaptivePortalTest before R 2021-03-04 10:45:02 +00:00
integration [FUI19] Migrate ConnectivityService to use NetworkStatsManager 2021-03-03 20:01:51 +08:00
java Fix a bug where listen callbacks would not be called 2021-03-09 19:05:55 +09:00
res/raw NetworkStats: apply464xlatAdjustments - don't remove CLAT_UID 2020-05-28 02:44:20 -07:00
smoketest [LSC] Add LOCAL_LICENSE_KINDS to frameworks/base 2021-02-16 04:09:57 -08:00
Android.bp [LSC] Add LOCAL_LICENSE_KINDS to frameworks/base 2021-02-16 04:09:57 -08:00
jarjar-rules.txt Address comments on aosp/1448415 2020-10-21 13:54:02 +09:00
TEST_MAPPING Add imports to networking test mapping 2020-10-15 09:16:40 +00:00