Move ExternalTimeSuggestion to android.app.time

We plan to make ExternalTimeSuggestion part of a system API. This
CL moves it from android.app.timedetector to android.app.time in
preparation for this change.

Bug: 177079827
Test: atest services/tests/servicestests/src/com/android/server/timedetector/TimeDetectorStrategyImplTest.java
Test: atest android.app.timedetector
Test: atest android.app.time

Change-Id: I13f059afb10b57b13b0e340aacb924a43dabe172
This commit is contained in:
Mustafa Acer
2021-02-02 20:23:42 +00:00
committed by Mustafa Emre Acer
parent 1a6f0cda46
commit 87f56209e6
11 changed files with 11 additions and 9 deletions

View File

@@ -14,6 +14,6 @@
* limitations under the License.
*/
package android.app.timedetector;
package android.app.time;
parcelable ExternalTimeSuggestion;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package android.app.timedetector;
package android.app.time;
import android.annotation.NonNull;
import android.annotation.Nullable;

View File

@@ -16,7 +16,7 @@
package android.app.timedetector;
import android.app.timedetector.ExternalTimeSuggestion;
import android.app.time.ExternalTimeSuggestion;
import android.app.timedetector.GnssTimeSuggestion;
import android.app.timedetector.ManualTimeSuggestion;
import android.app.timedetector.NetworkTimeSuggestion;

View File

@@ -19,6 +19,7 @@ package android.app.timedetector;
import android.annotation.NonNull;
import android.annotation.RequiresPermission;
import android.annotation.SystemService;
import android.app.time.ExternalTimeSuggestion;
import android.content.Context;
import android.os.SystemClock;
import android.os.TimestampedValue;

View File

@@ -17,6 +17,7 @@
package android.app.timedetector;
import android.annotation.NonNull;
import android.app.time.ExternalTimeSuggestion;
import android.content.Context;
import android.os.RemoteException;
import android.os.ServiceManager;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package android.app.timedetector;
package android.app.time;
import static android.app.timezonedetector.ParcelableTestSupport.assertRoundTripParcelable;
import static android.app.timezonedetector.ParcelableTestSupport.roundTripParcelable;

View File

@@ -18,7 +18,7 @@ package com.android.server.timedetector;
import android.annotation.NonNull;
import android.annotation.Nullable;
import android.app.timedetector.ExternalTimeSuggestion;
import android.app.time.ExternalTimeSuggestion;
import android.app.timedetector.GnssTimeSuggestion;
import android.app.timedetector.ITimeDetectorService;
import android.app.timedetector.ManualTimeSuggestion;

View File

@@ -18,7 +18,7 @@ package com.android.server.timedetector;
import android.annotation.IntDef;
import android.annotation.NonNull;
import android.app.timedetector.ExternalTimeSuggestion;
import android.app.time.ExternalTimeSuggestion;
import android.app.timedetector.GnssTimeSuggestion;
import android.app.timedetector.ManualTimeSuggestion;
import android.app.timedetector.NetworkTimeSuggestion;

View File

@@ -23,7 +23,7 @@ import static java.util.stream.Collectors.joining;
import android.annotation.NonNull;
import android.annotation.Nullable;
import android.app.AlarmManager;
import android.app.timedetector.ExternalTimeSuggestion;
import android.app.time.ExternalTimeSuggestion;
import android.app.timedetector.GnssTimeSuggestion;
import android.app.timedetector.ManualTimeSuggestion;
import android.app.timedetector.NetworkTimeSuggestion;

View File

@@ -28,7 +28,7 @@ import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import android.app.timedetector.ExternalTimeSuggestion;
import android.app.time.ExternalTimeSuggestion;
import android.app.timedetector.GnssTimeSuggestion;
import android.app.timedetector.ManualTimeSuggestion;
import android.app.timedetector.NetworkTimeSuggestion;

View File

@@ -27,7 +27,7 @@ import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import android.app.timedetector.ExternalTimeSuggestion;
import android.app.time.ExternalTimeSuggestion;
import android.app.timedetector.GnssTimeSuggestion;
import android.app.timedetector.ManualTimeSuggestion;
import android.app.timedetector.NetworkTimeSuggestion;