Rename android.util.TimestampedValue to android.os

Rename android.util.TimestampedValue to android.os to avoid dependency
from android.util onto android.os, which is disallowed by lint.

Bug: 147012511
Test: boot
Change-Id: I4b84db03c8ad24bbef63e45d6d15fb306a10364e
This commit is contained in:
Neil Fuller
2020-01-08 16:31:44 +00:00
parent 005c68cf66
commit d159015e54
16 changed files with 16 additions and 20 deletions

View File

@@ -20,7 +20,7 @@ import android.annotation.NonNull;
import android.annotation.Nullable; import android.annotation.Nullable;
import android.os.Parcel; import android.os.Parcel;
import android.os.Parcelable; import android.os.Parcelable;
import android.util.TimestampedValue; import android.os.TimestampedValue;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;

View File

@@ -20,7 +20,7 @@ import android.annotation.NonNull;
import android.annotation.Nullable; import android.annotation.Nullable;
import android.os.Parcel; import android.os.Parcel;
import android.os.Parcelable; import android.os.Parcelable;
import android.util.TimestampedValue; import android.os.TimestampedValue;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;

View File

@@ -20,7 +20,7 @@ import android.annotation.NonNull;
import android.annotation.Nullable; import android.annotation.Nullable;
import android.os.Parcel; import android.os.Parcel;
import android.os.Parcelable; import android.os.Parcelable;
import android.util.TimestampedValue; import android.os.TimestampedValue;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collections; import java.util.Collections;

View File

@@ -24,8 +24,8 @@ import android.os.RemoteException;
import android.os.ServiceManager; import android.os.ServiceManager;
import android.os.ServiceManager.ServiceNotFoundException; import android.os.ServiceManager.ServiceNotFoundException;
import android.os.SystemClock; import android.os.SystemClock;
import android.os.TimestampedValue;
import android.util.Log; import android.util.Log;
import android.util.TimestampedValue;
/** /**
* The interface through which system components can send signals to the TimeDetectorService. * The interface through which system components can send signals to the TimeDetectorService.

View File

@@ -14,13 +14,10 @@
* limitations under the License. * limitations under the License.
*/ */
package android.util; package android.os;
import android.annotation.NonNull; import android.annotation.NonNull;
import android.annotation.Nullable; import android.annotation.Nullable;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.SystemClock;
import java.util.Objects; import java.util.Objects;

View File

@@ -25,6 +25,7 @@ import android.net.Network;
import android.net.NetworkInfo; import android.net.NetworkInfo;
import android.net.SntpClient; import android.net.SntpClient;
import android.os.SystemClock; import android.os.SystemClock;
import android.os.TimestampedValue;
import android.provider.Settings; import android.provider.Settings;
import android.text.TextUtils; import android.text.TextUtils;

View File

@@ -22,7 +22,7 @@ import static android.app.timezonedetector.ParcelableTestSupport.roundTripParcel
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotEquals; import static org.junit.Assert.assertNotEquals;
import android.util.TimestampedValue; import android.os.TimestampedValue;
import org.junit.Test; import org.junit.Test;

View File

@@ -22,7 +22,7 @@ import static android.app.timezonedetector.ParcelableTestSupport.roundTripParcel
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotEquals; import static org.junit.Assert.assertNotEquals;
import android.util.TimestampedValue; import android.os.TimestampedValue;
import org.junit.Test; import org.junit.Test;

View File

@@ -22,7 +22,7 @@ import static android.app.timezonedetector.ParcelableTestSupport.roundTripParcel
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotEquals; import static org.junit.Assert.assertNotEquals;
import android.util.TimestampedValue; import android.os.TimestampedValue;
import org.junit.Test; import org.junit.Test;

View File

@@ -14,14 +14,12 @@
* limitations under the License. * limitations under the License.
*/ */
package android.util; package android.os;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotEquals; import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.fail; import static org.junit.Assert.fail;
import android.os.Parcel;
import androidx.test.runner.AndroidJUnit4; import androidx.test.runner.AndroidJUnit4;
import org.junit.Test; import org.junit.Test;

View File

@@ -36,11 +36,11 @@ import android.os.Looper;
import android.os.Message; import android.os.Message;
import android.os.PowerManager; import android.os.PowerManager;
import android.os.SystemClock; import android.os.SystemClock;
import android.os.TimestampedValue;
import android.provider.Settings; import android.provider.Settings;
import android.util.Log; import android.util.Log;
import android.util.NtpTrustedTime; import android.util.NtpTrustedTime;
import android.util.TimeUtils; import android.util.TimeUtils;
import android.util.TimestampedValue;
import com.android.internal.util.DumpUtils; import com.android.internal.util.DumpUtils;

View File

@@ -22,7 +22,7 @@ import android.app.timedetector.ManualTimeSuggestion;
import android.app.timedetector.NetworkTimeSuggestion; import android.app.timedetector.NetworkTimeSuggestion;
import android.app.timedetector.PhoneTimeSuggestion; import android.app.timedetector.PhoneTimeSuggestion;
import android.content.Intent; import android.content.Intent;
import android.util.TimestampedValue; import android.os.TimestampedValue;
import java.io.PrintWriter; import java.io.PrintWriter;

View File

@@ -24,10 +24,10 @@ import android.app.timedetector.ManualTimeSuggestion;
import android.app.timedetector.NetworkTimeSuggestion; import android.app.timedetector.NetworkTimeSuggestion;
import android.app.timedetector.PhoneTimeSuggestion; import android.app.timedetector.PhoneTimeSuggestion;
import android.content.Intent; import android.content.Intent;
import android.os.TimestampedValue;
import android.telephony.TelephonyManager; import android.telephony.TelephonyManager;
import android.util.LocalLog; import android.util.LocalLog;
import android.util.Slog; import android.util.Slog;
import android.util.TimestampedValue;
import com.android.internal.annotations.GuardedBy; import com.android.internal.annotations.GuardedBy;
import com.android.internal.annotations.VisibleForTesting; import com.android.internal.annotations.VisibleForTesting;

View File

@@ -37,7 +37,7 @@ import android.os.Handler;
import android.os.HandlerThread; import android.os.HandlerThread;
import android.os.Looper; import android.os.Looper;
import android.os.Message; import android.os.Message;
import android.util.TimestampedValue; import android.os.TimestampedValue;
import androidx.test.runner.AndroidJUnit4; import androidx.test.runner.AndroidJUnit4;

View File

@@ -30,7 +30,7 @@ import android.content.Intent;
import android.icu.util.Calendar; import android.icu.util.Calendar;
import android.icu.util.GregorianCalendar; import android.icu.util.GregorianCalendar;
import android.icu.util.TimeZone; import android.icu.util.TimeZone;
import android.util.TimestampedValue; import android.os.TimestampedValue;
import androidx.test.runner.AndroidJUnit4; import androidx.test.runner.AndroidJUnit4;

View File

@@ -18,7 +18,7 @@ package com.android.server.timedetector;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
import android.util.TimestampedValue; import android.os.TimestampedValue;
import androidx.test.runner.AndroidJUnit4; import androidx.test.runner.AndroidJUnit4;