summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorTej Singh <singhtejinder@google.com>2020-06-25 22:38:03 -0700
committerTej Singh <singhtejinder@google.com>2020-06-30 04:46:38 +0000
commitcb396eb711d800a774cfe523e9a4a3c3bbfc0fa1 (patch)
treefd0f128061844c2be0e5d36334a82bffb64af1d5 /tools/aapt2/java/JavaClassGenerator.cpp
parent9dd718c5d91f459b1c07077c288d5b56c819c70f (diff)
Fix edge case in statsd alarms
Right now, if an alarm fires exactly on time (within 1 second), or exactly on a multiple of its period, statsd will reset the alarm for the same time, which can result a loop of statsd setting an alarm, the alarm firing, statsd setting an alarm at the same time, etc. The fix is that if an alarm fires on time, we should move to the next period. Test: atest statsd_test (added to a test, which would fail without the code change) Bug: 159098080 Change-Id: I150538cb1d3d5a2b943df2a32d92f8f84bb96626 Merged-In: I150538cb1d3d5a2b943df2a32d92f8f84bb96626
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions