Searched refs:makeShortcut (Results 1 – 9 of 9) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | ShortcutManagerTest10.java | 58 ShortcutInfo s1 = makeShortcut("s1"); in testCreateShortcutResult_validResult() 73 assertTrue(mManager.setDynamicShortcuts(list(makeShortcut("s1")))); in testCreateShortcutResult_alreadyPinned() 81 ShortcutInfo s1 = makeShortcut("s1"); in testCreateShortcutResult_alreadyPinned() 95 assertTrue(mManager.setDynamicShortcuts(list(makeShortcut("s1")))); in testCreateShortcutResult_alreadyPinnedByAnother() 105 ShortcutInfo s1 = makeShortcut("s1"); in testCreateShortcutResult_alreadyPinnedByAnother() 121 ShortcutInfo s1 = makeShortcut("s1"); in testCreateShortcutResult_defaultLauncherChanges()
|
D | BaseShortcutManagerTest.java | 1769 protected ShortcutInfo makeShortcut(String id) { in makeShortcut() method in BaseShortcutManagerTest 1770 return makeShortcut( in makeShortcut() 1777 return makeShortcut( in makeShortcutWithTitle() 1783 return makeShortcut( in makeShortcutWithShortLabel() 1792 final ShortcutInfo s = makeShortcut( in makeShortcutWithTimestamp() 1804 final ShortcutInfo s = makeShortcut( in makeShortcutWithTimestampWithActivity() 1815 return makeShortcut( in makeShortcutWithIcon() 1824 ShortcutInfo s = makeShortcut( in makePackageShortcut() 1838 ret.add(makeShortcut(id)); in makeShortcuts() 1848 return makeShortcut( in makeShortcutWithActivity() [all …]
|
D | ShortcutManagerTest11.java | 115 list(makeShortcut("s1"), makeLongLivedShortcut("s2")))); in testShortcutChangeCallback_setDynamicShortcuts_pinnedAndCached() 350 assertTrue(mManager.setDynamicShortcuts(list(makeShortcut("s1"), in testShortcutChangeCallback_updateShortcuts() 413 mManager.pushDynamicShortcut(makeShortcut("s1")); in testShortcutChangeCallback_pushDynamicShortcut() 443 mManager.pushDynamicShortcut(makeShortcut("s2")); in testShortcutChangeCallback_pushDynamicShortcut_existingId() 473 mManager.pushDynamicShortcut(makeShortcut("s4")); in testShortcutChangeCallback_pushDynamicShortcut_causeDeletion() 516 mManager.pushDynamicShortcut(makeShortcut("s4")); in testShortcutChangeCallback_pushDynamicShortcut_causeDeletionButCached() 563 list(makeShortcut("s1"), makeLongLivedShortcut("s2"), makeShortcut("s3")))); in testShortcutChangeCallback_disableShortcuts_pinnedAndCached() 602 list(makeShortcut("s1"), makeLongLivedShortcut("s2"), makeShortcut("s3")))); in testShortcutChangeCallback_enableShortcuts() 669 assertTrue(mManager.setDynamicShortcuts(list(makeShortcut("s1"), in testShortcutChangeCallback_removeDynamicShortcuts_pinnedAndCached() 670 makeLongLivedShortcut("s2"), makeShortcut("s3"), makeShortcut("s4")))); in testShortcutChangeCallback_removeDynamicShortcuts_pinnedAndCached() [all …]
|
D | ShortcutManagerTest1.java | 291 final ShortcutInfo si1 = makeShortcut( in testSetDynamicShortcuts() 300 final ShortcutInfo si2 = makeShortcut( in testSetDynamicShortcuts() 307 final ShortcutInfo si3 = makeShortcut( in testSetDynamicShortcuts() 348 assertTrue(mManager.setDynamicShortcuts(list(makeShortcut("s1")))); in testSetDynamicShortcuts() 355 final ShortcutInfo si1 = makeShortcut("shortcut1"); in testAddDynamicShortcuts() 356 final ShortcutInfo si2 = makeShortcut("shortcut2"); in testAddDynamicShortcuts() 357 final ShortcutInfo si3 = makeShortcut("shortcut3"); in testAddDynamicShortcuts() 383 assertTrue(mManager.addDynamicShortcuts(list(makeShortcut("shortcut1")))); in testAddDynamicShortcuts() 396 assertTrue(mManager.addDynamicShortcuts(list(makeShortcut("s1")))); in testAddDynamicShortcuts() 406 final ShortcutInfo s1 = makeShortcut("s1"); in testPushDynamicShortcut() [all …]
|
D | ShortcutManagerTest8.java | 177 ShortcutInfo s1 = makeShortcut("s1"); in testRequestPinShortcut_notSupported() 189 ShortcutInfo s1 = makeShortcut("s1"); in testRequestPinShortcut_notSupported() 201 ShortcutInfo s1 = makeShortcut("s1"); in testRequestPinShortcut_notSupported() 229 assertTrue(mManager.requestPinShortcut(makeShortcut("s1"), in testNotForeground() 759 assertTrue(mManager.setDynamicShortcuts(list(makeShortcut("s1")))); in testRequestPinShortcut_wasDynamic_alreadyPinned() 787 assertTrue(mManager.setDynamicShortcuts(list(makeShortcut("s1")))); in testRequestPinShortcut_wasDynamic_disabled_alreadyPinned() 850 assertTrue(mManager.setDynamicShortcuts(list(makeShortcut("s1")))); in testRequestPinShortcut_dynamicExists_alreadyPinnedByAnother() 981 assertTrue(mManager.setDynamicShortcuts(list(makeShortcut("s1"), makeShortcut("s2")))); in testRequestPinShortcut_launcherAlreadyHasPinned() 1176 ShortcutInfo s1 = makeShortcut("s1"); in testRequestPinShortcut_dynamicExists_thenRemoved_error() 1234 ShortcutInfo s1 = makeShortcut("s1"); in testRequestPinShortcut_dynamicExists_thenRemoved_okay() [all …]
|
D | ShortcutManagerTest2.java | 1567 final ShortcutInfo si1 = makeShortcut("shortcut1"); 1640 final ShortcutInfo si1 = makeShortcut("shortcut1"); 1670 final ShortcutInfo si1 = makeShortcut("shortcut1"); 1693 final ShortcutInfo si2 = makeShortcut("shortcut1"); 1922 mManager.updateShortcuts(list(makeShortcut("s"))); in testThrottling_foreground() 1964 mManager.setDynamicShortcuts(list(makeShortcut("s"))); in testThrottling_foreground() 1969 mManager.setDynamicShortcuts(list(makeShortcut("s"))); in testThrottling_foreground() 1974 mManager.setDynamicShortcuts(list(makeShortcut("s"))); in testThrottling_foreground() 1982 mManager.setDynamicShortcuts(list(makeShortcut("s"))); in testThrottling_foreground() 1983 mManager.setDynamicShortcuts(list(makeShortcut("s"))); in testThrottling_foreground() [all …]
|
D | ShortcutManagerTest12.java | 35 assertTrue(mManager.setDynamicShortcuts(list(makeShortcut("s1")))) in testGetShortcutIntents_ReturnsMutablePendingIntents()
|
D | ShortcutManagerTest7.java | 290 makeShortcut("s1"), makeShortcut("s2")))); in testClearShortcuts() 349 makeLongLivedShortcut("s1"), makeShortcut("s2")))); in testGetShortcuts()
|
D | ShortcutManagerTest4.java | 120 makeShortcut("s{\u0000}{\u0001}{\uD800\uDC00}x[\uD801][\uDC01]") in testPersistingWeirdCharacters()
|