summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorjunyulai <junyulai@google.com>2018-08-07 19:50:45 +0800
committerjunyulai <junyulai@google.com>2018-10-11 16:31:10 +0800
commit05986c638be517b052d6e43dae56ce58e00d9c00 (patch)
tree432c07b0e69b604cac981f6c4522b8b3edc0d3f7 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent9b1db24f6e0ce1bea68a834d5ea21bea0f9bf374 (diff)
Add new callback to inform blocking of network on specific uid.
Currently, apps rely on querying NetworkInfo object to know whether their network is blocked or not. There is no proactive way to tell app when it is being blocked/unblocked. The only event that app would receive is SocketException with ECONNABORTED when their ongoing socket connection has been blocked, which is not an elegant way to notify app. Thus, this commit is trying to address this problem. Therefore, with the uses of other callbacks, the need of getState/getDetailedState in NetworkInfo could be completely eliminated. Test: runtest frameworks-net runtest -x NetworkPolicyManagerServiceTest.java cts-tradefed run cts -m CtsHostsideNetworkTests cts-tradefed run cts -m CtsNetTestCases -t \ android.net.cts.ConnectivityManagerTest Bug: 74575553 Change-Id: Iec96a3103d0aa9a505020eb89d69b89c0b694486
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions