diff options
author | Jean-Michel Trivi <jmtrivi@google.com> | 2020-10-16 12:14:37 -0700 |
---|---|---|
committer | Jean-Michel Trivi <jmtrivi@google.com> | 2020-12-22 18:00:51 -0800 |
commit | 1db3a365dcab098acc62a392d0849b90ccd15ca9 (patch) | |
tree | 582c83977bf3530e86531781369aea81b35cfb0c /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 76469cbed4dc857d0afca97afc061f07338f4afa (diff) |
AudioService: cache routing queries by stream types
Add support for caching the result of getDevicesForStream
in the AudioSystem adapter class, as well as stats
(number of calls + time spent in methods) and debug mode
(to compare value in cache with real query).
Also add hooks for invalidation of the cache, either
through a callback from APM, or whenever an AudioSystem
method is called that will affect routing and should
cause a cache invalidation.
Bug: 162448412
Test: atest AudioServiceHostTest#testPreferredDeviceRouting
Test: atest AudioServiceHostTest#testDevicesForAttributes
Change-Id: Icceef4edb89653c7d0eddbef523c9cde2c33185b
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions