summaryrefslogtreecommitdiff
path: root/services/java/com/android/server/SystemServer.java
diff options
context:
space:
mode:
authorNeil Fuller <nfuller@google.com>2019-11-07 15:35:05 +0000
committerNeil Fuller <nfuller@google.com>2019-11-28 13:27:55 +0000
commit3352cfce2f48d2555ea73e7f80ebab3ba5827640 (patch)
treefdab98118ab88544a090e0868f55b2ce4ad90baa /services/java/com/android/server/SystemServer.java
parent5f01cb6ddca16e231c9ce57baa6949c075b3cc05 (diff)
Add a new time zone detection service
Add a new time zone detection service. Much of the code is from frameworks/opt/telephony with some changes for naming, threading and to modify the interaction with the "Callback" class. Overall goal: Implementing the service in the system server means it will be easier to add new time zone detection logic unrelated to telephony in future. Bug: 140712361 Test: atest com.android.server.timezonedetector Test: atest android.app.timezonedetector Change-Id: I89505fc4fecbd3667b60f8e1479b8f177eaa60ae Merged-In: I89505fc4fecbd3667b60f8e1479b8f177eaa60ae (cherry picked from commit 3e3b5405b6c5e77a640ad9450eb1cac5b7c80ff1)
Diffstat (limited to 'services/java/com/android/server/SystemServer.java')
-rw-r--r--services/java/com/android/server/SystemServer.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/services/java/com/android/server/SystemServer.java b/services/java/com/android/server/SystemServer.java
index def61bf88798..0b396d871b71 100644
--- a/services/java/com/android/server/SystemServer.java
+++ b/services/java/com/android/server/SystemServer.java
@@ -271,6 +271,8 @@ public final class SystemServer {
"com.android.internal.car.CarServiceHelperService";
private static final String TIME_DETECTOR_SERVICE_CLASS =
"com.android.server.timedetector.TimeDetectorService$Lifecycle";
+ private static final String TIME_ZONE_DETECTOR_SERVICE_CLASS =
+ "com.android.server.timezonedetector.TimeZoneDetectorService$Lifecycle";
private static final String ACCESSIBILITY_MANAGER_SERVICE_CLASS =
"com.android.server.accessibility.AccessibilityManagerService$Lifecycle";
private static final String ADB_SERVICE_CLASS =
@@ -1463,6 +1465,14 @@ public final class SystemServer {
}
traceEnd();
+ traceBeginAndSlog("StartTimeZoneDetectorService");
+ try {
+ mSystemServiceManager.startService(TIME_ZONE_DETECTOR_SERVICE_CLASS);
+ } catch (Throwable e) {
+ reportWtf("starting StartTimeZoneDetectorService service", e);
+ }
+ traceEnd();
+
if (!isWatch) {
traceBeginAndSlog("StartSearchManagerService");
try {