android_packages_modules_Co.../tests/unit/java/com/android/server
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Paul Hu 079c77c296 Remove cached services when the network is disconnected or unrequested
The services in the cache are no longer useful after the network
is disconnected. Because either the Network object or the
interface index will change after the network is reconnected,
these cached services won't be used for any discovery/resolution/
service info callback requests. Therefore, these cached services
should be removed after the network is disconnected. Otherwise,
these useless cached services will occupy memory until the device
is rebooted.

In addition, the cached service may not be reliable after the
last listener is unregistered. Because the socket is
disconnected, the service type client won't receive any updates
for the services. Therefore, remove these cached services after
exceeding the keeping time.

Bug: 355421878
Test: atest FrameworksNetTests NsdManagerTest
Change-Id: I06ff320fec84f71dc2ed742c50fa46f25c284170
2024-09-13 06:13:37 +00:00
..
connectivity Remove cached services when the network is disconnected or unrequested 2024-09-13 06:13:37 +00:00
connectivityservice Check network destroy status before networkRemoveUidRangesParcel 2024-08-19 16:25:39 +09:00
ethernet Add support for link state tracking 2024-06-21 08:25:26 -07:00
net Unit test for intent spam 2024-08-09 08:38:30 +00:00
BpfNetMapsTest.java Fix to return BLOCKED_REASON_NONE for system uids 2024-07-30 16:56:52 +09:00
CallbackQueueTest.kt Rename getShrinkedBackingArray to getMinimized* 2024-08-02 19:27:41 +09:00
ConnectivityServiceTest.java Add flag for QUEUE_CALLBACKS_FOR_FROZEN_APPS 2024-07-16 13:36:51 +09:00
IpSecServiceParameterizedTest.java Reland "Support getting transform state in IpSecService" 2023-12-12 22:19:55 +00:00
IpSecServiceRefcountedResourceTest.java Add some non-connectivity-module-test back to ConnectivityCoverageTests 2022-05-27 07:16:46 +00:00
IpSecServiceTest.java Experimental support for IPv6 UDP encap. 2023-02-08 15:05:07 +09: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 Report isKnownService in discovery stop metrics 2024-05-29 08:23:37 +00:00