/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | ShortcutManagerTest11.java | 58 mLauncherApps.registerShortcutChangeCallback(callback, QUERY_MATCH_ALL, in testShortcutChangeCallback_setDynamicShortcuts() 85 mLauncherApps.registerShortcutChangeCallback(callback, QUERY_MATCH_ALL, in testShortcutChangeCallback_setDynamicShortcuts_replaceSameId() 119 mLauncherApps.pinShortcuts(CALLING_PACKAGE_1, list("s1"), HANDLE_USER_0); in testShortcutChangeCallback_setDynamicShortcuts_pinnedAndCached() 120 mLauncherApps.cacheShortcuts(CALLING_PACKAGE_1, list("s2"), HANDLE_USER_0, in testShortcutChangeCallback_setDynamicShortcuts_pinnedAndCached() 126 mLauncherApps.registerShortcutChangeCallback(callback, QUERY_MATCH_ALL, in testShortcutChangeCallback_setDynamicShortcuts_pinnedAndCached() 153 mLauncherApps.registerShortcutChangeCallback(callback, QUERY_MATCH_ALL, in testShortcutChangeCallback_pinShortcuts() 155 mLauncherApps.pinShortcuts(CALLING_PACKAGE_1, list("s1"), HANDLE_USER_0); in testShortcutChangeCallback_pinShortcuts() 176 mLauncherApps.pinShortcuts(CALLING_PACKAGE_1, list("s1", "s2"), HANDLE_USER_0); in testShortcutChangeCallback_pinShortcuts_unpinOthers() 185 mLauncherApps.registerShortcutChangeCallback(callback, QUERY_MATCH_ALL, in testShortcutChangeCallback_pinShortcuts_unpinOthers() 187 mLauncherApps.pinShortcuts(CALLING_PACKAGE_1, list("s2", "s3"), HANDLE_USER_0); in testShortcutChangeCallback_pinShortcuts_unpinOthers() [all …]
|
D | ShortcutManagerTest1.java | 493 mLauncherApps.cacheShortcuts(CALLING_PACKAGE_1, list("s8"), HANDLE_USER_0, in testPushDynamicShortcut() 857 mLauncherApps.getShortcutIconResId( in testIcons() 862 mLauncherApps.getShortcutIconResId( in testIcons() 867 mLauncherApps.getShortcutIconResId( in testIcons() 871 mLauncherApps.getShortcutIconResId( in testIcons() 875 mLauncherApps.getShortcutIconResId( in testIcons() 878 bmp = pfdToBitmap(mLauncherApps.getShortcutIconFd( in testIcons() 882 bmp = pfdToBitmap(mLauncherApps.getShortcutIconFd( in testIcons() 886 bmp = pfdToBitmap(mLauncherApps.getShortcutIconFd( in testIcons() 892 mLauncherApps.getShortcutIconResId( in testIcons() [all …]
|
D | ShortcutManagerTest8.java | 285 final PinItemRequest request = mLauncherApps.getPinItemRequest(intent.getValue()); in checkRequestPinShortcut() 298 assertForLauncherCallbackNoThrow(mLauncherApps, in checkRequestPinShortcut() 360 final PinItemRequest request = mLauncherApps.getPinItemRequest(intent.getValue()); in testRequestPinShortcut_explicitTargetActivity() 371 assertForLauncherCallbackNoThrow(mLauncherApps, in testRequestPinShortcut_explicitTargetActivity() 442 final PinItemRequest request = mLauncherApps.getPinItemRequest(intent.getValue()); in testRequestPinShortcut_noTargetActivity_noMainActivity() 453 assertForLauncherCallbackNoThrow(mLauncherApps, in testRequestPinShortcut_noTargetActivity_noMainActivity() 504 final PinItemRequest request = mLauncherApps.getPinItemRequest(intent.getValue()); in testRequestPinShortcut_dynamicExists() 559 final PinItemRequest request = mLauncherApps.getPinItemRequest(intent.getValue()); in testRequestPinShortcut_manifestExists() 603 mLauncherApps.pinShortcuts(CALLING_PACKAGE_1, list("s1"), HANDLE_USER_P0); in testRequestPinShortcut_dynamicExists_alreadyPinned() 640 final PinItemRequest request = mLauncherApps.getPinItemRequest(intent.getValue()); in testRequestPinShortcut_dynamicExists_alreadyPinned() [all …]
|
D | ShortcutManagerTest10.java | 48 PinItemRequest request = mLauncherApps.getPinItemRequest(resultIntent); in verifyAndGetCreateShortcutResult() 84 mLauncherApps.pinShortcuts(CALLING_PACKAGE_1, list("s1"), HANDLE_USER_P0); in testCreateShortcutResult_alreadyPinned() 107 mLauncherApps.pinShortcuts(CALLING_PACKAGE_1, list("s1"), HANDLE_USER_P0); in testCreateShortcutResult_alreadyPinnedByAnother() 171 assertNotNull(mLauncherApps.getShortcutConfigActivityIntent(info)) in testStartConfigActivity_defaultLauncher() 180 mLauncherApps.getShortcutConfigActivityIntent(info)) in testStartConfigActivity_nonDefaultLauncher()
|
D | BaseShortcutManagerTest.java | 604 protected LauncherAppsTestable mLauncherApps; // Current one field in BaseShortcutManagerTest 1025 mLauncherApps = null; in initService() 1048 mLauncherApps = null; in shutdownServices() 1276 mLauncherApps = mLauncherAppsMap.get(key); in setCaller() 1760 mLauncherApps.startShortcut(packageName, shortcutId, null, null, in launchShortcutAndGetIntents() 1777 mLauncherApps.startShortcut( in launchShortcutAndGetIntents_withShortcutInfo() 1800 mLauncherApps.startShortcut(packageName, shortcutId, null, null, 1818 mLauncherApps.startShortcut(packageName, shortcutId, null, null, 1933 ret[0] = mLauncherApps.getShortcuts(q, UserHandle.of(userId)); 1946 return mLauncherApps.getShortcuts(q, UserHandle.of(targetUserId)); [all …]
|
D | SuspendPackagesTest.java | 111 private LauncherApps mLauncherApps; field in SuspendPackagesTest 182 mLauncherApps = (LauncherApps) mContext.getSystemService(Context.LAUNCHER_APPS_SERVICE); in setUp() 356 final Bundle extrasWhenUnsuspended = mLauncherApps.getSuspendedPackageLauncherExtras( in testGetLauncherExtrasNonNull() 361 final Bundle receivedExtras = mLauncherApps.getSuspendedPackageLauncherExtras( in testGetLauncherExtrasNonNull() 370 final Bundle extrasWhenNoneGiven = mLauncherApps.getSuspendedPackageLauncherExtras( in testGetLauncherExtrasNull() 377 final Bundle extrasForInvalidPackage = mLauncherApps.getSuspendedPackageLauncherExtras( in testGetLauncherExtrasInvalidPackage() 419 mLauncherApps.registerCallback(mTestCallback, mReceiverHandler); in testOnPackagesSuspendedNewAndOld() 453 mLauncherApps.registerCallback(mTestCallback, mReceiverHandler); in testOnPackagesSuspendedOld() 601 mLauncherApps.unregisterCallback(mTestCallback); in tearDown()
|
D | ShortcutManagerTest3.java | 300 mLauncherApps.pinShortcuts(CALLING_PACKAGE, list("s2", "s4", "x2"), HANDLE_USER_0); in testUpdateShortcuts_noManifestShortcuts() 409 mLauncherApps.pinShortcuts( in testDeleteDynamicShortcuts_noManifestShortcuts() 484 mLauncherApps.pinShortcuts(CALLING_PACKAGE, list("s2", "s4", "x2"), HANDLE_USER_0); in testDisableShortcuts_noManifestShortcuts()
|
D | ShortcutManagerTest9.java | 129 final PinItemRequest request = mLauncherApps.getPinItemRequest(intent.getValue()); in checkRequestPinAppWidget()
|
D | ShortcutManagerTest7.java | 299 mLauncherApps.pinShortcuts(CALLING_PACKAGE_1, list("ms2", "s2"), HANDLE_USER_10); in testClearShortcuts()
|
D | ShortcutManagerTest2.java | 1281 mLauncherApps.pinShortcuts(CALLING_PACKAGE_1, list("id", "id2"), HANDLE_USER_0); 1348 mLauncherApps.pinShortcuts(CALLING_PACKAGE_1, list("id", "id2"), HANDLE_USER_0); 1418 mLauncherApps.pinShortcuts(CALLING_PACKAGE_1, list("id", "id2"), HANDLE_USER_0);
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ShortcutHelperTest.java | 65 LauncherApps mLauncherApps; field in ShortcutHelperTest 88 mLauncherApps, mShortcutListener, mShortcutServiceInternal); in setUp() 112 verify(mLauncherApps, times(1)).registerCallback( in addShortcutBubbleAndVerifyListener() 132 verify(mLauncherApps, times(1)).unregisterCallback(any()); in testBubbleRemoved_listenerRemoved() 146 verify(mLauncherApps, times(1)).unregisterCallback(any()); in testBubbleNoLongerHasBubbleMetadata_listenerRemoved() 160 verify(mLauncherApps, times(1)).unregisterCallback(any()); in testBubbleNoLongerHasShortcutId_listenerRemoved() 196 verify(mLauncherApps, times(1)).unregisterCallback(any()); in testNotifNoLongerHasShortcut_listenerRemoved() 207 verify(mLauncherApps, times(1)).unregisterCallback(any()); in testOnShortcutsChanged_listenerRemoved() 215 when(mLauncherApps.getShortcuts(any(), any())).thenReturn(shortcutInfos); in testListenerNotifiedOnShortcutRemoved() 223 when(mLauncherApps.getShortcuts(any(), any())).thenReturn(null); in testGetValidShortcutInfo_noMatchingShortcut() [all …]
|
D | NotificationManagerServiceTest.java | 237 private LauncherApps mLauncherApps; field in NotificationManagerServiceTest 480 mShortcutHelper.setLauncherApps(mLauncherApps); in setUp() 492 when(mLauncherApps.getShortcuts(any(), any())).thenReturn(shortcutInfos); in setUp() 6220 verify(mLauncherApps, times(1)).registerCallback(launcherAppsCallback.capture(), any()); in testNotificationBubbles_flagRemoved_whenShortcutRemoved() 6232 when(mLauncherApps.getShortcuts(any(), any())).thenReturn(null); in testNotificationBubbles_flagRemoved_whenShortcutRemoved() 6240 verify(mLauncherApps, times(1)).unregisterCallback(launcherAppsCallback.getValue()); in testNotificationBubbles_flagRemoved_whenShortcutRemoved() 6281 when(mLauncherApps.getShortcuts(any(), any())).thenReturn(shortcutInfos); in testNotificationBubbles_shortcut_stopListeningWhenNotifRemoved() 6293 verify(mLauncherApps, times(1)).registerCallback(launcherAppsCallback.capture(), any()); in testNotificationBubbles_shortcut_stopListeningWhenNotifRemoved() 6312 verify(mLauncherApps, times(1)).unregisterCallback(launcherAppsCallback.getValue()); in testNotificationBubbles_shortcut_stopListeningWhenNotifRemoved() 6635 when(mLauncherApps.getShortcuts(any(), any())).thenReturn(Arrays.asList(si)); in testGetConversationsForPackage_hasShortcut() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/notification/ |
D | ConversationIconFactory.java | 70 final LauncherApps mLauncherApps; field in ConversationIconFactory 79 mLauncherApps = la; in ConversationIconFactory() 90 return mLauncherApps.getShortcutIconDrawable(shortcutInfo, mFillResIconDpi); in getBaseIconDrawable()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ |
D | NotificationGutsManager.java | 121 private final LauncherApps mLauncherApps; field in NotificationGutsManager 150 mLauncherApps = launcherApps; in NotificationGutsManager() 475 mLauncherApps, pmUser, IconDrawableFactory.newInstance(mContext, false), in initializeConversationNotificationInfo()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
D | NotificationGutsManagerTest.java | 127 @Mock private LauncherApps mLauncherApps; field in NotificationGutsManagerTest 153 mINotificationManager, mLauncherApps, mShortcutManager, in setUp()
|
D | NotificationConversationInfoTest.java | 142 private LauncherApps mLauncherApps; field in NotificationConversationInfoTest 199 when(mLauncherApps.getShortcuts(any(), any())).thenReturn(shortcuts); in setUp()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/bubbles/ |
D | NewNotifPipelineBubbleControllerTest.java | 182 private LauncherApps mLauncherApps; field in NewNotifPipelineBubbleControllerTest 251 mLauncherApps); in setUp()
|
D | BubbleControllerTest.java | 187 private LauncherApps mLauncherApps; field in BubbleControllerTest 266 mLauncherApps); in setUp()
|