Add NtpTrustedTime.forceRefresh(Network)
Add NtpTrustedTime.forceRefresh(Network). If a component that uses NtpTrustedTime is monitoring network connectivity, it should probably provide the network to be used, otherwise there is a non-obvious relationship between the network being monitored and the network actually used. Only one user of NtpTrustedTime is updated here as the other, GnssLocationProvider / NtpTimeHelper, is going to be refactored in an upcoming commit. Leaving it using the forceRefresh() method that doesn't take a parameter is not a regression. Bug: 222295093 Test: atest core/tests/coretests/src/android/util/NtpTrustedTimeTest Test: Treehugger Change-Id: I51db528d06359c33335c874aca524f5adee3f3a7
Loading
Please register or sign in to comment