summaryrefslogtreecommitdiff
path: root/libs/androidfw/misc.cpp
diff options
context:
space:
mode:
author Matías Hernández <matiashe@google.com> 2024-12-17 14:37:23 +0100
committer Matías Hernández <matiashe@google.com> 2024-12-17 18:02:46 +0100
commit9a6e3f4b7b81d910aceb2efdeb7ad2f7c956c505 (patch)
tree06846d1e9282143b3e2f37c809532555e1727472 /libs/androidfw/misc.cpp
parent6b0271bddde4a3d0b6ecc66c5740e0cb0deef666 (diff)
Use elapsedRealtimeClock as time source for RateEstimator in NM
InstantSource.system is basically currentTimeMillis(), which means it's not suitable for timing (can jump forward or backwards). For rate estimation, we don't care about correspondence with real-world time, so elapsedRealtime() is what we want. Also moved the creation of the InstantSource to NotificationManager; SystemServiceRegistry shouldn't need to be concerned about this, nor know the details of the specific time source that is best. Bug: 381875150 Test: manual Flag: android.app.nm_binder_perf_throttle_notify Change-Id: Ic336b8d26777a875476c75950875657265b2fa16
Diffstat (limited to 'libs/androidfw/misc.cpp')
0 files changed, 0 insertions, 0 deletions