Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f7c0b1fd authored by Remi NGUYEN VAN's avatar Remi NGUYEN VAN Committed by junyulai
Browse files

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
parent 6b708138
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -194,10 +194,9 @@ cc_library_shared {
        "jni/onload.cpp",
    ],
    shared_libs: [
        "libandroid",
        "liblog",
    ],
    static_libs: [
        "libnativehelper_compat_libc++",
        "libnativehelper",
    ],
    stl: "none",
    apex_available: [
+24 −0
Original line number Diff line number Diff line
@@ -40,6 +40,30 @@ filegroup {
    ],
}

// For test code only.
filegroup {
    name: "lib_networkStatsFactory_native",
    srcs: [
        "jni/com_android_server_net_NetworkStatsFactory.cpp",
    ],
    path: "jni",
    visibility: [
        "//packages/modules/Connectivity:__subpackages__",
    ],
}

filegroup {
    name: "services.connectivity-netstats-jni-sources",
    srcs: [
        "jni/com_android_server_net_NetworkStatsFactory.cpp",
        "jni/com_android_server_net_NetworkStatsService.cpp",
    ],
    path: "jni",
    visibility: [
        "//packages/modules/Connectivity:__subpackages__",
    ],
}

// Nsd related libraries.

filegroup {
+4 −0
Original line number Diff line number Diff line
@@ -54,6 +54,10 @@ import java.util.concurrent.ConcurrentHashMap;
 * @hide
 */
public class NetworkStatsFactory {
    static {
        System.loadLibrary("service-connectivity");
    }

    private static final String TAG = "NetworkStatsFactory";

    private static final boolean USE_NATIVE_PARSING = true;
Loading