Merge "Fix annotation / debugging" am: 69bbb1904f am: 1d866c0bf3

Change-Id: I01e7c1b39e2c1df26f9b64c441136ccfbedcc77f
This commit is contained in:
Automerger Merge Worker
2020-01-07 16:40:04 +00:00

View File

@@ -183,12 +183,11 @@ public class NtpTrustedTime implements TrustedTime {
*
* @throws IllegalStateException if there is no cached value
*/
@UnsupportedAppUsage
public TimestampedValue<Long> getCachedNtpTimeSignal() {
if (!mHasCache) {
throw new IllegalStateException("Missing authoritative time source");
}
if (LOGD) Log.d(TAG, "currentTimeMillis() cache hit");
if (LOGD) Log.d(TAG, "getCachedNtpTimeSignal() cache hit");
return new TimestampedValue<>(mCachedNtpElapsedRealtime, mCachedNtpTime);
}