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
This commit is contained in:
committed by
junyulai
parent
6313e5506b
commit
a24baedab8
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user