diff options
| author | Neil Fuller <nfuller@google.com> | 2020-01-07 14:32:29 +0000 |
|---|---|---|
| committer | Neil Fuller <nfuller@google.com> | 2020-01-07 14:32:29 +0000 |
| commit | 4d10019960face8a6588d75ae7e2c2ae92b6b852 (patch) | |
| tree | e7230b2be140b9e24e93414349771d5232916f22 /core/java/android/util/NtpTrustedTime.java | |
| parent | 8e56dc3951bc392b13f7afba879b168b4d00072e (diff) | |
Fix annotation / debugging
Fix copy and paste errors from commit 4ab8a199de8 -
the API is new so does not need @UnsupportedAppUsage and
the debug log was incorrect.
Bug: 140712361
Test: build only
Change-Id: I123f76d011d7505d3dc053cb48c40353f0579d17
Diffstat (limited to 'core/java/android/util/NtpTrustedTime.java')
| -rw-r--r-- | core/java/android/util/NtpTrustedTime.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/java/android/util/NtpTrustedTime.java b/core/java/android/util/NtpTrustedTime.java index 524078678460..ea294f010791 100644 --- a/core/java/android/util/NtpTrustedTime.java +++ b/core/java/android/util/NtpTrustedTime.java @@ -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); } |
