android_packages_modules_Co.../tests/common/java/android/net
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Junyu Lai d0e049455c Support NetworkStats#addEntries API
Currently, NetworkStats#addEntry creates a new instance
containing the requested result instead of mutating the
original object. This creates a heavy memory footprint
when the caller invokes it in a loop because a new NetworkStats
instance is created whenever an addEntry is called.

This change introduces a new API that allows callers to
add a set of entries to a NetworkStats instance. This new
API will clone the instance only once, return the newly
created (and modified) instance, and ensure that the original
instance remains immutable.

Additionally, the change adopts config libraries for flagging
the API and corresponding CTS tests, since Android U-based
branches are no longer downstream of current development branches.

Test: atest FrameworksNetTests:android.net.connectivity.android.net.netstats.NetworkStatsApiTest
Test: atest CtsNetTestCases:NetworkStatsApiTest
Bug: 335680025
Fix: 357772271
API-Coverage-Bug: 357772271
Change-Id: I58513844e681c0621a6107ec4b198cd3957f289d
2024-08-09 14:19:38 +08:00
..
apf trivialize apf property accessor dead code 2022-11-04 11:43:22 +00:00
metrics Move bit utilities to BitUtils. 2022-10-12 16:39:37 +09:00
netstats Support NetworkStats#addEntries API 2024-08-09 14:19:38 +08:00
nsd [mdns] add hidden API for public key 2024-04-24 07:02:42 +00:00
util Remove @IgnoreUpTo(Q) annotation and isAtLeastR() check 2023-11-06 09:35:28 +00:00
CaptivePortalDataTest.kt Remove @IgnoreUpTo(Q) annotation and isAtLeastR() check 2023-11-06 09:35:28 +00:00
CaptivePortalTest.java Move net unit tests to packages/Connectivity 2021-05-13 08:30:33 +00:00
ConnectivityDiagnosticsManagerTest.java Do not verify field count in tests used in CTS 2022-01-18 16:55:32 +09:00
ConnectivitySettingsManagerTest.kt Fix testing with/without connectivity module 2022-02-16 15:22:30 +09:00
DependenciesTest.java Move net unit tests to packages/Connectivity 2021-05-13 08:30:33 +00:00
DhcpInfoTest.java Do not verify field count in tests used in CTS 2022-01-18 16:55:32 +09:00
EthernetNetworkManagementExceptionTest.java Rename of InternalNetworkManagementException 2022-05-03 13:22:21 -07:00
InvalidPacketExceptionTest.kt Add basic tests for InvalidPacketException 2021-06-23 09:16:59 +00:00
IpPrefixTest.java Mark connectivity module tests as such 2022-01-18 16:55:44 +09:00
KeepalivePacketDataTest.kt Remove @IgnoreUpTo(Q) annotation and isAtLeastR() check 2023-11-06 09:35:28 +00:00
LinkAddressTest.java Mark connectivity module tests as such 2022-01-18 16:55:44 +09:00
LinkPropertiesTest.java Remove @IgnoreUpTo(Q) annotation and isAtLeastR() check 2023-11-06 09:35:28 +00:00
MatchAllNetworkSpecifierTest.kt Remove @IgnoreUpTo(Q) annotation and isAtLeastR() check 2023-11-06 09:35:28 +00:00
NattKeepalivePacketDataTest.kt Remove @IgnoreUpTo(Q) annotation and isAtLeastR() check 2023-11-06 09:35:28 +00:00
NetworkAgentConfigTest.kt Remove @IgnoreUpTo(Q) annotation and isAtLeastR() check 2023-11-06 09:35:28 +00:00
NetworkCapabilitiesTest.java Stop throwing when the invalid capability is passed 2024-06-05 11:57:18 +09:00
NetworkProviderTest.kt Remove @IgnoreUpTo(Q) annotation and isAtLeastR() check 2023-11-06 09:35:28 +00:00
NetworkSpecifierTest.kt Remove @IgnoreUpTo(Q) annotation and isAtLeastR() check 2023-11-06 09:35:28 +00:00
NetworkStackTest.java Remove @IgnoreUpTo(Q) annotation and isAtLeastR() check 2023-11-06 09:35:28 +00:00
NetworkStateSnapshotTest.kt Mark connectivity module tests as such 2022-01-18 16:55:44 +09:00
NetworkTest.java Remove @IgnoreUpTo(Q) annotation and isAtLeastR() check 2023-11-06 09:35:28 +00:00
OemNetworkPreferencesTest.java Mark connectivity module tests as such 2022-01-18 16:55:44 +09:00
RouteInfoTest.java Remove @IgnoreUpTo(Q) annotation and isAtLeastR() check 2023-11-06 09:35:28 +00:00
TcpKeepalivePacketDataTest.kt Do not verify field count in tests used in CTS 2022-01-18 16:55:32 +09:00
UidRangeTest.java Mark connectivity module tests as such 2022-01-18 16:55:44 +09:00
UnderlyingNetworkInfoTest.kt Mark connectivity module tests as such 2022-01-18 16:55:44 +09:00
VpnTransportInfoTest.java Rename getBypassable to isBypassable 2022-12-15 04:22:43 +00:00