summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorlucaslin <lucaslin@google.com>2021-03-23 20:02:09 +0800
committerLucas Lin <lucaslin@google.com>2021-03-25 10:16:20 +0000
commit44319298295fbe0d90c33bf9fa120118d6a67830 (patch)
tree38d7776644c31555ab51eab0908955c3d740467b /tools/aapt2/java/JavaClassGenerator_test.cpp
parent4eca6d0c5ce7f54adfcf042cd5c6d6e1704edfcd (diff)
Get NetworkCapabilities from NetworkCallback
Register network callback for all networks and record NetworkCapabilities for every networks. Once onDnsEvent is triggered, use the netId it passes in to find the corresponding NetworkCapabilities instead of using netId to create a Network object(hidden API) then get the NetworkCapabilities by ConnectivityManager#getNetworkCapabilities. Bug: 182963397 Test: m Test: atest IpConnectivityMetricsTest Test: atest NetdEventListenerServiceTest Change-Id: I91d68ca33253831b78def1ddeb074ba944a5d6ad Merged-In: I91d68ca33253831b78def1ddeb074ba944a5d6ad (cherry-picked from ag/13959432)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions