summaryrefslogtreecommitdiff
path: root/docs/html/sdk/api_diff/24/changes
diff options
context:
space:
mode:
authorRemi NGUYEN VAN <reminv@google.com>2020-12-24 17:08:08 +0900
committerRemi NGUYEN VAN <reminv@google.com>2021-01-20 15:53:54 +0900
commitef0d81b294aa8c9d554084209037b7b2604406e6 (patch)
treecb5617b11e315d6ab12c0d8559a7fd256567afe2 /docs/html/sdk/api_diff/24/changes
parent9e4440d78505663847da31f6c0ead9881125d817 (diff)
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 Change-Id: Icc912473d97a42eef73eb953607c9161fdbeb794
Diffstat (limited to 'docs/html/sdk/api_diff/24/changes')
0 files changed, 0 insertions, 0 deletions