commit | 96d134d75aa32f2345c478398de3d61dd90abacf | [log] [tgz] |
---|---|---|
author | Sungsoo Lim <sungsoo@google.com> | Thu Dec 24 01:36:18 2020 +0000 |
committer | Sungsoo Lim <sungsoo@google.com> | Mon Jan 11 10:04:08 2021 +0900 |
tree | 793a1cb08f82eeb86a6f489c6a8371f4da19b06e | |
parent | 928789a180ccac53d933b2aa5bb3246212095737 [diff] |
Cache stream volumes to prevent ANR MediaRourter uses main thread for internal operations, and ANR could happens if AudioService is not running when MediaRouter tried to get stream volumes. This CL avoids such ANR by caching stream volumes. Bug: 170327593 Test: manually (cherry picked from internal master branch) Change-Id: I7c00b26a3a25f17c877d3ec0e998905ab0b4af28