summaryrefslogtreecommitdiff
path: root/framework-t/src/android/net/EthernetNetworkUpdateRequest.java
diff options
context:
space:
mode:
authorLorenzo Colitti <lorenzo@google.com>2022-01-29 21:07:33 +0900
committerLorenzo Colitti <lorenzo@google.com>2022-01-30 15:59:44 +0900
commitd2ae7390f51b5bea48c4a6fa96c95215222fca9a (patch)
treecb416c160a099350a707684bfbfd334101c557c3 /framework-t/src/android/net/EthernetNetworkUpdateRequest.java
parente91d76c5df734b46485523a0ebf2d775f8b135ba (diff)
Move socket tagging implementation to mainline.
Currently, socket tagging is implemented in the framework. The Java code is in NetworkManagmentSocketTagger.java and the JNI is in libandroid and loaded by the general framework JNI loader. - Move the Java implementation to TrafficStats, which is the only caller of NetworkManagmentSocketTagger. This simplifies the code a bit because a number of methods can be deleted. - Move the JNI code to a new JNI library in the APEX. The library depends only on the NDK and statically links the NDK-only version of libnativehelper. Its size is only 5k on ARM and 10k on ARM64. - Temporarily make the framework depend on this library until the rest of the T connectivity code moves to the APEX. Test: atest NetworkUsageStatsTest CtsNetTestCases:TrafficStatsTest Change-Id: I050c7c515237f68b78d08987bc443f50a7949c06
Diffstat (limited to 'framework-t/src/android/net/EthernetNetworkUpdateRequest.java')
0 files changed, 0 insertions, 0 deletions