diff options
author | Jan Tomljanovic <jtomljanovic@google.com> | 2020-11-30 13:10:12 +0000 |
---|---|---|
committer | Jan Tomljanovic <jtomljanovic@google.com> | 2020-12-03 17:03:11 +0000 |
commit | 09027467cd7319fa1c86f23f844f568d6952733d (patch) | |
tree | 21182005632f791d3d19a35b232a7d38b16fb232 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 66b8a14aa215b3d0351417f49ab92cf71aeeffb6 (diff) |
Implement rate limiting toasts.
We rate limit showing toasts on a per package basis. Each time the app
hits the limit, any further toast attempted to be shown will be
discarded. Specific rate limits are designed in a way such that if the
app continuously posts toasts, the period for which it will be blocked
from posting gradually increases each time it hits the limit.
Test: atest android.widget.cts.ToastTest
Test: atest NotificationManagerServiceTest
Bug: 154198299
Change-Id: I41656745cbd4e6cb6650cf4100ca32a09dc67810
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions