Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/
DSettingsInitializeTest.java42 private ShortcutManager mShortcutManager; field in SettingsInitializeTest
50 mShortcutManager = (ShortcutManager) mContext.getSystemService(Context.SHORTCUT_SERVICE); in setUp()
63 mShortcutManager.addDynamicShortcuts(Collections.singletonList(info)); in refreshExistingShortcuts_shouldUpdateLaunchIntentFlagsForExistingShortcut()
64 mShortcutManager.requestPinShortcut(info, null); in refreshExistingShortcuts_shouldUpdateLaunchIntentFlagsForExistingShortcut()
68 final List<ShortcutInfo> updatedShortcuts = mShortcutManager.getPinnedShortcuts(); in refreshExistingShortcuts_shouldUpdateLaunchIntentFlagsForExistingShortcut()
90 mShortcutManager.addDynamicShortcuts(Collections.singletonList(info)); in refreshExistingShortcuts_shouldNotUpdateImmutableShortcut()
91 mShortcutManager.requestPinShortcut(info, null); in refreshExistingShortcuts_shouldNotUpdateImmutableShortcut()
95 final List<ShortcutInfo> updatedShortcuts = mShortcutManager.getPinnedShortcuts(); in refreshExistingShortcuts_shouldNotUpdateImmutableShortcut()
/packages/apps/Contacts/src/com/android/contacts/
DDynamicShortcuts.java108 private final ShortcutManager mShortcutManager; field in DynamicShortcuts
127 mShortcutManager = shortcutManager; in DynamicShortcuts()
158 mShortcutManager.setDynamicShortcuts(shortcuts); in refresh()
171 for (ShortcutInfo shortcut : mShortcutManager.getPinnedShortcuts()) { in updatePinned()
202 mShortcutManager.updateShortcuts(updates); in updatePinned()
203 mShortcutManager.enableShortcuts(enable); in updatePinned()
204 mShortcutManager.disableShortcuts(removedIds, in updatePinned()
381 final int iconMaxWidth = mShortcutManager.getIconMaxWidth(); in decodeStreamForShortcut()
382 final int iconMaxHeight = mShortcutManager.getIconMaxHeight(); in decodeStreamForShortcut()
445 mShortcutManager.removeAllDynamicShortcuts(); in removeAllShortcuts()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/shortcut/
DShortcutsUpdateTaskTest.java64 private ShortcutManager mShortcutManager; field in ShortcutsUpdateTaskTest
78 doReturn(mShortcutManager).when(mContext).getSystemService(eq(Context.SHORTCUT_SERVICE)); in shortcutsUpdateTask()
100 when(mShortcutManager.getPinnedShortcuts()).thenReturn(pinnedShortcuts); in shortcutsUpdateTask()
104 verify(mShortcutManager, times(1)).updateShortcuts(mListCaptor.capture()); in shortcutsUpdateTask()
DCreateShortcutPreferenceControllerTest.java73 private ShortcutManager mShortcutManager; field in CreateShortcutPreferenceControllerTest
90 doReturn(mShortcutManager).when(mContext).getSystemService(eq(Context.SHORTCUT_SERVICE)); in setup()
101 when(mShortcutManager.createShortcutResultIntent(any(ShortcutInfo.class))) in createResultIntent()
113 verify(mShortcutManager, times(1)) in createResultIntent()
/packages/apps/DeskClock/src/com/android/deskclock/events/
DShortcutEventTracker.kt31 private val mShortcutManager: ShortcutManager = constant
51 mShortcutManager.reportShortcutUsed(shortcutId) in sendEvent()
/packages/apps/DeskClock/src/com/android/deskclock/controller/
DShortcutController.kt49 private val mShortcutManager = context.getSystemService(ShortcutManager::class.java) constant in com.android.deskclock.controller.ShortcutController
67 mShortcutManager.setDynamicShortcuts(listOf(alarm, timer, stopwatch, screensaver)) in updateShortcuts()
163 mShortcutManager.updateShortcuts(listOf(createStopwatchShortcut())) in stopwatchUpdated()
/packages/apps/Settings/src/com/android/settings/shortcut/
DCreateShortcutPreferenceController.java77 private final ShortcutManager mShortcutManager; field in CreateShortcutPreferenceController
87 mShortcutManager = context.getSystemService(ShortcutManager.class); in CreateShortcutPreferenceController()
155 Intent intent = mShortcutManager.createShortcutResultIntent(info); in createResultIntent()