Home
last modified time | relevance | path

Searched refs:NTP_INTERVAL (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/core/java/com/android/server/location/gnss/
DNtpTimeHelper.java54 static final long NTP_INTERVAL = 24 * 60 * 60 * 1000; field in NtpTimeHelper
151 if (ntpResult == null || ntpResult.getAgeMillis() >= NTP_INTERVAL) { in blockingGetNtpTimeAndInject()
162 if (ntpResult != null && ntpResult.getAgeMillis() < NTP_INTERVAL) { in blockingGetNtpTimeAndInject()
178 delay = NTP_INTERVAL; in blockingGetNtpTimeAndInject()
/frameworks/base/services/robotests/src/com/android/server/location/gnss/
DNtpTimeHelperTest.java73 doReturn(NtpTimeHelper.NTP_INTERVAL - 1).when(result).getAgeMillis(); in handleInjectNtpTime_cachedAgeLow_injectTime()
87 doReturn(NtpTimeHelper.NTP_INTERVAL + 1).when(result1).getAgeMillis(); in handleInjectNtpTime_injectTimeFailed_injectTimeDelayed()