Searched refs:mShortcutManager (Results 1 – 4 of 4) sorted by relevance
53 private final ShortcutManager mShortcutManager; field in ShortcutHelper57 mShortcutManager = mContext.getSystemService(ShortcutManager.class); in ShortcutHelper()61 if (mShortcutManager.getDynamicShortcuts().size() == 0) { in maybeRestoreAllDynamicShortcuts()70 mShortcutManager.reportShortcutUsed(id); in reportShortcutUsed()94 for (ShortcutInfo shortcut : mShortcutManager.getManifestShortcuts()) { in getShortcuts()98 for (ShortcutInfo shortcut : mShortcutManager.getDynamicShortcuts()) { in getShortcuts()104 for (ShortcutInfo shortcut : mShortcutManager.getPinnedShortcuts()) { in getShortcuts()153 callShortcutManager(() -> mShortcutManager.updateShortcuts(updateList)); in refreshShortcuts()211 callShortcutManager(() -> mShortcutManager.requestPinShortcut( in addWebSiteShortcut()215 mShortcutManager.addDynamicShortcuts(Arrays.asList(shortcut))); in addWebSiteShortcut()[all …]
55 private ShortcutManager mShortcutManager; field in Main67 mShortcutManager = getSystemService(ShortcutManager.class); in onCreate()159 mShortcutManager.createShortcutResultIntent(shortcut)); in addUriAsync()
51 private final ShortcutManager mShortcutManager; field in ShortcutHelper55 mShortcutManager = mContext.getSystemService(ShortcutManager.class); in ShortcutHelper()59 if (mShortcutManager.getDynamicShortcuts().size() == 0) { in maybeRestoreAllDynamicShortcuts()68 mShortcutManager.reportShortcutUsed(id); in reportShortcutUsed()96 for (ShortcutInfo shortcut : mShortcutManager.getDynamicShortcuts()) { in getShortcuts()102 for (ShortcutInfo shortcut : mShortcutManager.getPinnedShortcuts()) { in getShortcuts()151 callShortcutManager(() -> mShortcutManager.updateShortcuts(updateList)); in refreshShortcuts()208 return mShortcutManager.addDynamicShortcuts(Arrays.asList(shortcut)); in addWebSiteShortcut()213 mShortcutManager.removeDynamicShortcuts(Arrays.asList(shortcut.getId())); in removeShortcut()217 mShortcutManager.disableShortcuts(Arrays.asList(shortcut.getId())); in disableShortcut()[all …]
61 private ShortcutManager mShortcutManager; field in ShortcutPublisher78 mShortcutManager = getSystemService(ShortcutManager.class); in onCreate()107 for (ShortcutInfo si : mShortcutManager.getManifestShortcuts()) { in getAllShortcuts()113 for (ShortcutInfo si : mShortcutManager.getDynamicShortcuts()) { in getAllShortcuts()119 for (ShortcutInfo si : mShortcutManager.getPinnedShortcuts()) { in getAllShortcuts()151 for (ShortcutInfo si : mShortcutManager.getDynamicShortcuts()) { in dumpCurrentShortcuts()155 for (ShortcutInfo si : mShortcutManager.getPinnedShortcuts()) { in dumpCurrentShortcuts()252 callApi(this, () -> mShortcutManager.setDynamicShortcuts(Arrays.asList(si1, si2, si3))); in onPublishPressed()258 mShortcutManager.removeAllDynamicShortcuts(); in onDeleteAllPressed()276 callApi(this, () -> mShortcutManager.addDynamicShortcuts(Arrays.asList(si))); in onAddPressed()[all …]