summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorRemi NGUYEN VAN <reminv@google.com>2021-01-28 15:09:22 +0900
committerRemi NGUYEN VAN <reminv@google.com>2021-01-28 15:10:54 +0900
commit2c9ed7f32dc7690c6c99a8647a6e3274f0a814bf (patch)
tree262f37807ad607ebaf834522700fb070e98305dc /tools/aapt2/java/JavaClassGenerator_test.cpp
parent286dc55bc983f7c0ea02cc920ff93b5a88472fa0 (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 Merged-In: I4e928fac8a57a9b1fc758a44af2a5719b8c871b8 Change-Id: I4e928fac8a57a9b1fc758a44af2a5719b8c871b8
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions