commit | bf01d9b7a3cd3b7ebc40c0264667c77e7ecd4330 | [log] [tgz] |
---|---|---|
author | Sungsoo Lim <sungsoo@google.com> | Wed Dec 16 14:29:20 2020 +0900 |
committer | Sungsoo Lim <sungsoo@google.com> | Wed Dec 16 19:07:56 2020 +0900 |
tree | dd8c278fe58b264179f4cd0a841f1d9422799856 | |
parent | ade199be34ee3637d5a4f9bc7321eec952d188c9 [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 Change-Id: I2560eda6436a89c754224cc835e48fe4f5e36827