diff options
author | Pinyao Ting <pinyaoting@google.com> | 2021-06-08 00:59:51 +0000 |
---|---|---|
committer | Pinyao Ting <pinyaoting@google.com> | 2021-06-08 18:44:00 +0000 |
commit | acc01ae9f403ebca360aed3c2e1446c37236c508 (patch) | |
tree | c736ee11ebcdf76a82c11936a4b75c97ae37470c /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | e571aacdbb0ffa11fe5f2b884503b1be2aeb1f32 (diff) |
Avoid potential deadlock
There has been a few reports indicates ANR was observed when calling
ShortcutBitmapSaver#getBitmapPathMayWaitLocked, which timed after 30
seconds.
This CL reduces the timeout to 5 seconds as 30 seconds is unreasonably
long. Additionally, since ShortcutService#postValue is no longer needed
for AppSearch migration, it is better to remove this api to avoid a
potential risk of deadlock which might have caused the ANR in the
first place.
Bug: 189840177, 189861955
Test: atest ShortcutManagerTest1 ShortcutManagerTest2 ShortcutManagerTest3 ShortcutManagerTest4 ShortcutManagerTest5 ShortcutManagerTest6 ShortcutManagerTest7 ShortcutManagerTest8 ShortcutManagerTest9 ShortcutManagerTest10 ShortcutManagerTest11 ShortcutManagerTest12
Test: atest ShortcutManagerClientApiTest
Change-Id: I33fe05a08df43e926904de4420f863f65d3cbad8
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions