android_packages_modules_Co.../tests/unit/java/com/android/server
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Lorenzo Colitti dd577efdde Simplify and correct isNetworkPotentialSatisfier.
This makes the code clearer, and also fixes a bug: currently, a
TRACK_DEFAULT request in a multilayer request can cause a network
to remain needed. This is incorrect: only requests should be able
to keep a network up.

This prevents satellite networking from disconnecting when the
default network reappears (see changes in unit test).

This CL removes the code before the loop that special-cases
non-multilayer listens because it is not very useful. Any
non-multilayer listen will either:
- Immediately return false, if it's the active request, or:
- Cause the code to continue (because it's not the active
  request), and because mRequests only has one element, will
  hit the "return false" statement after the loop.

Flag: EXEMPT bug fix
Test: covered by existing tests
Change-Id: I7295ce469335af924aa20b7976cc4a9136ef5d61
2025-04-22 22:02:40 +09:00
..
connectivity Ignore IPv6 temporary addresses in mDNS advertising. 2025-04-21 14:57:12 +09:00
connectivityservice Simplify and correct isNetworkPotentialSatisfier. 2025-04-22 22:02:40 +09:00
ethernet Fix transport override 2025-03-26 15:51:04 -07:00
net Rename FdWrapper to TunWrapper 2025-04-16 15:16:05 -07:00
BpfNetMapsTest.java Creating interface name to index tracking for Bpf Maps. 2025-03-13 17:04:54 +00:00
CallbackQueueTest.kt Rename getShrinkedBackingArray to getMinimized* 2024-08-02 19:27:41 +09:00
ConnectivityServiceTest.java Temporarily raise the number of system requests to 375 2025-04-03 15:02:20 +09:00
IpSecServiceParameterizedTest.java packages/modules/Connectivity: remove usages of deprecated Mockito matchers 2025-03-10 02:16:21 +01:00
IpSecServiceRefcountedResourceTest.java packages/modules/Connectivity: remove usages of deprecated Mockito matchers 2025-03-10 02:16:21 +01:00
IpSecServiceTest.java packages/modules/Connectivity: remove usages of deprecated Mockito matchers 2025-03-10 02:16:21 +01:00
IpSecXfrmControllerTest.java [XFRM_MSG_NEWSA] Support polling SA state with netlink message 2023-12-11 18:43:34 +00:00
IpSecXfrmControllerTestHex.java [XFRM_MSG_NEWSA] Support polling SA state with netlink message 2023-12-11 18:43:34 +00:00
LegacyTypeTrackerTest.kt Build ethernet framework source into framework-connectivity-tiramisu 2022-03-14 14:06:35 +00:00
NetIdManagerTest.kt Address comments on aosp/1781202 2022-08-17 07:11:55 +00:00
NsdServiceTest.java Delete TextStrings, only keep TextEntries 2025-04-08 12:43:57 +09:00