summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramStore.java
diff options
context:
space:
mode:
authorRemi NGUYEN VAN <reminv@google.com>2021-01-26 06:19:46 +0000
committerRemi NGUYEN VAN <reminv@google.com>2021-01-27 09:02:22 +0000
commit84f8c4842093e827edb22fbab969b41c6a339d10 (patch)
tree71b64f7508a053bbb76a81937e779cef25c33ddf /rs/java/android/renderscript/ProgramStore.java
parent7e56827d84f49f7141c0b907bb3aebe554113c7b (diff)
Revert "Revert "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. This is rolling forward a previously reverted change. The new change also fixes MobileRadioPowerCalculatorTest that was broken when submitting the previous change. Bug: 174436414 Test: atest atest ConnectivityServiceTest#testBatteryStatsNetworkType \ --rerun-until-failure 40 Merged-In: I4e928fac8a57a9b1fc758a44af2a5719b8c871b8 Change-Id: I4e928fac8a57a9b1fc758a44af2a5719b8c871b8 (cherry picked from commit 2d17d202bc709c205506c03149d847f00f92d78d)
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions