Home
last modified time | relevance | path

Searched refs:TimestampedValue (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/android/os/
DTimestampedValueTest.java33 TimestampedValue<String> one1000one = new TimestampedValue<>(1000, "one"); in testEqualsAndHashcode()
36 TimestampedValue<String> one1000two = new TimestampedValue<>(1000, "one"); in testEqualsAndHashcode()
39 TimestampedValue<String> two1000 = new TimestampedValue<>(1000, "two"); in testEqualsAndHashcode()
42 TimestampedValue<String> one2000 = new TimestampedValue<>(2000, "one"); in testEqualsAndHashcode()
53 TimestampedValue<String> stringValue = new TimestampedValue<>(1000, "Hello"); in testParceling()
60 TimestampedValue<String> stringValueCopy = in testParceling()
70 TimestampedValue<String> stringValue = new TimestampedValue<>(1000, "Hello"); in testParceling_valueClassOk()
77 TimestampedValue<String> stringValueCopy = in testParceling_valueClassOk()
90 TimestampedValue<NotParcelable> notParcelableValue = in testParceling_valueClassNotParcelable()
91 new TimestampedValue<>(1000, new NotParcelable()); in testParceling_valueClassNotParcelable()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/nitz/
DNitzSignalInputFilterPredicateFactoryTest.java29 import android.os.TimestampedValue;
60 TimestampedValue<NitzData> nitzSignal = in testNitzSignalInputFilterPredicateImpl_nullSecondArgumentRejected()
75 TimestampedValue<NitzData> nitzSignal = scenario in testNitzSignalInputFilterPredicateImpl_defaultIsTrue()
85 TimestampedValue<NitzData> nitzSignal = in testNitzSignalInputFilterPredicateImpl_nullIsIgnored()
97 TimestampedValue<NitzData> nitzSignal = in testNitzSignalInputFilterPredicateImpl_trueIsHonored()
117 TimestampedValue<NitzData> nitzSignal = in testNitzSignalInputFilterPredicateImpl_falseIsHonored()
149 TimestampedValue<NitzData> nitzSignal = scenario.createNitzSignal(elapsedRealtimeClock); in testTrivalentPredicate_bogusElapsedRealtimeCheck()
156 TimestampedValue<NitzData> bogusNitzSignal = new TimestampedValue<>( in testTrivalentPredicate_bogusElapsedRealtimeCheck()
164 TimestampedValue<NitzData> nitzSignal = in testTrivalentPredicate_noOldSignalCheck()
182 TimestampedValue<NitzData> baseSignal = in testTrivalentPredicate_rateLimitCheck_elapsedRealtime()
[all …]
DTimeZoneSuggesterImplTest.java43 import android.os.TimestampedValue;
98 TimestampedValue<NitzData> nitzSignal = in test_emptySuggestionForNullCountryWithNitz()
174 TimestampedValue<NitzData> badNitzSignal = in test_uniqueUsZone()
244 TimestampedValue<NitzData> badNitzSignal = in test_nonUniqueUsZone()
317 TimestampedValue<NitzData> badNitzSignal = in test_unitedKingdom()
396 TimestampedValue<NitzData> badNitzSignal = in test_cz()
433 TimestampedValue<NitzData> goodNitzSignal = in test_bogusCzNitzSignal()
439 TimestampedValue<NitzData> badNitzSignal = new TimestampedValue<>( in test_bogusCzNitzSignal()
469 TimestampedValue<NitzData> goodNitzSignal = in test_bogusUniqueUsNitzSignal()
475 TimestampedValue<NitzData> badNitzSignal = new TimestampedValue<>( in test_bogusUniqueUsNitzSignal()
[all …]
DNitzStateMachineTestSupport.java26 import android.os.TimestampedValue;
124 TimestampedValue<NitzData> createNitzSignal(long elapsedRealtimeClock) { in createNitzSignal()
125 return new TimestampedValue<>(elapsedRealtimeClock, createNitzData()); in createNitzSignal()
278 int slotIndex, TimestampedValue<NitzData> nitzSignal) { in createTimeSuggestionFromNitzSignal()
285 private static TimestampedValue<Long> createTimeSignalFromNitzSignal( in createTimeSignalFromNitzSignal()
286 TimestampedValue<NitzData> nitzSignal) { in createTimeSignalFromNitzSignal()
287 return new TimestampedValue<>( in createTimeSignalFromNitzSignal()
DNitzStateMachineImplTest.java38 import android.os.TimestampedValue;
108 TimestampedValue<NitzData> nitzSignal = in test_countryThenNitz()
149 TimestampedValue<NitzData> nitzSignal = in test_nitzThenCountry()
191 TimestampedValue<NitzData> nitzSignal = in test_emptyCountryString_countryReceivedFirst()
233 TimestampedValue<NitzData> nitzSignal = in test_emptyCountryStringUsTime_nitzReceivedFirst()
284 TimestampedValue<NitzData> preFlightNitzSignal = in test_airplaneModeClearsState()
350 TimestampedValue<NitzData> postFlightNitzSignal = in test_airplaneModeClearsState()
383 TimestampedValue<NitzData> initialNitzSignal = in test_handleNetworkUnavailableClearsNetworkState()
436 TimestampedValue<NitzData> finalNitzSignal = in test_handleNetworkUnavailableClearsNetworkState()
456 TimestampedValue<NitzData> nitzSignal = in test_countryUnavailableClearsTimeZoneSuggestion()
[all …]
/frameworks/base/core/java/android/os/
DTimestampedValue.java38 public final class TimestampedValue<T> implements Parcelable { class
43 public TimestampedValue(long referenceTimeMillis, @Nullable T value) { in TimestampedValue() method in TimestampedValue
70 TimestampedValue<?> that = (TimestampedValue<?>) o; in equals()
92 @NonNull TimestampedValue<?> one, @NonNull TimestampedValue<?> two) { in referenceTimeDifference()
97 public static final @NonNull Parcelable.Creator<TimestampedValue<?>> CREATOR =
98 new Parcelable.ClassLoaderCreator<TimestampedValue<?>>() {
101 public TimestampedValue<?> createFromParcel(@NonNull Parcel source) {
106 public TimestampedValue<?> createFromParcel(
110 return new TimestampedValue<>(referenceTimeMillis, value);
114 public TimestampedValue[] newArray(int size) {
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/nitz/
DNitzStateMachineImpl.java24 import android.os.TimestampedValue;
71 @Nullable TimestampedValue<NitzData> oldSignal, in mustProcessNitzSignal()
72 @NonNull TimestampedValue<NitzData> newSignal); in mustProcessNitzSignal()
92 @Nullable TimestampedValue<NitzData> nitzSignal); in getTimeZoneSuggestion()
117 private TimestampedValue<NitzData> mLatestNitzSignal;
230 public void handleNitzReceived(@NonNull TimestampedValue<NitzData> nitzSignal) { in handleNitzReceived()
237 TimestampedValue<NitzData> previousNitzSignal = mLatestNitzSignal; in handleNitzReceived()
281 @Nullable String countryIsoCode, @Nullable TimestampedValue<NitzData> nitzSignal, in doTimeZoneDetection()
309 private void doTimeDetection(@Nullable TimestampedValue<NitzData> nitzSignal, in doTimeDetection()
320 TimestampedValue<Long> newNitzTime = new TimestampedValue<>( in doTimeDetection()
DNitzSignalInputFilterPredicateFactory.java24 import android.os.TimestampedValue;
87 @Nullable TimestampedValue<NitzData> previousSignal, in mustProcessNitzSignal()
88 @NonNull TimestampedValue<NitzData> newSignal); in mustProcessNitzSignal()
181 @NonNull TimestampedValue<NitzData> previousSignal,
182 @NonNull TimestampedValue<NitzData> newSignal) {
259 public boolean mustProcessNitzSignal(@Nullable TimestampedValue<NitzData> oldSignal,
260 @NonNull TimestampedValue<NitzData> newSignal) {
DTimeZoneSuggesterImpl.java24 import android.os.TimestampedValue;
58 @Nullable String countryIsoCode, @Nullable TimestampedValue<NitzData> nitzSignal) { in getTimeZoneSuggestion()
138 int slotIndex, @NonNull TimestampedValue<NitzData> nitzSignal) { in findTimeZoneForTestNetwork()
169 @NonNull TimestampedValue<NitzData> nitzSignal) { in findTimeZoneFromCountryAndNitz()
DTimeServiceHelperImpl.java27 import android.os.TimestampedValue;
72 TimestampedValue<Long> utcTime = timeSuggestion.getUtcTime(); in suggestDeviceTime()
/frameworks/base/core/tests/coretests/src/android/app/timedetector/
DManualTimeSuggestionTest.java25 import android.os.TimestampedValue;
31 private static final TimestampedValue<Long> ARBITRARY_TIME =
32 new TimestampedValue<>(1111L, 2222L);
43 TimestampedValue<Long> differentTime = new TimestampedValue<>( in testEquals()
DNetworkTimeSuggestionTest.java25 import android.os.TimestampedValue;
31 private static final TimestampedValue<Long> ARBITRARY_TIME =
32 new TimestampedValue<>(1111L, 2222L);
43 TimestampedValue<Long> differentTime = new TimestampedValue<>( in testEquals()
DTelephonyTimeSuggestionTest.java25 import android.os.TimestampedValue;
48 builder1.setUtcTime(new TimestampedValue<>(1111L, 2222L)); in testEquals()
54 builder2.setUtcTime(new TimestampedValue<>(1111L, 2222L)); in testEquals()
64 builder3.setUtcTime(new TimestampedValue<>(1111L, 2222L)); in testEquals()
87 builder.setUtcTime(new TimestampedValue<>(1111L, 2222L)); in testParcelable()
/frameworks/base/services/core/java/com/android/server/timedetector/
DTimeDetectorStrategyImpl.java26 import android.os.TimestampedValue;
110 private TimestampedValue<Long> mLastAutoSystemClockTimeSet;
132 final TimestampedValue<Long> newUtcTime = suggestion.getUtcTime(); in suggestManualTime()
241 TimestampedValue<Long> newUtcTime = suggestion.getUtcTime(); in validateAndStoreTelephonySuggestion()
261 long referenceTimeDifference = TimestampedValue.referenceTimeDifference( in validateAndStoreTelephonySuggestion()
279 @NonNull TimestampedValue<Long> newUtcTime, @NonNull Object suggestion) { in validateSuggestionTime()
309 final TimestampedValue<Long> newUtcTime = bestTelephonySuggestion.getUtcTime(); in doAutoTimeDetection()
320 final TimestampedValue<Long> newUtcTime = networkSuggestion.getUtcTime(); in doAutoTimeDetection()
413 TimestampedValue<Long> utcTime = timeSuggestion.getUtcTime(); in scoreTelephonySuggestion()
445 TimestampedValue<Long> utcTime = networkSuggestion.getUtcTime(); in findLatestValidNetworkSuggestion()
[all …]
DTimeDetectorStrategy.java24 import android.os.TimestampedValue;
101 static long getTimeAt(@NonNull TimestampedValue<Long> timeValue, long referenceClockMillisNow) { in getTimeAt()
/frameworks/base/services/tests/servicestests/src/com/android/server/timedetector/
DTimeDetectorStrategyImplTest.java31 import android.os.TimestampedValue;
44 private static final TimestampedValue<Long> ARBITRARY_CLOCK_INITIALIZATION_INFO =
45 new TimestampedValue<>(
254 TimestampedValue<Long> utcTime1 = timeSuggestion1.getUtcTime(); in testSuggestTelephonyTime_invalidNitzReferenceTimesIgnored()
270 TimestampedValue<Long> utcTime2 = new TimestampedValue<>( in testSuggestTelephonyTime_invalidNitzReferenceTimesIgnored()
282 TimestampedValue<Long> utcTime3 = new TimestampedValue<>( in testSuggestTelephonyTime_invalidNitzReferenceTimesIgnored()
292 TimestampedValue<Long> utcTime4 = new TimestampedValue<>( in testSuggestTelephonyTime_invalidNitzReferenceTimesIgnored()
314 TimestampedValue<Long> utcTime1 = timeSuggestion1.getUtcTime(); in testSuggestTelephonyTime_timeDetectionToggled()
744 Script pokeFakeClocks(TimestampedValue<Long> timeInfo) { in pokeFakeClocks()
845 TimestampedValue<Long> utcTime = in generateManualTimeSuggestion()
[all …]
DTimeDetectorStrategyTest.java21 import android.os.TimestampedValue;
35 TimestampedValue<Long> timestampedValue = in testGetTimeAt()
36 new TimestampedValue<>(referenceTimeMillis, timeMillis); in testGetTimeAt()
DTimeDetectorServiceTest.java37 import android.os.TimestampedValue;
204 TimestampedValue<Long> timeValue = new TimestampedValue<>(100L, 1_000_000L); in createTelephonyTimeSuggestion()
211 TimestampedValue<Long> timeValue = new TimestampedValue<>(100L, 1_000_000L); in createManualTimeSuggestion()
216 TimestampedValue<Long> timeValue = new TimestampedValue<>(100L, 1_000_000L); in createNetworkTimeSuggestion()
/frameworks/base/core/java/android/app/timedetector/
DManualTimeSuggestion.java23 import android.os.TimestampedValue;
60 @NonNull private final TimestampedValue<Long> mUtcTime;
63 public ManualTimeSuggestion(@NonNull TimestampedValue<Long> utcTime) { in ManualTimeSuggestion()
69 TimestampedValue<Long> utcTime = in.readParcelable(null /* classLoader */); in createFromParcel()
89 public TimestampedValue<Long> getUtcTime() { in getUtcTime()
DNetworkTimeSuggestion.java23 import android.os.TimestampedValue;
60 @NonNull private final TimestampedValue<Long> mUtcTime;
63 public NetworkTimeSuggestion(@NonNull TimestampedValue<Long> utcTime) { in NetworkTimeSuggestion()
69 TimestampedValue<Long> utcTime = in.readParcelable(null /* classLoader */); in createFromParcel()
89 public TimestampedValue<Long> getUtcTime() { in getUtcTime()
DTelephonyTimeSuggestion.java23 import android.os.TimestampedValue;
68 @Nullable private final TimestampedValue<Long> mUtcTime;
117 public TimestampedValue<Long> getUtcTime() { in getUtcTime()
190 @Nullable private TimestampedValue<Long> mUtcTime;
208 public Builder setUtcTime(@Nullable TimestampedValue<Long> utcTime) { in setUtcTime()
DTimeDetector.java24 import android.os.TimestampedValue;
40 TimestampedValue<Long> utcTime = in createManualTimeSuggestion()
41 new TimestampedValue<>(SystemClock.elapsedRealtime(), when); in createManualTimeSuggestion()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DNitzStateMachine.java24 import android.os.TimestampedValue;
68 void handleNitzReceived(@NonNull TimestampedValue<NitzData> nitzSignal); in handleNitzReceived()
/frameworks/base/services/core/java/com/android/server/
DNetworkTimeUpdateService.java39 import android.os.TimestampedValue;
169 TimestampedValue<Long> timeSignal = new TimestampedValue<>( in onPollNetworkTimeUnderWakeLock()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DServiceStateTrackerTest.java59 import android.os.TimestampedValue;
1891 ArgumentCaptor<TimestampedValue<NitzData>> argumentsCaptor = in testSetTimeFromNITZStr()
1892 ArgumentCaptor.forClass(TimestampedValue.class); in testSetTimeFromNITZStr()
1897 TimestampedValue<NitzData> actualNitzSignal = argumentsCaptor.getValue(); in testSetTimeFromNITZStr()

12