commit | bd1fe2056b4c85f1f4a1bf01e6664a487792cb01 | [log] [tgz] |
---|---|---|
author | Junyu Lai <junyulai@google.com> | Fri Dec 06 13:55:15 2024 +0800 |
committer | Junyu Lai <junyulai@google.com> | Fri Dec 06 08:13:08 2024 +0000 |
tree | a43465a9088b5a3fd8b2576bc332fee7b1b84495 | |
parent | 512302275566b33ade4fc863ed78e4c1439c4f97 [diff] |
Use LongSupplier in LruCacheWithExpiry This is to use a LongSupplier to provide timestamp instead of using Clock with lots of unimplemented functions. Test: atest ConnectivityCoverageTests:android.net.connectivity.com.android.server.net.TrafficStatsRateLimitCacheTest Bug: 343260158 Change-Id: I1e262458529347c09d4b6a5dab4f616b06baafda