summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorJean-Michel Trivi <jmtrivi@google.com>2020-10-16 12:14:37 -0700
committerJean-Michel Trivi <jmtrivi@google.com>2020-12-22 18:00:51 -0800
commit1db3a365dcab098acc62a392d0849b90ccd15ca9 (patch)
tree582c83977bf3530e86531781369aea81b35cfb0c /tools/aapt2/java/JavaClassGenerator_test.cpp
parent76469cbed4dc857d0afca97afc061f07338f4afa (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