Skip to content
Commit acc01ae9 authored by Pinyao Ting's avatar Pinyao Ting
Browse files

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
parent e571aacd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment