Home
last modified time | relevance | path

Searched refs:mShortcutManager (Results 1 – 4 of 4) sorted by relevance

/development/samples/ShortcutSample/src/com/example/android/shortcutsample/
DShortcutHelper.java53 private final ShortcutManager mShortcutManager; field in ShortcutHelper
57 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 …]
DMain.java55 private ShortcutManager mShortcutManager; field in Main
67 mShortcutManager = getSystemService(ShortcutManager.class); in onCreate()
159 mShortcutManager.createShortcutResultIntent(shortcut)); in addUriAsync()
/development/samples/browseable/AppShortcuts/src/com.example.android.appshortcuts/
DShortcutHelper.java51 private final ShortcutManager mShortcutManager; field in ShortcutHelper
55 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 …]
/development/samples/ShortcutDemo/publisher/src/com/example/android/pm/shortcutdemo/
DShortcutPublisher.java61 private ShortcutManager mShortcutManager; field in ShortcutPublisher
78 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 …]