Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/timedetector/
DNetworkTimeSuggestion.java164 NetworkTimeSuggestion networkTimeSuggestion = in parseCommandLineArg() local
166 networkTimeSuggestion.addDebugInfo("Command line injection"); in parseCommandLineArg()
167 return networkTimeSuggestion; in parseCommandLineArg()
DTimeDetectorShellCommand.java138 NetworkTimeSuggestion networkTimeSuggestion = mInterface.getLatestNetworkSuggestion(); in runGetLatestNetworkTime() local
140 pw.println(networkTimeSuggestion); in runGetLatestNetworkTime()
202 NetworkTimeSuggestion networkTimeSuggestion = in runSetSystemClockNetworkTime() local
205 networkTimeSuggestion.getUnixEpochTime(), in runSetSystemClockNetworkTime()
206 networkTimeSuggestion.getUncertaintyMillis()); in runSetSystemClockNetworkTime()
/frameworks/base/services/tests/timetests/src/com/android/server/timedetector/
DTimeDetectorStrategyImplTest.java1034 NetworkTimeSuggestion networkTimeSuggestion = in testClearLatestNetworkSuggestion() local
1050 script.calculateTimeInMillisForNow(networkTimeSuggestion.getUnixEpochTime()); in testClearLatestNetworkSuggestion()
1051 script.simulateNetworkTimeSuggestion(networkTimeSuggestion) in testClearLatestNetworkSuggestion()
1052 .assertLatestNetworkSuggestion(networkTimeSuggestion) in testClearLatestNetworkSuggestion()
1664 NetworkTimeSuggestion networkTimeSuggestion = in highPrioritySuggestionsBeatLowerPrioritySuggestions_networkGnssOrigins() local
1667 .simulateNetworkTimeSuggestion(networkTimeSuggestion) in highPrioritySuggestionsBeatLowerPrioritySuggestions_networkGnssOrigins()
1670 networkTimeSuggestion.getUnixEpochTime())); in highPrioritySuggestionsBeatLowerPrioritySuggestions_networkGnssOrigins()
1673 script.assertLatestNetworkSuggestion(networkTimeSuggestion) in highPrioritySuggestionsBeatLowerPrioritySuggestions_networkGnssOrigins()
1676 assertEquals(networkTimeSuggestion, script.peekLatestValidNetworkSuggestion()); in highPrioritySuggestionsBeatLowerPrioritySuggestions_networkGnssOrigins()
1692 script.assertLatestNetworkSuggestion(networkTimeSuggestion) in highPrioritySuggestionsBeatLowerPrioritySuggestions_networkGnssOrigins()
[all …]
DTimeDetectorInternalImplTest.java141 NetworkTimeSuggestion networkTimeSuggestion = createNetworkTimeSuggestion(); in testSuggestNetworkTime() local
143 mTimeDetectorInternal.suggestNetworkTime(networkTimeSuggestion); in testSuggestNetworkTime()
147 verify(mFakeTimeDetectorStrategySpy).suggestNetworkTime(networkTimeSuggestion); in testSuggestNetworkTime()
DFakeTimeDetectorStrategy.java124 void setLatestNetworkTime(NetworkTimeSuggestion networkTimeSuggestion) { in setLatestNetworkTime() argument
125 mLatestNetworkTimeSuggestion = networkTimeSuggestion; in setLatestNetworkTime()
DTimeDetectorServiceTest.java304 NetworkTimeSuggestion networkTimeSuggestion = createNetworkTimeSuggestion(); in testSuggestNetworkTime_withoutPermission() local
307 () -> mTimeDetectorService.suggestNetworkTime(networkTimeSuggestion)); in testSuggestNetworkTime_withoutPermission()
316 NetworkTimeSuggestion networkTimeSuggestion = createNetworkTimeSuggestion(); in testSuggestNetworkTime() local
317 mTimeDetectorService.suggestNetworkTime(networkTimeSuggestion); in testSuggestNetworkTime()
324 verify(mFakeTimeDetectorStrategySpy).suggestNetworkTime(networkTimeSuggestion); in testSuggestNetworkTime()
/frameworks/base/services/core/java/com/android/server/location/gnss/
DTimeDetectorNetworkTimeHelper.java216 @Nullable NetworkTimeSuggestion networkTimeSuggestion) { in calculateTimeSignalAgeMillis()
217 if (networkTimeSuggestion == null) { in calculateTimeSignalAgeMillis()
222 networkTimeSuggestion.getUnixEpochTime().getElapsedRealtimeMillis(); in calculateTimeSignalAgeMillis()