commit | 2e605fd66849febbbd05d96f785bb2800206cf04 | [log] [tgz] |
---|---|---|
author | chaviw <chaviw@google.com> | Mon Mar 29 14:19:04 2021 -0500 |
committer | chaviw <chaviw@google.com> | Mon Mar 29 15:54:37 2021 -0500 |
tree | 1d66afe24fd606bc5f2a943358fab65d1d0c7eb8 | |
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