No description. Add one?
  • Java 78%
  • Kotlin 11.8%
  • AIDL 4.4%
  • C++ 3.7%
  • C 1.5%
  • Other 0.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Chalard Jean b5becbca0a 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
core/jni Move OemNetworkPreferences to Connectivity 2021-03-08 09:26:41 +09:00
framework Merge "Move OemNetworkPreferences to Connectivity" 2021-03-08 08:41:04 +00:00
service Add modules-utils-os to service-connectivity 2021-03-02 03:28:58 +00:00
services/core/java/com/android/server Fix a bug where listen callbacks would not be called 2021-03-09 19:05:55 +09:00
tests/net Fix a bug where listen callbacks would not be called 2021-03-09 19:05:55 +09:00
OWNERS Add OWNERS for packages/Connectivity 2020-12-14 18:34:39 +09:00