Home
last modified time | relevance | path

Searched refs:shortcutInfos (Results 1 – 9 of 9) sorted by relevance

/aosp12/packages/apps/Dialer/java/com/android/dialer/shortcuts/
H A DDynamicShortcuts.java230 @NonNull List<ShortcutInfo> shortcutInfos, @NonNull String shortcutId) { in containsShortcut()
231 for (ShortcutInfo oldInfo : shortcutInfos) { in containsShortcut()
/aosp12/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
H A DShortcutHelperTest.java225 List<ShortcutInfo> shortcutInfos = new ArrayList<>(); in testListenerNotifiedOnShortcutRemoved() local
226 when(mLauncherApps.getShortcuts(any(), any())).thenReturn(shortcutInfos); in testListenerNotifiedOnShortcutRemoved()
228 callback.onShortcutsChanged(PKG, shortcutInfos, mock(UserHandle.class)); in testListenerNotifiedOnShortcutRemoved()
H A DNotificationManagerServiceTest.java562 List<ShortcutInfo> shortcutInfos = new ArrayList<>(); in setUp() local
569 shortcutInfos.add(info); in setUp()
570 when(mLauncherApps.getShortcuts(any(), any())).thenReturn(shortcutInfos); in setUp()
7341 List<ShortcutInfo> shortcutInfos = new ArrayList<>(); in testNotificationBubbles_shortcut_stopListeningWhenNotifRemoved() local
7348 shortcutInfos.add(info); in testNotificationBubbles_shortcut_stopListeningWhenNotifRemoved()
7349 when(mLauncherApps.getShortcuts(any(), any())).thenReturn(shortcutInfos); in testNotificationBubbles_shortcut_stopListeningWhenNotifRemoved()
/aosp12/packages/apps/Settings/src/com/android/settings/accessibility/
H A DAccessibilitySettings.java431 private boolean containsTargetNameInList(List<AccessibilityShortcutInfo> shortcutInfos, in containsTargetNameInList() argument
437 for (int i = 0, count = shortcutInfos.size(); i < count; ++i) { in containsTargetNameInList()
438 final ActivityInfo activityInfo = shortcutInfos.get(i).getActivityInfo(); in containsTargetNameInList()
/aosp12/frameworks/base/core/java/android/view/accessibility/
H A DAccessibilityManager.java1595 final List<AccessibilityShortcutInfo> shortcutInfos = new ArrayList<>(); in getInstalledAccessibilityShortcutListAsUser() local
1611 shortcutInfos.add(shortcutInfo); in getInstalledAccessibilityShortcutListAsUser()
1614 return shortcutInfos; in getInstalledAccessibilityShortcutListAsUser()
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/
H A DLauncher.java2918 ArrayList<KeyboardShortcutInfo> shortcutInfos = new ArrayList<>(); in onProvideKeyboardShortcuts() local
2920 shortcutInfos.add(new KeyboardShortcutInfo(getString(R.string.all_apps_button_label), in onProvideKeyboardShortcuts()
2922 shortcutInfos.add(new KeyboardShortcutInfo(getString(R.string.widget_button_text), in onProvideKeyboardShortcuts()
2926 shortcutInfos.add(new KeyboardShortcutInfo( in onProvideKeyboardShortcuts()
2928 if (!shortcutInfos.isEmpty()) { in onProvideKeyboardShortcuts()
2929 data.add(new KeyboardShortcutGroup(getString(R.string.home_screen), shortcutInfos)); in onProvideKeyboardShortcuts()
/aosp12/frameworks/base/core/tests/coretests/src/com/android/internal/app/
H A DChooserActivityTest.java1293 List<ShareShortcutInfo> shortcutInfos = createShortcuts(activity); in testShortcutTargetWithApplyAppLimits() local
1295 shortcutInfos.get(0).getShortcutInfo()); in testShortcutTargetWithApplyAppLimits()
1297 shortcutInfos.get(1).getShortcutInfo()); in testShortcutTargetWithApplyAppLimits()
1354 List<ShareShortcutInfo> shortcutInfos = createShortcuts(activity); in testShortcutTargetWithoutApplyAppLimits() local
1356 shortcutInfos.get(0).getShortcutInfo()); in testShortcutTargetWithoutApplyAppLimits()
1358 shortcutInfos.get(1).getShortcutInfo()); in testShortcutTargetWithoutApplyAppLimits()
/aosp12/frameworks/base/services/core/java/com/android/server/pm/
H A DShortcutService.java1826 private List<ShortcutInfo> removeNonKeyFields(@Nullable List<ShortcutInfo> shortcutInfos) { in removeNonKeyFields() argument
1827 if (CollectionUtils.isEmpty(shortcutInfos)) { in removeNonKeyFields()
1828 return shortcutInfos; in removeNonKeyFields()
1831 final int size = shortcutInfos.size(); in removeNonKeyFields()
1835 final ShortcutInfo si = shortcutInfos.get(i); in removeNonKeyFields()
/aosp12/frameworks/base/services/accessibility/java/com/android/server/accessibility/
H A DAccessibilityManagerService.java1632 final List<AccessibilityShortcutInfo> shortcutInfos = AccessibilityManager in readInstalledAccessibilityShortcutLocked() local
1635 if (!shortcutInfos.equals(userState.mInstalledShortcuts)) { in readInstalledAccessibilityShortcutLocked()
1637 userState.mInstalledShortcuts.addAll(shortcutInfos); in readInstalledAccessibilityShortcutLocked()