Searched refs:makeShortcut (Results 1 – 7 of 7) sorted by relevance
1413 protected ShortcutInfo makeShortcut(String id) { in makeShortcut() method in BaseShortcutManagerTest1414 return makeShortcut( in makeShortcut()1421 return makeShortcut( in makeShortcutWithTitle()1427 return makeShortcut( in makeShortcutWithShortLabel()1436 final ShortcutInfo s = makeShortcut( in makeShortcutWithTimestamp()1448 final ShortcutInfo s = makeShortcut( in makeShortcutWithTimestampWithActivity()1459 return makeShortcut( in makeShortcutWithIcon()1468 ShortcutInfo s = makeShortcut( in makePackageShortcut()1482 ret.add(makeShortcut(id)); in makeShortcuts()1492 return makeShortcut( in makeShortcutWithActivity()[all …]
56 ShortcutInfo s1 = makeShortcut("s1"); in testCreateShortcutResult_noDefaultLauncher()65 ShortcutInfo s1 = makeShortcut("s1"); in testCreateShortcutResult_validResult()80 assertTrue(mManager.setDynamicShortcuts(list(makeShortcut("s1")))); in testCreateShortcutResult_alreadyPinned()88 ShortcutInfo s1 = makeShortcut("s1"); in testCreateShortcutResult_alreadyPinned()102 assertTrue(mManager.setDynamicShortcuts(list(makeShortcut("s1")))); in testCreateShortcutResult_alreadyPinnedByAnother()112 ShortcutInfo s1 = makeShortcut("s1"); in testCreateShortcutResult_alreadyPinnedByAnother()128 ShortcutInfo s1 = makeShortcut("s1"); in testCreateShortcutResult_defaultLauncherChanges()
272 final ShortcutInfo si1 = makeShortcut( in testSetDynamicShortcuts()281 final ShortcutInfo si2 = makeShortcut( in testSetDynamicShortcuts()288 final ShortcutInfo si3 = makeShortcut( in testSetDynamicShortcuts()329 assertTrue(mManager.setDynamicShortcuts(list(makeShortcut("s1")))); in testSetDynamicShortcuts()336 final ShortcutInfo si1 = makeShortcut("shortcut1"); in testAddDynamicShortcuts()337 final ShortcutInfo si2 = makeShortcut("shortcut2"); in testAddDynamicShortcuts()338 final ShortcutInfo si3 = makeShortcut("shortcut3"); in testAddDynamicShortcuts()364 assertTrue(mManager.addDynamicShortcuts(list(makeShortcut("shortcut1")))); in testAddDynamicShortcuts()377 assertTrue(mManager.addDynamicShortcuts(list(makeShortcut("s1")))); in testAddDynamicShortcuts()384 final ShortcutInfo si1 = makeShortcut("shortcut1"); in testUnlimitedCalls()[all …]
1379 final ShortcutInfo si1 = makeShortcut("shortcut1");1452 final ShortcutInfo si1 = makeShortcut("shortcut1");1482 final ShortcutInfo si1 = makeShortcut("shortcut1");1505 final ShortcutInfo si2 = makeShortcut("shortcut1");1729 mManager.updateShortcuts(list(makeShortcut("s"))); in testThrottling_foreground()1768 mManager.setDynamicShortcuts(list(makeShortcut("s"))); in testThrottling_foreground()1773 mManager.setDynamicShortcuts(list(makeShortcut("s"))); in testThrottling_foreground()1778 mManager.setDynamicShortcuts(list(makeShortcut("s"))); in testThrottling_foreground()1786 mManager.setDynamicShortcuts(list(makeShortcut("s"))); in testThrottling_foreground()1787 mManager.setDynamicShortcuts(list(makeShortcut("s"))); in testThrottling_foreground()[all …]
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 …]
109 makeShortcut("s{\u0000}{\u0001}{\uD800\uDC00}x[\uD801][\uDC01]") in testPersistingWeirdCharacters()
296 makeShortcut("s1"), makeShortcut("s2")))); in testClearShortcuts()