summaryrefslogtreecommitdiff
path: root/services/java/com/android/server/SystemServer.java
diff options
context:
space:
mode:
authorLorenzo Colitti <lorenzo@google.com>2021-01-07 19:28:32 +0900
committerLorenzo Colitti <lorenzo@google.com>2021-01-12 23:19:49 +0900
commit682686bdffa8e4ae5ddbd55db4592c91512e466a (patch)
treed49866d159a345db1943d46fc3ccb2414a234e11 /services/java/com/android/server/SystemServer.java
parent29823649690f0df88b0b88b3ecfb9b295ef6b2b5 (diff)
Stop using IIpConnectivityMetrics in ConnectivityService.
Currently, ConnectivityService calls the IpConnectivityMetrics service class directly to log default network events. This is incompatible with ConnectivityService being in a mainline module. Replace direct access to IIpConnectivityMetrics with public methods in IpConnectivityLog, which is @SystemApi class. The new methods are not yet @SystemApi, but they can be made so if desired. Alternatively, these metrics could be deleted. Also remove the IpConectivityMetrics service from the service-connectivity JAR, and go back to starting it from SystemServer.java, which is what was happening a few hours ago before aosp/1542626 was merged. Test: builds, boots Test: atest FrameworksNetTests Test: "dumpsys connmetrics" shows events, including default network events Change-Id: I9d6147d93590363a2f8f83f39f05c03d001b4851
Diffstat (limited to 'services/java/com/android/server/SystemServer.java')
-rw-r--r--services/java/com/android/server/SystemServer.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/services/java/com/android/server/SystemServer.java b/services/java/com/android/server/SystemServer.java
index d533848c6f75..4cd1348a0f7a 100644
--- a/services/java/com/android/server/SystemServer.java
+++ b/services/java/com/android/server/SystemServer.java
@@ -1222,8 +1222,7 @@ public final class SystemServer {
}
t.traceBegin("IpConnectivityMetrics");
- mSystemServiceManager.startServiceFromJar(IP_CONNECTIVITY_METRICS_CLASS,
- CONNECTIVITY_SERVICE_APEX_PATH);
+ mSystemServiceManager.startService(IP_CONNECTIVITY_METRICS_CLASS);
t.traceEnd();
t.traceBegin("NetworkWatchlistService");