Searched refs:mShortcutManager (Results 1 – 7 of 7) sorted by relevance
42 private ShortcutManager mShortcutManager; field in SettingsInitializeTest50 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()
108 private final ShortcutManager mShortcutManager; field in DynamicShortcuts127 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 …]
64 private ShortcutManager mShortcutManager; field in ShortcutsUpdateTaskTest78 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()
73 private ShortcutManager mShortcutManager; field in CreateShortcutPreferenceControllerTest90 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()
31 private val mShortcutManager: ShortcutManager = constant51 mShortcutManager.reportShortcutUsed(shortcutId) in sendEvent()
49 private val mShortcutManager = context.getSystemService(ShortcutManager::class.java) constant in com.android.deskclock.controller.ShortcutController67 mShortcutManager.setDynamicShortcuts(listOf(alarm, timer, stopwatch, screensaver)) in updateShortcuts()163 mShortcutManager.updateShortcuts(listOf(createStopwatchShortcut())) in stopwatchUpdated()
77 private final ShortcutManager mShortcutManager; field in CreateShortcutPreferenceController87 mShortcutManager = context.getSystemService(ShortcutManager.class); in CreateShortcutPreferenceController()155 Intent intent = mShortcutManager.createShortcutResultIntent(info); in createResultIntent()