android_packages_modules_Co.../tests/unit/java/com/android/server
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Junyu Lai 24fcc3668a Use device config to enable/disable the rate-limit cache feature
Currently, if the app's target SDK is V+, the rate-limit cache is
enabled regardless of whether the kill switch is enabled or not.
This creates problems if there is a need to disable the feature
entirely.

Thus, this change makes the kill switch override the target SDK
level. This is necessary for follow-up changes to enable
the client-side cache and disable the service-side cache
simultaneously.

This change also removes the need of initializing/clearing the
caches when the cache is entirely disabled.

Test: atest FrameworksNetTests:android.net.connectivity.android.net.TrafficStatsTest \
      FrameworksNetTests:android.net.connectivity.com.android.server.net.NetworkStatsServiceTest \
      CtsNetTestCases:android.net.cts.NetworkStatsBinderTest \
      FrameworksNetIntegrationTests:com.android.server.net.integrationtests.NetworkStatsIntegrationTest
Bug: 343260158
Change-Id: I38bdfe00220f59712ca4b095fe4e7a3731320708
2024-10-28 14:43:15 +08:00
..
connectivity Fix the test flake in testRemoveServicesAfterSocketDestroyed 2024-09-26 05:56:28 +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 Use device config to enable/disable the rate-limit cache feature 2024-10-28 14:43:15 +08: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