Home
last modified time | relevance | path

Searched refs:mShortcutServiceInternal (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/services/core/java/com/android/server/notification/
DShortcutHelper.java68 private ShortcutServiceInternal mShortcutServiceInternal; field in ShortcutHelper
149 mShortcutServiceInternal = shortcutServiceInternal; in ShortcutHelper()
159 mShortcutServiceInternal = shortcutServiceInternal; in setShortcutServiceInternal()
166 ShortcutInfo shortcutInfo, ShortcutServiceInternal mShortcutServiceInternal, in isConversationShortcut() argument
201 if (isConversationShortcut(info, mShortcutServiceInternal, user.getIdentifier())) { in getValidShortcutInfo()
215 mShortcutServiceInternal.cacheShortcuts(user.getIdentifier(), "android", in cacheShortcut()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DShortcutHelperTest.java69 ShortcutServiceInternal mShortcutServiceInternal; field in ShortcutHelperTest
88 mLauncherApps, mShortcutListener, mShortcutServiceInternal); in setUp()
224 when(mShortcutServiceInternal.isSharingShortcut(anyInt(), anyString(), anyString(), in testGetValidShortcutInfo_noMatchingShortcut()
235 when(mShortcutServiceInternal.isSharingShortcut(anyInt(), anyString(), anyString(), in testGetValidShortcutInfo_nullShortcut()
252 when(mShortcutServiceInternal.isSharingShortcut(anyInt(), anyString(), anyString(), in testGetValidShortcutInfo_notLongLived()
270 when(mShortcutServiceInternal.isSharingShortcut(anyInt(), anyString(), anyString(), in testGetValidShortcutInfo_notSharingShortcut()
287 when(mShortcutServiceInternal.isSharingShortcut(anyInt(), anyString(), anyString(), in testGetValidShortcutInfo_notEnabled()
DNotificationManagerServiceTest.java239 private ShortcutServiceInternal mShortcutServiceInternal; field in NotificationManagerServiceTest
481 mShortcutHelper.setShortcutServiceInternal(mShortcutServiceInternal); in setUp()
493 when(mShortcutServiceInternal.isSharingShortcut(anyInt(), anyString(), anyString(), in setUp()
6227 verify(mShortcutServiceInternal).cacheShortcuts( in testNotificationBubbles_flagRemoved_whenShortcutRemoved()
6282 when(mShortcutServiceInternal.isSharingShortcut(anyInt(), anyString(), anyString(), in testNotificationBubbles_shortcut_stopListeningWhenNotifRemoved()
6300 verify(mShortcutServiceInternal).cacheShortcuts( in testNotificationBubbles_shortcut_stopListeningWhenNotifRemoved()
6636 when(mShortcutServiceInternal.isSharingShortcut(anyInt(), anyString(), anyString(), in testGetConversationsForPackage_hasShortcut()
/frameworks/base/services/core/java/com/android/server/pm/
DLauncherAppsService.java139 private final ShortcutServiceInternal mShortcutServiceInternal; field in LauncherAppsService.LauncherAppsImpl
164 mShortcutServiceInternal = Objects.requireNonNull( in LauncherAppsImpl()
166 mShortcutServiceInternal.addListener(mPackageMonitor); in LauncherAppsImpl()
168 mShortcutServiceInternal.addShortcutChangeCallback(mShortcutChangeHandler); in LauncherAppsImpl()
676 if (!mShortcutServiceInternal.hasShortcutHostPermission(getCallingUserId(), in ensureShortcutPermission()
733 mShortcutServiceInternal.getShortcuts(getCallingUserId(), in getShortcuts()
780 mShortcutServiceInternal.pinShortcuts(getCallingUserId(), in pinShortcuts()
792 mShortcutServiceInternal.cacheShortcuts( in cacheShortcuts()
805 mShortcutServiceInternal.uncacheShortcuts( in uncacheShortcuts()
818 return mShortcutServiceInternal.getShortcutIconResId(getCallingUserId(), in getShortcutIconResId()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/
DDataManagerTest.java118 @Mock private ShortcutServiceInternal mShortcutServiceInternal; field in DataManagerTest
146 addLocalServiceMock(ShortcutServiceInternal.class, mShortcutServiceInternal); in setUp()
213 when(mShortcutServiceInternal.isSharingShortcut(anyInt(), anyString(), anyString(), in setUp()
215 verify(mShortcutServiceInternal).addShortcutChangeCallback( in setUp()
285 verify(mShortcutServiceInternal).getShortcuts(anyInt(), anyString(), anyLong(), in testGetShortcut()
420 verify(mShortcutServiceInternal).uncacheShortcuts( in testNotificationOpened()
448 verify(mShortcutServiceInternal, never()).uncacheShortcuts( in testNotificationDismissed()
454 verify(mShortcutServiceInternal).uncacheShortcuts( in testNotificationDismissed()
480 verify(mShortcutServiceInternal, never()).uncacheShortcuts( in testShortcutNotUncachedIfNotificationChannelCreated()
579 verify(mShortcutServiceInternal).uncacheShortcuts( in testUncacheShortcutWhenShutdown()
[all …]
/frameworks/base/services/people/java/com/android/server/people/data/
DDataManager.java114 private ShortcutServiceInternal mShortcutServiceInternal; field in DataManager
132 mShortcutServiceInternal = LocalServices.getService(ShortcutServiceInternal.class); in initialize()
137 mShortcutServiceInternal.addShortcutChangeCallback(new ShortcutServiceCallback()); in initialize()
207 return mShortcutServiceInternal.getShareTargets( in getShareShortcuts()
300 mShortcutServiceInternal.uncacheShortcuts(userId, in pruneDataForUser()
470 return mShortcutServiceInternal.getShortcuts( in getShortcuts()
741 shortcut, mShortcutServiceInternal, user.getIdentifier())) { in onShortcutsAddedOrUpdated()
825 mShortcutServiceInternal.uncacheShortcuts(mUserId, in onNotificationRemoved()
895 mShortcutServiceInternal.uncacheShortcuts(mUserId, in cleanupCachedShortcuts()
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DVoiceInteractionManagerService.java115 ShortcutServiceInternal mShortcutServiceInternal; field in VoiceInteractionManagerService
159 mShortcutServiceInternal = Objects.requireNonNull( in onBootPhase()
532 mShortcutServiceInternal.setShortcutHostPackage(TAG, in switchImplementationIfNeededNoTracingLocked()
537 mShortcutServiceInternal.setShortcutHostPackage(TAG, null, mCurUser); in switchImplementationIfNeededNoTracingLocked()
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsService.java163 ShortcutServiceInternal mShortcutServiceInternal; field in UsageStatsService
416 if (mShortcutServiceInternal == null) { in getShortcutServiceInternal()
417 mShortcutServiceInternal = LocalServices.getService(ShortcutServiceInternal.class); in getShortcutServiceInternal()
419 return mShortcutServiceInternal; in getShortcutServiceInternal()