diff options
author | chaviw <chaviw@google.com> | 2021-03-29 14:19:04 -0500 |
---|---|---|
committer | chaviw <chaviw@google.com> | 2021-03-29 15:54:37 -0500 |
commit | 2e605fd66849febbbd05d96f785bb2800206cf04 (patch) | |
tree | 1d66afe24fd606bc5f2a943358fab65d1d0c7eb8 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | a79ee5c94783f2631026e4c6399fd10d535c50cd (diff) |
Add throttling to generateDisplayHash
Calling generateDisplayHash can cause the system to slow down if there
are too many requests. Add throttling logic to prevent apps from calling
the API too frequently. The throttling time is based on a value sent
from ExtServices so it can be adjusted later
Test: DisplayHashManagerTest
Bug: 155825630
Change-Id: Id49d1c4113fc65d7b73a1e7b9fc73f50a8d7041f
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions