android_packages_modules_Co.../tests/net/java/com/android/server
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Remi NGUYEN VAN df5f311617 Note network interfaces based on transport
Instead of classifying interfaces by network type in BatteryStats,
classify them based on the transports array provided by the
NetworkAgent.

Network types are deprecated and transports should be used instead. This
change allows BatteryStats to stop depending on unstable APIs such as
isNetworkTypeMobile.

This change also updates nullability annotations in ConnectivityService
and NetworkAgentInfo to show that the NetworkCapabilities are non-null
(as provided by the network agent) when calling
noteNetworkInterfaceTransports.

Bug: 174436414
Test: atest
  atest ConnectivityServiceTest#testBatteryStatsNetworkType \
      --rerun-until-failure 40

Merged-In: I4e928fac8a57a9b1fc758a44af2a5719b8c871b8

Change-Id: I4e928fac8a57a9b1fc758a44af2a5719b8c871b8
2021-01-28 15:10:54 +09:00
..
connectivity Enforce that NetworkAgentInfo fields are never null. 2021-01-18 07:49:26 +00:00
net Pivot network statistics to use DataInput/Output. 2021-01-06 18:48:12 -07:00
ConnectivityServiceTest.java Note network interfaces based on transport 2021-01-28 15:10:54 +09:00
IpSecServiceParameterizedTest.java [Mainline Migration] Migrate NetworkUtils 2020-12-06 22:33:04 -08:00
IpSecServiceRefcountedResourceTest.java Automatically set IPsec tunnel interface as up 2020-03-25 06:14:13 +00:00
IpSecServiceTest.java Automatically set IPsec tunnel interface as up 2020-03-25 06:14:13 +00:00
LegacyTypeTrackerTest.kt Suppress deprecation warnings in LegacyTypeTrackerTest. 2020-05-20 20:53:16 +09:00
NetIdManagerTest.kt Move utils from network stack to libs. 2020-07-29 21:15:48 +09:00
NetworkManagementServiceTest.java Merge "[IT4.2] Update argument type of interfaceClassDataActivityChanged" 2020-12-28 01:05:28 +00:00
NsdServiceTest.java Migrate frameworks/base/tests/net/ to androidx.test 2019-03-05 09:05:47 -08:00