summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorAaron Huang <huangaaron@google.com>2021-02-02 18:27:39 +0800
committerAaron Huang <huangaaron@google.com>2021-03-04 13:06:06 +0000
commite96782a56708623ef586a40678adcb018797b06b (patch)
tree381f762909da7c202f6a5ea1100b277ea1dfe4af /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parent78a488cd10a99aa7d2a3323ad9a0e36eee7337a5 (diff)
Use NetworkCallback in BatteryStatsService to get connectivity change
Currently, battery stats service uses noteConnectivityChanged in connectivity service(CS) to pass connection state and the type of connection for BatteryStats. However, CS is going to be a mainline module which can only access formal API. noteConnectivityChanged is a hidden API and it pass LegacyNetworkType which has been deprecated years ago, so it should avoid to expose this API with a deprecated argument. Thus, register a NetworkCallback in BattyeryStatsService to listen the network capabilities changed to remove the noteConnectivityChanged from connectivity service. Besides, let noteConnectivityChanged take display transport instead of legacy network type. Bug: 171686421 Test: atest FrameworksNetTests atest FrameworksCoreTests:BatteryStatsTests (cherry-picked from ag/13749983) Change-Id: I3dac94ec06f673aa719e124f1ef3d8169f68f9fb Merged-In: I3dac94ec06f673aa719e124f1ef3d8169f68f9fb
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions