android_packages_modules_Co.../tests/unit/java/android/net
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Junyu Lai 23d89c0bbf Deduplicate items after clear interface in NetworkStats
Follow-up from commit Ie60829a65d0d9b5b63ad353695a820c0586e3665,
the interface field was cleared before returning the result to
the caller. However, this can cause problems in the
NetworkStats#subtract method. If the interface field is cleared,
the findIndexHinted method can match to a wrong entry.
This is because the keys of multiple entries will now be the
same. This can cause the subtract result to be unexpectedly
large and the return value of getUidStatsForTransport to be
mismatched with the values retrieved from other APIs.

Test: atest FrameworksNetTests:android.net.connectivity.com.android.server.net.NetworkStatsServiceTest \
      FrameworksNetTests:android.net.connectivity.android.net.NetworkStatsTest
Bug: 290728278
Change-Id: I891ab29b8a2902663febc7c32b04417caf510926
2023-08-01 13:38:26 +08:00
..
ipmemorystore Re-skip connectivity unit tests before S 2021-06-30 12:00:28 +09:00
netstats Don't clobber existing history entries. 2022-05-24 11:37:42 +08:00
nsd Merge "Move NsdServiceInfoTest to common tests" 2023-07-03 06:24:43 +00:00
util Move ConnectivityResources to service-connectivity 2023-04-28 19:18:39 +09:00
ConnectivityManagerTest.java Increased the timeout from 5 to 30 seconds 2022-12-06 06:51:03 +00:00
EthernetNetworkUpdateRequestTest.java Add test for nullable IpConfiguration 2022-03-16 20:29:10 +01:00
Ikev2VpnProfileTest.java Add unit tests for new VpnProfile fields 2023-02-15 15:01:28 +00:00
IpMemoryStoreTest.java Re-skip connectivity unit tests before S 2021-06-30 12:00:28 +09:00
IpSecAlgorithmTest.java ipsec - use ro.vendor.api_level instead of ro.product.first_api_level 2022-11-09 00:47:13 +00:00
IpSecConfigTest.java Add some non-connectivity-module-test back to ConnectivityCoverageTests 2022-05-27 07:16:46 +00:00
IpSecManagerTest.java Add some non-connectivity-module-test back to ConnectivityCoverageTests 2022-05-27 07:16:46 +00:00
IpSecTransformTest.java Expose APIs to migrate IpSecTransform 2023-01-10 19:09:05 +00:00
KeepalivePacketDataUtilTest.java Remove toString test. 2023-06-01 21:34:50 +00:00
MacAddressTest.java Re-skip connectivity unit tests before S 2021-06-30 12:00:28 +09:00
NetworkIdentitySetTest.kt Fix NullPointerException happens in dumpCheckin 2022-04-19 17:49:30 +08:00
NetworkIdentityTest.kt Revert consider TEMPORARILY_NOT_METERED as unmetered in data usage 2022-12-02 16:04:55 +08:00
NetworkStatsAccessTest.java Check MAINLINE_NETWORK_STACK as well to make GTS can access proper stats 2023-04-11 14:56:15 +08:00
NetworkStatsCollectionTest.java Cleanup constructor of NetworkStats#Entry 2022-08-02 22:49:16 +08:00
NetworkStatsHistoryTest.java Cleanup constructor of NetworkStats#Entry 2022-08-02 22:49:16 +08:00
NetworkStatsRecorderTest.java Add wipeOnError flag to NetworkStatsRecorder 2022-06-22 17:37:51 +08:00
NetworkStatsTest.java Deduplicate items after clear interface in NetworkStats 2023-08-01 13:38:26 +08:00
NetworkTemplateTest.kt Do not crash when passing null into buildTemplateMobileAll 2023-03-30 13:59:02 +08:00
NetworkUtilsTest.java Re-skip connectivity unit tests before S 2021-06-30 12:00:28 +09:00
QosSocketFilterTest.java Support QosCallback with UDP socket. UnitTest 2022-05-05 08:45:00 +00:00
QosSocketInfoTest.java Support QosCallback with UDP socket. UnitTest 2022-05-05 08:45:00 +00:00
TelephonyNetworkSpecifierTest.java Re-skip connectivity unit tests before S 2021-06-30 12:00:28 +09:00
VpnManagerTest.java Re-skip connectivity unit tests before S 2021-06-30 12:00:28 +09:00