diff options
author | Kyunglyul Hyun <klhyun@google.com> | 2019-12-04 20:43:28 +0900 |
---|---|---|
committer | Kyunglyul Hyun <klhyun@google.com> | 2019-12-16 15:50:38 +0900 |
commit | 484074aedbe0e3bf397d25dd3fef634f00ec7d62 (patch) | |
tree | cad28aaeb790352f351276ffd19245d191efaeb0 /rs/java/android/renderscript/ProgramVertexFixedFunction.java | |
parent | a15562ee8cda9748e9e317f8c33444a5e626fffa (diff) |
MediaRouter: make setControlCategories synchronous
MR2.getRoutes() right after MR2.setControlCategories() will return
routes filtered with new control categories.
In order to call backs properly, mHandledControlCategories is added,
which is changed only in handler.
getRoutes() is also changed such that routes are evaluated lazily
to avoid unnecessary evaluation.
CallbackRecords are implemented in a way that doesn't acquire explicit
lock.
Callbacks are modified so that newly register callbacks no longer
get notified existing routes.
Also, fixed test according to changes of MR2 and MRM.
Bug: 145488462
Test: atest mediaroutertest (5 times)
Change-Id: I9ba3d74bcf423d801249420d947f41eccb37d67a
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions