android_packages_modules_Co.../tests/unit/java/android/net
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Lorenzo Colitti ec2fbb7159 Don't clobber existing history entries.
Currently, adding a history to a NetworkStatsCollection.Builder
will overwrite any history that was previously passed in with the
same key. This breaks the importer (which is the primary/only
caller of this code), because the importer re-uses the same
NetworkStatsCollection object to import multiple files.

Instead, simply add any passed-in entries after the ones that
were already there. Require the caller to pass in entries in
order, because NetworkStatsHistory internally assumes that
entris are always sorted.

Bug: 230289468
Test: manually verified this unbreaks the importer
Change-Id: Ic8647ff28fca78d579d5f759f96a864877f8158b
Merged-In: Ic8647ff28fca78d579d5f759f96a864877f8158b
  (pure cherry-picked from ag/18453213)
2022-05-24 11:37:42 +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 Add APIs for discover/resolve on specific networks 2022-02-03 16:05:02 +09:00
util Add new network capabilities to support automotive head unit via USB 2021-07-08 09:44:39 +09:00
ConnectivityManagerTest.java Fix ConnectivityManager memory leak 2022-04-29 08:01:23 +00:00
EthernetNetworkUpdateRequestTest.java Add test for nullable IpConfiguration 2022-03-16 20:29:10 +01:00
Ikev2VpnProfileTest.java Test Ikev2VpnProfile provisioned with IkeTunnelConnectionParams 2022-04-21 14:49:41 +08:00
IpMemoryStoreTest.java Re-skip connectivity unit tests before S 2021-06-30 12:00:28 +09:00
IpSecAlgorithmTest.java Fix IpSecAlgorithmTest on S 2021-08-25 18:10:22 +09:00
IpSecConfigTest.java Re-skip connectivity unit tests before S 2021-06-30 12:00:28 +09:00
IpSecManagerTest.java Re-skip connectivity unit tests before S 2021-06-30 12:00:28 +09:00
IpSecTransformTest.java Re-skip connectivity unit tests before S 2021-06-30 12:00:28 +09:00
KeepalivePacketDataUtilTest.java Move fromStableParcelable to KeepaliveController 2021-11-01 13:23:27 +09: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 [SUBID01-1]Grow NetworkIdentity to include a new mSubId field 2022-03-01 16:43:28 +08:00
NetworkStatsAccessTest.java Update the SDK for the tests with intended target in T+ 2022-01-20 10:30:19 +08:00
NetworkStatsCollectionTest.java [MS81] Support remove history before cutoff timestamp 2022-05-12 16:31:39 +08:00
NetworkStatsHistoryTest.java [MS81] Support remove history before cutoff timestamp 2022-05-12 16:31:39 +08:00
NetworkStatsTest.java Add unit test for NetworkStats iterator 2022-01-19 17:10:44 +08:00
NetworkTemplateTest.kt Add NetworkTemplateTest to common test for cts coverage 2022-03-10 14:57:46 +00: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
VpnTransportInfoTest.java Re-skip connectivity unit tests before S 2021-06-30 12:00:28 +09:00