android_packages_modules_Co.../tests/unit/java/android/net
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Remi NGUYEN VAN 2fd3823cbc Only send callbacks when overridden
Most users of NetworkCallback do not override all methods, so callbacks
from ConnectivityService end up being unused by the app.

To save resources, check which callback methods are overridden in
ConnectivityManager, and inform ConnectivityService so it can skip
preparing and sending the corresponding binder calls when the callback
is not used by the app.

This is flagged off by default.

Test: flag enabled: atest CtsNetTestCases ConnectivityCoverageTests
Bug: 327038794
Bug: 279392981

Change-Id: Iaf490f416fb6e1437d40497fba1a40a899a9f523
2024-06-26 12:39:47 +09: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 [mdns] add hidden API for public key 2024-04-24 07:02:42 +00:00
util add TRANSPORT_SATELLITE to NetworkCapabilities 2024-02-07 16:07:39 +00:00
ConnectivityManagerTest.java Only send callbacks when overridden 2024-06-26 12:39:47 +09:00
EthernetNetworkUpdateRequestTest.java Add test for nullable IpConfiguration 2022-03-16 20:29:10 +01: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
MulticastRoutingConfigTest.kt Add equals, hashCode to MulticastRoutingConfig 2023-11-10 13:06:22 +08:00
NetworkCallbackFlagsTest.kt Only send callbacks when overridden 2024-06-26 12:39:47 +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
NetworkStackBpfNetMapsTest.kt Add firewall chains for HAPPY_BOX and user/admin PENALTY_BOX 2024-04-23 15:04:28 +09: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 [AF02.1] Support read by FastDataInput in the NetworkStatsRecorder 2023-12-21 15:14:59 +08:00
NetworkStatsHistoryTest.java Disable flaky NetworkStatsHistoryTest#testFuzzing in presubmit 2023-10-16 17:21:06 +08:00
NetworkStatsRecorderTest.java [AF08] Fill useFastDataInput metrics 2023-12-26 03:38:48 +00:00
NetworkStatsTest.java Address review followup comments for NetworkStats 2023-09-04 18:01:14 +08:00
NetworkTemplateTest.kt Add some tests back which were removed for fixing kotlin nullable errors 2023-08-24 11:25:21 +09:00
NetworkUtilsTest.java NetworkUtilsTest.testSetSockOptBytes 2024-01-29 13:30:53 +08: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