/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
H A D | ShortcutManagerTest12.java | 81 makeShortcut("s1"), in testSetDynamicShortcuts_PersistsShortcutsToDisk() 82 makeShortcut("s2"), in testSetDynamicShortcuts_PersistsShortcutsToDisk() 83 makeShortcut("s3") in testSetDynamicShortcuts_PersistsShortcutsToDisk() 107 makeShortcut("s1"), in testAddDynamicShortcuts_PersistsShortcutsToDisk() 108 makeShortcut("s2"), in testAddDynamicShortcuts_PersistsShortcutsToDisk() 109 makeShortcut("s3") in testAddDynamicShortcuts_PersistsShortcutsToDisk() 112 mManager.addDynamicShortcuts(list(makeShortcut("s4"), makeShortcut("s5"))); in testAddDynamicShortcuts_PersistsShortcutsToDisk() 131 makeShortcut("s1"), in testPushDynamicShortcuts_PersistsShortcutsToDisk() 135 makeShortcut("s5") in testPushDynamicShortcuts_PersistsShortcutsToDisk() 177 makeShortcut("s5") in testRemoveDynamicShortcuts_RemovesShortcutsFromDisk() [all …]
|
H A D | BaseShortcutManagerTest.java | 2230 makeShortcut("s1"), makeShortcut("s2"), makeShortcut("s3"), 2231 makeShortcut("s4"), makeShortcut("s5"), makeShortcut("s6")))); 2235 makeShortcut("s1"), makeShortcut("s2"), makeShortcut("s3"), 2236 makeShortcut("s4"), makeShortcut("s5"), makeShortcut("s6")))); 2240 makeShortcut("s1"), makeShortcut("s2"), makeShortcut("s3"), 2241 makeShortcut("s4"), makeShortcut("s5"), makeShortcut("s6")))); 2248 makeShortcut("s1"), makeShortcut("s2"), makeShortcut("s3"), 2249 makeShortcut("s4"), makeShortcut("s5"), makeShortcut("s6")))); 2253 makeShortcut("x1"), makeShortcut("x2"), makeShortcut("x3"), 2254 makeShortcut("x4"), makeShortcut("x5"), makeShortcut("x6")))); [all …]
|
H A D | ShortcutManagerTest10.java | 62 ShortcutInfo s1 = makeShortcut("s1"); in testCreateShortcutResult_validResult() 77 assertTrue(mManager.setDynamicShortcuts(list(makeShortcut("s1")))); in testCreateShortcutResult_alreadyPinned() 85 ShortcutInfo s1 = makeShortcut("s1"); in testCreateShortcutResult_alreadyPinned() 99 assertTrue(mManager.setDynamicShortcuts(list(makeShortcut("s1")))); in testCreateShortcutResult_alreadyPinnedByAnother() 109 ShortcutInfo s1 = makeShortcut("s1"); in testCreateShortcutResult_alreadyPinnedByAnother() 125 ShortcutInfo s1 = makeShortcut("s1"); in testCreateShortcutResult_defaultLauncherChanges()
|
H A D | ShortcutManagerTest11.java | 117 list(makeShortcut("s1"), makeLongLivedShortcut("s2")))); in testShortcutChangeCallback_setDynamicShortcuts_pinnedAndCached() 415 mManager.pushDynamicShortcut(makeShortcut("s1")); in testShortcutChangeCallback_pushDynamicShortcut() 445 mManager.pushDynamicShortcut(makeShortcut("s2")); in testShortcutChangeCallback_pushDynamicShortcut_existingId() 475 mManager.pushDynamicShortcut(makeShortcut("s4")); in testShortcutChangeCallback_pushDynamicShortcut_causeDeletion() 518 mManager.pushDynamicShortcut(makeShortcut("s4")); in testShortcutChangeCallback_pushDynamicShortcut_causeDeletionButCached() 565 list(makeShortcut("s1"), makeLongLivedShortcut("s2"), makeShortcut("s3")))); in testShortcutChangeCallback_disableShortcuts_pinnedAndCached() 604 list(makeShortcut("s1"), makeLongLivedShortcut("s2"), makeShortcut("s3")))); in testShortcutChangeCallback_enableShortcuts() 672 makeLongLivedShortcut("s2"), makeShortcut("s3"), makeShortcut("s4")))); in testShortcutChangeCallback_removeDynamicShortcuts_pinnedAndCached() 740 list(makeShortcut("s1"), makeLongLivedShortcut("s2"), makeShortcut("s3")))); in testShortcutChangeCallback_removeAllDynamicShortcuts_pinnedAndCached() 780 makeLongLivedShortcut("s2"), makeShortcut("s3")))); in testShortcutChangeCallback_removeLongLivedShortcuts_notCached() [all …]
|
H A D | ShortcutManagerTest1.java | 1960 makeShortcut("s1"), makeShortcut("s2"), makeShortcut("s3")))); in testGetShortcuts_shortcutKinds() 2440 makeShortcut("s1"), makeShortcut("s2"), makeShortcut("s3")))); in testDisableShortcuts_thenRepublish() 2457 makeShortcut("s1"), makeShortcut("s2"), makeShortcut("s3")))); in testDisableShortcuts_thenRepublish() 2511 makeShortcut("s1"), makeShortcut("s2"), makeShortcut("s3")))); in testPinShortcutAndGetPinnedShortcuts_multi() 2516 makeShortcut("s1"), makeShortcut("s2"), makeShortcut("s3")))); in testPinShortcutAndGetPinnedShortcuts_multi() 2787 makeShortcut("s1"), makeShortcut("s2"), makeShortcut("s3")))); in testPinShortcutAndGetPinnedShortcuts_assistant() 2843 makeShortcut("s1"), makeShortcut("s2"), makeShortcut("s3")))); in testPinShortcutAndGetPinnedShortcuts_crossProfile_plusLaunch() 2847 makeShortcut("s1"), makeShortcut("s2"), makeShortcut("s3")))); in testPinShortcutAndGetPinnedShortcuts_crossProfile_plusLaunch() 2854 makeShortcut("s1"), makeShortcut("s2"), makeShortcut("s3"), in testPinShortcutAndGetPinnedShortcuts_crossProfile_plusLaunch() 2855 makeShortcut("s4"), makeShortcut("s5"), makeShortcut("s6")))); in testPinShortcutAndGetPinnedShortcuts_crossProfile_plusLaunch() [all …]
|
H A D | ShortcutManagerTest8.java | 180 ShortcutInfo s1 = makeShortcut("s1"); in testRequestPinShortcut_notSupported() 192 ShortcutInfo s1 = makeShortcut("s1"); in testRequestPinShortcut_notSupported() 204 ShortcutInfo s1 = makeShortcut("s1"); in testRequestPinShortcut_notSupported() 232 assertTrue(mManager.requestPinShortcut(makeShortcut("s1"), in testNotForeground() 764 assertTrue(mManager.setDynamicShortcuts(list(makeShortcut("s1")))); in testRequestPinShortcut_wasDynamic_alreadyPinned() 792 assertTrue(mManager.setDynamicShortcuts(list(makeShortcut("s1")))); in testRequestPinShortcut_wasDynamic_disabled_alreadyPinned() 986 assertTrue(mManager.setDynamicShortcuts(list(makeShortcut("s1"), makeShortcut("s2")))); in testRequestPinShortcut_launcherAlreadyHasPinned() 1181 ShortcutInfo s1 = makeShortcut("s1"); in testRequestPinShortcut_dynamicExists_thenRemoved_error() 1239 ShortcutInfo s1 = makeShortcut("s1"); in testRequestPinShortcut_dynamicExists_thenRemoved_okay() 1411 ShortcutInfo s1 = makeShortcut("s1"); in testRequestPinShortcut_dynamicExists_thenDisabled_error() [all …]
|
H A D | ShortcutManagerTest2.java | 1616 final ShortcutInfo si1 = makeShortcut("shortcut1"); 1689 final ShortcutInfo si1 = makeShortcut("shortcut1"); 1719 final ShortcutInfo si1 = makeShortcut("shortcut1"); 1742 final ShortcutInfo si2 = makeShortcut("shortcut1"); 1971 mManager.updateShortcuts(list(makeShortcut("s"))); in testThrottling_foreground() 2013 mManager.setDynamicShortcuts(list(makeShortcut("s"))); in testThrottling_foreground() 2018 mManager.setDynamicShortcuts(list(makeShortcut("s"))); in testThrottling_foreground() 2023 mManager.setDynamicShortcuts(list(makeShortcut("s"))); in testThrottling_foreground() 2031 mManager.setDynamicShortcuts(list(makeShortcut("s"))); in testThrottling_foreground() 2032 mManager.setDynamicShortcuts(list(makeShortcut("s"))); in testThrottling_foreground() [all …]
|
H A D | ShortcutManagerTest7.java | 293 makeShortcut("s1"), makeShortcut("s2")))); in testClearShortcuts() 352 makeLongLivedShortcut("s1"), makeShortcut("s2")))); in testGetShortcuts()
|
H A D | ShortcutManagerTest4.java | 122 makeShortcut("s{\u0000}{\u0001}{\uD800\uDC00}x[\uD801][\uDC01]") in testPersistingWeirdCharacters()
|