summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorchaviw <chaviw@google.com>2021-03-29 14:19:04 -0500
committerchaviw <chaviw@google.com>2021-03-29 15:54:37 -0500
commit2e605fd66849febbbd05d96f785bb2800206cf04 (patch)
tree1d66afe24fd606bc5f2a943358fab65d1d0c7eb8 /tools/aapt2/java/JavaClassGenerator_test.cpp
parenta79ee5c94783f2631026e4c6399fd10d535c50cd (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