Home
last modified time | relevance | path

Searched refs:utcTime (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/core/java/android/app/timedetector/
DManualTimeSuggestion.java63 public ManualTimeSuggestion(@NonNull TimestampedValue<Long> utcTime) { in ManualTimeSuggestion() argument
64 mUtcTime = Objects.requireNonNull(utcTime); in ManualTimeSuggestion()
65 Objects.requireNonNull(utcTime.getValue()); in ManualTimeSuggestion()
69 TimestampedValue<Long> utcTime = in.readParcelable(null /* classLoader */); in createFromParcel() local
70 ManualTimeSuggestion suggestion = new ManualTimeSuggestion(utcTime); in createFromParcel()
DNetworkTimeSuggestion.java63 public NetworkTimeSuggestion(@NonNull TimestampedValue<Long> utcTime) { in NetworkTimeSuggestion() argument
64 mUtcTime = Objects.requireNonNull(utcTime); in NetworkTimeSuggestion()
65 Objects.requireNonNull(utcTime.getValue()); in NetworkTimeSuggestion()
69 TimestampedValue<Long> utcTime = in.readParcelable(null /* classLoader */); in createFromParcel() local
70 NetworkTimeSuggestion suggestion = new NetworkTimeSuggestion(utcTime); in createFromParcel()
DTelephonyTimeSuggestion.java208 public Builder setUtcTime(@Nullable TimestampedValue<Long> utcTime) { in setUtcTime() argument
209 if (utcTime != null) { in setUtcTime()
211 Objects.requireNonNull(utcTime.getValue()); in setUtcTime()
214 mUtcTime = utcTime; in setUtcTime()
DTimeDetector.java40 TimestampedValue<Long> utcTime = in createManualTimeSuggestion() local
42 ManualTimeSuggestion manualTimeSuggestion = new ManualTimeSuggestion(utcTime); in createManualTimeSuggestion()
/frameworks/base/services/core/java/com/android/server/timedetector/
DTimeDetectorStrategyImpl.java413 TimestampedValue<Long> utcTime = timeSuggestion.getUtcTime(); in scoreTelephonySuggestion() local
414 if (!validateSuggestionUtcTime(elapsedRealtimeMillis, utcTime)) { in scoreTelephonySuggestion()
423 long ageMillis = elapsedRealtimeMillis - utcTime.getReferenceTimeMillis(); in scoreTelephonySuggestion()
445 TimestampedValue<Long> utcTime = networkSuggestion.getUtcTime(); in findLatestValidNetworkSuggestion() local
447 if (!validateSuggestionUtcTime(elapsedRealTimeMillis, utcTime)) { in findLatestValidNetworkSuggestion()
600 long elapsedRealtimeMillis, TimestampedValue<Long> utcTime) { in validateSuggestionUtcTime() argument
601 long referenceTimeMillis = utcTime.getReferenceTimeMillis(); in validateSuggestionUtcTime()
/frameworks/base/services/tests/servicestests/src/com/android/server/timedetector/
DTimeDetectorStrategyImplTest.java845 TimestampedValue<Long> utcTime = in generateManualTimeSuggestion() local
847 return new ManualTimeSuggestion(utcTime); in generateManualTimeSuggestion()
867 TimestampedValue<Long> utcTime = in generateNetworkTimeSuggestion() local
869 return new NetworkTimeSuggestion(utcTime); in generateNetworkTimeSuggestion()
876 long calculateTimeInMillisForNow(TimestampedValue<Long> utcTime) { in calculateTimeInMillisForNow() argument
877 return TimeDetectorStrategy.getTimeAt(utcTime, peekElapsedRealtimeMillis()); in calculateTimeInMillisForNow()
882 TimestampedValue<Long> utcTime) { in createTelephonyTimeSuggestion() argument
884 .setUtcTime(utcTime) in createTelephonyTimeSuggestion()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/nitz/
DTimeServiceHelperImpl.java72 TimestampedValue<Long> utcTime = timeSuggestion.getUtcTime(); in suggestDeviceTime() local
73 TelephonyMetrics.getInstance().writeNITZEvent(mSlotIndex, utcTime.getValue()); in suggestDeviceTime()