summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/RenderScript.java
diff options
context:
space:
mode:
authorKyunglyul Hyun <klhyun@google.com>2019-12-04 20:43:28 +0900
committerKyunglyul Hyun <klhyun@google.com>2019-12-16 15:50:38 +0900
commit484074aedbe0e3bf397d25dd3fef634f00ec7d62 (patch)
treecad28aaeb790352f351276ffd19245d191efaeb0 /rs/java/android/renderscript/RenderScript.java
parenta15562ee8cda9748e9e317f8c33444a5e626fffa (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/RenderScript.java')
0 files changed, 0 insertions, 0 deletions