summaryrefslogtreecommitdiff
path: root/service-t/src/com/android/server/net/NetworkStatsService.java
diff options
context:
space:
mode:
authorRemi NGUYEN VAN <reminv@google.com>2022-02-02 13:22:57 +0900
committerjunyulai <junyulai@google.com>2022-02-18 16:20:47 +0800
commita24baedab8a9ad6dd3c3aa99d95672b5efa156b2 (patch)
tree373adc064b6d47b630e21d90411fcd33e9e55df0 /service-t/src/com/android/server/net/NetworkStatsService.java
parent6313e5506b543fbe9231c9be41c7e1a534c36ea1 (diff)
Move networkstats JNI to connectivity module
Reorganize networkstats JNI so it can be included in the connectivity module. Bug: 197717846 Test: m Change-Id: I815ea379f3d9915041c80ac5e743ce62e05f4cf8 Merged-In: I815ea379f3d9915041c80ac5e743ce62e05f4cf8
Diffstat (limited to 'service-t/src/com/android/server/net/NetworkStatsService.java')
-rw-r--r--service-t/src/com/android/server/net/NetworkStatsService.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/service-t/src/com/android/server/net/NetworkStatsService.java b/service-t/src/com/android/server/net/NetworkStatsService.java
index c441c81602..3e4687f9d2 100644
--- a/service-t/src/com/android/server/net/NetworkStatsService.java
+++ b/service-t/src/com/android/server/net/NetworkStatsService.java
@@ -173,6 +173,10 @@ import java.util.concurrent.TimeUnit;
*/
@TargetApi(Build.VERSION_CODES.TIRAMISU)
public class NetworkStatsService extends INetworkStatsService.Stub {
+ static {
+ System.loadLibrary("service-connectivity");
+ }
+
static final String TAG = "NetworkStats";
static final boolean LOGD = Log.isLoggable(TAG, Log.DEBUG);
static final boolean LOGV = Log.isLoggable(TAG, Log.VERBOSE);