summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorPinyao Ting <pinyaoting@google.com>2021-04-14 19:48:49 -0700
committerPinyao Ting <pinyaoting@google.com>2021-04-15 22:30:28 -0700
commitfb059fc06b34da5ef576e471cd3a43dccb7d7891 (patch)
tree98e8b5881e75ec8c42db8f3bf2a11ed3e880fc66 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent252d85cffb517bcdafd219e5d76a9b1154dd60d8 (diff)
Various fixes in ShortcutService
1. Currently AppSearchSession#setSchema is only invoked when the schema hasn't been created. The correct logic should be, call setSchema if the schema version on the device is older than current. 2. Add null check on the call-site of ShortcutPackage#getShortcutById, the return value is generally non-null (on misses it simply return an empty list), the only case it can be null is when there was an exception thrown from AppSearch. 3. Update ShortcutManagerTest10 in comply with security fix in LauncherAppService#getShortcutConfigActivityIntent Bug: 151359749 Test: atest ShortcutManagerTest1 ShortcutManagerTest2 ShortcutManagerTest3 ShortcutManagerTest4 ShortcutManagerTest5 ShortcutManagerTest6 ShortcutManagerTest7 ShortcutManagerTest8 ShortcutManagerTest9 ShortcutManagerTest10 ShortcutManagerTest11 ShortcutManagerTest12 Test: atest CtsShortcutManagerTestCases Change-Id: I214b0e9c8030f45cff5e6451733bf853f6303030
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions