summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorPinyao Ting <pinyaoting@google.com>2021-03-30 14:34:04 -0700
committerPinyao Ting <pinyaoting@google.com>2021-03-30 19:31:09 -0700
commit4dedfc8ba3d8654d9cbf006101770e2ee4331837 (patch)
tree6abdf4fe777fe4bb7f280d98d3067fbdd2d41cac /tools/aapt2/java/JavaClassGenerator_test.cpp
parent4546fb3eb4e3750207191159e2eed8eeda1c59a5 (diff)
Fixes an issue in shortcut persistence.
Currently after reboot the shortcuts previously saved in AppSearch could be lost since ShortcutService never calls AppSearchSession#close. Closing the session upon device shutdown fixes the issue. Also, removes the exception where calling AppSearchSession#close gives rise to IllegalArgumentException when the call wasn't made from a binder thread. Since ShortcutService runs in the system process, it is expected that calling AppSearchSession#close doesn't goes through binder. Bug: 183982287 Test: flash, pin shortcuts, reboot, observe Test: atest ShortcutManagerTest1 ShortcutManagerTest2 ShortcutManagerTest3 ShortcutManagerTest4 ShortcutManagerTest5 ShortcutManagerTest6 ShortcutManagerTest7 ShortcutManagerTest8 ShortcutManagerTest9 ShortcutManagerTest10 ShortcutManagerTest11 Test: atest CtsShortcutManagerTestCases Change-Id: I61bc4354735770630965ca4f81314d23671165d0
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions