Home
last modified time | relevance | path

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

/aosp12/frameworks/base/services/core/java/com/android/server/notification/
H A DShortcutHelper.java70 private ShortcutServiceInternal mShortcutServiceInternal; field in ShortcutHelper
152 mShortcutServiceInternal = shortcutServiceInternal; in ShortcutHelper()
163 mShortcutServiceInternal = shortcutServiceInternal; in setShortcutServiceInternal()
175 ShortcutInfo shortcutInfo, ShortcutServiceInternal mShortcutServiceInternal, in isConversationShortcut() argument
211 if (isConversationShortcut(info, mShortcutServiceInternal, user.getIdentifier())) { in getValidShortcutInfo()
225 mShortcutServiceInternal.cacheShortcuts(user.getIdentifier(), "android", in cacheShortcut()
/aosp12/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
H A DShortcutHelperTest.java77 ShortcutServiceInternal mShortcutServiceInternal; field in ShortcutHelperTest
98 mLauncherApps, mShortcutListener, mShortcutServiceInternal, mUserManager); in setUp()
235 when(mShortcutServiceInternal.isSharingShortcut(anyInt(), anyString(), anyString(), in testGetValidShortcutInfo_noMatchingShortcut()
246 when(mShortcutServiceInternal.isSharingShortcut(anyInt(), anyString(), anyString(), in testGetValidShortcutInfo_nullShortcut()
263 when(mShortcutServiceInternal.isSharingShortcut(anyInt(), anyString(), anyString(), in testGetValidShortcutInfo_notLongLived()
281 when(mShortcutServiceInternal.isSharingShortcut(anyInt(), anyString(), anyString(), in testGetValidShortcutInfo_notSharingShortcut()
298 when(mShortcutServiceInternal.isSharingShortcut(anyInt(), anyString(), anyString(), in testGetValidShortcutInfo_notEnabled()
H A DNotificationManagerServiceTest.java267 private ShortcutServiceInternal mShortcutServiceInternal; field in NotificationManagerServiceTest
535 mShortcutHelper.setShortcutServiceInternal(mShortcutServiceInternal); in setUp()
571 when(mShortcutServiceInternal.isSharingShortcut(anyInt(), anyString(), anyString(), in setUp()
7295 verify(mShortcutServiceInternal).cacheShortcuts( in testNotificationBubbles_flagRemoved_whenShortcutRemoved()
7350 when(mShortcutServiceInternal.isSharingShortcut(anyInt(), anyString(), anyString(), in testNotificationBubbles_shortcut_stopListeningWhenNotifRemoved()
7368 verify(mShortcutServiceInternal).cacheShortcuts( in testNotificationBubbles_shortcut_stopListeningWhenNotifRemoved()
7703 when(mShortcutServiceInternal.isSharingShortcut(anyInt(), anyString(), anyString(), in testGetConversationsForPackage_hasShortcut()
/aosp12/frameworks/base/services/core/java/com/android/server/pm/
H A DLauncherAppsService.java152 private final ShortcutServiceInternal mShortcutServiceInternal; field in LauncherAppsService.LauncherAppsImpl
183 mShortcutServiceInternal = Objects.requireNonNull( in LauncherAppsImpl()
187 mShortcutServiceInternal.addListener(mPackageMonitor); in LauncherAppsImpl()
693 final Intent[] intents = mShortcutServiceInternal.createShortcutIntents( in getShortcutIntent()
849 mShortcutServiceInternal.getShortcuts(getCallingUserId(), in getShortcuts()
896 mShortcutServiceInternal.pinShortcuts(getCallingUserId(), in pinShortcuts()
908 mShortcutServiceInternal.cacheShortcuts( in cacheShortcuts()
921 mShortcutServiceInternal.uncacheShortcuts( in uncacheShortcuts()
946 return mShortcutServiceInternal.getShortcutIconFd(getCallingUserId(), in getShortcutIconFd()
979 if (!mShortcutServiceInternal.isPinnedByCaller(getCallingUserId(), in startShortcut()
[all …]
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/
H A DDataManagerTest.java143 private ShortcutServiceInternal mShortcutServiceInternal; field in DataManagerTest
286 when(mShortcutServiceInternal.getShortcuts( in setUp()
290 verify(mShortcutServiceInternal).addShortcutChangeCallback( in setUp()
518 verify(mShortcutServiceInternal, never()).uncacheShortcuts( in testUncacheShortcutsWhenNotificationsDismissed()
524 verify(mShortcutServiceInternal).uncacheShortcuts( in testUncacheShortcutsWhenNotificationsDismissed()
758 verify(mShortcutServiceInternal).getShortcuts( in testGetConversationGetsPersonsData()
1153 verify(mShortcutServiceInternal).uncacheShortcuts( in testUncacheOldestCachedShortcut()
1228 verify(mShortcutServiceInternal).getShortcuts( in testGetRecentConversationsGetsPersonsData()
1254 verify(mShortcutServiceInternal).uncacheShortcuts( in testPruneOldRecentConversations()
1480 verify(mShortcutServiceInternal).uncacheShortcuts(
[all …]
/aosp12/frameworks/base/services/people/java/com/android/server/people/data/
H A DDataManager.java136 private ShortcutServiceInternal mShortcutServiceInternal; field in DataManager
155 mShortcutServiceInternal = LocalServices.getService(ShortcutServiceInternal.class); in initialize()
160 mShortcutServiceInternal.addShortcutChangeCallback(new ShortcutServiceCallback()); in initialize()
235 return mShortcutServiceInternal.getShareTargets( in getShareShortcuts()
333 mShortcutServiceInternal.uncacheShortcuts(callingUserId, mContext.getPackageName(), in removeRecentConversation()
366 mShortcutServiceInternal.uncacheShortcuts(callingUserId, mContext.getPackageName(), in pruneOldRecentConversations()
745 return mShortcutServiceInternal.getShortcuts( in getShortcuts()
859 mShortcutServiceInternal.uncacheShortcuts(userId, in cleanupCachedShortcuts()
1087 shortcut, mShortcutServiceInternal, user.getIdentifier())) { in onShortcutsAddedOrUpdated()
/aosp12/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
H A DVoiceInteractionManagerService.java131 ShortcutServiceInternal mShortcutServiceInternal; field in VoiceInteractionManagerService
185 mShortcutServiceInternal = Objects.requireNonNull( in onBootPhase()
663 mShortcutServiceInternal.setShortcutHostPackage(TAG, in switchImplementationIfNeededNoTracingLocked()
668 mShortcutServiceInternal.setShortcutHostPackage(TAG, null, mCurUser); in switchImplementationIfNeededNoTracingLocked()
/aosp12/frameworks/base/services/usage/java/com/android/server/usage/
H A DUsageStatsService.java173 ShortcutServiceInternal mShortcutServiceInternal; field in UsageStatsService
463 if (mShortcutServiceInternal == null) { in getShortcutServiceInternal()
464 mShortcutServiceInternal = LocalServices.getService(ShortcutServiceInternal.class); in getShortcutServiceInternal()
466 return mShortcutServiceInternal; in getShortcutServiceInternal()