Home
last modified time | relevance | path

Searched refs:mLauncherApps (Results 1 – 25 of 25) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/app/people/
DPeopleSpaceTileTest.java68 private LauncherApps mLauncherApps; field in PeopleSpaceTileTest
74 when(mLauncherApps.getShortcutIconDrawable(any(), eq(0))).thenReturn(mDrawable); in setUp()
80 new ShortcutInfo.Builder(mContext, "123").build(), mLauncherApps).build(); in testId()
84 .Builder(new ShortcutInfo.Builder(mContext, "123").build(), mLauncherApps) in testId()
96 new ShortcutInfo.Builder(mContext, "123").build(), mLauncherApps).build(); in testUserName()
100 .Builder(new ShortcutInfo.Builder(mContext, "123").build(), mLauncherApps) in testUserName()
112 new ShortcutInfo.Builder(mContext, "123").build(), mLauncherApps).setUserIcon( in testUserIcon()
124 new ShortcutInfo.Builder(mContext, "123").build(), mLauncherApps).setContactUri( in testContactUri()
133 .Builder(new ShortcutInfo.Builder(mContext, "123").build(), mLauncherApps) in testUserHandle()
143 new ShortcutInfo.Builder(mContext, "123").build(), mLauncherApps).build(); in testPackageName()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest11.java60 mLauncherApps.registerShortcutChangeCallback(callback, QUERY_MATCH_ALL, in testShortcutChangeCallback_setDynamicShortcuts()
87 mLauncherApps.registerShortcutChangeCallback(callback, QUERY_MATCH_ALL, in testShortcutChangeCallback_setDynamicShortcuts_replaceSameId()
121 mLauncherApps.pinShortcuts(CALLING_PACKAGE_1, list("s1"), HANDLE_USER_0); in testShortcutChangeCallback_setDynamicShortcuts_pinnedAndCached()
123 mLauncherApps.cacheShortcuts(CALLING_PACKAGE_1, list("s2"), HANDLE_USER_0, in testShortcutChangeCallback_setDynamicShortcuts_pinnedAndCached()
129 mLauncherApps.registerShortcutChangeCallback(callback, QUERY_MATCH_ALL, in testShortcutChangeCallback_setDynamicShortcuts_pinnedAndCached()
156 mLauncherApps.registerShortcutChangeCallback(callback, QUERY_MATCH_ALL, in testShortcutChangeCallback_pinShortcuts()
158 mLauncherApps.pinShortcuts(CALLING_PACKAGE_1, list("s1"), HANDLE_USER_0); in testShortcutChangeCallback_pinShortcuts()
179 mLauncherApps.pinShortcuts(CALLING_PACKAGE_1, list("s1", "s2"), HANDLE_USER_0); in testShortcutChangeCallback_pinShortcuts_unpinOthers()
188 mLauncherApps.registerShortcutChangeCallback(callback, QUERY_MATCH_ALL, in testShortcutChangeCallback_pinShortcuts_unpinOthers()
190 mLauncherApps.pinShortcuts(CALLING_PACKAGE_1, list("s2", "s3"), HANDLE_USER_0); in testShortcutChangeCallback_pinShortcuts_unpinOthers()
[all …]
DShortcutManagerTest1.java529 mLauncherApps.cacheShortcuts(CALLING_PACKAGE_1, list("s8"), HANDLE_USER_0, in testPushDynamicShortcut()
949 mLauncherApps.getShortcutIconResId( in testIcons()
954 mLauncherApps.getShortcutIconResId( in testIcons()
959 mLauncherApps.getShortcutIconResId( in testIcons()
963 mLauncherApps.getShortcutIconResId( in testIcons()
967 mLauncherApps.getShortcutIconResId( in testIcons()
970 bmp = pfdToBitmap(mLauncherApps.getShortcutIconFd( in testIcons()
974 bmp = pfdToBitmap(mLauncherApps.getShortcutIconFd( in testIcons()
978 bmp = pfdToBitmap(mLauncherApps.getShortcutIconFd( in testIcons()
984 mLauncherApps.getShortcutIconResId( in testIcons()
[all …]
DShortcutManagerTest8.java288 final PinItemRequest request = mLauncherApps.getPinItemRequest(intent.getValue()); in checkRequestPinShortcut()
301 assertForLauncherCallbackNoThrow(mLauncherApps, in checkRequestPinShortcut()
365 final PinItemRequest request = mLauncherApps.getPinItemRequest(intent.getValue()); in testRequestPinShortcut_explicitTargetActivity()
376 assertForLauncherCallbackNoThrow(mLauncherApps, in testRequestPinShortcut_explicitTargetActivity()
447 final PinItemRequest request = mLauncherApps.getPinItemRequest(intent.getValue()); in testRequestPinShortcut_noTargetActivity_noMainActivity()
458 assertForLauncherCallbackNoThrow(mLauncherApps, in testRequestPinShortcut_noTargetActivity_noMainActivity()
509 final PinItemRequest request = mLauncherApps.getPinItemRequest(intent.getValue()); in testRequestPinShortcut_dynamicExists()
564 final PinItemRequest request = mLauncherApps.getPinItemRequest(intent.getValue()); in testRequestPinShortcut_manifestExists()
608 mLauncherApps.pinShortcuts(CALLING_PACKAGE_1, list("s1"), HANDLE_USER_P0); in testRequestPinShortcut_dynamicExists_alreadyPinned()
645 final PinItemRequest request = mLauncherApps.getPinItemRequest(intent.getValue()); in testRequestPinShortcut_dynamicExists_alreadyPinned()
[all …]
DSuspendPackagesTest.java92 private LauncherApps mLauncherApps; field in SuspendPackagesTest
100 mLauncherApps = (LauncherApps) mContext.getSystemService(Context.LAUNCHER_APPS_SERVICE); in setUp()
151 final Bundle extrasWhenUnsuspended = mLauncherApps.getSuspendedPackageLauncherExtras( in testGetLauncherExtrasNonNull()
156 final Bundle receivedExtras = mLauncherApps.getSuspendedPackageLauncherExtras( in testGetLauncherExtrasNonNull()
165 final Bundle extrasWhenNoneGiven = mLauncherApps.getSuspendedPackageLauncherExtras( in testGetLauncherExtrasNull()
172 final Bundle extrasForInvalidPackage = mLauncherApps.getSuspendedPackageLauncherExtras( in testGetLauncherExtrasInvalidPackage()
215 mLauncherApps.registerCallback(mTestCallback, mReceiverHandler); in testOnPackagesSuspendedNewAndOld()
248 mLauncherApps.registerCallback(mTestCallback, mReceiverHandler); in testOnPackagesSuspendedOld()
298 mLauncherApps.unregisterCallback(mTestCallback); in tearDown()
DShortcutManagerTest10.java52 PinItemRequest request = mLauncherApps.getPinItemRequest(resultIntent); in verifyAndGetCreateShortcutResult()
81 mLauncherApps.pinShortcuts(CALLING_PACKAGE_1, list("s1"), HANDLE_USER_P0); in testCreateShortcutResult_alreadyPinned()
104 mLauncherApps.pinShortcuts(CALLING_PACKAGE_1, list("s1"), HANDLE_USER_P0); in testCreateShortcutResult_alreadyPinnedByAnother()
169 assertNotNull(mLauncherApps.getShortcutConfigActivityIntent(info)) in testStartConfigActivity_defaultLauncher()
178 mLauncherApps.getShortcutConfigActivityIntent(info)) in testStartConfigActivity_nonDefaultLauncher()
DBaseShortcutManagerTest.java678 protected LauncherAppsTestable mLauncherApps; // Current one field in BaseShortcutManagerTest
1129 mLauncherApps = null; in initService()
1152 mLauncherApps = null; in shutdownServices()
1380 mLauncherApps = mLauncherAppsMap.get(key); in setCaller()
1883 mLauncherApps.startShortcut(packageName, shortcutId, null, null, in launchShortcutAndGetIntents()
1900 mLauncherApps.startShortcut( in launchShortcutAndGetIntents_withShortcutInfo()
1923 mLauncherApps.startShortcut(packageName, shortcutId, null, null,
1941 mLauncherApps.startShortcut(packageName, shortcutId, null, null,
2084 ret[0] = mLauncherApps.getShortcuts(q, UserHandle.of(userId));
2096 return mLauncherApps.getShortcuts(q, UserHandle.of(targetUserId));
[all …]
DShortcutManagerTest7.java296 mLauncherApps.pinShortcuts(CALLING_PACKAGE_1, list("ms2", "s2"), HANDLE_USER_10); in testClearShortcuts()
356 mLauncherApps.cacheShortcuts(CALLING_PACKAGE_1, list("s1"), HANDLE_USER_10, in testGetShortcuts()
358 mLauncherApps.pinShortcuts(CALLING_PACKAGE_1, list("ms2", "s2"), HANDLE_USER_10); in testGetShortcuts()
DShortcutManagerTest3.java303 mLauncherApps.pinShortcuts(CALLING_PACKAGE, list("s2", "s4", "x2"), HANDLE_USER_0); in testUpdateShortcuts_noManifestShortcuts()
412 mLauncherApps.pinShortcuts( in testDeleteDynamicShortcuts_noManifestShortcuts()
487 mLauncherApps.pinShortcuts(CALLING_PACKAGE, list("s2", "s4", "x2"), HANDLE_USER_0); in testDisableShortcuts_noManifestShortcuts()
DShortcutManagerTest9.java132 final PinItemRequest request = mLauncherApps.getPinItemRequest(intent.getValue()); in checkRequestPinAppWidget()
DShortcutManagerTest12.java68 final PendingIntent intent = mLauncherApps.getShortcutIntent( in testGetShortcutIntents_ReturnsMutablePendingIntents()
DShortcutManagerTest2.java1336 mLauncherApps.pinShortcuts(CALLING_PACKAGE_1, list("id", "id2"), HANDLE_USER_0);
1403 mLauncherApps.pinShortcuts(CALLING_PACKAGE_1, list("id", "id2"), HANDLE_USER_0);
1473 mLauncherApps.pinShortcuts(CALLING_PACKAGE_1, list("id", "id2"), HANDLE_USER_0);
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DShortcutHelperTest.java71 LauncherApps mLauncherApps; field in ShortcutHelperTest
98 mLauncherApps, mShortcutListener, mShortcutServiceInternal, mUserManager); in setUp()
123 verify(mLauncherApps, times(1)).registerCallback( in addShortcutBubbleAndVerifyListener()
143 verify(mLauncherApps, times(1)).unregisterCallback(any()); in testBubbleRemoved_listenerRemoved()
157 verify(mLauncherApps, times(1)).unregisterCallback(any()); in testBubbleNoLongerHasBubbleMetadata_listenerRemoved()
171 verify(mLauncherApps, times(1)).unregisterCallback(any()); in testBubbleNoLongerHasShortcutId_listenerRemoved()
207 verify(mLauncherApps, times(1)).unregisterCallback(any()); in testNotifNoLongerHasShortcut_listenerRemoved()
218 verify(mLauncherApps, times(1)).unregisterCallback(any()); in testOnShortcutsChanged_listenerRemoved()
226 when(mLauncherApps.getShortcuts(any(), any())).thenReturn(shortcutInfos); in testListenerNotifiedOnShortcutRemoved()
234 when(mLauncherApps.getShortcuts(any(), any())).thenReturn(null); in testGetValidShortcutInfo_noMatchingShortcut()
[all …]
DNotificationManagerServiceTest.java419 private LauncherApps mLauncherApps; field in NotificationManagerServiceTest
597 mContext.addMockSystemService(Context.LAUNCHER_APPS_SERVICE, mLauncherApps); in setUp()
783 mShortcutHelper.setLauncherApps(mLauncherApps); in initNMS()
839 when(mLauncherApps.getShortcuts(any(), any())).thenReturn(shortcutInfos); in initNMS()
10793 verify(mLauncherApps, times(1)).registerCallback(launcherAppsCallback.capture(), any());
10805 when(mLauncherApps.getShortcuts(any(), any())).thenReturn(null);
10813 verify(mLauncherApps, times(1)).unregisterCallback(launcherAppsCallback.getValue());
10854 when(mLauncherApps.getShortcuts(any(), any())).thenReturn(shortcutInfos);
10866 verify(mLauncherApps, times(1)).registerCallback(launcherAppsCallback.capture(), any());
10885 verify(mLauncherApps, times(1)).unregisterCallback(launcherAppsCallback.getValue());
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/notification/
DConversationIconFactory.java70 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/people/widget/
DPeopleSpaceWidgetManager.java142 private LauncherApps mLauncherApps; field in PeopleSpaceWidgetManager
198 mLauncherApps = launcherApps; in PeopleSpaceWidgetManager()
279 mLauncherApps = launcherApps; in PeopleSpaceWidgetManager()
428 if (mIPeopleManager == null || mLauncherApps == null) { in getTileFromPersistentStorage()
443 mLauncherApps); in getTileFromPersistentStorage()
744 Icon icon = PeopleSpaceTile.convertDrawableToIcon(mLauncherApps.getShortcutIconDrawable( in updateStorageAndViewWithConversationData()
884 mLauncherApps.cacheShortcuts(tile.getPackageName(), in addNewWidget()
991 mLauncherApps.uncacheShortcuts(key.getPackageName(), in uncacheConversationShortcut()
1035 mLauncherApps, mUserManager, in getPriorityTiles()
1061 PeopleSpaceUtils.getSortedTiles(mIPeopleManager, mLauncherApps, mUserManager, in getRecentTiles()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
DPackageArchiverTest.java110 private LauncherApps mLauncherApps; field in PackageArchiverTest
180 when(mContext.getSystemService(LauncherApps.class)).thenReturn(mLauncherApps); in setUp()
183 when(mLauncherApps.getActivityList(eq(PACKAGE), eq(UserHandle.CURRENT))).thenReturn( in setUp()
317 when(mLauncherApps.getActivityList(eq(PACKAGE), eq(UserHandle.CURRENT))).thenReturn( in archiveApp_noMainActivities()
427 when(mLauncherApps.getActivityList(eq(PACKAGE), eq(UserHandle.CURRENT))).thenReturn( in isAppArchivable_noMainActivities()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/people/widget/
DPeopleSpaceWidgetManagerTest.java245 private LauncherApps mLauncherApps; field in PeopleSpaceWidgetManagerTest
278 mLauncherApps = mock(LauncherApps.class); in setUp()
280 mPeopleManager, mLauncherApps, mNotifCollection, mPackageManager, in setUp()
1016 verify(mLauncherApps, times(1)).cacheShortcuts( in testAddThenReconfigureWidgetsUpdatesStorageCacheAndListeners()
1027 verify(mLauncherApps).uncacheShortcuts(eq(TEST_PACKAGE_A), in testAddThenReconfigureWidgetsUpdatesStorageCacheAndListeners()
1039 verify(mLauncherApps, times(1)).cacheShortcuts( in testAddThenReconfigureWidgetsUpdatesStorageCacheAndListeners()
1067 verify(mLauncherApps, never()).uncacheShortcuts(eq(TEST_PACKAGE_A), in testDeleteAllWidgetsForConversationsUncachesShortcutAndRemovesListeners()
1085 verify(mLauncherApps, times(1)).uncacheShortcuts(eq(TEST_PACKAGE_A), in testDeleteAllWidgetsForConversationsUncachesShortcutAndRemovesListeners()
1115 verify(mLauncherApps, never()).cacheShortcuts(any(), any(), any(), anyInt()); in testOnAppWidgetOptionsChangedNoWidgetAdded()
1147 verify(mLauncherApps, times(1)).cacheShortcuts(eq(TEST_PACKAGE_A), in testOnAppWidgetOptionsChangedWidgetAdded()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DNotificationGutsManager.java125 private final LauncherApps mLauncherApps; field in NotificationGutsManager
171 mLauncherApps = launcherApps; in NotificationGutsManager()
504 mLauncherApps, pmUser, IconDrawableFactory.newInstance(mContext, false), in initializeConversationNotificationInfo()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DNotificationGutsManagerTest.java146 @Mock private LauncherApps mLauncherApps; field in NotificationGutsManagerTest
196 mLauncherApps, in setUp()
DNotificationConversationInfoTest.java144 private LauncherApps mLauncherApps; field in NotificationConversationInfoTest
197 when(mLauncherApps.getShortcuts(any(), any())).thenReturn(shortcuts); in setUp()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageArchiver.java165 private LauncherApps mLauncherApps; field in PackageArchiver
1271 if (mLauncherApps == null) { in getLauncherApps()
1272 mLauncherApps = mContext.getSystemService(LauncherApps.class); in getLauncherApps()
1274 return mLauncherApps; in getLauncherApps()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/splitscreen/
DSplitScreenController.java179 private final LauncherApps mLauncherApps; field in SplitScreenController
235 mLauncherApps = context.getSystemService(LauncherApps.class); in SplitScreenController()
590 getShortcutComponent(packageName, shortcutId, user, mLauncherApps))) { in startShortcut()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
DBubbleController.java188 private final LauncherApps mLauncherApps; field in BubbleController
312 mLauncherApps = launcherApps; in BubbleController()
414 mLauncherApps.registerCallback(new LauncherApps.Callback() { in onInit()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wmshell/
DBubblesTest.java310 private LauncherApps mLauncherApps; field in BubblesTest
497 mLauncherApps, in setUp()