summaryrefslogtreecommitdiff
path: root/services/java/com/android/server/SystemServer.java
diff options
context:
space:
mode:
authorNeil Fuller <nfuller@google.com>2019-06-27 15:01:01 +0100
committerNeil Fuller <nfuller@google.com>2019-07-02 13:36:05 +0100
commitbef7e809edd48b71727fe72c937742ab00a11345 (patch)
tree1b31b7933670d5eb9f8b61d60afd73ef8f8a00ff /services/java/com/android/server/SystemServer.java
parent219098960d9d19bddfc864d22699240c1239ab39 (diff)
Remove the ability to turn off TimeDetectorService
Remove the ability to turn off TimeDetectorService. After http://r.android.com/1000492 it will be required in all cases. Also remove [Old|New]NetworkTimeUpdateService as the expected changes have not been implemented. Bug: 133492648 Test: build only Change-Id: Iad7ff59b19fa54750831819c68b7b733e5763902
Diffstat (limited to 'services/java/com/android/server/SystemServer.java')
-rw-r--r--services/java/com/android/server/SystemServer.java22
1 files changed, 7 insertions, 15 deletions
diff --git a/services/java/com/android/server/SystemServer.java b/services/java/com/android/server/SystemServer.java
index 3ec8b2efa8a2..1a889109d933 100644
--- a/services/java/com/android/server/SystemServer.java
+++ b/services/java/com/android/server/SystemServer.java
@@ -1449,16 +1449,13 @@ public final class SystemServer {
}
t.traceEnd();
- final boolean useNewTimeServices = true;
- if (useNewTimeServices) {
- t.traceBegin("StartTimeDetectorService");
- try {
- mSystemServiceManager.startService(TIME_DETECTOR_SERVICE_CLASS);
- } catch (Throwable e) {
- reportWtf("starting StartTimeDetectorService service", e);
- }
- t.traceEnd();
+ t.traceBegin("StartTimeDetectorService");
+ try {
+ mSystemServiceManager.startService(TIME_DETECTOR_SERVICE_CLASS);
+ } catch (Throwable e) {
+ reportWtf("starting StartTimeDetectorService service", e);
}
+ t.traceEnd();
if (!isWatch) {
t.traceBegin("StartSearchManagerService");
@@ -1656,12 +1653,7 @@ public final class SystemServer {
if (!isWatch && !disableNetworkTime) {
t.traceBegin("StartNetworkTimeUpdateService");
try {
- if (useNewTimeServices) {
- networkTimeUpdater = new NewNetworkTimeUpdateService(context);
- } else {
- networkTimeUpdater = new OldNetworkTimeUpdateService(context);
- }
- Slog.d(TAG, "Using networkTimeUpdater class=" + networkTimeUpdater.getClass());
+ networkTimeUpdater = new NetworkTimeUpdateServiceImpl(context);
ServiceManager.addService("network_time_update_service", networkTimeUpdater);
} catch (Throwable e) {
reportWtf("starting NetworkTimeUpdate service", e);