Home
last modified time | relevance | path

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

12

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest12.java85 List<ShortcutInfo> shortcuts = getAllPersistedShortcuts(); in testSetDynamicShortcuts_PersistsShortcutsToDisk() local
86 assertNotNull(shortcuts); in testSetDynamicShortcuts_PersistsShortcutsToDisk()
87 assertEquals(3, shortcuts.size()); in testSetDynamicShortcuts_PersistsShortcutsToDisk()
89 shortcuts.stream().map(ShortcutInfo::getId).collect(Collectors.toSet()); in testSetDynamicShortcuts_PersistsShortcutsToDisk()
96 shortcuts = getAllPersistedShortcuts(); in testSetDynamicShortcuts_PersistsShortcutsToDisk()
97 assertNotNull(shortcuts); in testSetDynamicShortcuts_PersistsShortcutsToDisk()
98 assertTrue(shortcuts.isEmpty()); in testSetDynamicShortcuts_PersistsShortcutsToDisk()
113 final List<ShortcutInfo> shortcuts = getAllPersistedShortcuts(); in testAddDynamicShortcuts_PersistsShortcutsToDisk() local
114 assertNotNull(shortcuts); in testAddDynamicShortcuts_PersistsShortcutsToDisk()
115 assertEquals(5, shortcuts.size()); in testAddDynamicShortcuts_PersistsShortcutsToDisk()
[all …]
DShortcutManagerTest11.java70 ArgumentCaptor<List> shortcuts = ArgumentCaptor.forClass(List.class); in testShortcutChangeCallback_setDynamicShortcuts() local
72 eq(CALLING_PACKAGE_1), shortcuts.capture(), eq(HANDLE_USER_0)); in testShortcutChangeCallback_setDynamicShortcuts()
75 assertWith(shortcuts.getValue()) in testShortcutChangeCallback_setDynamicShortcuts()
163 ArgumentCaptor<List> shortcuts = ArgumentCaptor.forClass(List.class); in testShortcutChangeCallback_pinShortcuts() local
165 eq(CALLING_PACKAGE_1), shortcuts.capture(), eq(HANDLE_USER_0)); in testShortcutChangeCallback_pinShortcuts()
168 assertWith(shortcuts.getValue()) in testShortcutChangeCallback_pinShortcuts()
231 ArgumentCaptor<List> shortcuts = ArgumentCaptor.forClass(List.class); in testShortcutChangeCallback_cacheShortcuts() local
233 eq(CALLING_PACKAGE_1), shortcuts.capture(), eq(HANDLE_USER_0)); in testShortcutChangeCallback_cacheShortcuts()
236 assertWith(shortcuts.getValue()) in testShortcutChangeCallback_cacheShortcuts()
264 ArgumentCaptor<List> shortcuts = ArgumentCaptor.forClass(List.class); in testShortcutChangeCallback_cacheShortcuts_alreadyCached() local
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DShortcutHelperTest.java243 ArrayList<ShortcutInfo> shortcuts = new ArrayList<>(); in testGetValidShortcutInfo_nullShortcut() local
244 shortcuts.add(null); in testGetValidShortcutInfo_nullShortcut()
245 when(mLauncherApps.getShortcuts(any(), any())).thenReturn(shortcuts); in testGetValidShortcutInfo_nullShortcut()
260 ArrayList<ShortcutInfo> shortcuts = new ArrayList<>(); in testGetValidShortcutInfo_notLongLived() local
261 shortcuts.add(si); in testGetValidShortcutInfo_notLongLived()
262 when(mLauncherApps.getShortcuts(any(), any())).thenReturn(shortcuts); in testGetValidShortcutInfo_notLongLived()
278 ArrayList<ShortcutInfo> shortcuts = new ArrayList<>(); in testGetValidShortcutInfo_notSharingShortcut() local
279 shortcuts.add(si); in testGetValidShortcutInfo_notSharingShortcut()
280 when(mLauncherApps.getShortcuts(any(), any())).thenReturn(shortcuts); in testGetValidShortcutInfo_notSharingShortcut()
295 ArrayList<ShortcutInfo> shortcuts = new ArrayList<>(); in testGetValidShortcutInfo_notEnabled() local
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
DMultiInstanceHelper.kt116 val shortcuts = launcherApps.getShortcuts(query, user) in getShortcutComponent() constant
117 val info = if (shortcuts != null && shortcuts.size > 0) shortcuts[0] else null in getShortcutComponent()
/frameworks/base/services/core/java/com/android/server/notification/
DShortcutHelper.java104 @NonNull List<ShortcutInfo> shortcuts, @NonNull UserHandle user) {
116 for (int i = 0; i < shortcuts.size(); i++) {
117 if (shortcuts.get(i).getId().equals(shortcutId)) {
207 List<ShortcutInfo> shortcuts = mLauncherAppsService.getShortcuts(query, user); in getValidShortcutInfo() local
208 ShortcutInfo info = shortcuts != null && shortcuts.size() > 0 in getValidShortcutInfo()
209 ? shortcuts.get(0) in getValidShortcutInfo()
DNotificationManagerInternal.java44 void onConversationRemoved(String pkg, int uid, Set<String> shortcuts); in onConversationRemoved() argument
/frameworks/base/core/java/android/content/pm/
DIShortcutChangeCallback.aidl32 void onShortcutsAddedOrUpdated(String packageName, in List<ShortcutInfo> shortcuts, in onShortcutsAddedOrUpdated() argument
35 void onShortcutsRemoved(String packageName, in List<ShortcutInfo> shortcuts, in onShortcutsRemoved() argument
DLauncherApps.java340 @NonNull List<ShortcutInfo> shortcuts, @NonNull UserHandle user) { in onShortcutsChanged() argument
595 @NonNull List<ShortcutInfo> shortcuts, @NonNull UserHandle user) {} in onShortcutsAddedOrUpdated() argument
614 @NonNull List<ShortcutInfo> shortcuts, @NonNull UserHandle user) {} in onShortcutsRemoved() argument
632 @NonNull List<ShortcutInfo> shortcuts, @NonNull UserHandle user) { in onShortcutsAddedOrUpdated() argument
643 callback, packageName, shortcuts, user).recycleOnUse()); in onShortcutsAddedOrUpdated()
648 @NonNull List<ShortcutInfo> shortcuts, @NonNull UserHandle user) { in onShortcutsRemoved() argument
659 callback, packageName, shortcuts, user).recycleOnUse()); in onShortcutsRemoved()
1405 private List<ShortcutInfo> maybeUpdateDisabledMessage(List<ShortcutInfo> shortcuts) { in maybeUpdateDisabledMessage() argument
1406 if (shortcuts == null) { in maybeUpdateDisabledMessage()
1409 for (int i = shortcuts.size() - 1; i >= 0; i--) { in maybeUpdateDisabledMessage()
[all …]
DIOnAppsChangedListener.aidl35 void onShortcutChanged(in UserHandle user, String packageName, in ParceledListSlice shortcuts); in onShortcutChanged() argument
DIShortcutService.aidl39 boolean updateShortcuts(String packageName, in ParceledListSlice shortcuts, int userId); in updateShortcuts() argument
DAppSearchShortcutInfo.java436 @NonNull final Collection<ShortcutInfo> shortcuts) { in toGenericDocuments()
437 final List<GenericDocument> docs = new ArrayList<>(shortcuts.size()); in toGenericDocuments()
438 for (ShortcutInfo si : shortcuts) { in toGenericDocuments()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/shortcut/ui/composable/
DShortcutHelperTemporaryData.kt41 val shortcuts: List<Shortcut>, constant in com.android.systemui.keyboard.shortcut.ui.composable.SubCategory
69 shortcuts.add(ShortcutBuilder(label).apply(block).build()) in shortcut()
94 val shortcuts = mutableListOf<Shortcut>() in build() constant in com.android.systemui.keyboard.shortcut.ui.composable.SubCategoryBuilder
96 fun build() = SubCategory(label, shortcuts) in build()
/frameworks/base/services/core/java/com/android/server/pm/
DShortcutPackage.java314 public void ensureImmutableShortcutsNotIncluded(@NonNull List<ShortcutInfo> shortcuts, in ensureImmutableShortcutsNotIncluded() argument
316 for (int i = shortcuts.size() - 1; i >= 0; i--) { in ensureImmutableShortcutsNotIncluded()
317 ensureNotImmutable(shortcuts.get(i).getId(), ignoreInvisible); in ensureImmutableShortcutsNotIncluded()
321 public void ensureNoBitmapIconIfShortcutIsLongLived(@NonNull List<ShortcutInfo> shortcuts) { in ensureNoBitmapIconIfShortcutIsLongLived() argument
322 for (int i = shortcuts.size() - 1; i >= 0; i--) { in ensureNoBitmapIconIfShortcutIsLongLived()
323 final ShortcutInfo si = shortcuts.get(i); in ensureNoBitmapIconIfShortcutIsLongLived()
343 public void ensureAllShortcutsVisibleToLauncher(@NonNull List<ShortcutInfo> shortcuts) { in ensureAllShortcutsVisibleToLauncher() argument
344 for (ShortcutInfo shortcut : shortcuts) { in ensureAllShortcutsVisibleToLauncher()
939 final ArrayList<ShortcutInfo> shortcuts = new ArrayList<>(); in getMatchingShareTargets() local
942 findAll(shortcuts, ShortcutInfo::isNonManifestVisible, in getMatchingShareTargets()
[all …]
DShortcutService.java1982 private void fillInDefaultActivity(List<ShortcutInfo> shortcuts) {
1984 for (int i = shortcuts.size() - 1; i >= 0; i--) {
1985 final ShortcutInfo si = shortcuts.get(i);
1998 private void assignImplicitRanks(List<ShortcutInfo> shortcuts) {
1999 for (int i = shortcuts.size() - 1; i >= 0; i--) {
2000 shortcuts.get(i).setImplicitRank(i);
2004 private List<ShortcutInfo> setReturnedByServer(List<ShortcutInfo> shortcuts) {
2005 for (int i = shortcuts.size() - 1; i >= 0; i--) {
2006 shortcuts.get(i).setReturnedByServer();
2008 return shortcuts;
[all …]
DShortcutUser.java407 final ShortcutPackage shortcuts = ShortcutPackage.loadFromXml( in loadFromXml()
411 ret.mPackages.put(shortcuts.getPackageName(), shortcuts); in loadFromXml()
DLauncherAppsService.java2312 public void onShortcutsAddedOrUpdated(String packageName, List<ShortcutInfo> shortcuts, in onShortcutsAddedOrUpdated() argument
2314 onShortcutEvent(packageName, shortcuts, user, false); in onShortcutsAddedOrUpdated()
2318 public void onShortcutsRemoved(String packageName, List<ShortcutInfo> shortcuts, in onShortcutsRemoved() argument
2320 onShortcutEvent(packageName, shortcuts, user, true); in onShortcutsRemoved()
2324 List<ShortcutInfo> shortcuts, UserHandle user, boolean shortcutsRemoved) { in onShortcutEvent() argument
2340 List<ShortcutInfo> matchedList = filterShortcutsByQuery(packageName, shortcuts, in onShortcutEvent()
2359 List<ShortcutInfo> shortcuts, ShortcutQueryWrapper query, in filterShortcutsByQuery() argument
2383 for (int i = 0; i < shortcuts.size(); i++) { in filterShortcutsByQuery()
2384 final ShortcutInfo si = shortcuts.get(i); in filterShortcutsByQuery()
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DShortcutPicker.java68 List<Shortcut> shortcuts = new ShortcutParser(getContext(), in onCreatePreferences()
72 if (shortcuts.size() != 0) { in onCreatePreferences()
77 shortcuts.forEach(shortcut -> { in onCreatePreferences()
/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DChooserActivityTest.java1373 List<ShareShortcutInfo> shortcuts = createShortcuts(activity); in testConvertToChooserTarget_predictionService() local
1378 List<ChooserTarget> chooserTargets = activity.convertToChooserTarget(shortcuts, shortcuts, in testConvertToChooserTarget_predictionService()
1380 assertCorrectShortcutToChooserTargetConversion(shortcuts, chooserTargets, in testConvertToChooserTarget_predictionService()
1384 subset.add(shortcuts.get(1)); in testConvertToChooserTarget_predictionService()
1385 subset.add(shortcuts.get(2)); in testConvertToChooserTarget_predictionService()
1386 subset.add(shortcuts.get(3)); in testConvertToChooserTarget_predictionService()
1391 chooserTargets = activity.convertToChooserTarget(subset, shortcuts, null, in testConvertToChooserTarget_predictionService()
1393 assertCorrectShortcutToChooserTargetConversion(shortcuts, chooserTargets, in testConvertToChooserTarget_predictionService()
1416 List<ShareShortcutInfo> shortcuts = createShortcuts(activity); in testConvertToChooserTarget_shortcutManager() local
1421 List<ChooserTarget> chooserTargets = activity.convertToChooserTarget(shortcuts, shortcuts, in testConvertToChooserTarget_shortcutManager()
[all …]
/frameworks/base/services/people/java/com/android/server/people/data/
DDataManager.java220 List<ShortcutInfo> shortcuts = getShortcuts(packageName, userId, in getShortcut() local
222 if (shortcuts != null && !shortcuts.isEmpty()) { in getShortcut()
223 if (DEBUG) Log.d(TAG, "Found shortcut for " + shortcuts.get(0).getLabel()); in getShortcut()
224 return shortcuts.get(0); in getShortcut()
1105 @NonNull List<ShortcutInfo> shortcuts, @NonNull UserHandle user) { in onShortcutsAddedOrUpdated() argument
1109 for (ShortcutInfo shortcut : shortcuts) { in onShortcutsAddedOrUpdated()
1134 @NonNull List<ShortcutInfo> shortcuts, @NonNull UserHandle user) { in onShortcutsRemoved() argument
1137 for (ShortcutInfo shortcutInfo : shortcuts) { in onShortcutsRemoved()
/frameworks/base/services/accessibility/
Daccessibility.aconfig57 … "When a package is force stopped, remove the button shortcuts of any continuously-running shortcu…
/frameworks/proto_logging/stats/enums/input/
Denums.proto98 // Application launch shortcuts
111 // Launch application by package name defined by custom overlays for OEM specific shortcuts
/frameworks/base/packages/SystemUI/accessibility/accessibilitymenu/
DREADME.md23 A majority of the shortcuts correspond directly to an existing accessibility service global action
/frameworks/base/services/tests/shortcutmanagerutils/src/com/android/server/pm/shortcutmanagertest/
DShortcutManagerTestUtils.java782 public static List<ShortcutInfo> sortedByRank(List<ShortcutInfo> shortcuts) { in sortedByRank() argument
783 final ArrayList<ShortcutInfo> ret = new ArrayList<>(shortcuts); in sortedByRank()
1191 final ArgumentCaptor<List> shortcuts = ArgumentCaptor.forClass(List.class); in assertCallbackCalledForPackageAndUser() local
1194 shortcuts.capture(), in assertCallbackCalledForPackageAndUser()
1196 return new ShortcutListAsserter(shortcuts.getValue()); in assertCallbackCalledForPackageAndUser()
/frameworks/proto_logging/stats/atoms/desktopmode/
Ddesktopmode_extensions_atoms.proto50 …// This covers intent based starts from app-shortcut, taskbar, keyboard shortcuts where we don't u…
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DKeyboardShortcutListSearch.java509 List<ShortcutMultiMappingInfo> shortcuts = shortcutMap.get(label); in reMapToKeyboardShortcutMultiMappingGroup() local
511 for (ShortcutMultiMappingInfo shortcut : shortcuts) { in reMapToKeyboardShortcutMultiMappingGroup()
523 shortcuts.add(new ShortcutMultiMappingInfo(info)); in reMapToKeyboardShortcutMultiMappingGroup()
526 List<ShortcutMultiMappingInfo> shortcuts = new ArrayList<>(); in reMapToKeyboardShortcutMultiMappingGroup() local
527 shortcuts.add(new ShortcutMultiMappingInfo(info)); in reMapToKeyboardShortcutMultiMappingGroup()
528 shortcutMap.put(label, shortcuts); in reMapToKeyboardShortcutMultiMappingGroup()

12