Merge "Fix annotation / debugging"

am: 69bbb1904f

Change-Id: I9da174d658ada4acf399fe9f743b012aea7ebeae
This commit is contained in:
Neil Fuller
2020-01-07 08:29:19 -08:00
committed by android-build-merger

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);
}