From 9bbe9f695ad53ff8b44fdd0765ff68b0f9c0d27d Mon Sep 17 00:00:00 2001 From: Neil Fuller Date: Fri, 20 May 2022 18:16:19 +0100 Subject: [PATCH] Change package of NetworkTimeUpdateService NetworkTimeUpdateService handles NTP time detection. timedetection (now) has its own package. Change the package / update references before proposed refactoring. Bug: 222295093 Test: treehugger only Change-Id: Ib5e5738325797dd4cda6c413bcfac8645b95bf59 --- core/res/AndroidManifest.xml | 2 +- .../server/{ => timedetector}/NetworkTimeUpdateService.java | 4 ++-- .../NetworkTimeUpdateServiceShellCommand.java | 2 +- services/java/com/android/server/SystemServer.java | 1 + 4 files changed, 5 insertions(+), 4 deletions(-) rename services/core/java/com/android/server/{ => timedetector}/NetworkTimeUpdateService.java (99%) rename services/core/java/com/android/server/{ => timedetector}/NetworkTimeUpdateServiceShellCommand.java (99%) diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml index 7461e3397d2e8..a5175868256c5 100644 --- a/core/res/AndroidManifest.xml +++ b/core/res/AndroidManifest.xml @@ -563,7 +563,7 @@ - + diff --git a/services/core/java/com/android/server/NetworkTimeUpdateService.java b/services/core/java/com/android/server/timedetector/NetworkTimeUpdateService.java similarity index 99% rename from services/core/java/com/android/server/NetworkTimeUpdateService.java rename to services/core/java/com/android/server/timedetector/NetworkTimeUpdateService.java index 2015dc929a590..53893252c94b2 100644 --- a/services/core/java/com/android/server/NetworkTimeUpdateService.java +++ b/services/core/java/com/android/server/timedetector/NetworkTimeUpdateService.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.server; +package com.android.server.timedetector; import android.annotation.NonNull; import android.annotation.Nullable; @@ -71,7 +71,7 @@ public class NetworkTimeUpdateService extends Binder { private static final int EVENT_NETWORK_CHANGED = 3; private static final String ACTION_POLL = - "com.android.server.NetworkTimeUpdateService.action.POLL"; + "com.android.server.timedetector.NetworkTimeUpdateService.action.POLL"; private static final int POLL_REQUEST = 0; diff --git a/services/core/java/com/android/server/NetworkTimeUpdateServiceShellCommand.java b/services/core/java/com/android/server/timedetector/NetworkTimeUpdateServiceShellCommand.java similarity index 99% rename from services/core/java/com/android/server/NetworkTimeUpdateServiceShellCommand.java rename to services/core/java/com/android/server/timedetector/NetworkTimeUpdateServiceShellCommand.java index d7504ceb9d4de..18dda55c42701 100644 --- a/services/core/java/com/android/server/NetworkTimeUpdateServiceShellCommand.java +++ b/services/core/java/com/android/server/timedetector/NetworkTimeUpdateServiceShellCommand.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.server; +package com.android.server.timedetector; import android.annotation.NonNull; import android.os.ShellCommand; diff --git a/services/java/com/android/server/SystemServer.java b/services/java/com/android/server/SystemServer.java index 05bccd92253f4..3313f60a4efd4 100644 --- a/services/java/com/android/server/SystemServer.java +++ b/services/java/com/android/server/SystemServer.java @@ -196,6 +196,7 @@ import com.android.server.telecom.TelecomLoaderService; import com.android.server.testharness.TestHarnessModeService; import com.android.server.textclassifier.TextClassificationManagerService; import com.android.server.textservices.TextServicesManagerService; +import com.android.server.timedetector.NetworkTimeUpdateService; import com.android.server.tracing.TracingServiceProxy; import com.android.server.trust.TrustManagerService; import com.android.server.tv.TvInputManagerService;