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-25 22:38:03 -0700
commitf5cd94b4d00c08987cd285bbb88a0706bfe36720 (patch)
tree32a8d1ecc4150207124e46f511136190812c5bef /tools/aapt2/java/JavaClassGenerator.cpp
parent254b6cbd3a6667226083627cabaf4a1250bf289a (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
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions