summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorAaron Huang <huangaaron@google.com>2021-02-02 18:27:39 +0800
committerAaron Huang <huangaaron@google.com>2021-03-03 08:40:28 +0000
commitcfff482b8abd05f12c5fb6b20a4d7e9273f22fa3 (patch)
treec41fce431d20f5051d04a28543ea6bf07737ff99 /tools/aapt2/java/JavaClassGenerator.cpp
parentb8e3cea7ad612a419654386ae20791d05e0685f0 (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 Change-Id: I3dac94ec06f673aa719e124f1ef3d8169f68f9fb
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions