summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramStore.java
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2021-02-07 15:56:45 -0800
committerWinson Chung <winsonc@google.com>2021-02-10 21:56:43 -0800
commit6d4d8ed181953617b7b19880dc303dd3fd1991fc (patch)
tree463c72df26c94be4645c33bb9638eb33432a53b6 /rs/java/android/renderscript/ProgramStore.java
parent573555ffa8ca7689e3a7449c6641a665843f95b8 (diff)
Remove some blocking calls in BubbleManager
- When shell thread is enabled, there's a deadlock that can happen from having blocking calls from both Shell -> SysUI and vice versa. Specifically if you have a scenario like: Shell SysUI A ----------------> f() (shell blocking call, posts onto thread & awaits) | g() <-------------- B (sysui blocking call while f() is posted) | | | V V f() runs g() runs The call f() will never actually run since B came in which is blocked on g() which can't finish because f() has not returned. - Instead, replace some blocking calls with preloaded info (ie. can send bubble entry and whether the the entry should bubble up to onRankingUpdated since it just calls back to query it), and make getShouldRestoredEntries() and getPendingOrActiveEntry() async with a callback. - Can remove isNotificationShadeExpand() since it's not actually used anymore in bubble code Bug: 161979899 Test: atest WMShellUnitTests Test: atest SystemUITests Change-Id: Iba834172c17c3f4b03c23448fef346c71c16c1bb Signed-off-by: Winson Chung <winsonc@google.com>
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions