android_packages_modules_Co.../tests/unit/java/android/net
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Lorenzo Colitti b36e57a004 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.

Ignore-AOSP-First: in a topic with internal-only changes
Bug: 230289468
Test: manually verified this unbreaks the importer
Change-Id: Ic8647ff28fca78d579d5f759f96a864877f8158b
2022-05-18 23:51:03 +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-18 23:51:03 +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 Increase timeouts for loopers 2021-10-04 18:02:17 +09: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-16 05:53:02 +00:00
NetworkStatsHistoryTest.java [MS81] Support remove history before cutoff timestamp 2022-05-16 05:53:02 +00: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-02-09 14:58:15 +08:00
NetworkUtilsTest.java Re-skip connectivity unit tests before S 2021-06-30 12:00:28 +09:00
QosSocketFilterTest.java Re-skip connectivity unit tests before S 2021-06-30 12:00:28 +09: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