Home
last modified time | relevance | path

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

1234

/packages/apps/Launcher3/src/com/android/launcher3/popup/
DPopupPopulator.java31 import com.android.launcher3.shortcuts.DeepShortcutManager;
32 import com.android.launcher3.shortcuts.DeepShortcutView;
80 List<ShortcutInfo> shortcuts, @Nullable String shortcutIdToRemoveFirst) { in sortAndFilterShortcuts() argument
83 Iterator<ShortcutInfo> shortcutIterator = shortcuts.iterator(); in sortAndFilterShortcuts()
92 Collections.sort(shortcuts, SHORTCUT_RANK_COMPARATOR); in sortAndFilterShortcuts()
93 if (shortcuts.size() <= MAX_SHORTCUTS) { in sortAndFilterShortcuts()
94 return shortcuts; in sortAndFilterShortcuts()
101 int size = shortcuts.size(); in sortAndFilterShortcuts()
103 ShortcutInfo shortcut = shortcuts.get(i); in sortAndFilterShortcuts()
143 List<ShortcutInfo> shortcuts = DeepShortcutManager.getInstance(launcher) in createUpdateRunnable() field in PopupPopulator
[all …]
DSystemShortcutFactory.java44 protected SystemShortcutFactory(SystemShortcut... shortcuts) { in SystemShortcutFactory() argument
45 mAllShortcuts = shortcuts; in SystemShortcutFactory()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/popup/
DPopupPopulatorTest.java82 List<ShortcutInfo> shortcuts, int expectedStatic, int expectedDynamic) { in filterShortcutsAndAssertNumStaticAndDynamic() argument
83 … filterShortcutsAndAssertNumStaticAndDynamic(shortcuts, expectedStatic, expectedDynamic, null); in filterShortcutsAndAssertNumStaticAndDynamic()
86 private void filterShortcutsAndAssertNumStaticAndDynamic(List<ShortcutInfo> shortcuts, in filterShortcutsAndAssertNumStaticAndDynamic() argument
88 Collections.shuffle(shortcuts); in filterShortcutsAndAssertNumStaticAndDynamic()
90 shortcuts, shortcutIdToRemove); in filterShortcutsAndAssertNumStaticAndDynamic()
107 private void assertIsSorted(List<ShortcutInfo> shortcuts) { in assertIsSorted() argument
111 for (ShortcutInfo shortcut : shortcuts) { in assertIsSorted()
128 List<ShortcutInfo> shortcuts = new ArrayList<>(); in createShortcutsList() local
130 shortcuts.add(createInfo(true, i)); in createShortcutsList()
133 shortcuts.add(createInfo(false, i)); in createShortcutsList()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/events/
DShortcutEventTracker.java35 private final Set<String> shortcuts = new ArraySet<>(5); field in ShortcutEventTracker
40 shortcuts.add(uidm.getShortcutId(R.string.category_alarm, R.string.action_create)); in ShortcutEventTracker()
41 shortcuts.add(uidm.getShortcutId(R.string.category_timer, R.string.action_create)); in ShortcutEventTracker()
42 shortcuts.add(uidm.getShortcutId(R.string.category_stopwatch, R.string.action_pause)); in ShortcutEventTracker()
43 shortcuts.add(uidm.getShortcutId(R.string.category_stopwatch, R.string.action_start)); in ShortcutEventTracker()
44 shortcuts.add(uidm.getShortcutId(R.string.category_screensaver, R.string.action_show)); in ShortcutEventTracker()
50 if (shortcuts.contains(shortcutId)) { in sendEvent()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DShortcutsChangedTask.java28 import com.android.launcher3.shortcuts.DeepShortcutManager;
29 import com.android.launcher3.shortcuts.ShortcutKey;
47 public ShortcutsChangedTask(String packageName, List<ShortcutInfo> shortcuts, in ShortcutsChangedTask() argument
50 mShortcuts = shortcuts; in ShortcutsChangedTask()
78 List<ShortcutInfo> shortcuts = deepShortcutManager.queryForFullDetails( in execute() local
80 for (ShortcutInfo fullDetails : shortcuts) { in execute()
DUserLockStateChangedTask.java31 import com.android.launcher3.shortcuts.DeepShortcutManager;
32 import com.android.launcher3.shortcuts.ShortcutKey;
61 List<ShortcutInfo> shortcuts = in execute() local
64 for (ShortcutInfo shortcut : shortcuts) { in execute()
DBgDataModel.java37 import com.android.launcher3.shortcuts.DeepShortcutManager;
38 import com.android.launcher3.shortcuts.ShortcutKey;
369 String packageName, UserHandle user, List<ShortcutInfo> shortcuts) { in updateDeepShortcutCounts() argument
382 for (ShortcutInfo shortcut : shortcuts) { in updateDeepShortcutCounts()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/shortcut/
DCreateShortcutPreferenceController.java101 final List<ResolveInfo> shortcuts = queryShortcuts(); in updateState() local
103 if (shortcuts.isEmpty()) { in updateState()
109 for (ResolveInfo info : shortcuts) { in updateState()
188 final List<ResolveInfo> shortcuts = new ArrayList<>(); in queryShortcuts() local
205 shortcuts.add(info); in queryShortcuts()
207 Collections.sort(shortcuts, SHORTCUT_COMPARATOR); in queryShortcuts()
208 return shortcuts; in queryShortcuts()
/packages/apps/Settings/src/com/android/settings/shortcut/
DCreateShortcutPreferenceController.java101 final List<ResolveInfo> shortcuts = queryShortcuts(); in updateState() local
103 if (shortcuts.isEmpty()) { in updateState()
109 for (ResolveInfo info : shortcuts) { in updateState()
173 final List<ResolveInfo> shortcuts = new ArrayList<>(); in queryShortcuts() local
190 shortcuts.add(info); in queryShortcuts()
192 Collections.sort(shortcuts, SHORTCUT_COMPARATOR); in queryShortcuts()
193 return shortcuts; in queryShortcuts()
/packages/apps/Contacts/src/com/android/contacts/
DDynamicShortcuts.java157 final List<ShortcutInfo> shortcuts = getStrequentShortcuts(); in refresh()
158 mShortcutManager.setDynamicShortcuts(shortcuts); in refresh()
160 Log.d(TAG, "set dynamic shortcuts " + shortcuts); in refresh()
494 final DynamicShortcuts shortcuts = new DynamicShortcuts(context); in initialize()
496 if (!shortcuts.hasRequiredPermissions()) { in initialize()
499 LocalBroadcastManager.getInstance(shortcuts.mContext).registerReceiver( in initialize()
508 new ShortcutUpdateTask(shortcuts).execute(); in initialize()
557 public ShortcutUpdateTask(DynamicShortcuts shortcuts) { in ShortcutUpdateTask() argument
558 mDynamicShortcuts = shortcuts; in ShortcutUpdateTask()
/packages/apps/Dialer/java/com/android/dialer/shortcuts/
DShortcutInfoFactory.java17 package com.android.dialer.shortcuts;
61 List<ShortcutInfo> shortcuts = new ArrayList<>(shortcutsById.size()); in buildShortcutInfos() local
79 shortcuts.add(shortcutInfo.build()); in buildShortcutInfos()
81 return shortcuts; in buildShortcutInfos()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/property/
Dunigram_property.h59 const HistoricalInfo historicalInfo, const std::vector<ShortcutProperty> &&shortcuts) in UnigramProperty() argument
63 mHistoricalInfo(historicalInfo), mShortcuts(std::move(shortcuts)) {} in UnigramProperty()
77 const HistoricalInfo historicalInfo, const std::vector<ShortcutProperty> &&shortcuts) in UnigramProperty() argument
81 mHistoricalInfo(historicalInfo), mShortcuts(std::move(shortcuts)) {} in UnigramProperty()
/packages/apps/Launcher3/src_shortcuts_overrides/com/android/launcher3/shortcuts/
DDeepShortcutManager.java17 package com.android.launcher3.shortcuts;
178 private List<String> extractIds(List<ShortcutInfo> shortcuts) { in extractIds() argument
179 List<String> shortcutIds = new ArrayList<>(shortcuts.size()); in extractIds()
180 for (ShortcutInfo shortcut : shortcuts) { in extractIds()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/
DTaskOverlayFactory.java54 final ArrayList<TaskSystemShortcut> shortcuts = new ArrayList<>(); in getEnabledShortcuts() local
60 shortcuts.add(menuOption); in getEnabledShortcuts()
63 return shortcuts; in getEnabledShortcuts()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherModel.java51 import com.android.launcher3.shortcuts.DeepShortcutManager;
142 public void bindItems(List<ItemInfo> shortcuts, boolean forceAnimateIcons); in bindItems() argument
259 public void onShortcutsChanged(String packageName, List<ShortcutInfo> shortcuts, in onShortcutsChanged() argument
261 enqueueModelUpdateTask(new ShortcutsChangedTask(packageName, shortcuts, user, true)); in onShortcutsChanged()
264 public void updatePinnedShortcuts(String packageName, List<ShortcutInfo> shortcuts, in updatePinnedShortcuts() argument
266 enqueueModelUpdateTask(new ShortcutsChangedTask(packageName, shortcuts, user, false)); in updatePinnedShortcuts()
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
DCombinedInputOutput.java103 ArrayList<WeightedString> shortcuts = new ArrayList<>(); in readDictionaryCombined() local
114 if (!shortcuts.isEmpty()) shortcuts = new ArrayList<>(); in readDictionaryCombined()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/views/
DTaskView.java727 final List<TaskSystemShortcut> shortcuts = in onInitializeAccessibilityNodeInfo() local
729 final int count = shortcuts.size(); in onInitializeAccessibilityNodeInfo()
731 final TaskSystemShortcut menuOption = shortcuts.get(i); in onInitializeAccessibilityNodeInfo()
766 final List<TaskSystemShortcut> shortcuts = in performAccessibilityAction() local
768 final int count = shortcuts.size(); in performAccessibilityAction()
770 final TaskSystemShortcut menuOption = shortcuts.get(i); in performAccessibilityAction()
DTaskMenuView.java199 final List<TaskSystemShortcut> shortcuts = in addMenuOptions() local
201 final int count = shortcuts.size(); in addMenuOptions()
203 final TaskSystemShortcut menuOption = shortcuts.get(i); in addMenuOptions()
/packages/apps/Launcher3/go/src/com/android/launcher3/shortcuts/
DDeepShortcutManager.java17 package com.android.launcher3.shortcuts;
59 public void onShortcutsChanged(List<ShortcutInfo> shortcuts) { in onShortcutsChanged() argument
/packages/apps/Launcher3/robolectric_tests/resources/
Dcache_data_updated_task_data.txt7 # App shortcuts
17 # Custom shortcuts
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/
Dpatricia_trie_policy.cpp459 std::vector<UnigramProperty::ShortcutProperty> shortcuts; in getWordProperty() local
473 shortcuts.emplace_back( in getWordProperty()
480 ptNodeParams.getProbability(), HistoricalInfo(), std::move(shortcuts)); in getWordProperty()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/
Dver4_patricia_trie_policy.cpp544 std::vector<UnigramProperty::ShortcutProperty> shortcuts; in getWordProperty() local
556 shortcuts.emplace_back( in getWordProperty()
568 *historicalInfo, std::move(shortcuts)); in getWordProperty()
/packages/apps/Launcher3/src/com/android/launcher3/compat/
DLauncherAppsCompatVL.java180 @NonNull List<ShortcutInfo> shortcuts, in onShortcutsChanged() argument
182 mCallback.onShortcutsChanged(packageName, shortcuts, user); in onShortcutsChanged()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
Dver4_patricia_trie_policy.cpp600 std::vector<UnigramProperty::ShortcutProperty> shortcuts; in getWordProperty() local
612 shortcuts.emplace_back( in getWordProperty()
619 ptNodeParams.getProbability(), *historicalInfo, std::move(shortcuts)); in getWordProperty()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DRichInputMethodManager.java555 final Map<InputMethodInfo, List<InputMethodSubtype>> shortcuts = in updateShortcutIme() local
559 for (final InputMethodInfo imi : shortcuts.keySet()) { in updateShortcutIme()
560 final List<InputMethodSubtype> subtypes = shortcuts.get(imi); in updateShortcutIme()

1234