/frameworks/base/core/java/android/app/timedetector/ |
D | TimeDetectorImpl.java | 43 public void suggestTelephonyTime(@NonNull TelephonyTimeSuggestion timeSuggestion) { in suggestTelephonyTime() argument 45 Log.d(TAG, "suggestTelephonyTime called: " + timeSuggestion); in suggestTelephonyTime() 48 mITimeDetectorService.suggestTelephonyTime(timeSuggestion); in suggestTelephonyTime() 55 public void suggestManualTime(@NonNull ManualTimeSuggestion timeSuggestion) { in suggestManualTime() argument 57 Log.d(TAG, "suggestManualTime called: " + timeSuggestion); in suggestManualTime() 60 mITimeDetectorService.suggestManualTime(timeSuggestion); in suggestManualTime() 67 public void suggestNetworkTime(NetworkTimeSuggestion timeSuggestion) { in suggestNetworkTime() argument 69 Log.d(TAG, "suggestNetworkTime called: " + timeSuggestion); in suggestNetworkTime() 72 mITimeDetectorService.suggestNetworkTime(timeSuggestion); in suggestNetworkTime()
|
D | ITimeDetectorService.aidl | 37 void suggestManualTime(in ManualTimeSuggestion timeSuggestion); in suggestManualTime() argument 38 void suggestNetworkTime(in NetworkTimeSuggestion timeSuggestion); in suggestNetworkTime() argument 39 void suggestTelephonyTime(in TelephonyTimeSuggestion timeSuggestion); in suggestTelephonyTime() argument
|
D | TimeDetector.java | 53 void suggestTelephonyTime(@NonNull TelephonyTimeSuggestion timeSuggestion); in suggestTelephonyTime() argument 61 void suggestManualTime(@NonNull ManualTimeSuggestion timeSuggestion); in suggestManualTime() argument 69 void suggestNetworkTime(NetworkTimeSuggestion timeSuggestion); in suggestNetworkTime() argument
|
/frameworks/base/services/tests/servicestests/src/com/android/server/timedetector/ |
D | TimeDetectorStrategyImplTest.java | 72 TelephonyTimeSuggestion timeSuggestion = in testSuggestTelephonyTime_autoTimeEnabled() local 75 .simulateTelephonyTimeSuggestion(timeSuggestion); in testSuggestTelephonyTime_autoTimeEnabled() 78 mScript.calculateTimeInMillisForNow(timeSuggestion.getUtcTime()); in testSuggestTelephonyTime_autoTimeEnabled() 80 .assertLatestTelephonySuggestion(slotIndex, timeSuggestion); in testSuggestTelephonyTime_autoTimeEnabled() 89 TelephonyTimeSuggestion timeSuggestion = in testSuggestTelephonyTime_emptySuggestionIgnored() local 91 mScript.simulateTelephonyTimeSuggestion(timeSuggestion) in testSuggestTelephonyTime_emptySuggestionIgnored() 234 TelephonyTimeSuggestion timeSuggestion = in testSuggestTelephonyTime_autoTimeDisabled() local 237 .simulateTelephonyTimeSuggestion(timeSuggestion) in testSuggestTelephonyTime_autoTimeDisabled() 239 .assertLatestTelephonySuggestion(slotIndex, timeSuggestion); in testSuggestTelephonyTime_autoTimeDisabled() 399 ManualTimeSuggestion timeSuggestion = in testSuggestManualTime_autoTimeDisabled() local [all …]
|
D | TimeDetectorServiceTest.java | 86 TelephonyTimeSuggestion timeSuggestion = createTelephonyTimeSuggestion(); in testSuggestTelephonyTime_withoutPermission() local 89 mTimeDetectorService.suggestTelephonyTime(timeSuggestion); in testSuggestTelephonyTime_withoutPermission() 102 TelephonyTimeSuggestion timeSuggestion = createTelephonyTimeSuggestion(); in testSuggestTelephonyTime() local 103 mTimeDetectorService.suggestTelephonyTime(timeSuggestion); in testSuggestTelephonyTime() 111 mStubbedTimeDetectorStrategy.verifySuggestTelephonyTimeCalled(timeSuggestion); in testSuggestTelephonyTime() 234 public void suggestTelephonyTime(TelephonyTimeSuggestion timeSuggestion) { in suggestTelephonyTime() argument 235 mLastTelephonySuggestion = timeSuggestion; in suggestTelephonyTime() 239 public void suggestManualTime(ManualTimeSuggestion timeSuggestion) { in suggestManualTime() argument 240 mLastManualSuggestion = timeSuggestion; in suggestManualTime() 244 public void suggestNetworkTime(NetworkTimeSuggestion timeSuggestion) { in suggestNetworkTime() argument [all …]
|
/frameworks/base/services/core/java/com/android/server/timedetector/ |
D | TimeDetectorStrategyImpl.java | 143 public synchronized void suggestNetworkTime(@NonNull NetworkTimeSuggestion timeSuggestion) { in suggestNetworkTime() argument 144 if (!validateSuggestionTime(timeSuggestion.getUtcTime(), timeSuggestion)) { in suggestNetworkTime() 156 if (lastNetworkSuggestion == null || !lastNetworkSuggestion.equals(timeSuggestion)) { in suggestNetworkTime() 157 mLastNetworkSuggestion.set(timeSuggestion); in suggestNetworkTime() 162 String reason = "New network time suggested. timeSuggestion=" + timeSuggestion; in suggestNetworkTime() 167 public synchronized void suggestTelephonyTime(@NonNull TelephonyTimeSuggestion timeSuggestion) { in suggestTelephonyTime() argument 174 if (timeSuggestion.getUtcTime() == null) { in suggestTelephonyTime() 180 if (!validateAndStoreTelephonySuggestion(timeSuggestion)) { in suggestTelephonyTime() 186 String reason = "New telephony time suggested. timeSuggestion=" + timeSuggestion; in suggestTelephonyTime() 410 long elapsedRealtimeMillis, @NonNull TelephonyTimeSuggestion timeSuggestion) { in scoreTelephonySuggestion() argument [all …]
|
D | TimeDetectorStrategy.java | 81 void suggestTelephonyTime(@NonNull TelephonyTimeSuggestion timeSuggestion); in suggestTelephonyTime() argument 84 void suggestManualTime(@NonNull ManualTimeSuggestion timeSuggestion); in suggestManualTime() argument 87 void suggestNetworkTime(@NonNull NetworkTimeSuggestion timeSuggestion); in suggestNetworkTime() argument
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/nitz/ |
D | TimeServiceHelperImpl.java | 66 public void suggestDeviceTime(@NonNull TelephonyTimeSuggestion timeSuggestion) { in suggestDeviceTime() argument 67 mTimeLog.log("Sending time suggestion: " + timeSuggestion); in suggestDeviceTime() 69 Objects.requireNonNull(timeSuggestion); in suggestDeviceTime() 71 if (timeSuggestion.getUtcTime() != null) { in suggestDeviceTime() 72 TimestampedValue<Long> utcTime = timeSuggestion.getUtcTime(); in suggestDeviceTime() 75 mTimeDetector.suggestTelephonyTime(timeSuggestion); in suggestDeviceTime()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/nitz/ |
D | NitzStateMachineImplTest.java | 568 Script verifyTimeAndTimeZoneSuggestedAndReset(TelephonyTimeSuggestion timeSuggestion, in verifyTimeAndTimeZoneSuggestedAndReset() argument 571 justVerifyTimeWasSuggested(timeSuggestion); in verifyTimeAndTimeZoneSuggestedAndReset() 586 private void justVerifyTimeWasSuggested(TelephonyTimeSuggestion timeSuggestion) { in justVerifyTimeWasSuggested() argument 588 mFakeTimeServiceHelper.suggestedTimes.assertLatestEquals(timeSuggestion); in justVerifyTimeWasSuggested() 662 public void suggestDeviceTime(TelephonyTimeSuggestion timeSuggestion) { in suggestDeviceTime() argument 663 suggestedTimes.set(timeSuggestion); in suggestDeviceTime() 664 if (timeSuggestion.getUtcTime() != null) { in suggestDeviceTime() 666 mFakeDeviceState.currentTimeMillis = timeSuggestion.getUtcTime().getValue(); in suggestDeviceTime()
|
/frameworks/base/services/core/java/com/android/server/ |
D | NetworkTimeUpdateService.java | 171 NetworkTimeSuggestion timeSuggestion = new NetworkTimeSuggestion(timeSignal); in onPollNetworkTimeUnderWakeLock() local 172 timeSuggestion.addDebugInfo("Origin: NetworkTimeUpdateService. event=" + event); in onPollNetworkTimeUnderWakeLock() 173 mTimeDetector.suggestNetworkTime(timeSuggestion); in onPollNetworkTimeUnderWakeLock()
|