summaryrefslogtreecommitdiff
path: root/services/coverage/java
diff options
context:
space:
mode:
author Lorenzo Colitti <lorenzo@google.com> 2022-01-29 21:07:33 +0900
committer Lorenzo Colitti <lorenzo@google.com> 2022-01-30 15:59:44 +0900
commitd0a17ee9d55619c423f58c3db42af4f8b8c90978 (patch)
tree0233474312e60958667bd15529bd3589ac8544ff /services/coverage/java
parent09d2a4b1758c6af933d5642a42c5ca80b88dfdc4 (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 'services/coverage/java')
0 files changed, 0 insertions, 0 deletions